Input method switching method, device and computer program product

By detecting the activation status of the input area, the input method is automatically switched, and the binding between the advantageous input method and the language is used to solve the problem of unsmooth user operations caused by frequent input method switching, and achieve a stable input environment and efficient code input.

CN118295541BActive Publication Date: 2024-08-30SUZHOU CAD SOFTWARE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410353655.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2024-08-30
Estimated Expiration
2042-10-31

AI Technical Summary

Technical Problem

When the existing technology optimizes the user input experience, frequent input method switching leads to unsmooth user operations, and the existing method has a large amount of data and limited scope of application when solving the occlusion problem.

Method used

By detecting the activation status of the input area in the operation interface, the input method is automatically switched, and the binding of the advantageous input method and language is used to reduce the user's manual switching operations. It also provides prompts or switches input methods under specific conditions to ensure a consistent input environment. sex.

Benefits of technology

It achieves a stable advantageous language environment during user input, reduces misoperations, and improves operational fluency and coherence. Especially in scenarios where non-native English speakers use it, it improves the accuracy and efficiency of code input.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118295541B
    Figure CN118295541B
Patent Text Reader

Abstract

The present invention relates to an input method switching method, device and computer program product, wherein the method comprises: associating at least one dominant language with a first input area on an operation interface; an input method control unit is used to detect whether the first input area is activated; when the input method control unit detects that the first input area is activated, the current input method in the first input area is set or maintained as a dominant input method, and the dominant input method is used to input a dominant language in the first input area; when the input method control unit detects that the first input area is in an activated state, and detects that the user sends an active signal or a passive signal, the input method control unit sets the current input method to a non-dominant input method based on the corresponding signal, or sets or maintains the current input method as a dominant input method. The input method switching method provided by the present invention can help users quickly enter an accurate input mode, and effectively reduce misoperation and its impact on input fluency.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Divisional application

[0002] This application is a divisional application based on the Chinese invention patent application with application number 202211345685.4, application date October 31, 2022, and invention name “An input method switching method, device and computer program product”. Technical Field

[0003] The present invention relates to the field of input method switching, and in particular to an input method switching method, a device and a computer program product. Background Art

[0004] Currently, many applications support mixed input. Therefore, when users use these applications, they usually need to input text in different input areas of the application, which may involve switching back and forth between the input states of the input method. However, such multiple switching back and forth often prevents users from having a smooth personal experience.

[0005] In order to optimize the user's input experience, the following solutions are proposed in the prior art, including:

[0006] 1. Display the current status of the input method to the user to reduce the probability of user trial and error. For example, the Chinese invention patent with application number CN201510369086.X provides a text input implementation method and device, which displays the status of the current input method of the electronic device near the cursor so that the user can directly observe the input method status at the cursor. However, for the user, it is still necessary to manually switch the input method, which is cumbersome. In addition, this method will also bring some additional problems. For example, it is necessary to consider how to set the status bar of the input method so that it can fully display the input information without blocking the input interface and affecting the user's operation. For another example, for the user, when the cursor moves in the interface, it is not necessarily desired to input text at the corresponding position. If the status bar pops up from time to time, it may give the user a poor look and feel, such as blocking the text, affecting the user's smooth reading of the text. In other words, if this visual occlusion occurs too frequently, it will also affect the user's operating efficiency. In order to solve or alleviate these problems, the amount of data to be processed will increase.

[0007] Second, provide auxiliary input function, specifically, by providing multiple candidate results to users, the switching frequency of input methods can be reduced. For example, the Chinese patent application with patent application number CN201010232678.4 discloses a method for adapting input based on the input environment. The method of adapting input is applied to the input method system of the client, from the perspective of the input method, based on the environmental information of the current input interface, to provide users with multiple auxiliary input functions to help users reduce the number of operations of switching input methods or input states. However, this method of adapting input mainly provides users with functions such as completion and prompts in scenarios such as website input, search input, and email address input. That is, this method is more suitable for the application scenario of completion and has a limited scope of application.

[0008] Therefore, the technical problem that technicians in this field are eager to solve is how to help users get a smoother operating experience. Summary of the invention

[0009] The object of the present invention is to provide a method for switching input methods. In order to partially solve or alleviate the above-mentioned technical problems, the present invention specifically adopts the following technical solutions:

[0010] An input method switching method, comprising:

[0011] Providing at least one operation interface, the operation interface comprising: a first input area, the first input area being associated with at least one dominant language;

[0012] The input method control unit is used to detect whether the first input area is activated;

[0013] Wherein, when the input method control unit detects that the first input area is activated, the input method control unit sets or maintains the current input method in the first input area as a dominant input method, and the dominant input method is used to input the dominant language in the first input area;

[0014] When the input method control unit detects that the first input area is in an activated state and detects a first active signal sent by a user, the input method control unit switches the dominant input method to a non-dominant input method based on the first active signal, wherein the non-dominant input method is used to input a non-dominant language in the first input area;

[0015] When the input method control unit detects that the first input area is in an activated state and detects a second active signal and / or passive signal sent by a user, the input method control unit sets or maintains the current input method as the dominant input method based on the second active signal and / or passive signal.

[0016] In some embodiments, the passive signal includes: an erroneous operation that occurs when the user inputs in the first input area, and / or an erroneous operation that occurs when the user sends the first active signal or the second active signal.

[0017] In some embodiments, when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds a preset first time, the input method control unit deems that the user has sent a corresponding passive signal;

[0018] Alternatively, in some embodiments, when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds a preset first time, a first prompt signal is sent to the user to prompt the user to check the input method.

[0019] In some embodiments, the method further comprises:

[0020] When the input method control unit detects that the first input area changes from an activated state to an inactivated state, the input method control unit sets or maintains the current input method as a non-dominant input method.

[0021] Alternatively, in some embodiments, the operation interface further includes: a second input area, and the corresponding method further includes:

[0022] When the input method control unit detects that the second input area is activated, the input method control unit sets or maintains the current input method of the second input area as the corresponding non-dominant input method.

[0023] In some embodiments, the dominant input method does not include the non-dominant language, or the non-dominant language in the dominant input method is in a locked state.

[0024] In some embodiments, the non-dominant input method does not include the dominant language, or the dominant language in the non-dominant input method is in a locked state.

[0025] In some embodiments, the dominant input method is pre-bound to the first input area.

[0026] In some embodiments, the dominant language is associated with the environment information of the first input area, and the corresponding step of the input method control unit setting or maintaining the current input method of the first input area as the dominant input method includes:

[0027] The input method control unit acquires the environment information of the first input area;

[0028] The input method control unit confirms the dominant language based on the environment information, and determines a corresponding dominant input method based on the dominant language;

[0029] The input method control unit sets or maintains the current input method as a dominant input method.

[0030] In some embodiments, the environment information includes: a handle.

[0031] In some embodiments, the environmental information includes: a label edited in advance by a user in the first input area, wherein the label stores information about the dominant language or the dominant input method.

[0032] In some embodiments, the step of detecting whether the first input area is activated includes:

[0033] The dwell time of the user's focus on the first input area is obtained, and when the dwell time is greater than a preset second time, it is considered that the first input area is activated.

[0034] Alternatively, in some embodiments, the step of detecting whether the first input area is activated includes:

[0035] When it is obtained that the user issues an activation instruction for activating the first input area, it is considered that the first input area is activated.

[0036] In some embodiments, the dominant language is English, and the non-dominant languages ​​include one or more of the following: Chinese, Japanese, Korean, German, French, Spanish, Russian, Arabic, and Portuguese.

[0037] In some embodiments, the input method control unit is set or stored in an application.

[0038] The second aspect of the present invention further provides an input method switching device, comprising:

[0039] An interface unit is configured to provide at least one operation interface, the operation interface comprising: a first input area, the first input area being associated with at least one dominant language;

[0040] an input method control unit, configured to detect whether the first input area is activated;

[0041] Wherein, when the input method control unit detects that the first input area is activated, the input method control unit sets or maintains the current input method in the first input area as a dominant input method, and the dominant input method is used to input the dominant language in the first input area;

[0042] When the input method control unit detects that the first input area is in an activated state and detects a first active signal sent by a user, the input method control unit switches the dominant input method to a non-dominant input method based on the first active signal, wherein the non-dominant input method is used to input a non-dominant language in the first input area;

[0043] When the input method control unit detects that the first input area is in an activated state and detects a second active signal and / or passive signal sent by a user, the input method control unit sets or maintains the current input method as the dominant input method based on the second active signal and / or passive signal.

[0044] In some embodiments, the passive signal includes: an erroneous operation that occurs when the user inputs in the first input area, and / or an erroneous operation that occurs when the user sends the first active signal or the second active signal.

[0045] In some embodiments, the input method control unit is further configured to consider that the user has sent a corresponding passive signal when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds a preset first time.

[0046] Alternatively, in some embodiments, when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds a preset first time, a first prompt signal is sent to the user to prompt the user to check the input method.

[0047] In some embodiments, when the input method control unit detects that the first input area changes from an activated state to an inactivated state, the input method control unit sets or maintains the current input method as a non-dominant input method.

