WO2017124945A1 - 输入法操作处理方法和装置 - Google Patents
输入法操作处理方法和装置 Download PDFInfo
- Publication number
- WO2017124945A1 WO2017124945A1 PCT/CN2017/070801 CN2017070801W WO2017124945A1 WO 2017124945 A1 WO2017124945 A1 WO 2017124945A1 CN 2017070801 W CN2017070801 W CN 2017070801W WO 2017124945 A1 WO2017124945 A1 WO 2017124945A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- input method
- operating system
- data format
- input
- operation instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
- G06F9/467—Transactional memory
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
Definitions
- the present application relates to the field of computer technology, and in particular, to an input method operation processing method and apparatus.
- the host operating system on the terminal device needs to be compatible with other sub-operating system applications, for example, the cloud operating system is the host operating system, and is compatible with the application of the Android sub-operating system.
- the sub-input method framework in the Android operating system is installed on the cloud operating system platform with the Android operating system, but the host input method framework is integrated in the cloud operating system, causing the user to carry out the cloud.
- the host input method is started when the operating system is applied, and the sub input method is activated when the Android application is executed.
- the present application aims to solve at least one of the technical problems in the related art to some extent.
- the first object of the present application is to provide an input method operation processing method, which implements an operation instruction for an input method in a first operating system, and responds to a related operation of an input method in a second operating system. Therefore, the multiple input method modes of the composite operating system are unified, the processing overhead of the composite operating system is reduced, and the processing efficiency and experience of the user are improved.
- a second object of the present application is to provide an input method proxy device.
- a third object of the present application is to provide an input method operating device.
- the first aspect of the present application provides an input method operation processing method, including: receiving a first operation instruction for a first input method; and performing a second input according to the first operation instruction.
- the input operation performs a corresponding operation process, wherein the first operating system corresponding to the first input method is different from the second operating system corresponding to the second input method.
- the input method operation processing method of the embodiment of the present application by receiving a first operation instruction for the first input method, and performing corresponding operation processing on the second input method according to the first operation instruction, wherein the first input method
- the corresponding first operating system is different from the second operating system corresponding to the second input method.
- the operation instruction for the input method in the first operating system is realized, and the various input method modes of the composite operating system are unified by responding to the related operations of the input method in the second operating system, thereby reducing the composite operation.
- the processing overhead of the system and the user's processing efficiency and experience are improved.
- the second aspect of the present application provides an input method proxy device, including: a first receiving module, configured to receive a first operation instruction for a first input method; and a first processing module, configured to The first operation instruction performs a corresponding operation process on the second input method, wherein the first operating system corresponding to the first input method and the second operating system corresponding to the second input method are different.
- the input method proxy device of the embodiment of the present application receives the first operation instruction for the first input method, and performs corresponding operation processing on the second input method according to the first operation instruction, wherein the first input method corresponds to The first operating system is different from the second operating system corresponding to the second input method.
- the operation instruction for the input method in the first operating system is realized, and the various input method modes of the composite operating system are unified by responding to the related operations of the input method in the second operating system, thereby reducing the composite operation.
- the processing overhead of the system and the user's processing efficiency and experience are improved.
- the third aspect of the present application provides an input method operating device, including: a processor;
- a memory for storing executable instructions of the processor
- processor is configured to:
- the input method operating device of the embodiment of the present application receives a first operation instruction for the first input method, and performs corresponding operation processing on the second input method according to the first operation instruction, wherein the first input method corresponds to The first operating system is different from the second operating system corresponding to the second input method.
- an operation instruction for the input method in the first operating system is implemented, and the second operating system is input
- the related operations of the input method respond, thereby unifying the multiple input method modes of the composite operating system, reducing the processing overhead of the composite operating system, and improving the processing efficiency and experience of the user.
- FIG. 1 is a flowchart of an input method operation processing method according to an embodiment of the present application.
- FIG. 2 is a flowchart of an input method operation processing method according to another embodiment of the present application.
- FIG. 3 is a flowchart of an input method operation processing method according to another embodiment of the present application.
- FIG. 5 is a flowchart of an input method operation processing method according to another embodiment of the present application.
- FIG. 6 is a flowchart of an input method operation processing method according to another embodiment of the present application.
- FIG. 7 is a schematic diagram of an input method operation process according to an embodiment of the present application.
- FIG. 8 is a schematic diagram of information interaction shown in FIG. 7;
- FIG. 9 is a schematic structural diagram of an input method proxy device according to an embodiment of the present application.
- FIG. 10 is a schematic structural diagram of an input method proxy device according to another embodiment of the present application.
- FIG. 11 is a schematic structural diagram of an input method proxy device according to another embodiment of the present application.
- FIG. 12 is a schematic structural diagram of an input method operating device according to another embodiment of the present application.
- FIG. 13 is a schematic structural diagram of an input method operating device according to another embodiment of the present application.
- FIG. 1 is a flow chart of an input method operation processing method according to an embodiment of the present application.
- the input method operation processing method includes:
- Step 101 Receive a first operation instruction for the first input method.
- Step 102 Perform a corresponding operation process on the second input method according to the first operation instruction, where the first operating system corresponding to the first input method is different from the second operating system corresponding to the second input method.
- the input method operation processing method provided by each embodiment of the present invention is applied to a terminal device having a composite operating system.
- the composite operating system includes: a second operating system, and at least one first operating system.
- the second operating system in the embodiments of the present invention is an operating system (ie, a host operating system) installed by the terminal device, and the first operating system (ie, the guest operating system) is installed in the first system container, and the first The system container is deployed in the second operating system, and the function of the first system container is to provide a related hardware environment in which the first operating system starts to run. Further, an application related to the first operating system can be installed on the second operating system.
- the specific content of the first operating system and the second operating system are many, and are selected according to actual application requirements. This embodiment does not limit this.
- the second operating system includes: a cloud operating system based on the Linux kernel. And a cloud operating system based on the Unix kernel, and a WP operating system; the first operating system includes: an Android operating system, and a MAC operating system.
- the input method service of the first input method is matched with the first operating system
- the input method service of the second input method is matched with the second operating system.
- the specific content provided by the input method service to the user depends on the specific content of the operating system, for example:
- the second input method is the intelligent universal input method platform SCIM; when the first operating system is the Android operating system, the first input method is the Baidu Android input method.
- the input method service consists of three components, the input method view, the input method manager (IMM), and the input method (IME) service. These three components need to work together to complete the input method. For example, if the View gets the focus, it will notify the IMM to open the input method, then the IMM will view the currently selected IME and call the IME; or the user submits the input information, IME. Need to send input to View.
- Performing a related triggering operation on the view of the first input method that matches the first operating system according to the application requirement, and generating a first operation instruction for the first input method for example, including:
- Example 1 When the user clicks the edit box in the first input method view, the generated first operation instruction is a display instruction of the input interface; or
- Example 2 When the user clicks the return key in the first input method view, the generated first operation instruction is a hidden instruction of the input interface.
- the second input method When receiving the first operation instruction for the first input method, the second input method is subjected to corresponding operation processing according to the first operation instruction. Compared with the prior art, the present embodiment no longer responds to the first operation instruction by the related operation of the first input method, but responds to the first operation instruction by the related operation of the second input method. Since the content of the first operation instruction is different, the corresponding processing procedure for the second input method is also different, for example, may include:
- Example 1 If the first operation instruction for the first input method is a display instruction of the input interface, the input interface of the second input method is displayed, or
- Example 2 If the first operation instruction for the first input method is a hidden instruction of the input interface, the input interface of the second input method is hidden.
- the input method operation processing method of the embodiment of the present application by receiving a first operation instruction for the first input method, and performing corresponding operation processing on the second input method according to the first operation instruction, wherein the first input method
- the corresponding first operating system is different from the second operating system corresponding to the second input method.
- the operation instruction for the input method in the first operating system is realized, and the various input method modes of the composite operating system are unified by responding to the related operations of the input method in the second operating system, thereby reducing the composite operation.
- the processing overhead of the system and the user's processing efficiency and experience are improved.
- FIG. 2 is a flow chart of an input method operation processing method according to another embodiment of the present application.
- the input method operation processing method includes:
- Step 201 After the first operating system is started, start a system service, where the system service comprises: an input method service of the first input method.
- the input method service of the first input method is used as the system service of the first operating system. Further, when the first operating system is started, the system service is started, so that the input method service of the first input method is also started.
- Step 202 Receive a first operation instruction for the first input method by using an application interface running on the first operating system.
- the present invention relates to a composite operating system, that is, a first system container running a first operating system is deployed in a second operating system installed by the terminal device, and further, the second operating system can be installed and used on the second operating system.
- a composite operating system that is, a first system container running a first operating system is deployed in a second operating system installed by the terminal device, and further, the second operating system can be installed and used on the second operating system.
- the triggering operation is performed on the corresponding position of the first input method in the application interface, Further, a first operational instruction for the first input method is received through an application interface.
- Step 203 blocking a first processing connection corresponding to the first operation instruction in the input method service of the first input method, and inputting a service response and the first operation instruction by using the second input method A corresponding second processing connection.
- the method service is responsive to a second processing connection corresponding to the first operational instruction.
- the blocking process of the first processing connection in the input method service of the first input method, and the response process of the second processing connection in the input method service of the second input method can include:
- Example 1 If the first operation instruction for the first input method is a display instruction of the input interface, blocking the display connection of the input interface in the input method service of the first input method, but responding to the input method service of the second input method The display connection of the input interface.
- Example 2 If the first operation instruction for the first input method is a hidden instruction of the input interface, blocking the hidden connection of the input interface in the input method service of the first input method, but responding to the input method service of the second input method A hidden connection in the input interface.
- Step 204 Modify an installation identifier and an initialization identifier of the first input method in the first operating system.
- the installation identifier and the initialization identifier of the corresponding first input method are modified in the first operating system.
- the input method operation processing method of the embodiment of the present application after the first operating system is started, starting a system service including an input method service of the first input method, and receiving, by using an application interface running on the first operating system, a first operation instruction of the first input method, and in the input method service of the first input method, blocking a first processing connection corresponding to the first operation instruction, and inputting through the second input method
- the method service responds to the second processing connection corresponding to the first operation instruction, and modifies the installation identifier and the initialization identifier of the first input method in the first operating system.
- the operation instruction for the input method in the first operating system is realized, and the various input method modes of the composite operating system are unified by responding to the related operations of the input method in the second operating system, thereby reducing the composite operation.
- the processing overhead of the system and the user's processing efficiency and experience are improved.
- FIG. 3 is a flow chart of an input method operation processing method according to another embodiment of the present application.
- the input method operation processing method includes:
- Step 301 Receive a first operation instruction for the first input method.
- Step 302 Convert a first data format of the first operation instruction into a second data format according to a preset protocol conversion rule, where the first data format matches the first operating system, where the The two data formats are matched to the second operating system.
- the data format of the operation instruction is different.
- the operation instruction in the first operating system, the operation instruction is a first data format
- the operation instruction in the second operating system, the operation instruction is a second data format. Therefore, the protocol conversion rules for the first operating system and the second operating system are set in advance, and the first data format of the operation instruction is converted into the second data format.
- the first operation instruction for the first input method when receiving the first operation instruction for the first input method, converting the first data format of the first operation instruction into the second data format according to a preset protocol conversion rule.
- the second operating system is a Linux kernel-based cloud operating system
- the first operating system is the Android operating system
- the first operation instruction recognizable by the Android operating system needs to be converted into a data format, and converted into a cloud based on the Linux kernel.
- Direct conversion mode is fast.
- the specific implementation is: in the first operating system and the second operation Setting a first intermediate agent between the systems;
- the indirect conversion mode has low compatibility with the system.
- the specific implementation is: setting a first proxy in the first operating system, and setting a second proxy in the second operating system.
- the second agent converts the standard data format into a second data format that matches the second operating system according to the cross-platform communication protocol IPC.
- the cross-platform communication protocol IPC has many types and can be selected according to application requirements, including, for example, a pipe protocol, a socket protocol, and a message queue protocol.
- the second operating system can recognize the first operation instruction after the data format conversion, and the second input method performs corresponding operation processing according to the operation instruction.
- the processing process performed by the second input method according to the first operation instruction is also different, as follows:
- the first operation instruction is a display instruction of the input interface
- the display instruction of the input interface is converted into a protocol format, and a display instruction of the input interface recognized by the second operating system is generated.
- the input interface of the second input method is further displayed, and the user can perform an input operation through an input interface of the second input method.
- the first operation instruction is a hidden instruction of the input interface, and the hidden instruction of the input interface is converted into a protocol format, and a hidden instruction of the input interface recognized by the second operating system is generated.
- the input interface of the second input method is further hidden.
- the input method operation processing method of the embodiment by receiving the first operation instruction for the first input method, converting the first data format of the first operation instruction into the second data format according to a preset protocol conversion rule, The first data format is matched with the first operating system, and the second data format is matched with the second operating system. Therefore, the host operating system input method can be invoked when the sub-operating system application is used, the input method mode of the composite system is unified, the processing overhead of the host operating system is reduced, and the processing efficiency and experience of the user are improved.
- FIG. 4 is a flow chart of an input method operation processing method according to another embodiment of the present application.
- Step 401 Receive a second operation instruction for the second input method.
- Step 402 Perform corresponding operation processing on the first input method according to the second operation instruction.
- the related triggering operation is performed on the input interface of the second input method that matches the second operating system according to the application, and the second operation instruction for the second input method is generated, for example, including:
- Example 1 When the user edits the information using the input interface of the second input method and clicks the send key of the second input method input interface, the generated second operation instruction submits an instruction for the input information of the second input method; or
- Example 2 When the user clicks the undo button of the input interface of the second input method, the generated second operation instruction is an input information deletion instruction for the second input method.
- the first input method When receiving the second operation instruction for the second input method, the first input method is subjected to corresponding operation processing according to the second operation instruction. Since the content of the second operation instruction is different, the corresponding processing procedure for the first input method is also different, for example, may include:
- Example 1 If the second operation instruction for the second input method is an input information submission instruction, the information input by using the input interface of the second input method is displayed in the edit box of the first input method, or
- Example 2 If the second operation instruction for the second input method is an input information deletion instruction, the input information displayed in the edit box of the first input method is deleted.
- the input method operation processing method of this embodiment is further configured to receive the second operation instruction for the second input method, and the first input method according to the second operation instruction, based on any one of the embodiments of FIG. 1 to FIG. Perform the corresponding operation processing. Thereby, the operation for the input method in the second operating system is realized
- the instruction by responding to the related operations of the input method in the first operating system, unifies the multiple input method modes of the composite operating system, reduces the processing overhead of the composite operating system, and improves the processing efficiency and experience of the user. .
- FIG. 5 is a flowchart of an input method operation processing method according to another embodiment of the present application.
- Step 501 Receive a second operation instruction for the second input method.
- Step 502 Register, by the first operating system, a remote interface service callback, receive the second operation instruction, and feed back to the input method service of the first input method, so that the input method of the first input method is served. And correspondingly processing the edit box of the first input method according to the second operation instruction.
- the first operating system pre-registers the remote interface service callback, and further, when receiving the second operation instruction for the second input method, the first operating system receives the second operation instruction by using a pre-registered remote interface service callback, and Feedback is provided to the input method of the first input method.
- the input method service of the first input method performs corresponding processing on the edit box of the first input method according to the second operation instruction.
- the input method service of the first input method is different according to the second operation instruction, and the corresponding processing of the edit box of the first input method is different.
- the method may include:
- Example 1 If the second operation instruction for the second input method submits an instruction for the input information, the information input by using the input interface of the second input method is displayed in the edit box of the first input method, or
- Example 2 If the second operation instruction for the second input method is an input information deletion instruction, the input information displayed in the edit box of the first input method is deleted.
- the input method operation processing method of the embodiment is further configured to receive the second operation instruction for the second input method, register the remote interface service callback by the first operating system, and receive the a second operation instruction, and feeding back to the input method service of the first input method, so that the input method service of the first input method performs corresponding to the edit box of the first input method according to the second operation instruction deal with.
- the operation instruction for the input method in the second operating system is realized, and responding to the related operation of the input method in the first operating system, thereby unifying the multiple input method modes of the composite operating system, reducing the composite operation
- the processing overhead of the system and the user's processing efficiency and experience are improved.
- FIG. 6 is a flowchart of an input method operation processing method according to another embodiment of the present application.
- Step 601 Receive a second operation instruction for the second input method.
- Step 602 Convert a second data format of the second operation instruction into a first data format according to a preset protocol conversion rule, where the second data format matches the second operating system, where the A data format is matched to the first operating system.
- the data format of the operation instruction is different.
- the operation instruction in the first operating system, the operation instruction is a first data format
- the operation instruction in the second operating system, the operation instruction is a second data format. Therefore, the protocol conversion rules for the first operating system and the second operating system are set in advance, and the first data format of the operation instruction is converted into the second data format.
- the second data format of the second operation instruction is converted into the first data format according to a preset protocol conversion rule.
- the second operating system is a Linux kernel-based cloud operating system
- the first operating system is the Android operating system
- the data format of the second operation instruction recognizable by the Linux kernel-based cloud operating system needs to be converted into an Android operating system.
- the method for performing the protocol format conversion on the second operation instruction and generating the second operation instruction that is recognized by the first operating system may be selected according to actual application requirements. This embodiment does not limit this, and the specific description is as follows:
- Direct conversion mode is fast.
- the specific implementation is: setting a second intermediate agent between the second operating system and the first operating system;
- the second intermediate agent converts the data format of the second operation instruction according to a protocol conversion rule between the second operating system and the first operating system, and converts the second data format matched with the second operating system into a The first data format matched by an operating system.
- the indirect conversion mode has low compatibility with the system.
- the specific implementation is: setting a third proxy in the second operating system, and setting a fourth proxy in the fourth operating system.
- the third agent according to the preset cross-platform communication between the second operating system and the first operating system
- the protocol IPC converts the second data format matched with the second operating system into a standard data format and sends the data format to the fourth agent.
- the fourth agent converts the standard data format into a first data format that matches the first operating system according to the cross-platform communication protocol IPC.
- the cross-platform communication protocol IPC has many types and can be selected according to application requirements, including, for example, a pipe protocol, a socket protocol, and a message queue protocol.
- the first operating system can recognize the second operation instruction after the data format conversion, and the first input method performs corresponding operation processing according to the operation instruction.
- the processing process performed by the first input method according to the second operation instruction is also different, as follows:
- the generated second operation instruction is an input information submission instruction
- the input information is submitted to the protocol for format conversion
- the first operation is generated.
- the input information recognized by the system submits an instruction and sends it to the first input method
- the first input method displays the input information submitted by the user in the first input method edit box.
- the second operation instruction generated by the second input method is an input information deletion instruction, and the input information deletion instruction is converted into a protocol format, and the input information deletion instruction recognized by the first operating system is generated. And sent to the first input method, and the first input method deletes the information currently displayed in the first input method edit box.
- the input method operation processing method of this embodiment further receives the second operation according to a preset protocol conversion rule by receiving a second operation instruction for the second input method, according to any of the embodiments of FIG.
- the second data format of the instruction is converted to a first data format, wherein the second data format matches the second operating system, the first data format matching the first operating system.
- the first intermediate in the direct conversion mode The agent and the second intermediate agent can be integrated into one deployment, or can be separately deployed independently, and set according to actual application requirements; the first agent and the fourth agent in the indirect conversion mode can be integrated into one deployment, which is called the first operating system agent. And the second agent and the fourth agent can be integrated into one deployment, which is called a second operating system agent, or can be separately deployed independently, and set according to actual application requirements.
- the first operating system in the embodiment shown in FIG. 7 is a sub-operating system, and the Android operating system (Android system) is taken as an example.
- the second operating system is a host operating system, and the cloud operating system (YunOS operating system) is taken as an example.
- Indirect conversion mode, and integrated integration deployment that is, deploying subagents in the guest operating system (Guest), deploying the hosting agent in the host operating system (Host), as follows:
- FIG. 7 is a schematic diagram of an input method operation process according to an embodiment of the present application. Referring to FIG. 7, the details are as follows:
- the present invention passes the Guest (Android) layer and the Host (Host) layer respectively.
- the agent service is built, and the IPC cross-platform communication protocol under Linux is used to complete cross-system level communication and data transmission.
- the Input Method Service (equivalent to the first input method service involved in the above embodiment) is instantiated by Android, and is started as a system service with the system.
- the input method manager InputMethodService of the Android input method sends an input interface display instruction (showSoftinput) to the input method Service InputMethodService of the Android.
- InputMethodService blocks the original showSoftinput connection of the Android system input method, that is, blocks the soft keyboard startup behavior in the guest layer, sends showSoftinput to the Proxy (subagent) of the Guest (Android side) layer, and passes the Proxy (sub-agent) of the Guest (Android side) layer.
- the proxy converts showSoftinput (ie operation1) into a standard data format according to Binder IPC and sends it to the Proxy (Host Agent) of the Host (Host) layer.
- the Host (host) layer Proxy (host agent) converts showSoftinput (ie operation1) into the data format recognized by the YunOS operating system according to the Binder IPC to notify the Host soft keyboard response behavior (ie, the intelligent universal input method platform SCIM, which is equivalent to the above).
- SCIM responds via other modules of the input method (other modual calls SCIM input interface)
- the Proxy (Host Agent) of the Host (Host) layer receives the input information submitted by the SCIM and submits the instruction composeText (ie, operation2), and the host agent will composeText according to the Binder IPC (ie, operation2). Convert to a standard data format, convert the input information to the data format, generate a standard format operation command and send it to the Proxy (subagent) of the Guest (Android side) layer, and the Proxy (subagent) of the Guest (Android side) layer according to Binder IPC converts composeText (ie operation2) into a data format recognized by the Android side.
- the Android system registers the android remote interface service callback, and receives the composeText message from the Host (host) layer through the Proxy (subagent) of the Guest (Android side) layer. And feedback to InputMethodServices, and finally enter the screen into the android input box (views).
- FIG. 8 is a schematic diagram of information interaction shown in FIG. 7, as shown in FIG. 8, specifically including the following steps:
- the signaling flow 1 includes: an input interface display instruction sent by the sub-agent receiving sub-input method module, performing data format conversion on the input interface display instruction according to the IPC, generating a standard format operation instruction and transmitting the instruction to the host agent; the host agent according to the IPC, the standard format
- the operation instruction performs data format conversion, generates an input interface display instruction recognized by the host operating system, and sends the instruction to the host input method module.
- the host input method module displays a host input method input interface, and the user performs an input operation through the host input method input interface.
- the signaling flow 2 includes: after the user inputs the information by using the host input method, the host agent receives the input information submission instruction sent by the host input method module, and the host agent performs the data format conversion on the input information according to the IPC to generate a standard format.
- the operation instruction is sent to the sub-agent; the agent performs data format conversion on the standard format operation instruction according to the IPC, and generates an input information submission instruction recognized by the sub-operating system.
- the sub-input method module displays the text information input by the user using the host input method soft keyboard in the edit box.
- the signaling flow 3 includes: an input interface hidden instruction sent by the sub-agent receiving sub-input method module, performing data format conversion on the input interface hidden instruction according to the IPC, generating a standard format operation instruction and transmitting the instruction to the host agent; the host agent according to the IPC, the standard The format operation instruction performs data format conversion, generates an input interface hidden instruction recognized by the host operating system, and sends the instruction to the host input method module.
- Host input The method module hides the host input method.
- the present application also proposes an input method proxy device.
- FIG. 9 is a schematic structural diagram of an input method proxy device according to an embodiment of the present application.
- the input method proxy device includes:
- the first receiving module 11 is configured to receive a first operation instruction for the first input method
- the first processing module 12 is configured to perform corresponding operation processing on the second input method according to the first operation instruction, where the first operating system corresponds to the first operating system and the second input method corresponds to the first The second operating system is different.
- the first operation instruction for the first input method includes:
- a hidden instruction for the input interface of the first input method is
- the first processing module 12 is configured to:
- An input interface of the second input method is displayed.
- the first processing module 12 is configured to:
- the input interface of the second input method is hidden.
- the input method proxy device of the embodiment of the present application receives the first operation instruction for the first input method, and performs corresponding operation processing on the second input method according to the first operation instruction, wherein the first input method corresponds to The first operating system is different from the second operating system corresponding to the second input method.
- the operation instruction for the input method in the first operating system is realized, and the various input method modes of the composite operating system are unified by responding to the related operations of the input method in the second operating system, thereby reducing the composite operation.
- the processing overhead of the system and the user's processing efficiency and experience are improved.
- FIG. 10 is a schematic structural diagram of an input method proxy device according to another embodiment of the present application. As shown in FIG. 10, based on the embodiment shown in FIG. 9, the device further includes:
- the startup module 13 is configured to start a system service after the first operating system is started, where the system service comprises: an input method service of the first input method.
- the modifying module 14 is configured to modify an installation identifier and an initialization identifier of the first input method in the first operating system.
- the first processing module 12 is configured to:
- Blocking in an input method service of the first input method, a first processing connection corresponding to the first operation instruction, and an input method service response of the second input method corresponding to the first operation instruction The second handles the connection.
- the input method proxy device of the embodiment of the present application after the first operating system is started, starts a system service including an input method service of the first input method, and receives an application program by using an application program interface running on the first operating system. a first operation instruction of the first input method, further blocking a first processing connection corresponding to the first operation instruction in an input method service of the first input method, and an input method by the second input method
- the service responds to the second processing connection corresponding to the first operation instruction, and modifies the installation identifier and the initialization identifier of the first input method in the first operating system.
- the operation instruction for the input method in the first operating system is realized, and the various input method modes of the composite operating system are unified by responding to the related operations of the input method in the second operating system, thereby reducing the composite operation.
- the processing overhead of the system and the user's processing efficiency and experience are improved.
- FIG. 11 is a schematic structural diagram of an input method proxy device according to another embodiment of the present application. As shown in FIG. 11, based on the foregoing embodiment, FIG. 9 is taken as an example.
- the first processing module 12 is configured to:
- the first processing module 12 includes: setting a first proxy 121 in the first operating system, and setting a second proxy 122 in the second operating system;
- the first proxy 121 is configured to convert the first data format into a standard data format according to a preset cross-platform communication protocol IPC between the first operating system and the second operating system, and send the same to a standard data format.
- the second proxy 122 is configured to convert the standard data format into the second data format according to the cross-platform communication protocol IPC.
- the cross-platform communication protocol IPC includes:
- the first processing module 12 includes: setting a first intermediate proxy 123 between the first operating system and the second main operating system;
- the first intermediate proxy 123 is configured to convert the first data format into the second data format according to a protocol conversion rule between the first operating system and the second operating system.
- the input method proxy device of the embodiment of the present application converts the first data format of the first operation instruction into a second data format according to a preset protocol conversion rule by receiving a first operation instruction for the first input method.
- the first data format is matched with the first operating system
- the second data format is matched with the second operating system. Therefore, the host operating system input method can be invoked when the sub-operating system application is used, the input method mode of the composite system is unified, the processing overhead of the host operating system is reduced, and the processing efficiency and experience of the user are improved.
- FIG. 12 is a schematic structural diagram of an input method operating device according to another embodiment of the present application.
- the apparatus further includes:
- a second receiving module 15 configured to receive a second operation instruction for the second input method
- the second processing module 16 is configured to perform corresponding operation processing on the first input method according to the second operation instruction.
- the second operation instruction for the second input method includes:
- the second processing module 16 is configured to:
- the input information is displayed in an edit box of the first input method.
- the second processing module 16 is configured to:
- the input information displayed in the edit box of the first input method is deleted.
- the input method operation processing apparatus of the embodiment further receives the second operation instruction for the second input method, and the first input method according to the second operation instruction, based on any one of the embodiments of FIG. 9 to FIG. Perform the corresponding operation processing.
- the operation instruction for the input method in the second operating system is realized, and responding to the related operation of the input method in the first operating system, thereby unifying the multiple input method modes of the composite operating system, reducing the composite operation
- the processing overhead of the system and the user's processing efficiency and experience are improved.
- the second processing module 16 is configured to:
- FIG. 13 is a schematic structural diagram of an input method operating device according to another embodiment of the present application.
- the second processing module 16 is configured to:
- the second processing module 16 includes: setting a third proxy 161 in the second operating system, and setting a fourth proxy 162 in the first operating system;
- the third proxy 161 is configured to convert the second data format into a standard data format according to a preset cross-platform communication protocol IPC between the first operating system and the second operating system, and send the data format to the third data format.
- the fourth proxy 162 is configured to convert the standard data format into the first data format according to the cross-platform communication protocol IPC.
- the second processing module 16 includes: setting a second intermediate agent 163 between the first operating system and the second main operating system;
- the second intermediate proxy 163 is configured to convert the second data format into the first data format according to a protocol conversion rule between the first operating system and the second operating system.
- the input method operation processing apparatus of this embodiment further receives the second operation according to a preset protocol conversion rule by receiving a second operation instruction for the second input method, according to any of the embodiments of FIG.
- the second data format of the instruction is converted to a first data format, wherein the second data format matches the second operating system, the first data format matching the first operating system.
- the present application further provides an input method operation processing apparatus, where the apparatus includes:
- a memory for storing executable instructions of the processor
- processor is configured to:
- the first operating system includes: a Linux operating system based on a Linux/Unix kernel, and a WP operating system; and the second operating system includes: an Android operating system, and a MAC operating system.
- the input method operating device of the embodiment of the present application receives a first operation instruction for the first input method, and performs corresponding operation processing on the second input method according to the first operation instruction, wherein the The first operating system corresponding to one input method is different from the second operating system corresponding to the second input method.
- the operation instruction for the input method in the first operating system is realized, and the various input method modes of the composite operating system are unified by responding to the related operations of the input method in the second operating system, thereby reducing the composite operation.
- the processing overhead of the system and the user's processing efficiency and experience are improved.
- first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
- features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
- the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
- a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
- a more specific example (non-exhaustive list) of computer readable media includes the following: having one or more Wiring electrical connection (electronic device), portable computer disk cartridge (magnetic device), random access memory (RAM), read only memory (ROM), erasable editable read only memory (EPROM or flash memory), Fiber optic devices, as well as portable compact disk read only memory (CDROM).
- the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
- portions of the application can be implemented in hardware, software, firmware, or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
- each functional unit in each embodiment of the present application may be integrated into one agent module, or each unit may exist physically separately, or two or more units may be integrated into one module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
- the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer And Data Communications (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请提出一种输入法操作处理方法和装置,其中,该方法包括:接收针对第一输入法的第一操作指令;根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。实现了针对第一操作系统中输入法的操作指令,通过对第二操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
Description
本申请涉及计算机技术领域,尤其涉及一种输入法操作处理方法和装置。
随着操作系统的发展和应用需要,终端设备上的宿主操作系统需要兼容其他子操作系统的应用,例如以云操作系统为宿主操作系统,兼容以Android子操作系统的应用进行说明。
当云操作系统兼容Android操作系统应用时,Android操作系统内的子输入法框架随着Android操作系统安装在云操作系统平台上,但云操作系统内集成有宿主输入法框架,导致用户在进行云操作系统应用时启动宿主输入法,在进行安卓应用时启动子输入法。
由此可知,针对上述具有复合系统的情况,用户在进行不同的操作系统应用时需要在宿主输入法和子输入法之间进行切换,导致增加系统开销,并且降低用户输入操作效率。
发明内容
本申请旨在至少在一定程度上解决相关技术中的技术问题之一。
为此,本申请的第一个目的在于提出一种输入法操作处理方法,该方法实现了针对第一操作系统中输入法的操作指令,通过对第二操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
本申请的第二个目的在于提出一种输入法代理装置。
本申请的第三个目的在于提出一种输入法操作装置。
为达上述目的,本申请第一方面实施例提出了一种输入法操作处理方法,包括:接收针对第一输入法的第一操作指令;根据所述第一操作指令对第二输
入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。
本申请实施例的输入法操作处理方法,通过接收针对第一输入法的第一操作指令;根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。由此,实现了针对第一操作系统中输入法的操作指令,通过对第二操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
为达上述目的,本申请第二方面实施例提出了一种输入法代理装置,包括:第一接收模块,用于接收针对第一输入法的第一操作指令;第一处理模块,用于根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。
本申请实施例的输入法代理装置,通过接收针对第一输入法的第一操作指令;根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。由此,实现了针对第一操作系统中输入法的操作指令,通过对第二操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
为达上述目的,本申请第三方面实施例提出了一种输入法操作装置,包括:处理器;
用于存储所述处理器的可执行指令的存储器;
其中,所述处理器被配置为:
接收针对第一输入法的第一操作指令;
根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。
本申请实施例的输入法操作装置,通过接收针对第一输入法的第一操作指令;根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。由此,实现了针对第一操作系统中输入法的操作指令,通过对第二操作系统中输
入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1是本申请一个实施例的输入法操作处理方法的流程图;
图2是本申请另一个实施例的输入法操作处理方法的流程图;
图3是本申请另一个实施例的输入法操作处理方法的流程图;
图4是本申请另一个实施例的输入法操作处理方法的流程图;
图5是本申请另一个实施例的输入法操作处理方法的流程图;
图6是本申请另一个实施例的输入法操作处理方法的流程图;
图7是本申请一个实施例的输入法操作处理的示意图;
图8是图7所示的信息交互示意图;
图9是本申请一个实施例的输入法代理装置的结构示意图;
图10是本申请另一个实施例的输入法代理装置的结构示意图;
图11是本申请另一个实施例的输入法代理装置的结构示意图;
图12是本申请另一个实施例的输入法操作装置的结构示意图;
图13是本申请另一个实施例的输入法操作装置的结构示意图。
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。
下面参考附图描述本申请实施例的输入法操作处理方法和装置。
图1是本申请一个实施例的输入法操作处理方法的流程图。
如图1所示,该输入法操作处理方法包括:
步骤101,接收针对第一输入法的第一操作指令。
步骤102,根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。
具体地,本发明各实施例提供的输入法操作处理方法应用于具有复合操作系统的终端设备。其中,复合操作系统包括:一个第二操作系统,以及至少一个第一操作系统。
需要解释的是,本发明各实施例中的第二操作系统为终端设备安装的操作系统(即宿主操作系统),第一操作系统(即子操作系统)安装于第一系统容器中,第一系统容器部署在第二操作系统中,第一系统容器的功能为提供第一操作系统启动运行的相关硬件环境。进而,便可以在第二操作系统上安装使用与第一操作系统相关的应用。
需要说明的是,第一操作系统和第二操作系统的具体内容有很多,根据实际应用需要进行选择,本实施例对此不作限制,例如:第二操作系统包括:基于Linux内核的云操作系统、以及基于Unix内核的云操作系统、和WP操作系统;第一操作系统包括:Android操作系统,以及MAC操作系统。
针对上述的复合操作系统,与第一操作系统匹配的是第一输入法的输入法服务,与第二操作系统匹配的是第二输入法的输入法服务。需要说明的是,输入法服务向用户提供的具体内容视操作系统的具体内容而定,例如:
当第二操作系统为基于Linux内核的云操作系统时,第二输入法为智能通用输入法平台SCIM;当第一操作系统为Android操作系统时,第一输入法为百度安卓输入法等。
通常来说,输入法服务包含三个组件,分别是输入法视图View,输入法管理器(Input method manager,IMM)和输入法(input method,IME)服务。这三个组件需用共同合作才能完成输入法的工作,例如:View获取了焦点,会通知IMM打开输入法,然后IMM查看当前选中的IME,并调用该IME;或者用户提交了输入信息,IME需要将输入信息发送给View。
根据应用需要向与第一操作系统匹配的第一输入法的视图进行相关的触发操作,生成针对第一输入法的第一操作指令,例如包括:
示例一:当用户点击第一输入法视图中的编辑框时,即生成的第一操作指令为输入界面的显示指令;或者,
示例二:当用户点击第一输入法视图中的返回键时,即生成的第一操作指令为输入界面的隐藏指令。
当接收针对第一输入法的第一操作指令时,根据第一操作指令对第二输入法进行相应的操作处理。与现有技术相比,本实施例不再通过对第一输入法的相关操作来响应第一操作指令,而是通过对第二输入法的相关操作来响应第一操作指令。由于第一操作指令的内容不同,因此,对第二输入法的相应处理过程也不同,例如可以包括:
示例一:若所述针对第一输入法的第一操作指令为输入界面的显示指令,则显示所述第二输入法的输入界面,或者,
示例二:若所述针对第一输入法的第一操作指令为输入界面的隐藏指令,则隐藏所述第二输入法的输入界面。
本申请实施例的输入法操作处理方法,通过接收针对第一输入法的第一操作指令;根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。由此,实现了针对第一操作系统中输入法的操作指令,通过对第二操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
图2是本申请另一个实施例的输入法操作处理方法的流程图。
如图2所示,该输入法操作处理方法包括:
步骤201,当所述第一操作系统启动后,启动系统服务,其中,所述系统服务包括:所述第一输入法的输入法服务。
具体地,针对第一输入法的第一操作指令,为保证第一输入法针响应的实时性有效性,将第一输入法的输入法服务作为第一操作系统的系统服务。进而,当第一操作系统启动后,启动系统服务,从而第一输入法的输入法服务也随之启动。
步骤202,通过所述第一操作系统上运行的应用程序界面接收针对所述第一输入法的第一操作指令。
具体地,由于本发明中涉及的是复合操作系统,即在终端设备安装的第二操作系统中部署运行第一操作系统的第一系统容器,进而,可以在第二操作系统上安装使用与第一操作系统相关的应用。
因此,当用户在使用与第一操作系统相关的应用的过程中,需要使用与第一操作系统匹配的第一输入法时,在应用程序界面中针对第一输入法的相应位置进行触发操作,进而,通过应用程序界面接收针对所述第一输入法的第一操作指令。
步骤203,在所述第一输入法的输入法服务中阻断与所述第一操作指令相应的第一处理连接,通过所述第二输入法的输入法服务响应与所述第一操作指令相应的第二处理连接。
具体地,当接收针对第一输入法的第一操作指令时,在第一输入法的输入法服务中阻断与第一操作指令相应的第一处理连接,通过所述第二输入法的输入法服务响应与所述第一操作指令相应的第二处理连接。
由于第一操作指令的内容不同,因此,在第一输入法的输入法服务中对第一处理连接的阻断过程,以及在第二输入法的输入法服务中对第二处理连接的响应过程也不同,例如可以包括:
示例一:若针对第一输入法的第一操作指令为输入界面的显示指令,则阻断第一输入法的输入法服务中输入界面的显示连接,而是响应第二输入法的输入法服务中输入界面的显示连接。
或者,
示例二:若针对第一输入法的第一操作指令为输入界面的隐藏指令,则阻断第一输入法的输入法服务中输入界面的隐藏连接,而是响应第二输入法的输入法服务中输入界面的隐藏连接。
步骤204,在所述第一操作系统中修改所述第一输入法的安装标识和初始化标识。
具体地,为了避免其他非法的第三方输入法对第一输入法的篡改,在第一操作系统中修改对应的第一输入法的安装标识和初始化标识。
本申请实施例的输入法操作处理方法,当所述第一操作系统启动后,启动包括第一输入法的输入法服务的系统服务,通过所述第一操作系统上运行的应用程序界面接收针对所述第一输入法的第一操作指令,进而在所述第一输入法的输入法服务中阻断与所述第一操作指令相应的第一处理连接,通过所述第二输入法的输入法服务响应与所述第一操作指令相应的第二处理连接,并在第一操作系统中修改第一输入法的安装标识和初始化标识。由此,实现了针对第一操作系统中输入法的操作指令,通过对第二操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
图3是本申请另一个实施例的输入法操作处理方法的流程图。
如图3所示,该输入法操作处理方法包括:
步骤301,接收针对第一输入法的第一操作指令。
步骤302,根据预设的协议转换规则,将所述第一操作指令的第一数据格式转换成第二数据格式,其中,所述第一数据格式与所述第一操作系统匹配,所述第二数据格式与所述第二操作系统匹配。
具体地,针对不同的操作系统,操作指令的数据格式不同,例如:在第一操作系统中,操作指令为第一数据格式,在第二操作系统中,操作指令为第二数据格式。因此,预先设置针对第一操作系统和第二操作系统的协议转换规则,将操作指令的第一数据格式转换成第二数据格式。
因此,当接收到针对第一输入法的第一操作指令时,根据预设的协议转换规则,将所述第一操作指令的第一数据格式转换成第二数据格式。例如:当第二操作系统为基于Linux内核的云操作系统,第一操作系统为Android操作系统时,需要对Android操作系统能够识别的第一操作指令进行数据格式转换,转化成基于Linux内核的云操作系统能够识别的数据格式。
其中,对第一操作指令进行协议格式转换,生成第二操作系统识别的第二操作指令的方式有很多,可以根据实际应用需要进行选择,本实施例对此不作限制,具体说明如下:
方式一,直接转换模式,
直接转换模式的处理速度快。具体实现是:在所述第一操作系统和第二操
作系统之间设置第一中间代理;
第一中间代理根据第一操作系统与第二操作系统之间的协议转换规则,对所述第一操作指令进行的数据格式转换,将与第一操作系统匹配的第一数据格式转换成与第二操作系统匹配的第二数据格式。
方式二,间接转换模式,
间接转换模式与系统的兼容复杂度低。具体实现是:在所述第一操作系统中设置第一代理,以及在所述第二操作系统中设置第二代理。
第一代理根据第一操作系统与所述第二操作系统之间预设的跨平台通信协议IPC,将与第一操作系统匹配的第一数据格式转换成标准数据格式,发送给所述第二代理。
进而,第二代理根据所述跨平台通信协议IPC,将所述标准数据格式转换成与第二操作系统匹配的第二数据格式。
其中,所述跨平台通信协议IPC的类型很多,可以根据应用需要进行选择,例如包括:管道协议、套接字协议、以及消息队列协议。
进而,第二操作系统能够识别数据格式转换后的第一操作指令,第二输入法根据该操作指令进行相应的操作处理。
由于用户对第一输入法的输入法视图的触发内容不同,第一操作指令的内容不同,因此,第二输入法根据该第一操作指令进行的处理过程也不同,具体如下:
场景一,
当用户点击第一输入法视图中的编辑框时,第一操作指令为输入界面的显示指令,对该输入界面的显示指令进行协议格式转换,生成第二操作系统识别的输入界面的显示指令,进而显示所述第二输入法的输入界面,用户可以通过第二输入法的输入界面进行输入操作。
场景二,
当用户点击第一输入法视图中的返回键时,第一操作指令为输入界面的隐藏指令,对该输入界面的隐藏指令进行协议格式转换,生成第二操作系统识别的输入界面的隐藏指令,进而隐藏所述第二输入法的输入界面。
本实施例的输入法操作处理方法,通过接收针对第一输入法的第一操作指令,根据预设的协议转换规则,将所述第一操作指令的第一数据格式转换成第二数据格式,其中,所述第一数据格式与所述第一操作系统匹配,所述第二数据格式与所述第二操作系统匹配。由此,实现了使用子操作系统应用时能够调用宿主操作系统输入法,对复合系统的输入法模式进行统一,降低了宿主操作系统的处理开销,并且提高了用户的处理效率和体验度。
图4是本申请另一个实施例的输入法操作处理方法的流程图。
如图4所示,基于图1至图3任一实施例,还可以包括以下步骤:
步骤401,接收针对第二输入法的第二操作指令。
步骤402,根据所述第二操作指令对所述第一输入法进行相应的操作处理。
具体地,根据应用需要向与第二操作系统匹配的第二输入法的输入界面进行相关的触发操作,生成针对第二输入法的第二操作指令,例如包括:
示例一:当用户使用第二输入法的输入界面编辑完信息,点击第二输入法输入界面的发送键时,则生成的第二操作指令为针对第二输入法的输入信息提交指令;或者,
示例二:当用户点击第二输入法的输入界面的撤销键时,则生成的第二操作指令为针对第二输入法的输入信息删除指令。
当接收针对第二输入法的第二操作指令时,根据第二操作指令对第一输入法进行相应的操作处理。由于第二操作指令的内容不同,因此,对第一输入法的相应处理过程也不同,例如可以包括:
示例一:若所述针对第二输入法的第二操作指令为输入信息提交指令,则在第一输入法的编辑框中显示使用第二输入法的输入界面输入的信息,或者,
示例二:若所述针对第二输入法的第二操作指令为输入信息删除指令,则在删除显示在第一输入法的编辑框中的输入信息。
基于图1至图3任一实施例,本实施例的输入法操作处理方法,进一步地通过接收针对第二输入法的第二操作指令,根据所述第二操作指令对所述第一输入法进行相应的操作处理。由此,实现了针对第二操作系统中输入法的操作
指令,通过对第一操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
图5是本申请另一个实施例的输入法操作处理方法的流程图。
如图5所示,基于图1至图3任一实施例,还可以包括以下步骤:
步骤501,接收针对第二输入法的第二操作指令。
步骤502,通过所述第一操作系统注册远程接口服务回调,接收所述第二操作指令,并反馈给所述第一输入法的输入法服务,以使所述第一输入法的输入法服务根据所述第二操作指令对所述第一输入法的编辑框进行相应处理。
具体地,第一操作系统预先注册远程接口服务回调,进而,当接收针对第二输入法的第二操作指令时,第一操作系统通过预先注册的远程接口服务回调,接收第二操作指令,并反馈给所述第一输入法的输入法服务。第一输入法的输入法服务根据所述第二操作指令对所述第一输入法的编辑框进行相应处理。
由于第二操作指令的内容不同,因此,第一输入法的输入法服务根据所述第二操作指令对所述第一输入法的编辑框进行相应处理也不同,例如可以包括:
示例一:若针对第二输入法的第二操作指令为输入信息提交指令,则在第一输入法的编辑框中显示使用第二输入法的输入界面输入的信息,或者,
示例二:若所述针对第二输入法的第二操作指令为输入信息删除指令,则在删除显示在第一输入法的编辑框中的输入信息。
基于图1至图3任一实施例,本实施例的输入法操作处理方法,进一步地通过接收针对第二输入法的第二操作指令,通过第一操作系统注册远程接口服务回调,接收所述第二操作指令,并反馈给所述第一输入法的输入法服务,以使所述第一输入法的输入法服务根据所述第二操作指令对所述第一输入法的编辑框进行相应处理。由此,实现了针对第二操作系统中输入法的操作指令,通过对第一操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
图6是本申请另一个实施例的输入法操作处理方法的流程图。
如图6所示,基于图1至图3任一所述的实施例,还可以包括以下步骤:
步骤601,接收针对第二输入法的第二操作指令。
步骤602,根据预设的协议转换规则,将所述第二操作指令的第二数据格式转换成第一数据格式,其中,所述第二数据格式与所述第二操作系统匹配,所述第一数据格式与所述第一操作系统匹配。
具体地,针对不同的操作系统,操作指令的数据格式不同,例如:在第一操作系统中,操作指令为第一数据格式,在第二操作系统中,操作指令为第二数据格式。因此,预先设置针对第一操作系统和第二操作系统的协议转换规则,将操作指令的第一数据格式转换成第二数据格式。
因此,当接收到针对第二输入法的第二操作指令时,根据预设的协议转换规则,将所述第二操作指令的第二数据格式转换成第一数据格式。例如:当第二操作系统为基于Linux内核的云操作系统,第一操作系统为Android操作系统时,需要对基于Linux内核的云操作系统能够识别的第二操作指令的数据格式转换成Android操作系统能够识别的数据格式。
其中,对第二操作指令进行协议格式转换,生成第一操作系统识别的第二操作指令的方式有很多,可以根据实际应用需要进行选择,本实施例对此不作限制,具体说明如下:
方式一,直接转换模式,
直接转换模式的处理速度快。具体实现是:在所述第二操作系统和第一操作系统之间设置第二中间代理;
第二中间代理根据第二操作系统与第一操作系统之间的协议转换规则,对所述第二操作指令进行的数据格式转换,将与第二操作系统匹配的第二数据格式转换成与第一操作系统匹配的第一数据格式。
方式二,间接转换模式,
间接转换模式与系统的兼容复杂度低。具体实现是:在所述第二操作系统中设置第三代理,以及在所述第四操作系统中设置第四代理。
第三代理根据第二操作系统与所述第一操作系统之间预设的跨平台通信
协议IPC,将与第二操作系统匹配的第二数据格式转换成标准数据格式,发送给所述第四代理。
进而,第四代理根据所述跨平台通信协议IPC,将所述标准数据格式转换成与第一操作系统匹配的第一数据格式。
其中,所述跨平台通信协议IPC的类型很多,可以根据应用需要进行选择,例如包括:管道协议、套接字协议、以及消息队列协议。
进而,第一操作系统能够识别数据格式转换后的第二操作指令,第一输入法根据该操作指令进行相应的操作处理。
由于用户对第二输入法的输入法视图的触发内容不同,第二操作指令的内容不同,因此,第一输入法根据该第二操作指令进行的处理过程也不同,具体如下:
场景一,
当用户使用第二输入法编辑完信息后,点击第二输入法中的发送键时,生成的第二操作指令为输入信息提交指令,对该输入信息提交指令进行协议格式转换,生成第一操作系统识别的输入信息提交指令,并发送给第一输入法,进而第一输入法将用户提交的输入信息显示在第一输入法编辑框中。
场景二,
当用户点击第二输入法的撤销键时,第二输入法生成的第二操作指令为输入信息删除指令,对该输入信息删除指令进行协议格式转换,生成第一操作系统识别的输入信息删除指令,并发送给第一输入法,进而第一输入法删除当前显示在第一输入法编辑框中的信息。
基于图1-图3任一实施例,本实施例的输入法操作处理方法,进一步地通过接收针对第二输入法的第二操作指令,根据预设的协议转换规则,将所述第二操作指令的第二数据格式转换成第一数据格式,其中,所述第二数据格式与所述第二操作系统匹配,所述第一数据格式与所述第一操作系统匹配。由此,实现了针对第二操作系统中输入法的操作指令,通过对第一操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
进一步地,基于上述实施例,需要说明的是,直接转换模式中的第一中间
代理和第二中间代理可以集成为一体部署,也可以分开独立部署,根据实际应用需要进行设置;间接转换模式中的第一代理和第四代理可以集成为一体部署,称为第一操作系统代理,以及第二代理和第四代理均可以集成为一体部署,称为第二操作系统代理,也可以分开独立部署,根据实际应用需要进行设置。
为了更加清楚的说明上述转换过程,以图7所示实施例进行具体说明。图7所示实施例中的第一操作系统为子操作系统,以安卓操作系统(Android系统)为例,第二操作系统为宿主操作系统,以云操作系统(YunOS操作系统)为例,采用间接转换模式,并且采用集成一体部署,即在子操作系统(Guest)部署子代理,在宿主操作系统(Host)部署宿主代理,具体说明如下:
图7是本申请一个实施例的输入法操作处理的示意图,参见图7,具体如下:
1、根据现有YunOS操作系统结构(基于Linux内核的适合手机等便携设备的操作系统),及Android系统输入法现有结构,本发明通过Guest(Android端)层和Host(宿主端)层分别构建代理服务,采用Linux下的IPC跨平台通信协议,来完成跨系统层次通信及数据传输。
2、为保证Android中输入法响应实时性有效性,容器启动后通过实例化Android的输入法服务InputMethodService(相当于上述实施例中涉及的第一输入法服务),并随系统作为系统服务启动。
3、当用户在Guest(Android端)层触发Android输入法视图(view)的编辑框时,Android输入法的输入法管理器InputMethodService向Android的输入法服务InputMethodService发送输入界面显示指令(showSoftinput)。InputMethodService阻断Android系统输入法原有showSoftinput连接,即阻断Guest层中软键盘启动行为,将showSoftinput发送给Guest(Android端)层的Proxy(子代理),通过Guest(Android端)层的Proxy(子代理)根据Binder IPC将showSoftinput(即operation1)转换成标准数据格式,发送给Host(宿主端)层的Proxy(宿主代理)。Host(宿主端)层的Proxy(宿主代理)根据Binder IPC将showSoftinput(即operation1)转换成YunOS操作系统识别的数据格式,来通知Host软键盘响应行为(即智能通用输入法平台SCIM,相当于上述实施例中涉及的第二输入法)。SCIM通过输入法的其他模块(other modual调用SCIM输入界面进行响应)
4、用户使用SCIM输入界面输入完信息点击提交后,Host(宿主端)层的Proxy(宿主代理)接收SCIM发送的输入信息提交指令composeText(即operation2),宿主代理根据Binder IPC将composeText(即operation2)转换成标准数据格式,对输入信息提交指令进行数据格式转换,生成标准格式操作指令发送给Guest(Android端)层的Proxy(子代理),Guest(Android端)层的Proxy(子代理)根据Binder IPC将composeText(即operation2)转换成Android端识别的数据格式。
5、Android系统通过注册android远程接口服务回调,通过Guest(Android端)层的Proxy(子代理)接收Host端通过Host(宿主端)层的Proxy(宿主代理)发出的composeText(提交信息)消息,并反馈给InputMethodServices,最终上屏输入到android的输入框中(views)。
6、修改Android系统中输入法安装和初始化标识,以防三方输入法对Android端行为的篡改。
图8是图7所示的信息交互示意图,如图8所示,具体包括以下步骤:
信令流1包括:子代理接收子输入法模块发送的输入界面显示指令,根据IPC对输入界面显示指令进行数据格式转换,生成标准格式操作指令发送给宿主代理;宿主代理根据IPC,对标准格式操作指令进行数据格式转换,生成宿主操作系统识别的输入界面显示指令,并发送给宿主输入法模块。宿主输入法模块显示宿主输入法输入界面,用户通过所述宿主输入法输入界面进行输入操作。
信令流2包括:用户使用宿主输入法输入完信息点击提交后,宿主代理接收宿主输入法模块发送的输入信息提交指令,宿主代理根据IPC,对输入信息提交指令进行数据格式转换,生成标准格式操作指令发送给子代理;代理根据IPC,对标准格式操作指令进行数据格式转换,生成子操作系统识别的输入信息提交指令。子输入法模块在编辑框中,显示用户采用宿主输入法软键盘输入的文本信息。
信令流3包括:子代理接收子输入法模块发送的输入界面隐藏指令,根据IPC对输输入界面隐藏指令进行数据格式转换,生成标准格式操作指令发送给宿主代理;宿主代理根据IPC,对标准格式操作指令进行数据格式转换,生成宿主操作系统识别的输入界面隐藏指令,并发送给宿主输入法模块。宿主输入
法模块隐藏宿主输入法。
为了实现上述实施例,本申请还提出一种输入法代理装置。
图9是本申请一个实施例的输入法代理装置的结构示意图。
如图9所示,该输入法代理装置包括:
第一接收模块11,用于接收针对第一输入法的第一操作指令;
第一处理模块12,用于根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。
具体地,所述针对第一输入法的第一操作指令,包括:
针对第一输入法的输入界面的显示指令;或者,
针对第一输入法的输入界面的隐藏指令。
在一个实施例中,若所述针对第一输入法的第一操作指令为针对第一输入法的输入界面的显示指令,则所述第一处理模块12用于:
显示所述第二输入法的输入界面。
在另一个实施例中,若所述针对第一输入法的第一操作指令为针对第一输入法的输入界面的隐藏指令,则所述第一处理模块12用于:
隐藏所述第二输入法的输入界面。
需要说明的是,前述对输入法操作处理方法实施例的解释说明也适用于该实施例的输入法代理装置,此处不再赘述。
本申请实施例的输入法代理装置,通过接收针对第一输入法的第一操作指令;根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。由此,实现了针对第一操作系统中输入法的操作指令,通过对第二操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
图10是本申请另一个实施例的输入法代理装置的结构示意图,如图10所示,基于图9所示实施例,所述装置还包括:
启动模块13,用于当所述第一操作系统启动后,启动系统服务,其中,所述系统服务包括:所述第一输入法的输入法服务。
修改模块14,用于在所述第一操作系统中修改所述第一输入法的安装标识和初始化标识。
所述第一处理模块12用于:
在所述第一输入法的输入法服务中阻断与所述第一操作指令相应的第一处理连接,通过所述第二输入法的输入法服务响应与所述第一操作指令相应的第二处理连接。
需要说明的是,前述对输入法操作处理方法实施例的解释说明也适用于该实施例的输入法代理装置,此处不再赘述。
本申请实施例的输入法代理装置,当所述第一操作系统启动后,启动包括第一输入法的输入法服务的系统服务,通过所述第一操作系统上运行的应用程序界面接收针对所述第一输入法的第一操作指令,进而在所述第一输入法的输入法服务中阻断与所述第一操作指令相应的第一处理连接,通过所述第二输入法的输入法服务响应与所述第一操作指令相应的第二处理连接,并在第一操作系统中修改第一输入法的安装标识和初始化标识。由此,实现了针对第一操作系统中输入法的操作指令,通过对第二操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
图11是本申请另一个实施例的输入法代理装置的结构示意图,如图11所示,基于上述实施例,以图9为例,本实施例中,所述第一处理模块12用于:
根据预设的协议转换规则,将所述第一操作指令的第一数据格式转换成第二数据格式,其中,所述第一数据格式与所述第一操作系统匹配,所述第二数据格式与所述第二操作系统匹配。
在一个实施例中,所述第一处理模块12包括:在所述第一操作系统中设置第一代理121,以及在所述第二操作系统中设置第二代理122;
所述第一代理121,用于根据所述第一操作系统与所述第二操作系统之间预设的跨平台通信协议IPC,将所述第一数据格式转换成标准数据格式,发送给所述第二代理122;
所述第二代理122,用于根据所述跨平台通信协议IPC,将所述标准数据格式转换成所述第二数据格式。
其中,所述跨平台通信协议IPC包括:
管道协议、套接字协议、以及消息队列协议。
在另一个实施例中,所述第一处理模块12包括:在所述第一操作系统和第二主操作系统之间设置第一中间代理123;
所述第一中间代理123,用于根据所述第一操作系统与所述第二操作系统之间的协议转换规则,将所述第一数据格式转换成所述第二数据格式。
需要说明的是,前述对输入法操作处理方法实施例的解释说明也适用于该实施例的输入法代理装置,其实现原理类似,此处不再赘述。
本申请实施例的输入法代理装置,通过接收针对第一输入法的第一操作指令,根据预设的协议转换规则,将所述第一操作指令的第一数据格式转换成第二数据格式,其中,所述第一数据格式与所述第一操作系统匹配,所述第二数据格式与所述第二操作系统匹配。由此,实现了使用子操作系统应用时能够调用宿主操作系统输入法,对复合系统的输入法模式进行统一,降低了宿主操作系统的处理开销,并且提高了用户的处理效率和体验度。
图12是本申请另一个实施例的输入法操作装置的结构示意图。
如图12所示,基于图9-图11任一上述实施例,以图9为例,所述装置还包括:
第二接收模块15,用于接收针对第二输入法的第二操作指令;
第二处理模块16,用于根据所述第二操作指令对所述第一输入法进行相应的操作处理。
具体地,所述针对第二输入法的第二操作指令,包括:
针对第二输入法的输入信息提交指令;或者,
针对第二输入法的输入信息删除指令。
在一个实施例中,若所述针对第二输入法的第二操作指令为针对第二输入法的输入信息提交指令,则所述第二处理模块16用于:
将所述输入信息显示在所述第一输入法的编辑框中。
在另一个实施例中,若所述针对第二输入法的第二操作指令为针对第二输入法的输入信息删除指令,则所述第二处理模块16用于:
删除所述第一输入法的编辑框中显示的输入信息。
基于图9至图11任一实施例,本实施例的输入法操作处理装置,进一步地通过接收针对第二输入法的第二操作指令,根据所述第二操作指令对所述第一输入法进行相应的操作处理。由此,实现了针对第二操作系统中输入法的操作指令,通过对第一操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
进一步地,基于上述实施例,
在一个实施例中,所述第二处理模块16用于:
通过所述第一操作系统注册远程接口服务回调,接收所述第二操作指令,并反馈给所述第一输入法的输入法服务,以使所述第一输入法的输入法服务根据所述第二操作指令对所述第一输入法的编辑框进行相应处理。
需要说明的是,前述对输入法操作处理方法实施例的解释说明也适用于该实施例的输入法操作装置,其实现原理和技术效果类似,此处不再赘述。
图13是本申请另一个实施例的输入法操作装置的结构示意图。
如图13所示,基于上述实施例,以图12为例,本实施例中,所述第二处理模块16用于:
根据预设的协议转换规则,将所述第二操作指令的第二数据格式转换成第一数据格式,其中,所述第二数据格式与所述第二操作系统匹配,所述第一数据格式与所述第一操作系统匹配。
在一个实施例中,所述第二处理模块16包括:在所述第二操作系统中设置第三代理161,以及在所述第一操作系统中设置第四代理162;
所述第三代理161,用于根据所述第一操作系统与所述第二操作系统之间预设的跨平台通信协议IPC,将所述第二数据格式转换成标准数据格式,发送给所述第四代理162;
所述第四代理162,用于根据所述跨平台通信协议IPC,将所述标准数据格式转换成所述第一数据格式。
在另一个实施例中,所述第二处理模块16包括:在所述第一操作系统和第二主操作系统之间设置第二中间代理163;
所述第二中间代理163,用于根据所述第一操作系统与所述第二操作系统之间的协议转换规则,将所述第二数据格式转换成所述第一数据格式。
基于图9-图11任一实施例,本实施例的输入法操作处理装置,进一步地通过接收针对第二输入法的第二操作指令,根据预设的协议转换规则,将所述第二操作指令的第二数据格式转换成第一数据格式,其中,所述第二数据格式与所述第二操作系统匹配,所述第一数据格式与所述第一操作系统匹配。由此,实现了针对第二操作系统中输入法的操作指令,通过对第一操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
为了实现上述实施例,本申请还提出一种输入法操作处理装置,所述装置包括:
处理器;
用于存储所述处理器的可执行指令的存储器;
其中,所述处理器被配置为:
接收针对第一输入法的第一操作指令;
根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。
其中,所述第一操作系统包括:基于Linux/Unix内核的云操作系统、以及WP操作系统;所述第二操作系统包括:Android操作系统,以及MAC操作系统。
需要说明的是,前述对输入法操作处理方法实施例的解释说明也适用于该实施例的输入法操作装置,此处不再赘述。
本申请实施例的输入法操作装置,通过接收针对第一输入法的第一操作指令;根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第
一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。由此,实现了针对第一操作系统中输入法的操作指令,通过对第二操作系统中输入法的相关操作进行响应,从而对复合操作系统的多种输入法模式进行统一,降低了复合操作系统的处理开销,并且提高了用户的处理效率和体验度。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个
布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本申请各个实施例中的各功能单元可以集成在一个代理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。
Claims (44)
- 一种输入法操作处理方法,其特征在于,包括以下步骤:接收针对第一输入法的第一操作指令;根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。
- 如权利要求1所述的方法,其特征在于,在所述接收针对第一输入法的第一操作指令之前,还包括:当所述第一操作系统启动后,启动系统服务,其中,所述系统服务包括:所述第一输入法的输入法服务。
- 如权利要求1所述的方法,其特征在于,还包括:在所述第一操作系统中修改所述第一输入法的安装标识和初始化标识。
- 如权利要求1所述的方法,其特征在于,所述针对第一输入法的第一操作指令,包括:针对第一输入法的输入界面的显示指令;或者,针对第一输入法的输入界面的隐藏指令。
- 如权利要求1所述的方法,其特征在于,若所述针对第一输入法的第一操作指令为针对第一输入法的输入界面的显示指令,则根据所述第一操作指令对第二输入法进行相应的操作处理,包括:显示所述第二输入法的输入界面。
- 如权利要求1所述的方法,其特征在于,若所述针对第一输入法的第一操作指令为针对第一输入法的输入界面的隐藏指令,则根据所述第一操作指令对第二输入法进行相应的操作处理,包括:隐藏所述第二输入法的输入界面。
- 如权利要求1所述的方法,其特征在于,所述接收针对第一输入法的第一操作指令,包括:通过所述第一操作系统上运行的应用程序界面接收针对所述第一输入法 的第一操作指令。
- 如权利要求1所述的方法,其特征在于,所述第一操作系统为子操作系统,所述第二操作系统为宿主操作系统。
- 如权利要求1所述的方法,其特征在于,所述根据所述第一操作指令对第二输入法进行相应的操作处理,包括:在所述第一输入法的输入法服务中阻断与所述第一操作指令相应的第一处理连接,通过所述第二输入法的输入法服务响应与所述第一操作指令相应的第二处理连接。
- 如权利要求1所述的方法,其特征在于,所述根据所述第一操作指令对第二输入法进行相应的操作处理,包括:根据预设的协议转换规则,将所述第一操作指令的第一数据格式转换成第二数据格式,其中,所述第一数据格式与所述第一操作系统匹配,所述第二数据格式与所述第二操作系统匹配。
- 如权利要求10所述的方法,其特征在于,在所述第一操作系统中设置第一代理,以及在所述第二操作系统中设置第二代理;所述根据预设的协议转换规则,将所述第一操作指令的第一数据格式转换成第二数据格式,包括:所述第一代理根据所述第一操作系统与所述第二操作系统之间预设的跨平台通信协议IPC,将所述第一数据格式转换成标准数据格式,发送给所述第二代理;所述第二代理根据所述跨平台通信协议IPC,将所述标准数据格式转换成所述第二数据格式。
- 如权利要求11所述的方法,其特征在于,所述跨平台通信协议IPC包括:管道协议、套接字协议、以及消息队列协议。
- 如权利要求10所述的方法,其特征在于,在所述第一操作系统和第二主操作系统之间设置第一中间代理;所述根据预设的协议转换规则,将所述第一操作指令的第一数据格式转换 成第二数据格式,包括:所述第一中间代理根据所述第一操作系统与所述第二操作系统之间的协议转换规则,将所述第一数据格式转换成所述第二数据格式。
- 如权利要求1-13任一所述的方法,其特征在于,还包括:接收针对第二输入法的第二操作指令;根据所述第二操作指令对所述第一输入法进行相应的操作处理。
- 如权利要求14所述的方法,其特征在于,所述针对第二输入法的第二操作指令,包括:针对第二输入法的输入信息提交指令;或者,针对第二输入法的输入信息删除指令。
- 如权利要求14所述的方法,其特征在于,若所述针对第二输入法的第二操作指令为针对第二输入法的输入信息提交指令,则根据所述第二操作指令对所述第一输入法进行相应的操作处理,包括:将所述输入信息显示在所述第一输入法的编辑框中。
- 如权利要求14所述的方法,其特征在于,若所述针对第二输入法的第二操作指令为针对第二输入法的输入信息删除指令,则根据所述第二操作指令对所述第一输入法进行相应的操作处理,包括:删除所述第一输入法的编辑框中显示的输入信息。
- 如权利要求14所述的方法,其特征在于,所述根据所述第二操作指令对所述第一输入法进行相应的操作处理,包括:通过所述第一操作系统注册远程接口服务回调接收所述第二操作指令;将所述第二操作指令反馈给所述第一输入法的输入法服务,以使所述第一输入法的输入法服务根据所述第二操作指令对所述第一输入法的编辑框进行相应处理。
- 如权利要求14所述的方法,其特征在于,所述根据所述第二操作指令对所述第一输入法进行相应的操作处理,包括:根据预设的协议转换规则,将所述第二操作指令的第二数据格式转换成第 一数据格式,其中,所述第二数据格式与所述第二操作系统匹配,所述第一数据格式与所述第一操作系统匹配。
- 如权利要求18所述的方法,其特征在于,在所述第二操作系统中设置第三代理,以及在所述第一操作系统中设置第四代理;所述根据预设的协议转换规则,将所述第二操作指令的第二数据格式转换成第一数据格式,包括:所述第三代理根据所述第一操作系统与所述第二操作系统之间预设的跨平台通信协议IPC,将所述第二数据格式转换成标准数据格式,发送给所述第四代理;所述第四代理根据所述跨平台通信协议IPC,将所述标准数据格式转换成所述第一数据格式。
- 如权利要求18所述的方法,其特征在于,在所述第一操作系统和第二主操作系统之间设置第二中间代理;所述根据预设的协议转换规则,将所述第二操作指令的第二数据格式转换成第一数据格式,包括:所述第二中间代理根据所述第一操作系统与所述第二操作系统之间的协议转换规则,将所述第二数据格式转换成所述第一数据格式。
- 一种输入法操作处理装置,其特征在于,包括:第一接收模块,用于接收针对第一输入法的第一操作指令;第一处理模块,用于根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。
- 如权利要求22所述的装置,其特征在于,还包括:启动模块,用于当所述第一操作系统启动后,启动系统服务,其中,所述系统服务包括:所述第一输入法的输入法服务。
- 如权利要求22所述的装置,其特征在于,还包括:修改模块,用于在所述第一操作系统中修改所述第一输入法的安装标识和初始化标识。
- 如权利要求22所述的装置,其特征在于,所述针对第一输入法的第一操作指令,包括:针对第一输入法的输入界面的显示指令;或者,针对第一输入法的输入界面的隐藏指令。
- 如权利要求22所述的装置,其特征在于,若所述针对第一输入法的第一操作指令为针对第一输入法的输入界面的显示指令,则所述第一处理模块用于:显示所述第二输入法的输入界面。
- 如权利要求22所述的装置,其特征在于,若所述针对第一输入法的第一操作指令为针对第一输入法的输入界面的隐藏指令,则所述第一处理模块用于:隐藏所述第二输入法的输入界面。
- 如权利要求22所述的装置,其特征在于,所述第一接收模块用于:通过所述第一操作系统上运行的应用程序界面接收针对所述第一输入法的第一操作指令。
- 如权利要求22所述的装置,其特征在于,所述第一操作系统为子操作系统,所述第二操作系统为宿主操作系统。
- 如权利要求22所述的装置,其特征在于,所述第一处理模块用于:在所述第一输入法的输入法服务中阻断与所述第一操作指令相应的第一处理连接,通过所述第二输入法的输入法服务响应与所述第一操作指令相应的第二处理连接。
- 如权利要求22所述的装置,其特征在于,所述第一处理模块用于:根据预设的协议转换规则,将所述第一操作指令的第一数据格式转换成第二数据格式,其中,所述第一数据格式与所述第一操作系统匹配,所述第二数据格式与所述第二操作系统匹配。
- 如权利要求31所述的装置,其特征在于,所述第一处理模块包括:在所述第一操作系统中设置第一代理,以及在所述第二操作系统中设置第二代 理;所述第一代理,用于根据所述第一操作系统与所述第二操作系统之间预设的跨平台通信协议IPC,将所述第一数据格式转换成标准数据格式,发送给所述第二代理;所述第二代理,用于根据所述跨平台通信协议IPC,将所述标准数据格式转换成所述第二数据格式。
- 如权利要求32所述的装置,其特征在于,所述跨平台通信协议IPC包括:管道协议、套接字协议、以及消息队列协议。
- 如权利要求31所述的装置,其特征在于,所述第一处理模块包括:在所述第一操作系统和第二主操作系统之间设置第一中间代理;所述第一中间代理,用于根据所述第一操作系统与所述第二操作系统之间的协议转换规则,将所述第一数据格式转换成所述第二数据格式。
- 如权利要求22-34任一所述的装置,其特征在于,还包括:第二接收模块,用于接收针对第二输入法的第二操作指令;第二处理模块,用于根据所述第二操作指令对所述第一输入法进行相应的操作处理。
- 如权利要求35所述的装置,其特征在于,所述针对第二输入法的第二操作指令,包括:针对第二输入法的输入信息提交指令;或者,针对第二输入法的输入信息删除指令。
- 如权利要求35所述的装置,其特征在于,若所述针对第二输入法的第二操作指令为针对第二输入法的输入信息提交指令,则所述第二处理模块用于:将所述输入信息显示在所述第一输入法的编辑框中。
- 如权利要求35所述的装置,其特征在于,若所述针对第二输入法的第二操作指令为针对第二输入法的输入信息删除指令,则所述第二处理模块用 于:删除所述第一输入法的编辑框中显示的输入信息。
- 如权利要求35所述的装置,其特征在于,所述第二处理模块用于:通过所述第一操作系统注册远程接口服务回调,接收所述第二输入法的输入法服务针对所述第二操作指令的响应消息;将所述响应消息反馈给所述第一输入法的输入法服务,以使所述第一输入法的输入法服务根据所述响应消息对所述第一输入法的编辑框进行相应处理。
- 如权利要求35所述的装置,其特征在于,所述第二处理模块用于:根据预设的协议转换规则,将所述第二操作指令的第二数据格式转换成第一数据格式,其中,所述第二数据格式与所述第二操作系统匹配,所述第一数据格式与所述第一操作系统匹配。
- 如权利要求40所述的装置,其特征在于,所述第二处理模块包括:在所述第二操作系统中设置第三代理,以及在所述第一操作系统中设置第四代理;所述第三代理,用于根据所述第一操作系统与所述第二操作系统之间预设的跨平台通信协议IPC,将所述第二数据格式转换成标准数据格式,发送给所述第四代理;所述第四代理,用于根据所述跨平台通信协议IPC,将所述标准数据格式转换成所述第一数据格式。
- 如权利要求40所述的装置,其特征在于,所述第二处理模块包括:在所述第一操作系统和第二主操作系统之间设置第二中间代理;所述第二中间代理,用于根据所述第一操作系统与所述第二操作系统之间的协议转换规则,将所述第二数据格式转换成所述第一数据格式。
- 如权利要求40所述的装置,其特征在于,所述第一操作系统包括:基于Linux/Unix内核的云操作系统、以及WP操作系统;所述第二操作系统包括:Android操作系统,以及MAC操作系统。
- 一种输入法操作处理装置,其特征在于,所述装置包括:处理器;用于存储所述处理器的可执行指令的存储器;其中,所述处理器被配置为:接收针对第一输入法的第一操作指令;根据所述第一操作指令对第二输入法进行相应的操作处理,其中,所述第一输入法对应的第一操作系统和所述第二输入法对应的第二操作系统不同。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610034754.8 | 2016-01-19 | ||
| CN201610034754.8A CN106980531B (zh) | 2016-01-19 | 2016-01-19 | 输入法操作处理方法和装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017124945A1 true WO2017124945A1 (zh) | 2017-07-27 |
Family
ID=59340095
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/070801 Ceased WO2017124945A1 (zh) | 2016-01-19 | 2017-01-10 | 输入法操作处理方法和装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106980531B (zh) |
| WO (1) | WO2017124945A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109542246A (zh) * | 2018-11-06 | 2019-03-29 | 北京指掌易科技有限公司 | 一种Android输入法应用输入关键字拦截的方法 |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107943318A (zh) * | 2017-11-10 | 2018-04-20 | 北京小米移动软件有限公司 | 输入方法和装置、电子设备以及计算机可读存储介质 |
| CN111722894B (zh) * | 2019-03-21 | 2023-04-18 | 成都鼎桥通信技术有限公司 | 应用处理方法、装置及电子设备 |
| CN111414085B (zh) * | 2020-03-27 | 2023-07-18 | 中国人民解放军国防科技大学 | 一种麒麟移动操作系统的输入法运行方法、系统及介质 |
| CN113918227A (zh) * | 2021-09-10 | 2022-01-11 | 北京鲸鲮信息系统技术有限公司 | 输入法设置方法及其装置、输入方法及电子设备 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101894042A (zh) * | 2010-06-24 | 2010-11-24 | 宇龙计算机通信科技(深圳)有限公司 | 一种多操作系统间共享应用的实现方法、系统及移动终端 |
| CN102446116A (zh) * | 2010-09-30 | 2012-05-09 | 中国移动通信有限公司 | 一种输入工具调用的系统、方法及一种代理设备 |
| US20130167063A1 (en) * | 2011-10-28 | 2013-06-27 | Research In Motion Limited | Systems and Methods of Using Input Events on Electronic Devices |
| CN103458308A (zh) * | 2013-09-03 | 2013-12-18 | 小米科技有限责任公司 | 一种输入内容的方法及装置 |
| CN104035565A (zh) * | 2013-03-04 | 2014-09-10 | 腾讯科技(深圳)有限公司 | 输入方法、输入装置、辅助输入方法及辅助输入系统 |
| CN104935611A (zh) * | 2014-03-17 | 2015-09-23 | 宇龙计算机通信科技(深圳)有限公司 | 输入法的远程输入方法及系统 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104765791A (zh) * | 2015-03-24 | 2015-07-08 | 北京搜狗科技发展有限公司 | 一种信息输入方法和装置 |
-
2016
- 2016-01-19 CN CN201610034754.8A patent/CN106980531B/zh active Active
-
2017
- 2017-01-10 WO PCT/CN2017/070801 patent/WO2017124945A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101894042A (zh) * | 2010-06-24 | 2010-11-24 | 宇龙计算机通信科技(深圳)有限公司 | 一种多操作系统间共享应用的实现方法、系统及移动终端 |
| CN102446116A (zh) * | 2010-09-30 | 2012-05-09 | 中国移动通信有限公司 | 一种输入工具调用的系统、方法及一种代理设备 |
| US20130167063A1 (en) * | 2011-10-28 | 2013-06-27 | Research In Motion Limited | Systems and Methods of Using Input Events on Electronic Devices |
| CN104035565A (zh) * | 2013-03-04 | 2014-09-10 | 腾讯科技(深圳)有限公司 | 输入方法、输入装置、辅助输入方法及辅助输入系统 |
| CN103458308A (zh) * | 2013-09-03 | 2013-12-18 | 小米科技有限责任公司 | 一种输入内容的方法及装置 |
| CN104935611A (zh) * | 2014-03-17 | 2015-09-23 | 宇龙计算机通信科技(深圳)有限公司 | 输入法的远程输入方法及系统 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109542246A (zh) * | 2018-11-06 | 2019-03-29 | 北京指掌易科技有限公司 | 一种Android输入法应用输入关键字拦截的方法 |
| CN109542246B (zh) * | 2018-11-06 | 2022-10-28 | 北京指掌易科技有限公司 | 一种Android输入法应用输入关键字拦截的方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106980531B (zh) | 2021-01-29 |
| CN106980531A (zh) | 2017-07-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017124945A1 (zh) | 输入法操作处理方法和装置 | |
| US9666190B2 (en) | Speech recognition using loosely coupled components | |
| CN115190147B (zh) | 一种智能设备控制方法、装置及系统 | |
| CN105404617A (zh) | 一种远程桌面的控制方法、受控端及控制系统 | |
| CN105992066B (zh) | 一种应用于智能设备的字符输入方法和字符输入装置 | |
| CN110875993A (zh) | 带交互代理功能的图像形成系统及其控制方法和存储介质 | |
| WO2017166602A1 (zh) | 车载终端与移动终端协同输入的控制方法及移动终端 | |
| WO2019205555A1 (zh) | 消息推送方法及装置 | |
| JP7615378B2 (ja) | 対話型装置及びその制御方法、並びにプログラム | |
| US9513878B2 (en) | Component integration by distribution of schema definition on heterogenous platforms | |
| CN104850374A (zh) | 用于控制车辆的头单元的智能设备镜像的系统和方法 | |
| CN112650604A (zh) | 卡片数据处理方法及相关装置 | |
| JP6772235B2 (ja) | 設備リストを同期する方法、装置、設備、コンピュータ記憶媒体及びプログラム | |
| AU2017201109B2 (en) | Dynamic process execution architecture with disassociated resource control | |
| CN103973870B (zh) | 信息处理设备和信息处理方法 | |
| CN112015432A (zh) | 一种静态项目部署方法及装置 | |
| US20110191405A1 (en) | Automatic Client-Server Code Generator | |
| WO2015096294A1 (zh) | 一种视频会议终端及其支持第三方应用的实现方法 | |
| HK1240356B (zh) | 输入法操作处理方法和装置 | |
| CN115422278A (zh) | 数据传输方法及装置 | |
| US10846468B2 (en) | Apparatus and methods for creating and sending table information | |
| CN108874381A (zh) | 一种输出页面视图控制器的方法、装置及电子设备 | |
| CN119135667B (zh) | 用于功能调用的方法、装置、设备和存储介质 | |
| HK1240356A (zh) | 輸入法操作處理方法和裝置 | |
| HK1240356A1 (zh) | 输入法操作处理方法和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17740976 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17740976 Country of ref document: EP Kind code of ref document: A1 |