Physical keyboard input method switching method, system and medium based on system language
By detecting the system language of the smart device and identifying the layout and language of the physical keyboard, and automatically switching the input method, the problem of users needing to manually select the keyboard layout and input method is solved, improving operation convenience and intelligence.
Patent Information
- Application Number
- CN202411607244.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-11-12
AI Technical Summary
In existing smart devices, users need to manually select keyboard layout and input methods, which leads to cumbersome and inconvenient operations.
By detecting the system language of the smart device, and identifying the keyboard layout and support language of the physical keyboard based on the interface information, the input method is automatically matched and switched. If the matching fails, the preset input method database will be combined with the preset input method database to provide the user with the user's selection.
It realizes automatic switching of input methods without manual settings by users, improves the convenience and intelligence of keyboard use, and provides a more intelligent input experience.
Smart Images

Figure CN119126991B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent devices, and more specifically, to a method, system and medium for switching a physical keyboard input method based on a system language. Background Art
[0002] In the control systems of current tablets, mobile phones and other smart devices, physical keyboards are one of the common input devices. With the development of globalization, people use different languages to communicate and work.
[0003] Therefore, in different regions and language environments, corresponding keyboard layouts and input methods are needed to meet user needs. The current solution is to manually select keyboard layouts and input methods, but this requires users to perform tedious settings, which is not convenient and intelligent enough. Summary of the invention
[0004] The purpose of the present invention is to provide a method, system and medium for switching physical keyboard input methods based on system language, which can automatically switch input methods according to the matching situation of the system language of a smart device and the physical keyboard, thereby providing a more convenient and intelligent input experience.
[0005] A first aspect of the present invention provides a method for switching a physical keyboard input method based on a system language, comprising the following steps:
[0006] Detect the system language of the current smart device to get the target language;
[0007] Identifying a physical keyboard based on the interface information, and synchronously extracting keyboard layout information and supported languages of the current physical keyboard, wherein the interface information includes wired communication information and wireless communication information;
[0008] Matching the target language with the supported language, wherein if the match is successful, switching the input method of the corresponding language in response to the keyboard layout information;
[0009] If the matching is unsuccessful, a candidate input method is matched based on the keyboard layout information in combination with a preset input method database and output to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method.
[0010] In this solution, the detecting the system language of the current smart device to obtain the target language specifically includes:
[0011] Extract the system properties of the current smart device;
[0012] Language type detection is performed based on the system properties to obtain the target language, wherein the target language includes at least one universal language.
[0013] In this solution, the identifying of the physical keyboard based on the interface information specifically includes:
[0014] The wired communication information is obtained based on the actual physical interface identification of the smart device, thereby identifying the keyboard type based on the wired communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the actual physical interface includes at least a USB interface and a Type-C interface;
[0015] The wireless communication information is obtained based on the wireless communication device of the smart device, thereby identifying the keyboard type based on the wireless communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the wireless communication device at least includes a Bluetooth device.
[0016] In this solution, the extraction of keyboard layout information and supported languages of the current physical keyboard specifically includes:
[0017] After identifying the physical keyboard, extracting access attribute information of the physical keyboard;
[0018] Data extraction is performed based on the access attribute information to obtain the keyboard layout information and the supported languages, wherein the keyboard layout information includes key position setting parameters and key position types, and the supported languages include at least one universal language.
[0019] In this solution, if the match is successful, the input method of the corresponding language is switched based on the keyboard layout information, specifically including:
[0020] Using the system language that successfully matches the supported language as the response language;
[0021] The key position setting parameter and the key position type are input in response to the response language to switch the corresponding input method.
[0022] In this solution, if the matching is unsuccessful, the candidate input method is matched based on the keyboard layout information and combined with the preset input method database and output to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method, which specifically includes:
[0023] When the match is unsuccessful, the input methods in the input method database are traversed based on the key position setting parameters and key position types in the keyboard layout information to screen out the candidate input method, wherein the screening is performed in combination with different weight factors during the traversal, and the candidate input methods include at least 3 input methods;
[0024] The candidate input method is output to the user terminal through a visual display device, so as to obtain feedback data from the user terminal to switch the target input method selected by the user, wherein the target input method is the selection result of the user based on the candidate input method.
[0025] The second aspect of the present invention further provides a physical keyboard input method switching system based on a system language, comprising a memory and a processor, wherein the memory comprises a physical keyboard input method switching method program based on a system language, and when the physical keyboard input method switching method program based on a system language is executed by the processor, the following steps are implemented:
[0026] Detect the system language of the current smart device to get the target language;
[0027] Identifying a physical keyboard based on the interface information, and synchronously extracting keyboard layout information and supported languages of the current physical keyboard, wherein the interface information includes wired communication information and wireless communication information;
[0028] Matching the target language with the supported language, wherein if the match is successful, switching the input method of the corresponding language in response to the keyboard layout information;
[0029] If the matching is unsuccessful, a candidate input method is matched based on the keyboard layout information in combination with a preset input method database and output to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method.
[0030] In this solution, the detecting the system language of the current smart device to obtain the target language specifically includes:
[0031] Extract the system properties of the current smart device;
[0032] Language type detection is performed based on the system properties to obtain the target language, wherein the target language includes at least one universal language.
[0033] In this solution, the identifying of the physical keyboard based on the interface information specifically includes:
[0034] The wired communication information is obtained based on the actual physical interface identification of the smart device, thereby identifying the keyboard type based on the wired communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the actual physical interface includes at least a USB interface and a Type-C interface;
[0035] The wireless communication information is obtained based on the wireless communication device of the smart device, thereby identifying the keyboard type based on the wireless communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the wireless communication device at least includes a Bluetooth device.
[0036] In this solution, the extraction of keyboard layout information and supported languages of the current physical keyboard specifically includes:
[0037] After identifying the physical keyboard, extracting access attribute information of the physical keyboard;
[0038] Data extraction is performed based on the access attribute information to obtain the keyboard layout information and the supported languages, wherein the keyboard layout information includes key position setting parameters and key position types, and the supported languages include at least one universal language.
[0039] In this solution, if the match is successful, the input method of the corresponding language is switched based on the keyboard layout information, specifically including:
[0040] Using the system language that successfully matches the supported language as the response language;
[0041] The key position setting parameter and the key position type are input in response to the response language to switch the corresponding input method.
[0042] In this solution, if the matching is unsuccessful, the candidate input method is matched based on the keyboard layout information and combined with the preset input method database and output to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method, which specifically includes:
[0043] When the match is unsuccessful, the input methods in the input method database are traversed based on the key position setting parameters and key position types in the keyboard layout information to screen out the candidate input method, wherein the screening is performed in combination with different weight factors during the traversal, and the candidate input methods include at least 3 input methods;
[0044] The candidate input method is output to the user terminal through a visual display device, so as to obtain feedback data from the user terminal to switch the target input method selected by the user, wherein the target input method is the selection result of the user based on the candidate input method.
[0045] The third aspect of the present invention provides a computer-readable storage medium, which includes a physical keyboard input method switching method program based on a system language of a machine. When the physical keyboard input method switching method program based on a system language is executed by a processor, the steps of a physical keyboard input method switching method based on a system language as described in any one of the above items are implemented.
[0046] The present invention discloses a method, system and medium for switching a physical keyboard input method based on a system language, which does not require a user to manually set a keyboard layout and an input method, and can automatically switch input methods according to the matching of the system language of a smart device and a physical keyboard, thereby providing a more convenient and intelligent input experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1A flow chart of a method for switching physical keyboard input methods based on system language of the present invention is shown;
[0048] Figure 2 A block diagram of a physical keyboard input method switching system based on system language of the present invention is shown. DETAILED DESCRIPTION
[0049] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0050] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0051] Figure 1 A flow chart of a method for switching physical keyboard input methods based on system language of the present application is shown.
[0052] like Figure 1 As shown, the present application discloses a method for switching a physical keyboard input method based on a system language, comprising the following steps:
[0053] S102, detecting the system language of the current smart device to obtain a target language;
[0054] S104, identifying a physical keyboard based on the interface information, and synchronously extracting keyboard layout information and supported languages of the current physical keyboard;
[0055] S106, matching the target language with the supported language, wherein if the match is successful, switching the input method of the corresponding language in response to the keyboard layout information;
[0056] S108, if the matching is unsuccessful, a candidate input method is matched based on the keyboard layout information in combination with a preset input method database and outputted to the user terminal, and feedback data from the user terminal is obtained to switch to a corresponding target input method.
[0057] It should be noted that, in this embodiment, four steps of a physical keyboard input method switching method based on system language disclosed in the present application are specifically described, namely system language detection, physical keyboard recognition, language matching and input method switching. Specifically, when performing system language detection, the system language of the current smart device is detected to obtain the target language, wherein the target language is more than one universal language, that is, the system language of the current smart device can support multiple universal languages. When performing physical keyboard recognition, the physical keyboard is specifically recognized based on the interface information, and the keyboard layout information and supported languages of the current physical keyboard are simultaneously extracted to facilitate subsequent input method switching. Further, matching is performed based on the supported language and the target language. If the match is successful, the input method of the corresponding language is switched based on the keyboard layout information; if the match is unsuccessful, the input method to be selected is matched based on the keyboard layout information in combination with the preset input method database and output to the user end, and feedback data from the user end is obtained to switch the corresponding target input method.
[0058] According to an embodiment of the present invention, detecting the system language of the current smart device to obtain the target language specifically includes:
[0059] Extract the system properties of the current smart device;
[0060] Language type detection is performed based on the system properties to obtain the target language, wherein the target language includes at least one universal language.
[0061] It should be noted that, in this embodiment, different smart devices have different set languages, and the set type information is specifically stored in the system properties. Therefore, the system properties of the current smart device can be extracted to perform language type detection to obtain the target language. Accordingly, the target language includes at least one universal language, which can be a world universal language or a local universal language.
[0062] According to an embodiment of the present invention, identifying a physical keyboard based on the interface information specifically includes:
[0063] The wired communication information is obtained based on the actual physical interface identification of the smart device, thereby identifying the keyboard type based on the wired communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the actual physical interface includes at least a USB interface and a Type-C interface;
[0064] The wireless communication information is obtained based on the wireless communication device of the smart device, thereby identifying the keyboard type based on the wireless communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the wireless communication device at least includes a Bluetooth device.
[0065] It should be noted that, in this embodiment, the physical keyboard is a physical keyboard, but when the physical keyboard and the smart device are connected, they can be interconnected through a physical connection line or through a wireless connection. Therefore, specifically, when the physical connection line is interconnected, the wired communication information is obtained based on the actual physical interface of the smart device, and the keyboard type is obtained based on the wired communication information, and the physical keyboard is obtained based on the keyboard type identification, wherein the actual physical interface includes at least a USB interface and a Type-c interface; and when the wireless connection is performed, the wireless communication information is obtained based on the wireless communication device of the smart device, and the keyboard type is obtained based on the wireless communication information, and the physical keyboard is obtained based on the keyboard type identification, wherein the wireless communication device includes at least a Bluetooth device, such as a device supporting Bluetooth 5.0.
[0066] According to an embodiment of the present invention, extracting keyboard layout information and supported languages of the current physical keyboard specifically includes:
[0067] After identifying the physical keyboard, extracting access attribute information of the physical keyboard;
[0068] Data extraction is performed based on the access attribute information to obtain the keyboard layout information and the supported languages, wherein the keyboard layout information includes key position setting parameters and key position types, and the supported languages include at least one universal language.
[0069] It should be noted that, in this embodiment, different input methods set for different physical keyboards have different responses. Even for internationally used keyboards, there are differences in the corresponding input data. Therefore, it is necessary to identify the key parameters and types on the keyboard. Specifically, after identifying the physical keyboard, the access attribute information of the physical keyboard is extracted, and then data extraction is performed based on the access attribute information to obtain the keyboard layout information and the supported languages, wherein the keyboard layout information includes key setting parameters and key types, and the supported languages include at least one universal language, so as to facilitate subsequent matching based on the target language and the supported language to switch the input method.
[0070] According to an embodiment of the present invention, if the match is successful, switching the input method of the corresponding language in response to the keyboard layout information specifically includes:
[0071] Using the system language that successfully matches the supported language as the response language;
[0072] The key position setting parameter and the key position type are input in response to the response language to switch the corresponding input method.
[0073] It should be noted that, in this embodiment, the system languages supported by the system include multiple common languages. Therefore, after identifying the supported language of the keyboard, the system language that successfully matches the supported language can be used as the response language, and the key position setting parameters and the key position type can be typed in combination with the response language to switch the corresponding input method. For example, if the supported language is the Chinese input method, the key position setting parameters and the key position type can be responded to so that the typed information is the content of the Chinese input method.
[0074] According to an embodiment of the present invention, if the matching is unsuccessful, a candidate input method is matched based on the keyboard layout information in combination with a preset input method database and outputted to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method, specifically including:
[0075] When the match is unsuccessful, the input methods in the input method database are traversed based on the key position setting parameters and key position types in the keyboard layout information to screen out the candidate input method, wherein the screening is performed in combination with different weight factors during the traversal, and the candidate input methods include at least 3 input methods;
[0076] The candidate input method is output to the user terminal through a visual display device, so as to obtain feedback data from the user terminal to switch the target input method selected by the user, wherein the target input method is the selection result of the user based on the candidate input method.
[0077] It should be noted that, in this embodiment, if the match is unsuccessful, the user needs to make a choice. When the match is unsuccessful, the input methods in the input method database are traversed based on the key setting parameters and key types in the keyboard layout information to filter out the input method to be selected. The traversal is performed in combination with different weight factors, and the input method to be selected includes at least 3 input methods. Correspondingly, the 3 input methods screened out are the sorting results after weight calculation, and then the input method to be selected is output to the user end through a visual display device, so as to obtain feedback data from the user end to switch the target input method selected by the user, wherein the target input method is the user's selection result based on the input method to be selected.
[0078] Figure 2 A block diagram of a physical keyboard input method switching system based on system language of the present invention is shown.
[0079] like Figure 2 As shown, the present invention discloses a physical keyboard input method switching system based on a system language, comprising a memory and a processor, wherein the memory comprises a physical keyboard input method switching method program based on a system language, and when the physical keyboard input method switching method program based on a system language is executed by the processor, the following steps are implemented:
[0080] Detect the system language of the current smart device to get the target language;
[0081] Identifying a physical keyboard based on the interface information, and synchronously extracting keyboard layout information and supported languages of the current physical keyboard, wherein the interface information includes wired communication information and wireless communication information;
[0082] Matching the target language with the supported language, wherein if the match is successful, switching the input method of the corresponding language in response to the keyboard layout information;
[0083] If the matching is unsuccessful, a candidate input method is matched based on the keyboard layout information in combination with a preset input method database and output to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method.
[0084] It should be noted that, in this embodiment, four steps of a physical keyboard input method switching method based on system language disclosed in the present application are specifically described, namely system language detection, physical keyboard recognition, language matching and input method switching. Specifically, when performing system language detection, the system language of the current smart device is detected to obtain the target language, wherein the target language is more than one universal language, that is, the system language of the current smart device can support multiple universal languages. When performing physical keyboard recognition, the physical keyboard is specifically recognized based on the interface information, and the keyboard layout information and supported languages of the current physical keyboard are simultaneously extracted to facilitate subsequent input method switching. Further, matching is performed based on the supported language and the target language. If the match is successful, the input method of the corresponding language is switched based on the keyboard layout information; if the match is unsuccessful, the input method to be selected is matched based on the keyboard layout information in combination with the preset input method database and output to the user end, and feedback data from the user end is obtained to switch the corresponding target input method.
[0085] According to an embodiment of the present invention, detecting the system language of the current smart device to obtain the target language specifically includes:
[0086] Extract the system properties of the current smart device;
[0087] Language type detection is performed based on the system properties to obtain the target language, wherein the target language includes at least one universal language.
[0088] It should be noted that, in this embodiment, different smart devices have different set languages, and the set type information is specifically stored in the system properties. Therefore, the system properties of the current smart device can be extracted to perform language type detection to obtain the target language. Accordingly, the target language includes at least one universal language, which can be a world universal language or a local universal language.
[0089] According to an embodiment of the present invention, identifying a physical keyboard based on the interface information specifically includes:
[0090] The wired communication information is obtained based on the actual physical interface identification of the smart device, thereby identifying the keyboard type based on the wired communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the actual physical interface includes at least a USB interface and a Type-C interface;
[0091] The wireless communication information is obtained based on the wireless communication device of the smart device, thereby identifying the keyboard type based on the wireless communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the wireless communication device at least includes a Bluetooth device.
[0092] It should be noted that, in this embodiment, the physical keyboard is a physical keyboard, but when the physical keyboard and the smart device are connected, they can be interconnected through a physical connection line or through a wireless connection. Therefore, specifically, when the physical connection line is interconnected, the wired communication information is obtained based on the actual physical interface of the smart device, and the keyboard type is obtained based on the wired communication information, and the physical keyboard is obtained based on the keyboard type identification, wherein the actual physical interface includes at least a USB interface and a Type-c interface; and when the wireless connection is performed, the wireless communication information is obtained based on the wireless communication device of the smart device, and the keyboard type is obtained based on the wireless communication information, and the physical keyboard is obtained based on the keyboard type identification, wherein the wireless communication device includes at least a Bluetooth device, such as a device supporting Bluetooth 5.0.
[0093] According to an embodiment of the present invention, extracting keyboard layout information and supported languages of the current physical keyboard specifically includes:
[0094] After identifying the physical keyboard, extracting access attribute information of the physical keyboard;
[0095] Data extraction is performed based on the access attribute information to obtain the keyboard layout information and the supported languages, wherein the keyboard layout information includes key position setting parameters and key position types, and the supported languages include at least one universal language.
[0096] It should be noted that, in this embodiment, different input methods set for different physical keyboards have different responses. Even for internationally used keyboards, there are differences in the corresponding input data. Therefore, it is necessary to identify the key parameters and types on the keyboard. Specifically, after identifying the physical keyboard, the access attribute information of the physical keyboard is extracted, and then data extraction is performed based on the access attribute information to obtain the keyboard layout information and the supported languages, wherein the keyboard layout information includes key setting parameters and key types, and the supported languages include at least one universal language, so as to facilitate subsequent matching based on the target language and the supported language to switch the input method.
[0097] According to an embodiment of the present invention, if the match is successful, switching the input method of the corresponding language in response to the keyboard layout information specifically includes:
[0098] Using the system language that successfully matches the supported language as the response language;
[0099] The key position setting parameter and the key position type are input in response to the response language to switch the corresponding input method.
[0100] It should be noted that, in this embodiment, the system languages supported by the system include multiple common languages. Therefore, after identifying the supported language of the keyboard, the system language that successfully matches the supported language can be used as the response language, and the key position setting parameters and the key position type can be typed in combination with the response language to switch the corresponding input method. For example, if the supported language is the Chinese input method, the key position setting parameters and the key position type can be responded to so that the typed information is the content of the Chinese input method.
[0101] According to an embodiment of the present invention, if the matching is unsuccessful, a candidate input method is matched based on the keyboard layout information in combination with a preset input method database and outputted to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method, specifically including:
[0102] When the match is unsuccessful, the input methods in the input method database are traversed based on the key position setting parameters and key position types in the keyboard layout information to screen out the candidate input method, wherein the screening is performed in combination with different weight factors during the traversal, and the candidate input methods include at least 3 input methods;
[0103] The candidate input method is output to the user terminal through a visual display device, so as to obtain feedback data from the user terminal to switch the target input method selected by the user, wherein the target input method is the selection result of the user based on the candidate input method.
[0104] It should be noted that, in this embodiment, if the match is unsuccessful, the user needs to make a choice. When the match is unsuccessful, the input methods in the input method database are traversed based on the key setting parameters and key types in the keyboard layout information to filter out the input method to be selected. The traversal is performed in combination with different weight factors, and the input method to be selected includes at least 3 input methods. Correspondingly, the 3 input methods screened out are the sorting results after weight calculation, and then the input method to be selected is output to the user end through a visual display device, so as to obtain feedback data from the user end to switch the target input method selected by the user, wherein the target input method is the user's selection result based on the input method to be selected.
[0105] The third aspect of the present invention provides a computer-readable storage medium, which includes a physical keyboard input method switching method program based on a system language. When the physical keyboard input method switching method program based on a system language is executed by a processor, the steps of a physical keyboard input method switching method based on a system language as described in any one of the above items are implemented.
[0106] The present invention discloses a method, system and medium for switching a physical keyboard input method based on a system language, which has the following beneficial effects, wherein the first point: Automatically select the input language of the physical keyboard: The present invention automatically matches the system language and the input language of the physical keyboard in an intelligent manner. The user does not need to manually set the keyboard layout and input method, and the system will automatically switch the input method according to the matching of the system language and the physical keyboard. This method of automatically selecting the input language of the physical keyboard improves the convenience and intelligence of the keyboard. The second point: Physical keyboard identification and information acquisition: The present invention identifies the connected physical keyboard and obtains relevant information of the physical keyboard, including the keyboard layout and the supported input language. This ensures that the system can correctly identify the physical keyboard and obtain the input language information supported by it, providing a basis for subsequent language matching and input method switching. The third point: Language matching and input method switching: The present invention determines the input language of the physical keyboard by matching the current system language with the input language supported by the physical keyboard. Then, it automatically switches to the input method supported by the physical keyboard according to the matching result. This intelligent language matching and input method switching method ensures that the user can directly use the physical keyboard for input without manually selecting the input method.
[0107] Finally, through the above innovations, the present invention realizes automatic selection of the input language of the physical keyboard, which improves the convenience and intelligence of the keyboard. The user does not need to manually set the keyboard layout and input method. The system will automatically switch the input method according to the matching of the system language and the physical keyboard, thereby providing a more convenient and intelligent input experience.
[0108] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0109] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0110] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0111] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0112] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A method for switching physical keyboard input methods based on system language, characterized in that: The following steps are involved: Detect the system language of the current smart device to get the target language; Identifying a physical keyboard based on the interface information, and synchronously extracting keyboard layout information and supported languages of the current physical keyboard, wherein the interface information includes wired communication information and wireless communication information; Matching the target language with the supported language, wherein if the match is successful, switching the input method of the corresponding language in response to the keyboard layout information; If the matching is unsuccessful, a candidate input method is matched based on the keyboard layout information in combination with a preset input method database and outputted to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method; Wherein, the target language includes at least one common language; The keyboard layout information includes key position setting parameters and key position types, and the supported languages include at least one common language; If the match is successful, the input method of the corresponding language is switched based on the keyboard layout information, specifically including: Using the system language that successfully matches the supported language as the response language; Combining the response language with the key position setting parameter and the key position type, a typing response is performed to switch the corresponding input method; If the matching is unsuccessful, the input method to be selected is matched based on the keyboard layout information and combined with the preset input method database and outputted to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method, specifically including: When the match is unsuccessful, the input methods in the input method database are traversed based on the key position setting parameters and key position types in the keyboard layout information to screen out the candidate input method, wherein the screening is performed in combination with different weight factors during the traversal, and the candidate input methods include at least 3 input methods; The candidate input method is output to the user terminal through a visual display device, so as to obtain feedback data from the user terminal to switch the target input method selected by the user, wherein the target input method is the selection result of the user based on the candidate input method.
2. A method for switching physical keyboard input methods based on system language according to claim 1, characterized in that: The detecting the system language of the current smart device to obtain the target language specifically includes: Extract the system properties of the current smart device; Language type detection is performed based on the system properties to obtain the target language.
3. The method for switching physical keyboard input method based on system language according to claim 2, characterized in that: The identifying the physical keyboard based on the interface information specifically includes: The wired communication information is obtained based on the actual physical interface identification of the smart device, thereby identifying the keyboard type based on the wired communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the actual physical interface includes at least a USB interface and a Type-C interface; The wireless communication information is obtained based on the wireless communication device of the smart device, thereby identifying the keyboard type based on the wireless communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the wireless communication device at least includes a Bluetooth device.
4. The method for switching physical keyboard input method based on system language according to claim 3, characterized in that: The extracting of keyboard layout information and supported languages of the current physical keyboard specifically includes: After identifying the physical keyboard, extracting access attribute information of the physical keyboard; Data extraction is performed based on the access attribute information to obtain the keyboard layout information and the supported languages.
5. A physical keyboard input method switching system based on system language, characterized in that: The invention comprises a memory and a processor, wherein the memory comprises a physical keyboard input method switching method program based on a system language, and the physical keyboard input method switching method program based on a system language is executed by the processor to implement the following steps: Detect the system language of the current smart device to get the target language; Identifying a physical keyboard based on the interface information, and synchronously extracting keyboard layout information and supported languages of the current physical keyboard, wherein the interface information includes wired communication information and wireless communication information; Matching the target language with the supported language, wherein if the match is successful, switching the input method of the corresponding language in response to the keyboard layout information; If the matching is unsuccessful, a candidate input method is matched based on the keyboard layout information in combination with a preset input method database and outputted to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method; Wherein, the target language includes at least one common language; The keyboard layout information includes key position setting parameters and key position types, and the supported languages include at least one common language; If the match is successful, the input method of the corresponding language is switched based on the keyboard layout information, specifically including: Using the system language that successfully matches the supported language as the response language; Combining the response language with the key position setting parameter and the key position type, a typing response is performed to switch the corresponding input method; If the matching is unsuccessful, the input method to be selected is matched based on the keyboard layout information and combined with the preset input method database and outputted to the user terminal, and feedback data from the user terminal is obtained to switch to the corresponding target input method, specifically including: When the match is unsuccessful, the input methods in the input method database are traversed based on the key position setting parameters and key position types in the keyboard layout information to screen out the candidate input method, wherein the screening is performed in combination with different weight factors during the traversal, and the candidate input methods include at least 3 input methods; The candidate input method is output to the user terminal through a visual display device, so as to obtain feedback data from the user terminal to switch the target input method selected by the user, wherein the target input method is the selection result of the user based on the candidate input method.
6. A physical keyboard input method switching system based on system language according to claim 5, characterized in that: The detecting the system language of the current smart device to obtain the target language specifically includes: Extract the system properties of the current smart device; Language type detection is performed based on the system properties to obtain the target language.
7. A physical keyboard input method switching system based on system language according to claim 6, characterized in that: The identifying the physical keyboard based on the interface information specifically includes: The wired communication information is obtained based on the actual physical interface identification of the smart device, thereby identifying the keyboard type based on the wired communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the actual physical interface includes at least a USB interface and a Type-C interface; The wireless communication information is obtained based on the wireless communication device of the smart device, thereby identifying the keyboard type based on the wireless communication information, and obtaining the physical keyboard based on the keyboard type identification, wherein the wireless communication device at least includes a Bluetooth device.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a physical keyboard input method switching method program based on a system language. When the physical keyboard input method switching method program based on a system language is executed by a processor, the steps of a physical keyboard input method switching method based on a system language as described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Input method switching method and apparatus
CN106598269A
Keyboard matching method and device
CN106604093A
Peripheral device mapping
US20130145061A1