[0048] Alternatively, in some embodiments, the operation interface also includes: a second input area, and accordingly, when the input method control unit detects that the second input area is activated, the input method control unit sets or maintains the current input method of the second input area to the corresponding non-dominant input method.

[0049] In some embodiments, the dominant input method does not include the non-dominant language, or the non-dominant language in the dominant input method is in a locked state;

[0050] In some embodiments, the non-dominant input method does not include the dominant language, or the dominant language in the non-dominant input method is in a locked state.

[0051] In some embodiments, the dominant input method is pre-bound to the first input area.

[0052] In some embodiments, the dominant language is associated with the environment information of the first input area, and the corresponding input method control unit is further specifically used to:

[0053] The input method control unit acquires the environment information of the first input area;

[0054] The input method control unit confirms the dominant language based on the environment information, and determines a corresponding dominant input method based on the dominant language;

[0055] The input method control unit sets or maintains the current input method as a dominant input method.

[0056] In some embodiments, the environmental information includes: a handle;

[0057] In some embodiments, the environmental information includes: a label edited in advance by a user in the first input area, wherein the label stores information about the dominant language or the dominant input method.

[0058] In some embodiments, the input method control unit includes:

[0059] The first detection subunit is configured to obtain / detect the dwell time of the user's focus on the first input area, and when the dwell time is greater than a preset second time, it is considered that the first input area is activated.

[0060] In some embodiments, the input method control unit includes:

[0061] The second detection subunit is configured to consider that the first input area is activated when an activation instruction for activating the input area issued by the user to the first input area is obtained.

[0062] In some embodiments, the dominant language is English, and the non-dominant languages ​​include one or more of the following: Chinese, Japanese, Korean, German, French, Spanish, Russian, Arabic, and Portuguese;

[0063] In some embodiments, the input method control unit is set or stored in an application.

[0064] The third aspect of the present invention further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of any of the methods described in the above embodiments.

[0065] Beneficial technical effects:

[0066] The input method switching method proposed in the present invention can directly switch the current input method to a specific advantageous input method when the user enters the first input area, thereby reducing the user's manual switching operation. In the actual working process, the user's input process in the first input area may be interrupted due to various external or internal reasons, that is, the user may leave the first input area and enter the second input area. However, whenever the user returns to the first input area from the second input area, text input can be performed directly without affecting the fluency of the user's operation due to the need to switch the input method.

[0067] In order to further ensure the fluency and coherence of user input, the method maintains a relatively stable dominant language environment for the user during the entire process of the user inputting in the first input area. The method can effectively reduce user misoperations and avoid damage to the dominant language environment caused by user misoperations through the mutual binding (or association) of the dominant language and the dominant input method, and the coordinated cooperation of switching the input method to guidance or restriction. Especially in the scenario where non-English native speakers perform code input, it can efficiently help users directly enter the dominant language mode for accurate input, and to a certain extent reduce or avoid the adverse effects or interference of users' daily input habits on non-daily input environments (code input scenarios).

[0068] It should be noted that the switching idea of ​​the input method switching method proposed by the present invention is different from the conventional operation habits of users. The conventional operation habits of users tend to switch the input state freely. However, the present invention adopts an unconventional switching idea, which includes at least two key points: 1. directly switching the input method (rather than switching the state of the input method), and 2. limiting the freedom of input method switching to a certain extent.

[0069] In summary, the present invention allows the user to switch back and forth between various applications or various input areas without having to manually switch input methods, thereby ensuring the user's operation fluency.

[0070] Preferably, the input method control unit is set or stored in an application (such as various drawing software). In this case, the input method switching can be realized directly from the perspective of the application, without obtaining the permissions of each input method or modifying each input method. The implementation method is simple and more feasible. Moreover, compared with the switching method of third-party software (i.e., input method software), the method of switching the input method directly from the perspective of the application itself is more accurate and reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, each element or part is not necessarily drawn according to the actual scale. Obviously, the drawings described below are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without paying creative labor.

[0072] Figure 1 is a schematic diagram of a method flow in an exemplary embodiment of the present invention;

[0073] Figure 2 is a schematic diagram of a module of a device in an exemplary embodiment of the present invention;

[0074] Figure 3 The figure is a schematic diagram of an operation interface of a specific embodiment of the present invention. DETAILED DESCRIPTION

[0075] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0076] Herein, suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings by themselves. Therefore, "module", "component" or "unit" can be used mixedly.

[0077] In this document, the terms "upper", "lower", "inner", "outer", "front", "back", "one end", "the other end" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0078] In this document, unless otherwise clearly specified and limited, the terms "installed", "provided with", "connected", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0079] Herein "and / or" includes any and all combinations of one or more of the associated listed items.

[0080] Herein, "plurality" means two or more than two, ie, it includes two, three, four, five, etc.

[0081] In this article, CAD files refer to various files that can be run in a CAD (Computer Aided Design) system and are used to draw, edit, modify, store, and view CAD drawings. Common CAD file formats include, but are not limited to, DWG, DXF, DWT, DWF, DWL, DWS, DWX, MNU, MNC, MNL, MNS, CUI, CUIX, SHX, PAT, LIN, CTB, STB, PLT, PC3, etc.

[0082] In this article, "operating system" is a collection of system software that manages computer hardware resources, controls the operation of other programs, and provides an interactive operation interface for users. The operating system is a key component of the computer system, responsible for basic tasks such as managing and configuring memory, determining the priority of system resource supply and demand, controlling input and output devices, operating networks and managing file systems. There are many types of operating systems, and the operating systems installed on various devices can range from simple to complex, from embedded operating systems for mobile phones to large operating systems for supercomputers. Currently popular modern operating systems mainly include Android, BSD, iOS, Linux, Mac OS X, Windows, Windows Phone, and z / OS. It can be understood that in some embodiments, the current input method in the first input area is the current input method of the operating system.

[0083] In this article, "application" can refer to "application program" or a component of "software". In particular, it can also refer to software directly. Among them, application program refers to a computer program that completes one or more specific tasks, runs in user mode, can interact with users, and has a visual user interface. Software is a collection of computer data and instructions organized in a specific order.

[0084] In this article, "handle" refers to a unique integer value, such as a 4-byte (8-byte in 64-bit programs) value, used to identify different objects in an application and different instances of the same object, such as a window, button, icon, scroll bar, output device, control, or file. The application can access the information of the corresponding object through the handle.

[0085] For example, in some embodiments, a handle refers to a unique integer used by Windows (or other operating systems, of course) to identify an object created or used by an application. Windows uses a variety of handles to identify application instances, windows, controls, bitmaps, GDI objects, etc. Therefore, a handle is equivalent to an identifier, and in this application, the "handle" information is preferably used for object identification (specifically, for identifying the environment information of the input area).

[0086] In this article, "input method" refers to an input method editor, also known as input method software or input method platform, such as Sogou Pinyin Input Method, iFlytek Input Method, Baidu Input Method, and American keyboard, etc. An input method editor can include one or more input states, such as Chinese input state, English input state, etc.

[0087] In this article, the "input type" of an input method refers to the type of information that the input method can output, such as Chinese characters, English characters, Japanese characters, etc. Of course, it can also be a gesture input or a picture input.

[0088] With the rapid development of economic globalization and network information, more and more applications (APPs) are installed on smart devices. Users may input Chinese when using some applications, while other applications may input other languages ​​(such as applications for learning foreign languages). That is, when users use different applications, they need to switch the corresponding input method to better use the application. In the related art, according to the user's usage needs, the user is usually required to manually switch the corresponding input method. The switching process is time-consuming and laborious, and the user experience is poor.

[0089] Embodiment 1

[0090] like Figure 1 As shown, the first aspect of the present invention is to provide an input method switching method. Figure 1 As shown, the method includes:

[0091] S101 provides at least one operation interface, the operation interface comprising: a first input area, the first input area being associated with at least one dominant language;

[0092] S103: an input method control unit is used to detect whether the first input area is activated;

[0093] When the input method control unit detects that the first input area is activated, step S105 is executed in which the input method control unit sets or maintains the current input method in the first input area as a dominant input method, and the dominant input method is used to input the dominant language in the first input area;

[0094] When the input method control unit detects that the first input area is in an activated state and detects a first active signal sent by a user, step S107 is executed in which the input method control unit switches the dominant input method to a non-dominant input method based on the first active signal, wherein the non-dominant input method is used to input a non-dominant language in the first input area;

[0095] When the input method control unit detects that the first input area is in an activated state and detects a second active signal and / or passive signal sent by a user, step S109 is executed in which the input method control unit sets or maintains the current input method as the dominant input method based on the second active signal and / or passive signal.

[0096] For example, in some embodiments, a user runs at least one application in an operating system and provides an operation interface of at least one application, wherein at least two input methods are provided in the operating system, and the operation interface includes: a first input area and a second input area. A cursor (also called a cursor) for selecting an input area is provided in the operating system, and in response to a first operation instruction of the user, the cursor selects the first input area, at which time the input method control unit considers that the first input area is activated, and then obtains environmental information of the first input area. Further, the input method control unit determines a dominant input method based on the environmental information, and sets or maintains the current input method of the first input area as the dominant input method.

[0097] In some embodiments, the input method control unit generates a first control signal based on the dominant input method and sends it to the operating system, indicating switching to the dominant input method; the operating system switches the current input method to the dominant input method based on the first control signal, wherein the dominant input method is used to input the corresponding dominant language in the first input area.

[0098] In some embodiments, when there is currently one application running in the operating system (or an application that the user is using), the application correspondingly provides an operation interface for the user in the system, and there are two or more input areas that can be called on the operation interface, and the dominant languages ​​of the two input areas are different. At this time, when the user switches between two or more input areas, the input method will be adjusted.

[0099] Of course, in other embodiments, there are two or more applications currently running in the operating system or being used by the user, and two or more operating interfaces will be provided to the user on the system. When the user switches between different operating interfaces, the input method will also be adjusted.

[0100] Specifically, in some embodiments, the application refers to an application program, that is, application software in a personal computer, such as CAD; or, refers to an APP in a smart mobile terminal such as a mobile phone or a tablet computer.

[0101] In some embodiments, the operating system is usually preset with two or more input methods. For example, for users in non-English-speaking countries, their systems are usually provided with at least one English input method (such as the American keyboard input method that comes with Windows) and at least one input method for inputting their own language (such as the Chinese input method, the Japanese input method, the Korean input method, etc.).

[0102] In some embodiments, the user can use the mouse to send a corresponding first operation instruction to the input method control unit set in the operating system or application, so that the cursor can move freely within the system interface or operation interface to assist the user in selecting each input area.

[0103] In some embodiments, when the input method control unit determines / recognizes that the cursor is located in the first input area, it determines that the user has selected the first input area. At this time, the input method control unit will further obtain environmental information of the first input area and confirm the dominant language of the first input area from the environmental information.

[0104] It is understandable that the language types of dominant languages ​​and non-dominant languages ​​are not fixed, but are related to the type of input area.

[0105] For example, in some embodiments, when the first input area is identified as a command line input box based on the acquired environment information, the dominant language is determined to be English.

[0106] For example, in some other embodiments, when the first input area is identified as a chat software input box based on the acquired environment information, the dominant language is determined as the input type commonly used by the user in the first input area. And the input type is preferably the system language in Windows, such as Chinese input, Japanese input, or Korean input, etc. Further, based on the dominant language, the corresponding input method is selected from the input methods of the system, and it is used as the dominant input method enabled when switching to a new input area.

[0107] In some embodiments, environmental information refers to relevant information that can be used to determine the input language of the input area. It should be noted that in this embodiment, the environmental information used is not the input text information (such as various characters) or the input non-text information (such as picture information, etc.) of the input area, but a type of attribute information (such as a handle) determined by the input area itself. This type of attribute information is usually related to the application type of the input area and the application in which it is located, or the purpose of setting the input area (or, this type of attribute information is often set by the developer during software development).

[0108] In some embodiments, after determining the dominant input method, the input method control unit generates a first control signal for switching the input method based on the dominant input method, and sends the first control signal to the input method interface of the operating system. The operating system switches the current input method to the dominant input method in response to the first control signal.

[0109] In some embodiments, the first active signal refers to a specific instruction issued by the user for switching the dominant input method to the non-dominant input method. The input method of the specific instruction or the specific content of the instruction can be customized in advance by the user. For example, the user can associate corresponding instruction content with one or more shortcut keys, thereby inputting a specific instruction through a specific shortcut key operation.

[0110] In some embodiments, the second active signal refers to a specific instruction issued by the user for switching the dominant input method. Specifically, when the user issues the second active signal, if the current input method is the dominant input method, the dominant input method is kept unchanged; if the current dominant input method is the non-dominant input method, the non-dominant input method is switched to the dominant input method. Similarly, the input method of the specific instruction or the specific content of the instruction can be customized by the user.

[0111] In some embodiments, the first and second active signals may be associated with the same shortcut key. Of course, in other embodiments, they may also be associated with different shortcut keys.

[0112] In some embodiments, the passive signal includes: an erroneous operation occurring during a user input process in the first input area.

[0113] In some embodiments, the passive signal includes: an erroneous operation that occurs when the user sends the first active signal or the second active signal.

[0114] In some embodiments, when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds a preset first time, the input method control unit deems that the user has sent a corresponding passive signal. The passive signal in this embodiment is equivalent to a timeout signal.

[0115] Alternatively, in some embodiments, when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds a preset first time, a first prompt signal is sent to the user to prompt the user to check the input method.

[0116] In some embodiments, the continuous use time is the activation time of the non-dominant input method.

[0117] In some embodiments, the continuous use time is the time during which the user performs continuous input in a non-dominant input method state.

[0118] For example, in some embodiments, when it is detected that the user continuously inputs the non-dominant language in the first input area for more than a preset first time, or when it is detected that the user's cursor is located in the first input area and the non-dominant input method is enabled for more than a preset first time, a first prompt signal (such as a language or text prompt) for indicating to check the input method is sent to the user. By sending a reminder to the user to check the input method through the first prompt signal, the impact of the user's erroneous operation of directly inputting the first language due to being too focused on the input behavior itself and ignoring the switching of the input method can be avoided or alleviated to a certain extent.

[0119] Of course, in other embodiments, when in the above-mentioned timeout situation, the input method control unit may also directly set the current input method as the dominant input method, that is, perform a timeout switch.

[0120] It is understandable that, especially when Chinese users are inputting codes, the user's thinking and input actions at this time are all carried out quickly. In this process, it is inevitable that the input conditions of the Chinese input method may not be successfully switched to the English input method, or the user forgets to switch to the English input method. At this time, the user will try to enter English directly under the Chinese input method, and due to the user's fast input behavior, the user may enter a long string of characters before finding that the input method is wrong. As a result, the user's current input efficiency and the coherence of thinking will be affected. Moreover, in the scenario of code input, the content of each non-English input is generally very short, and may only involve the input of a few characters. Therefore, in this input environment, the accuracy of the timeout reminder or timeout switching function will also be relatively reliable.

[0121] In some embodiments, as long as it is detected that the user is in the first input area and makes a switch input method, or other erroneous switching operations such as switching input states, the dominant input method is uniformly switched back.

[0122] Further, in some embodiments, the dominant input method does not include the non-dominant language, or the non-dominant language in the dominant input method is in a locked state.

[0123] Further, in some embodiments, the non-dominant input method does not include the dominant language, or the dominant language in the non-dominant input method is in a locked state.

[0124] For example, in some embodiments, when the dominant language is English, the dominant input method is the English input method, and the non-dominant language is Chinese, and the non-dominant input method is the Chinese input method. In the first input area, the English input method only includes the function of English input, but does not include the function of Chinese input or other text input (or, in the first input area, only the English input function can be enabled in the English input method, and other input functions are locked). When the current input method in the first input area is the Chinese input method, the enabled Chinese input method only includes the Chinese input function, but does not include the English input function (or, in the first input area, only the Chinese input function can be enabled in the Chinese input method, and the English input function is locked). That is to say, in this embodiment, the input language and the type of input method are bound to each other, and when the user wants to switch the input language, the input method needs to be switched.

[0125] For example, in some embodiments, when the cursor is located in the first input area, the input state of the dominant input method is in a locked state; and the method further includes the steps of:

[0126] When it is detected that the user needs to input a non-dominant language in the first input area, determining a non-dominant input method based on the non-dominant language;

[0127] The input method control unit generates, based on the non-dominant input method, a second control signal indicating switching to the non-dominant input method and sends it to the operating system;

[0128] The operating system switches the dominant input method to a non-dominant input method based on the second control signal.

[0129] In some embodiments, when it is detected that the user makes an operation of switching the input method, it is considered that it is detected that the user needs to input a non-dominant language in the first input area.

[0130] Preferably, in some embodiments, the input state of the dominant input method is in a locked state, that is, when the user wants to change the type of input language and performs an input method switching operation (for example, switching the input method or input method state through Shift+Ctrl or Shift), they are uniformly switched back to the dominant input method, and will not accidentally switch to another input state of the dominant input method. In other words, in this embodiment, different restrictions or guidance methods are used for users to switch back and forth between the dominant input method and the non-dominant input method.

[0131] Furthermore, in some embodiments, the input state of the non-dominant input method is also in a locked state. At this time, when it is detected that the user needs to switch from the non-dominant language to the dominant language, the input method control unit generates again and sends a first control signal indicating switching to the dominant input method to the operating system; the operating system switches the non-dominant input method to the dominant input method based on the first control signal. Among them, the dominant input method and the non-dominant input method may include multiple input states, but when the dominant input method and the non-dominant input method are in the corresponding locked state, the user will not be able to directly switch their states.

[0132] It is understandable that, in this embodiment, the locking state of the dominant input method or the non-dominant input method does not mean that the user cannot enable other types of input methods, but rather imposes certain restrictions on the user's input method switching operation.

[0133] Preferably, in some embodiments, when the dominant language is English, the dominant input method is preferably a pure English input method, such as an American keyboard input method.

[0134] Of course, in other embodiments, when the dominant language is English, the dominant input method may also be other types of input methods whose default input state is English, such as a Chinese input method whose default input state is set to English.

[0135] To further illustrate the technical solution and beneficial technical effects adopted by the present invention, the operation method in the prior art is described by taking the application scenario of code input by non-English native speakers such as Chinese users as an example:

[0136] When Chinese users enter code in the code writing box, they may need to enter a string containing Chinese characters. At this time, the input method needs to be adjusted. Usually, when the user initially selects the English input state of the Chinese input method, the user directly switches the English input state to the Chinese input state when entering a string.

[0137] However, this operation mode is prone to some problems. For example, if a user uses a Chinese input method to input English, the Chinese input method may be switched to the Chinese input state due to misoperation (such as accidentally clicking the input state switch key during fast input). In addition, since the user is often immersed in the input idea or the input action itself, it is likely that the user will not notice this problem in time. Therefore, the user may have to delete the input content, adjust the input method and re-enter after entering a long string of characters. As a result, the coherence of the user's thinking may be disrupted, and the fluency of the operation will also be affected.

[0138] The following also takes code input as an example to illustrate the technical solution adopted by the present invention:

[0139] In some specific embodiments, the first input area is a code writing box, the dominant language of the code writing box is English, the non-dominant language is Chinese, and the user can send a first active signal or a second active signal by clicking the "Shift+Ctrl" shortcut key combination. When the user enters the code writing box, the input method control unit detects that the code writing box is activated, and sets or maintains the current input method of the code writing box to the English input method (including only the English input state). Afterwards, if the user needs to input a string in Chinese, it is necessary to manually input an accurate switching instruction (i.e., send a first active signal), and at this time, the input method control unit switches the English input method to the Chinese input method based on the switching instruction (wherein, the Chinese input method does not include the English input state, or the English input state in the Chinese input method is locked). Finally, when the user wants to input English again after finishing the string input, he can manually input the switching instruction again (equivalent to sending a second active signal), and at this time, the input method control unit switches back to the English input method based on the corresponding switching instruction.

[0140] In the above operation scenarios, the following situations may also exist: 1) When the user is using the Chinese input method, the user may want to switch the input method, but due to an erroneous operation, the user chooses to switch the input state (i.e., click the Shift key). Or, 2) The user accidentally clicks the Shift key during English input. Or, 3) The user accidentally clicks other keys or areas through keyboard or mouse operations and issues an erroneous switching instruction. In the case of these erroneous operations, the method in this embodiment preferably sets or maintains the current input method as the English input method.

[0141] Since the English input method is the most advantageous input method in the code writing box (or in other words, English is the most preferred input language for the code writing box), in this code input environment, no matter whether the user's second active signal or other misoperation is detected, the current input method can be uniformly set or maintained as the English input method, thereby reducing the adverse effects of misoperation on input behavior to a large extent.

[0142] For example, in some embodiments, the operation of switching from the English input method back to the Chinese input method can be set as a shortcut operation (such as Shift+Ctrl), or can also be set as other special forms. Specifically, in some embodiments, due to the extremely high accuracy requirement for switching from the English input method, when the user needs to switch to the English input method, it may even be necessary to stop the current input action to ensure that the switching operation can be accurately performed to switch the English input method to the Chinese input or other input method.

[0143] It should be noted that, in this embodiment, unlike the process of switching from the Chinese input method to the English input method, in order to ensure that the user can accurately input content, the accuracy of the switching operation from English to Chinese by the user is required to be higher. In other words, the input method control unit must perform the input method switching operation only after receiving an accurate first active signal.

[0144] The input method switching in the embodiment of the present invention adopts an unconventional switching idea. In the existing operating environment, in order to facilitate users to flexibly input different languages, the English input method and the Chinese input method can be switched freely, and the state within the same input method can also be freely adjusted. In general, in the existing operating environment, the difficulty of switching between various input methods or input states (or the convenience of operation) is the same or similar, so that users can flexibly adjust. In comparison, the unconventional switching idea adopted by the present invention is different in at least two aspects: 1) directly switching the input method (binding the dominant language to the dominant input method); 2) restricting the freedom of input method switching to a certain extent (when in the first input area, the difficulty of switching between the dominant input method and the non-dominant input method is not the same).

[0145] Generally speaking, for Chinese users, Chinese is the most commonly used language by users, and Chinese input method is the most commonly used input method by users. Therefore, for Chinese users, they may be relatively more inclined to choose Chinese input method from the operating habits, or in other words, it is easier to choose Chinese input method for English or Chinese input during the input process. The switching method provided in the present embodiment is exactly the opposite of the user's existing conventional thinking. When Chinese users use this method to input in the code writing box, it is easier for users to directly switch to English input method. In contrast, the difficulty of users switching to Chinese input method will increase slightly. Thereby ensuring that users or systems give priority to calling the advantage input method with better adaptability to the language characteristics of code input during the code input process.

[0146] Preferably, in this embodiment, through the selection of an advantageous input method and the multiple combinations of one or more restriction / guidance means mentioned above, it is ensured as much as possible that non-native English speakers can be better immersed in an all-English input environment during the English input process (such as the code input process). This pure English input environment is highly compatible with the user's current input needs, thereby helping the user to smoothly and coherently input English commands in the process of fast and large-scale code writing. Such fluency and coherence allow users to immerse themselves more in the code writing itself (that is, the user can focus more on the work itself).

[0147] Further, in some embodiments, when the input method control unit detects that the first input area changes from an activated state to an inactivated state, the input method control unit sets or maintains the current input method as a non-dominant input method.

[0148] For example, in some embodiments, when the user clicks on an area other than the first input area in the operation interface, it is considered that the first input area is changed from an activated state to an inactivated state.

[0149] For example, in some embodiments, it also includes:

[0150] When the input method control unit detects that the cursor leaves the first input area, it generates and sends a third control signal indicating switching to a non-dominant input method or other default input method to the operating system. The operating system then sets or maintains the current input method as a non-dominant input method or other default input method based on the third control signal.

[0151] In this embodiment, once it is detected that the user leaves the first input area, the input method is switched to the default input method or the previously enabled input method. Since the default input method and the previously enabled input method are generally the input methods selected by the user in the input environment of the second input area, this switching method can also well adapt to the user's operating habits.

[0152] In some embodiments, the operation interface further includes: a second input area, and the method further includes:

[0153] When the input method control unit detects that the second input area is activated, the input method control unit sets or maintains the current input method of the second input area as a non-dominant input method.

[0154] In some embodiments, the dominant input method is pre-bound to the first input area, which is equivalent to associating the first input area with a corresponding dominant language or dominant input method.

[0155] In some embodiments, the dominant language is associated with the environment information of the first input area, and the corresponding step of the input method control unit setting or maintaining the current input method of the first input area as the dominant input method includes:

[0156] The input method control unit acquires the environment information of the first input area;

[0157] The input method control unit confirms the dominant language based on the environment information, and determines a corresponding dominant input method based on the dominant language;

[0158] When the input method control unit sets or maintains the current input method as the dominant input method.

[0159] Further, in some embodiments, the environment information includes: a handle.

[0160] Furthermore, in some embodiments, the environment information includes: a tag pre-edited by the user in the first input area, the tag storing information of the dominant language or the dominant input method. In this embodiment, the first input area is associated with a corresponding dominant language or dominant input method.

[0161] In some embodiments, the step of detecting whether the first input area is activated includes:

[0162] The dwell time of the user's focus on the first input area is obtained, and when the dwell time is greater than a preset second time, it is considered that the first input area is activated.

[0163] In some embodiments, the step of detecting whether the first input area is activated includes:

[0164] When it is obtained that the user issues an activation instruction for activating the first input area, it is considered that the first input area is activated.

[0165] In some embodiments, when the user clicks to select the first input area, the input method control unit considers that the activation instruction issued by the user is recognized or obtained.

[0166] In some embodiments, before obtaining the environment information of the first input area, the method further includes the following steps (or the method further includes the step of determining whether the cursor is located in the first input area):

[0167] The dwell time of the cursor on the first input area is obtained, and when the dwell time is greater than a preset second time, it is determined that the cursor is located in the first input area.

[0168] For example, in some embodiments, the second time can be set to 1s (or 0.5s, 1.2s, etc.). When the input method control unit detects that the cursor stays in the first input area for more than 1s, it determines that the cursor is in the first input area.

[0169] In some embodiments, the preset first and second times can be adaptively set by the user according to actual conditions.

[0170] In this embodiment, the setting of the second time can save the computer's operating resources to a certain extent. Only when the cursor stays in the first input area for more than a certain time, the corresponding switching process (obtaining environmental information, switching input methods, etc.) is started to avoid invalid switching of input methods. For example, in some usage scenarios, the cursor moves quickly between one or more operation interfaces in response to the user's operation. At this time, the cursor may pass through the positions of multiple input areas, but the user's current demand is not to enter text (or other types of information input such as pictures) in a certain input area, and the preset time in this embodiment can avoid invalid input method switching, thereby avoiding occupying the computer's operating resources.

[0171] In some embodiments, before obtaining the environment information of the first input area, the method further includes the following steps (or the method further includes the step of determining whether the cursor is located in the first input area):

[0172] When it is obtained that the user issues a second operation instruction to the first input area, it is determined that the cursor is located in the first input area, wherein the second operation instruction includes: an instruction for selecting the first input area.

[0173] For example, in some embodiments, when the cursor moves to the first input area, the user can issue a corresponding second operation instruction by clicking the mouse, and the application (or system) determines that the cursor is located in the first input area in response to the second operation instruction.

[0174] Specifically, in some embodiments, when the user moves the cursor to the corresponding input area by mouse (or other operation methods) and clicks the input area, the input area acquires the focus, and then triggers the corresponding event handler, such as switching the default input method (or the currently enabled input method) in the system to the corresponding dominant input method. When the cursor leaves, the input area loses the focus, and the corresponding event handler is also triggered, such as switching the input method from the dominant input method back to the default input method (or switching back to the last enabled input method).

[0175] In this embodiment, from the user's operation perspective, when the user clicks on the input area, the system automatically switches to the corresponding dominant input method. In addition, since in most cases, the user usually selects the input area by clicking, from the user's learning and use perspective, such an operation method can be quickly adapted to by the user.

[0176] Of course, in other embodiments, after the first or second input area loses focus, the input method switching operation may not be performed, and the user can decide the input method switching method by himself.

[0177] In some embodiments, the cursor being located in the first input area refers to a state in which the user can directly input into the first input area.

[0178] It can be understood that the above two judgment methods can be implemented separately as different embodiments, or can be implemented together in the same embodiment.

[0179] Specifically, in some embodiments, the first input area refers to an input box that needs to input a specific input language. For example, the first input area includes: a code writing box, which mainly relies on English input. Correspondingly, the second input area refers to an input box that can input a non-specific input language, such as a chat input box of various social software or a search input box of various general websites, which can freely select English, Chinese, Japanese, Korean and other languages ​​according to the user's language habits.

[0180] Of course, in other embodiments, the first input area may also be an input box that specifically requires Chinese input, and correspondingly, the second input area refers to an input box that can input English or other languages.

[0181] Generally speaking, a unified default input method is usually preset in the system. When a user opens any application or any input area / input box in an application, the preset default input method is called by default. However, the default input method does not necessarily meet the input requirements of all applications or all input areas / input boxes in an application.

[0182] The switching method in this embodiment can be to switch the corresponding dominant input method for different input areas in the application, so that when the user enters the first input area or the second input area, the input method called by the system (that is, the dominant input method) can meet the user's most important language input needs in the first input area or the second input area. Among them, the dominant input method in this embodiment refers to the input method that is preferentially enabled by the input method control unit / operating system when the user switches / moves to a new input area (such as the first or second input area) and starts to input language or other information in the new input area.

[0183] For example, for non-English native users such as Chinese users, when using the input box (equivalent to the second input area in this embodiment) of websites, mailboxes, and social software, the Chinese input method is usually used. When Chinese users need to write code in the code writing box (equivalent to the first input area in this embodiment), English input is required. In this embodiment, when the user enters the code writing box, the input method control unit will set the current input method to the dominant input method corresponding to the code writing box, and when the user uses the English input method in the code writing box, it is preferred that only the dominant input method can be used to input.

[0184] In some embodiments, the input method control unit can be provided to the user together with the application as an internal unit / module of the application. Thus, the switching of the input method is realized from the perspective of the application. In addition, the switching method does not need to obtain the status of the current input method (such as the category of the current input method, or the input status of the current input method), and the current input method can be directly set or maintained as the corresponding input method, which is more efficient and has a fast response speed.

[0185] In some embodiments, the non-dominant input method is a default input method pre-set in the operating system. For example, in some specific embodiments, when the non-dominant language is the same as the default input language of the default input method, the default input method is determined to be the non-dominant input method.

[0186] Preferably, in some embodiments, there is only one dominant input method.

[0187] Of course, in other embodiments, the dominant input method can also be set to two or more, and the two or more dominant input methods are only used as the input of the dominant language in the input environment of the first input area. At this time, one of the dominant input methods can be selected and enabled according to the operating status or health status of each first dominant input. Therefore, from the user's operating experience, setting two or more dominant input methods does not cause input confusion.

[0188] In some embodiments, the non-dominant input method may also include one or more input methods. In this embodiment, the input method control unit may also switch from one non-dominant input method to another non-dominant input method in response to a user's operation.

[0189] In some embodiments, for the first input area, the non-dominant language may be of multiple types, such as Chinese, Japanese or Korean. Correspondingly, the non-dominant input methods may include multiple types, such as Chinese input method, Japanese input method or Korean input method.

[0190] In some embodiments, the first input area is an input area that mainly relies on English input, such as a code writing box, and the corresponding dominant language is English, and the non-dominant languages ​​include one or more of the following: Chinese, Japanese, Korean, German, French, Spanish, Russian, Arabic and Portuguese.

[0191] The following will take the usage requirements of Chinese users as an example to further illustrate the technical solution of the above embodiment:

[0192] Application scenario 1:

[0193] Specifically, in some embodiments, when running CAD (Computer Aided Design) in the operating system and opening a CAD file, at least two types of input boxes are usually involved. Among them, one type of input box belongs to the command line and dynamic input (equivalent to the first input area in this embodiment), and the dominant language of this type of input box is English. Another type of input box includes text boxes such as text / mtext / table (equivalent to the second input area in this embodiment). For users in non-English regions, it is often necessary to use non-English input methods. For example, for users in China, Chinese input methods are generally used. For example, for users in Japan, Japanese input methods are generally used. For these users, when opening CAD, the currently enabled input method is usually in a state of non-English input (such as non-dominant languages ​​such as Chinese and Japanese input) by default. Therefore, whenever a user opens the command line in CAD, before performing formal text input (that is, when entering the initial state of the command line), it is necessary to manually switch the input method or switch the input state of the input method. In other words, in the above scenario, when the user enters a new input area such as a command line, the required input method may not match the system default input method. Therefore, when entering a new input area in the early stage, the user will need to manually adjust the input method.

[0194] From the perspective of usage habits, when users switch input methods, they usually try to input characters first (in some set scenarios, the current input method and the input status of the input method are often not displayed in the operating interface of the system or application), and then observe the text input display result. If the observed result is Chinese and it is believed that the current state is Chinese for the Chinese input method, the user will press the corresponding shortcut key of the Chinese input method to try to switch to the English state of the Chinese input method, or switch to the English input method. Only then can English characters / commands be correctly entered in the command line. The operation is very cumbersome.

[0195] Moreover, the input process of the user in the command line is not necessarily continuous. For example, after the user enters an English command, text boxes such as text / mtext / table may be called up to set other parameters, which may involve repeated input method switching, affecting the user's operation fluency and reducing operation efficiency. The switching method in this embodiment can automatically switch the dominant input method when switching back and forth in different input areas (or input windows) of the same application operation interface. Specifically, when the user switches from text boxes such as text to the command line, the input method control unit will automatically switch to the dominant input method corresponding to the command line, that is, the English input method, thereby greatly improving the user's input efficiency and enhancing the user's input experience.

[0196] Application scenario 2:

[0197] When a user enters an input area of ​​a new operation interface, for example, when the user currently opens an operation interface with multiple applications, such as opening CAD software, social software (such as WeChat, email, etc.) and browsing the web at the same time, the user may switch between multiple operation interfaces. For example, when the user is programming in the CAD software (specifically, inputting operation instructions in the command line, the dominant language of the command line is English), it may receive a conversation message from a customer or colleague (for users in non-English countries, non-English input is often required, such as Chinese, Japanese, Korean, etc.), and at this time it is necessary to switch to the corresponding social software such as WeChat to reply to the customer or colleague (the dominant language of the reply at this time is a non-English language). For another example, during the user's editing process, it may be hoped that the user can use the learning information on the Internet (such as various CAD usage tutorials, etc.) or other related information to achieve fast CAD programming. When the user switches back and forth between them (such as CAD switching to WeChat, CAD switching to a web page, etc.), the input method needs to be adjusted before entering the text content. This frequent adjustment (or switching) is poor for the user's experience. Especially when the user is doing CAD programming, when a customer or colleague initiates a conversation with the current user, the user needs to switch back and forth many times, and the user is likely to forget to switch the input method / input state before inputting, which leads to input errors. At this time, it is also necessary to delete the wrong content, and then switch to the correct input method or input state, and input again, which seriously affects the user's operation fluency. The input method switching method in this embodiment can directly switch the input method to a superior input method that meets the input conditions (input requirements) of the first input area in the initial state (that is, when the user switches to a new input area), ensuring that the user does not need to manually adjust the input method between switching back and forth, improving the user's operation fluency and optimizing the user's experience. Of course, in the process of the user inputting CAD commands, the input method can also be freely switched autonomously based on real-time needs.

[0198] In summary, in addition to being able to quickly set a dominant input method for the user at the initial moment, this method can also provide the user with a dominant language environment that is compatible with the current input area (or maintain the current dominant language environment) during the entire process of code input. Specifically, this method uses a variety of means such as binding the dominant language with the dominant input method and guiding or restricting the input method switching to a certain extent, thereby maintaining the input environment of the dominant language based on the synergy of multiple means, so as to help the user smoothly input the dominant language during this process.

[0199] Furthermore, in some embodiments, the environment information may also include other information, such as application configuration information, etc. That is to say, there may be multiple judgment conditions for determining the dominant input method. In this case, before obtaining the environment information of the first input area, the following steps are also included:

[0200] The first input area is identified to determine characteristic environment information of the first input area.

[0201] Furthermore, characteristic environment information is acquired from the environment information of the first input area, and a dominant input method is determined based on the characteristic environment information.

[0202] For example, in some embodiments, the characteristic environment information of the input area can also be predefined by the user. For example, the characteristic environment information of the command line is set / defined as a handle, and for some other commonly used text input areas (such as the chat input box of social software, etc.), the characteristic environment information is set / defined as application configuration information, which can be information pre-set by the application developer or user-defined information.

[0203] For another example, in some embodiments, the characteristic environment information of the input area can be identified and analyzed automatically by the operating system or application (or the input method control unit in the operating system or application).

[0204] In some embodiments, application configuration information refers to information used to identify the application. Application configuration information includes, for example, the name of the application, and the dominant input method pre-associated with the application is determined based on the name of the application. Application configuration information includes, for example, the version of the application. When multiple versions of an application are installed on the system, different input methods can be associated with each version. For example, an input method with a better English input experience is associated with the international version of WeChat, and an input method with a better Chinese input experience is associated with the domestic version of WeChat, so as to better meet the needs of users and improve the user experience.

[0205] For example, in some embodiments, the application configuration information is the package name of the application. The package name is unique, and one package name represents one application. Two applications are not allowed to use the same package name. The package name is mainly used for the system to identify the application and is rarely seen by the end user. Since each application in the system matches a corresponding package name, by using the package name as the application configuration information, there is no need to set other information for identifying the application, which facilitates the setting of the application configuration information.

[0206] Preferably, in some embodiments, for some applications that do not involve a specific input type (such as WeChat, which can use various types of input methods such as Chinese input, English input, etc.), the user can associate the preferred input method for each application configuration information, so that the dominant input method corresponding to the target application can be determined according to the application configuration information of the target application to facilitate the switching of the input method. For example, email is associated with input method A, and WeChat is associated with input method B. For applications involving a specific input type, it is preferred to determine the dominant input method by handle recognition.

[0207] For example, in some embodiments, for commonly used social software such as WeChat, Enterprise WeChat, QQ, etc., a method of determining the dominant input method based on application configuration information is adopted; for objects involving operation instruction input (such as CAD command lines must involve English input in most existing applications), a method of determining the dominant input method based on handle information is adopted.

[0208] The switching method in this embodiment can flexibly determine the judgment conditions (or switching rules) of the input method according to the characteristics of different input areas, so as to more accurately call the advantageous input method that meets the input requirements for the user.

[0209] Further, in some embodiments, when the input method control unit detects that the cursor leaves the first input area, or when it detects that the user makes an input action or input preparation in other input areas, a second control signal indicating switching back to the default input method of the operating system is sent to the operating system; the operating system switches the dominant input method to the default input method based on the second control signal.

[0210] In some embodiments, when it is detected that the first input area loses focus, it is considered that the cursor leaves the first input area.

[0211] In some embodiments, when a click operation is detected in an area outside the first input area, it is considered that the user has made input preparations in other input areas. When input behavior is detected in an area outside the first input area, it is considered that the user has made input behavior in other input areas.

[0212] Preferably, in this embodiment, it is not necessary for the user to determine the dominant input method when entering all input areas.

[0213] Specifically, the input area that needs to be specifically determined as the dominant input method can be specifically designated by the user. For example, if various input areas for inputting control instruction texts are set as specific input areas, the above corresponding steps will be performed only when the first input area is a specific input area.

[0214] Therefore, in this embodiment, when the user leaves the first input area (the first input area is a specific input area), the default input method is directly switched back, thereby greatly reducing the amount of data processing of the computer. At the same time, the simplified switching mode described above can also meet the actual needs of users. For example, in some applications that do not involve the input of control instruction text or other special text types, the default input method can often meet most of the user's input needs.

[0215] For example, in a preferred embodiment of the present invention, the command line in CAD is set as a special input area. When the user enters the command line, the corresponding switching steps are executed in sequence to switch to the corresponding advantage input method. When the user leaves the command line and enters the text / mtext / table text box in CAD, or enters other daily applications such as enterprise WeChat, QQ, etc., the default input method is directly switched back. In this embodiment, when the user needs to switch back and forth between the command line and other text boxes many times, even if the necessary number of input method switches is not significantly reduced, the amount of data that the computer needs to process will be significantly reduced, thereby effectively saving the power consumption of the computer (saving power consumption).

[0216] Specifically, in some embodiments, when the user is a user in a non-English region, such as a Chinese user, more than two input methods may be installed in the system. For example, two commonly used Chinese input methods are installed in the system. At this time, the default input type (i.e., the default input state) of one of the input methods with better Chinese input effect can be set to Chinese input, and the default input type (i.e., the default input state) of the other input method can be set to English input. When the automatic input method switching in this embodiment is implemented, when it is necessary to switch the English input method, it can be directly switched to the pure English input method, or it can be directly switched to the input method with the default input type set to English input.

[0217] Preferably, the input method can be simply identified / marked, for example, the input method with English as the default input method can be specially marked so that the application or system can quickly identify the corresponding target input method (that is, the dominant input method to be switched to in the first input area) without obtaining the control authority of the input method and entering into the input method. This is achievable for those skilled in the art.

[0218] In some embodiments, the input language includes one or more of the following: various text character inputs such as Chinese characters, English characters, Japanese characters, various formats of pictures (such as: bmp, jpg, png, tif, gif, pcx, tga, exif, fpx, svg, psd, cdr, pcd, dxf, ufo, eps, ai, raw, WMF, webp, avif, apng, etc.) and gesture input (such as input through a handwriting tablet on a touch screen).

[0219] It is understandable that the switching method in this embodiment can quickly adjust the input method of the input area in the initial input stage. That is to ensure that when the user inputs in the newly switched input area, the switched dominant input method can basically meet the user's input needs. This method effectively avoids the need for the user to manually switch the input method when switching back and forth between multiple input areas, affecting the user's operation fluency. However, the switching method in this embodiment does not exclude or limit the conventional input method switching method. When the user is in the input process, the input method can be freely switched to a certain extent based on real-time input needs.

[0220] Specifically, when a user inputs an operation instruction in CAD, the input is usually in English (equivalent to the dominant language). However, when the instruction input requires a character string, the character string can be other characters other than English, such as Chinese characters (equivalent to the non-dominant language), at this time, the user can switch the input method from the dominant input method to the target input method (such as the Chinese input method) by conventional input method switching methods (such as Ctrl+Shift shortcut keys).

[0221] It is understandable that the steps included in any of the above embodiments (for example, steps S101-S109) can be encapsulated into an independent application, a plug-in or other effective form such as a computer storable medium using programming languages ​​such as Java, Python, and C.

[0222] Preferably, in some embodiments, the input method control unit is set or stored in an application program, wherein the application program is preferably various drawing software, such as CAD and the like.

[0223] For example, in some embodiments, when the input method control unit is set or stored in CAD, when the CAD software is opened, the input method control unit can be started together with the running of the CAD software, or it can also be started in response to various user operations (such as activating the input method control unit).

[0224] For example, in some embodiments, the input method control unit may also be a plug-in installed in the application. In this embodiment, the input method control unit may also be considered as a part of the application, which is equivalent to directly enabling the corresponding advantage input method for each input area within the application.

[0225] From the perspective of software design, software developers or users are most familiar with the dominant languages ​​or dominant input methods of the input areas, that is, the application itself has the most accurate information about the characteristics of each input area within it. Therefore, especially compared with the switching method of third-party software (i.e., input method software), the input method is switched directly from the perspective of the application in this embodiment, and the switching operation performed is more accurate and reliable.

[0226] Among them, the switching method of third-party software usually requires the third-party software to first obtain the specific information set in the application, and then identify or judge the specific information, so as to determine the input method required by the application to select and switch it. Therefore, the switching method of third-party software usually has the following defects: 1) The execution steps are more complicated and the processing efficiency is relatively low; 2) Because it is a third-party software, errors are inevitable in the process of obtaining specific information and analyzing characteristic information, which will affect the accuracy and reliability of the switching result; 3) When the third-party software is mainly for non-English native users such as Chinese users, the third-party software selected by the user is usually a Chinese input method. However, this Chinese input method tends to adapt to the input environment with Chinese as the dominant language in terms of functional design. When it is applied to another type of input environment where the language dominance is reversed (such as an input environment where English is the dominant language), the adaptability of the Chinese input method may be greatly reduced.

[0227] Alternatively, in other embodiments, the input method control unit may be an independent application or plug-in installed in the operating system. In this embodiment, the input method control unit may also be regarded as a part of the operating system.

[0228] For example, in some embodiments, various operation instructions / steps of the input method control unit may be implemented as firmware instructions in a read-only memory (ROM), a programmable read-only memory (PROM), or a flash memory.

[0229] It should be noted that the following situation may also exist in the prior art: the current input method is a Chinese input method, and the input state is Chinese input, but if it is necessary to input a password in a certain web page, after moving the cursor to the password input box, English characters can be directly input in the password input box without performing any other operations. This is a function provided by the web page itself, that is, when making a web page, it is set to shield the input function of the input method system and directly read data from the keyboard. The input functions of the embodiments of the present invention are all provided by the input method (i.e., the input method system). Of course, for an input box that only allows English input, even if the input function of the input method system is not shielded when making a web page, the switching method in the embodiments of the present invention can also automatically switch the input method (specifically, it can switch from a dominant input method to a non-dominant input method, or it can switch from one non-dominant input method to another non-dominant input method).

[0230] Due to the input function of the input method used in the embodiment of the present invention, the input characteristics of the input method itself can be effectively utilized in text input, such as the association function and memory function commonly found in the input method, thereby ensuring that the user obtains a smooth input experience. In addition, when there are multiple types of input text in an input area, such as in a command line, both English commands and Chinese character strings may be input, the user can still flexibly switch the input method manually.

[0231] It should also be noted that in a preferred embodiment of the present invention, the dominant input method can be determined by obtaining handle information. In other words, the method in this embodiment is to obtain or identify the environmental information of the input area (this environmental information is independent of the user's historical input behavior and is relatively certain information), so as to determine the dominant language in this input area. This is not based on the text type of historical input or the user's historical usage preferences to predict the user's next input behavior as in the prior art. Therefore, the above-mentioned embodiment of the present invention is different from this type of input method in the prior art from the entry point to the entire switching idea.

[0232] Embodiment 2

[0233] A second aspect of the present invention is that Figure 2 As shown, based on the method in Embodiment 1, an input method switching device (ie, an input method switching system) is provided, including:

[0234] The interface unit 10 is configured to provide at least one operation interface, the operation interface comprising: a first input area, the first input area being associated with at least one dominant language;

[0235] An input method control unit 20, configured to detect whether the first input area is activated;

[0236] Wherein, when the input method control unit detects that the first input area is activated, the input method control unit sets or maintains the current input method in the first input area as a dominant input method, and the dominant input method is used to input the dominant language in the first input area;

[0237] When the input method control unit detects that the first input area is in an activated state and detects a first active signal sent by a user, the input method control unit switches the dominant input method to a non-dominant input method based on the first active signal, wherein the non-dominant input method is used to input a non-dominant language in the first input area;

[0238] When the input method control unit detects that the first input area is in an activated state and detects a second active signal and / or passive signal sent by a user, the input method control unit sets or maintains the current input method as the dominant input method based on the second active signal and / or passive signal.

[0239] In some embodiments, the passive signal includes: an erroneous operation occurring during a user input process in the first input area.

[0240] In some embodiments, the passive signal includes: an erroneous operation that occurs when the user sends the first active signal or the second active signal.

[0241] In some embodiments, the input method control unit 20 is further configured to consider that the user has sent a corresponding passive signal when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds a preset first time.

[0242] In some embodiments, the input method control unit 20 is also configured to send a first prompt signal to the user to prompt the user to check the input method when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds a preset first time.

[0243] In some embodiments, the input method control unit 20 is further configured to set or maintain the current input method as a non-dominant input method when the input method control unit detects that the first input area changes from an activated state to an inactivated state.

[0244] In some embodiments, the operation interface further includes: a second input area, and correspondingly, when the input method control unit detects that the second input area is activated, the input method control unit sets or maintains the current input method of the second input area as the corresponding non-dominant input method.

[0245] In some embodiments, the dominant input method does not include the non-dominant language, or the non-dominant language in the dominant input method is in a locked state.

[0246] In some embodiments, the non-dominant input method does not include the dominant language, or the dominant language in the non-dominant input method is in a locked state.

[0247] In fact, the present invention provides a certain degree of guidance / restriction on the user's operation when the user switches between the dominant and non-dominant languages ​​- the input method must be switched. Among them, when the user switches from the dominant input method to the non-dominant input method, the switching operation needs to be performed accurately. When the user is in the state of the non-dominant input method, any improper switching operation (such as the user mistakenly issues an instruction / operation to switch the input method state) will switch the input method back to the dominant input method.

[0248] Furthermore, unlike the existing conventional operation concept (i.e. switching input method status), in this embodiment, for each input language, only one input method is relatively fixedly used to implement text input, thereby avoiding the situation where misoperation is prone to occur in multiple mixed input scenarios.

[0249] Specifically, if a Chinese user uses a Chinese input method to input English during the process of inputting code, the state of switching to Chinese input may be caused by misoperation during the operation. This embodiment preferably ensures that the user is immersed in a full English input environment during the English input process as much as possible through the binding / association of the dominant input method with the dominant language, as well as a multiple combination of one or more of the above-mentioned restriction / guidance means. This pure English input environment is highly compatible with the user's current input needs, thereby helping the user to smoothly and coherently input English commands while easing fast and large amounts of code writing. Such fluency and coherence allow users to immerse themselves more in the code writing itself (that is, the user can focus more on the work itself).

[0250] In this embodiment, when the user leaves the first input area and enters the second input area, the method can also quickly switch the input method for the user to the default input method or the non-dominant input method, thereby reducing the user's manual switching operations. In other words, when the user switches back and forth between the first input area and the second input area multiple times, no manual operation is required and direct input can be performed. As a result, on the one hand, this method avoids possible misoperations that may occur when the user frequently switches input methods manually; on the other hand, it avoids the interruption of the user's input ideas by manual switching operations. In summary, the present invention can provide users with a smoother input experience.

[0251] In some embodiments, the dominant input method is pre-bound to the first input area.

[0252] In some embodiments, the dominant language is associated with the environment information of the first input area, and the input method control unit is further specifically used to:

[0253] Acquire the environmental information of the first input area;

[0254] confirming the dominant language based on the environment information, and determining a corresponding dominant input method based on the dominant language;

[0255] The input method control unit sets or maintains the current input method as a dominant input method.

[0256] In some embodiments, the environment information includes: a handle.

[0257] In some embodiments, the environmental information includes: a label edited in advance by a user in the first input area, wherein the label stores information about the dominant language or the dominant input method.

[0258] In some embodiments, the input method control unit includes:

[0259] The first detection subunit 21 is configured to obtain / detect the dwell time of the user's focus on the first input area, and when the dwell time is greater than a preset second time, it is considered that the first input area is activated.

[0260] In some embodiments, the input method control unit includes:

[0261] The second detection subunit 22 is configured to consider that the first input area is activated when an activation instruction for activating the input area issued by the user to the first input area is obtained.

[0262] In some embodiments, the first input area is an input area that mainly relies on English input, such as a code writing box, and the corresponding dominant language is English, and the non-dominant language includes one or more of the following: Chinese, Japanese, Korean, German, French, Spanish, Russian, Arabic and Portuguese.

[0263] Among them, the above-mentioned switching device or input method control unit can preferably be set inside the application. Therefore, in this embodiment, the input method can be changed autonomously according to needs within the application without the need to switch through a third party, and the switching result is more accurate. In addition, when an application has multiple different input areas, for example, area A requires the default Chinese, area B requires English, and area C requires Japanese, the switching method or device in the embodiment of the present invention can be set in a targeted manner according to the precise needs of different areas A, B, and C.

[0264] It is understandable that, unlike the methods of providing auxiliary input functions in the prior art, the switching device / method in the embodiment of the present invention is not simply to reduce the number of input method switching times during computer operation. In other words, from the perspective of the computer, the necessary number of input method switching times (the number of switching times without erroneous operations) may not change. The switching device / method provided in the embodiment of the present invention mainly realizes the autonomous switching of input methods through the cooperation of the application and the operating system, so as to reduce the number of manual operations of the user, thereby optimizing the user's operating experience.

[0265] In some specific embodiments, the environment in which the above device can operate is a Windows operating system, and the default input method in the system is Chinese input method A, and the default input state of Chinese input method A is Chinese input. When the user opens CAD in Windows to start working, input method A is still enabled by default. Further, when the user is ready to enter instructions in the command line under CAD, move the cursor to the input position of the command line (such as Figure 3 As shown, the cursor is located after "Select source object:"), and then the mouse is clicked at this position. After the user completes the click, the command line acquires the focus, and the CAD software correspondingly sends a first control signal indicating the switching of input method B (that is, the dominant input method) to the input method interface of the system. When the command line loses the focus (that is, the user clicks an area outside the command line), the input method switches from input method B to the default input method A.

[0266] Among them, the first control signal can be preset by the user. For example, the first control signal includes a control instruction indicating switching to an American keyboard, and the first control signal is set to be associated with the command line. Therefore, whenever the command line acquires focus, CAD sends the first control signal to the operating system. Alternatively, the first control signal can also be generated in real time in response to the user's operation on CAD. For example, when the command line acquires focus, the CAD software starts the corresponding input method switching program, that is, obtains the handle of the command line, determines the target input method to be switched based on the handle, and generates the corresponding first control signal in real time based on the target input method.

[0267] It should also be noted that the switching method / device in the present invention is not to match the input method for the application or input area (such as switching the input state through various third-party software, matching the corresponding input method based on the text content, etc.), and the matching process will inevitably have errors. In the switching process of the present invention, the dominant input method has been directly or indirectly predetermined by the user or computer, so the result is more accurate.

[0268] At the same time, the present invention does not determine the input method to be switched based on the current existing page text information or the text information input in the input box. Therefore, when the user first enters the first input area, even if there may be no text information in the first input area, the desired advantageous input method can be enabled for the user.

[0269] Embodiment 3

[0270] The third aspect of the present invention is to provide a computer program product embodied in a non-temporary computer-readable medium, wherein the computer program product is programmed to implement a method for switching input methods, and the computer program product includes instructions for executing the operations of any of the methods described in the above embodiments.

[0271] For example, in some embodiments, the computer program product includes instructions for the following operations: providing at least one operation interface, the operation interface including: a first input area, the first input area being associated with at least one dominant language; an input method control unit for detecting whether the first input area is activated; wherein, when the input method control unit detects that the first input area is activated, the input method control unit sets or maintains the current input method in the first input area as the dominant input method, and the dominant input method is used to input the dominant language in the first input area; when the input method control unit detects that the first input area is in an activated state and detects a first active signal issued by a user, the input method control unit switches the dominant input method to a non-dominant input method based on the first active signal, and the non-dominant input method is used to input a non-dominant language in the first input area; when the input method control unit detects that the first input area is in an activated state and detects a second active signal and / or passive signal issued by a user, the input method control unit sets or maintains the current input method as the dominant input method based on the second active signal and / or passive signal.

[0272] An exemplary hardware and software environment for implementing one or more embodiments of the present invention includes a computer, which can be a user / client computer, a server computer, or a database computer. The computer includes a processor and memory, such as random access memory (RAM). The computer can be coupled and / or integrated with other devices, including input / output (I / O) devices, such as a keyboard, cursor control devices (such as a mouse, pointing device, pen and tablet computer, touch screen, multi-touch device, etc.) and a printer. In one or more embodiments, the computer can be coupled to or constitute a portable or media viewing / listening device (e.g., MP3 player, iPod TM 、Nook TM , portable digital video players, cellular devices, personal digital assistants, etc.). In another embodiment, the computer may include a multi-touch device, mobile phone, gaming system, Internet-enabled television, TV set-top box, or other Internet-enabled device executing on a variety of platforms and operating systems.

[0273] In one embodiment, the computer operates through a general purpose processor, executing instructions defined by a computer program under the control of an operating system. The computer program and / or operating system may be stored in a memory and may interface with a user and / or other device to accept input and commands and provide output and results based on the input and commands and instructions defined by the computer program and operating system.

[0274] Some or all of the operations performed by a computer according to computer program instructions may be implemented in a special purpose processor. In this embodiment, some or all of the instructions of the computer program may be implemented by firmware instructions stored in a read-only memory (ROM), a programmable read-only memory (PROM), or flash memory, which is located in the special purpose processor or memory. The special purpose processor may also be hardwired by circuit design to perform some or all of the operations that implement the present invention. In addition, the special purpose processor may be a hybrid processor that includes dedicated circuits for performing a subset of functions and other circuits for performing more general functions (such as responding to computer program instructions). In one embodiment, the special purpose processor is an application specific integrated circuit (ASIC).

[0275] Computers may also implement compilers, which allow an application or computer program written in a programming language (such as COBOL, Pascal, C++, FORTRAN, or other languages) to be translated into code readable by the processor. Alternatively, a compiler may be an interpreter, which can execute instructions / source code directly, convert source code to an intermediate representation to be executed, or execute stored precompiled code. Such source code can be written in various programming languages, such as Java TM , Perl TM 、Basic TM etc. Once completed, the application program or computer program uses the relationships and logic generated by the compiler to access and manipulate the data received from the I / O devices and stored in the computer's memory.

[0276] The computer may also optionally include external communications equipment such as a modem, satellite link, Ethernet card, or other device for accepting input from other computers and providing output to them.

[0277] In one embodiment, the instructions implementing the operating system, computer program, and compiler are tangibly embodied in a non-transitory computer-readable medium, such as a data storage device, which may include one or more fixed or removable data storage devices, such as a zip drive, a floppy disk drive, a hard drive, a CD-ROM drive, a tape drive, etc. In addition, the operating system and computer program consist of computer program instructions that, when accessed, read, and executed by a computer, cause the computer to perform the necessary steps.

[0278] Of course, those skilled in the art will recognize that any combination of the above components, or any number of different components, peripherals, and other devices, may be used with a computer.

[0279] A distributed computer system uses a network to connect client computers to server computers. A typical combination of resources might include a network, including the Internet, a LAN (local area network), a WAN (wide area network), an SNA (Systems Network Architecture) network, or a similar personal computing client.

[0280] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0281] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a computer terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.

[0282] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. An input method switching method, characterized in that: include: Providing at least one operation interface, the operation interface comprising: a first input area, the first input area being pre-associated with at least one dominant language; The input method control unit is used to detect whether the first input area is activated; wherein, when the input method control unit detects that the first input area is activated, the input method control unit sets or maintains the current input method in the first input area as a dominant input method, the dominant input method being used to input the dominant language in the first input area; wherein the input method is an input method editor, and the dominant language is an input type of the dominant input method; The dominant language is associated with the environment information of the first input area, and the corresponding step of the input method control unit setting or maintaining the current input method of the first input area as the dominant input method includes: Acquire the environment information of the first input area; confirm the dominant language based on the environment information, and determine the corresponding dominant input method based on the dominant language; set or maintain the current input method as the dominant input method; the environment information includes: a handle; and / or, the environment information includes: a label edited by a user in the first input area in advance, the label storing information about the dominant language or the dominant input method; When the input method control unit detects that the first input area is in an activated state and detects a first active signal sent by a user, the input method control unit switches the dominant input method to a non-dominant input method based on the first active signal, wherein the non-dominant input method is used to input a non-dominant language in the first input area; When the input method control unit detects that the first input area is in an activated state and detects a second active signal sent by a user, the input method control unit sets or maintains the current input method as the dominant input method based on the second active signal; Wherein, when the input method control unit detects that the user sends a passive signal, the input method control unit sets or maintains the current input method as the dominant input method based on the passive signal; the passive signal includes: an erroneous operation that occurs when the user inputs in the first input area, or an erroneous operation that occurs when the user sends the first active signal or the second active signal; Among them, when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds the preset first time, the input method control unit considers that the user has sent the corresponding passive signal; or when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds the preset first time, a first prompt signal is sent to the user to prompt the user to check the input method.

2. The method according to claim 1, characterized in that: The method further comprises: when the input method control unit detects that the first input area changes from an activated state to an inactivated state, the input method control unit sets or maintains the current input method as a non-dominant input method; or, The operation interface further includes: a second input area, and the corresponding method further includes: when the input method control unit detects that the second input area is activated, the input method control unit sets or maintains the current input method of the second input area as the corresponding non-dominant input method.

3. The method according to claim 1, characterized in that The input method control unit is set or stored in an application, and the application is used to provide the first input area; And / or, the first input area includes: a command line input box.

4. The method according to claim 1, characterized in that: The step of detecting whether the first input area is activated comprises: Acquiring a dwell time of the user's focus on the first input area, and when the dwell time is greater than a preset second time, it is considered that the first input area is activated; and / or, The step of detecting whether the first input area is activated comprises: When it is obtained that the user issues an activation instruction for activating the first input area, it is considered that the first input area is activated.

5. An input method switching device, characterized in that: include: An interface unit is configured to provide at least one operation interface, the operation interface comprising: a first input area, the first input area being pre-associated with at least one dominant language; The input method control unit is configured to detect whether the first input area is activated; wherein, when the input method control unit detects that the first input area is activated, the input method control unit sets or maintains the current input method in the first input area as a dominant input method, the dominant input method being used to input the dominant language in the first input area; wherein the input method is an input method editor, and the dominant language is an input type of the dominant input method; The dominant language is associated with the environment information of the first input area, and the corresponding input method control unit is further configured to: Acquire the environment information of the first input area; confirm the dominant language based on the environment information, and determine the corresponding dominant input method based on the dominant language; set or maintain the current input method as the dominant input method; the environment information includes: a handle; and / or, the environment information includes: a label edited by a user in the first input area in advance, the label storing information about the dominant language or the dominant input method; When the input method control unit detects that the first input area is in an activated state and detects a first active signal sent by a user, the input method control unit switches the dominant input method to a non-dominant input method based on the first active signal, wherein the non-dominant input method is used to input a non-dominant language in the first input area; When the input method control unit detects that the first input area is in an activated state and detects a second active signal sent by a user, the input method control unit sets or maintains the current input method as the dominant input method based on the second active signal; Wherein, when the input method control unit detects that the user sends a passive signal, the input method control unit sets or maintains the current input method as the dominant input method based on the passive signal; the passive signal includes: an erroneous operation that occurs when the user inputs in the first input area, or an erroneous operation that occurs when the user sends the first active signal or the second active signal; Among them, when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds the preset first time, the input method control unit considers that the user has sent the corresponding passive signal; or when the input method control unit detects that the first input area is in an activated state and the continuous use time of the non-dominant input method exceeds the preset first time, a first prompt signal is sent to the user to prompt the user to check the input method.

6. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Method for performing adaptive input based on input environment, and input method system

    CN102207816A

  • Text input implementation method and device

    CN106325840A

  • Method and device for switching input methods

    CN102339199A

  • Input method switching method, mobile terminal and computer storage medium

    CN108762876A