CN110825484B - Method and device for switching interfaces of different input methods - Google Patents
Method and device for switching interfaces of different input methods Download PDFInfo
- Publication number
- CN110825484B CN110825484B CN201911100416.XA CN201911100416A CN110825484B CN 110825484 B CN110825484 B CN 110825484B CN 201911100416 A CN201911100416 A CN 201911100416A CN 110825484 B CN110825484 B CN 110825484B
- Authority
- CN
- China
- Prior art keywords
- input method
- interface
- interfaces
- input
- switching
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a method and a device for switching different input method interfaces. In actual use, when a user calls the input method, when the framework finds that the interface is realized, the framework sends messages such as drawing and the like to the newly realized interface, and displays the input method interface corresponding to the input method. When switching to other input methods, the input method interface is disconnected from the framework and restored to the default input method interface. The invention provides the individual interface of the input method, can realize the dynamic switching of the interfaces of different input methods, and improves the quality of service for users.
Description
Technical Field
The invention relates to the field of human-computer interaction, in particular to a method and a device for switching different input method interfaces.
Background
In a Linux system, an input method based on an Fcitx framework adopts the same interface or only realizes a set of interfaces through the interface of the input method. But still cannot be flexibly switched. Fcitx (free Chinese Input to for x), the Chinese name is a penguin Input method, which is an Input method framework released in GPL, providing a flexible Input scheme for the desktop environment. The Fcitx framework currently adopts a uniform interface, which cannot meet the personalized requirements of users.
The Chinese patent application publication number is CN102681780A, the invention name is Linux intelligent device and its input method switching method, which discloses a Linux intelligent device and its input method switching method, detecting whether switching between two different input units occurs according to the captured focus switching event; when the switching between two different input units is detected, acquiring a preset input method shortcut key corresponding to the input unit where the current focus is located and aiming at the current user; generating an event indicating that the acquired shortcut key is input to cause the current input method to switch to the input method corresponding to the acquired input method shortcut key. In this way, the user friendliness is increased, and the system can automatically switch to the desired input method of the user, and even can automatically switch to different preset input methods for different users on the same input unit.
This publication also does not mention a user's personalized input method interface.
Disclosure of Invention
In view of this, the present invention provides a method for dynamically switching between different input method interfaces.
In a first aspect, the present invention provides a method for switching interfaces of different input methods, which is applicable to a Linux system, and includes the following steps:
step S1, the user calls a first input method;
step S2, the input method frame detects whether there is interface, if yes, step S3 is carried out, if not, step S7 is carried out;
step S3, the input method frame sends the interface information defined by the first input method to the interface;
step S4, the first input method informs the input method interface to establish the connection with the interface;
step S5, the input method interface acquires interface information through the interface and displays the input method interface corresponding to the first input method;
step S6, switching the user to other input methods, and informing the input method interface of disconnection from the interface by the first input method;
and step S7, displaying a default interface.
Further, the interface information includes, but is not limited to, candidate word information and drawing information.
Furthermore, the first input method is connected with the input method interface through a communication mechanism.
Further, the communication mechanism means that the interface implementation layer of the input method registers the same signal for the first input method and the corresponding input method interface for matching.
Further, the input method interface includes, but is not limited to, a word selection window and a status bar.
Furthermore, a group of hooks is added in the input method frame to detect the switching of the input method.
In a second aspect, the present invention provides a device for switching different input method interfaces, including an input method engine, an input method interface implementation layer and an input method interface;
input method interface implementation layer: the interface is realized, the message transmitted by the input method framework is received, and the input method interface is called;
an input method engine: the interface implementation layer is responsible for converting input method switching information received by the interface implementation layer into corresponding candidates and returning the candidates to the interface implementation layer;
an input method interface: and the personalized interface corresponds to the first input method.
Further, the message sent by the input method framework includes, but is not limited to, key information and input method switching information.
The invention provides the individual interface of the input method, can realize the dynamic switching of the interfaces of different input methods, and improves the quality of service for users.
Drawings
FIG. 1 is a flow chart of a method of switching between different input method interfaces of the present invention;
FIG. 2 is a schematic diagram of the present invention without an interface;
FIG. 3 is a schematic diagram of an interface according to the present invention;
FIG. 4 is a schematic diagram of a personalized input method interface of the present invention connected to its corresponding input method;
FIG. 5 is a schematic diagram of a personalized input method interface of the present invention disconnected from its corresponding input method;
fig. 6 is a schematic diagram of the input method corresponding to the personalized input method interface after switching back again.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Example one
The embodiment provides a method for switching different input method interfaces, which is suitable for a Linux system, and by using a rollback mechanism of an Fcitx input method framework interface, when an interface is not realized, a default interface is rolled back, as shown in fig. 1.
The method comprises the following specific steps:
step S1, the user calls a first input method;
step S2, the input method frame detects whether there is interface, if yes, step S3 is carried out, if not, step S7 is carried out;
the interface for realizing the invention is a kimpel interface. And the main body is judged to be an input method frame, and the main body can send a signal to confirm whether a program realizes a kimpel interface. kimprenel is a Plamsmoid plug-in that can use multiple input methods as a backend. A unified UI interface is provided for different input methods through kimpel.
Step S3, the input method frame sends the interface information defined by the first input method to the interface;
the first input method A defines interface information such as candidate word information and drawing information according to a Kimpanel interface, realizes a set of personalized input method interfaces, and sends messages such as drawing to a newly realized interface when the input method framework finds the realization of the interface.
The input method a realizes the personalized input method Interface by drawing with various drawing APIs (Application Programming interfaces).
Step S4, the first input method informs the input method interface to establish the connection with the interface;
in addition, a communication mechanism between the input method a and the corresponding input method interface is additionally added, as shown in fig. 4, the communication mechanism of the present invention is that the input method interface implementation layer registers the same signal for the input method a and the corresponding input method interface for matching by using the message bus of the system.
Step S5, the input method interface acquires candidate word information and drawing information through the interface and displays the input method interface;
the input method interface comprises various window interfaces such as a candidate word window and a status bar of an input method, and the window interfaces are required to be obtained from an input method interface layer through interface interfaces.
Step S6, switching the user to other input methods, and informing the input method interface of disconnection from the interface by the first input method;
a group of hooks needs to be added in the input method framework to detect the change of input method switching. And when the input method interface layer captures that the user switches the input method, sending a message or a notification to the input method interface.
And step S7, displaying a default interface.
When the user switches from the input method a to the input method B, the input method a sends a notification to the corresponding input method interface to inform the corresponding input method interface to disconnect the interface, and a default interface is displayed through a rollback mechanism of the framework, as shown in fig. 5.
When the input method A is switched to the input method A again, the input method sends a notice to the corresponding input method interface to inform the corresponding input method interface, and the corresponding input method interface is displayed, as shown in FIG. 6.
Example two
The embodiment provides a device for switching interfaces of different input methods, so that a certain input method can display a personalized interface corresponding to the certain input method.
The device comprises an input method engine, an input method interface realization layer and an input method interface.
Wherein, the input method interface realizes the layer: the interface is realized, the information transmitted by the input method framework is received, and the input method interface is called, wherein the information transmitted by the input method framework comprises key information, input method switching and other information;
an input method engine: the interface implementation layer is responsible for converting input method switching information received by the interface implementation layer into corresponding candidates and returning the candidates to the interface implementation layer;
an input method interface: and the personalized interface corresponds to the specific input method.
The specific input method in the present embodiment refers to the first input method in the first embodiment.
The above description is for the purpose of illustrating embodiments of the invention and is not intended to limit the invention, and it will be apparent to those skilled in the art that any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the invention shall fall within the protection scope of the invention.
Claims (5)
1. A method for switching different input method interfaces is characterized in that: the method is suitable for the Linux system and comprises the following steps:
step S1, the user calls a first input method;
step S2, the input method frame detects whether there is interface, if yes, step S3 is carried out, if not, step S7 is carried out; the interface is a kimpel interface;
step S3, the input method frame sends the interface information defined by the first input method to the interface; the first input method defines interface information according to a Kimpanel interface to realize a set of input method interfaces, and when the input method framework finds that the interface interfaces are realized, drawing information is sent to the newly realized interface interfaces;
step S4, the first input method informs the input method interface to establish the connection with the interface;
step S5, the input method interface acquires interface information through the interface and displays the input method interface corresponding to the first input method;
step S6, switching the user to other input methods, and informing the input method interface of disconnection from the interface by the first input method;
and step S7, displaying a default interface.
2. The method for switching different input method interfaces according to claim 1, wherein: the interface information includes, but is not limited to, candidate word information and drawing information.
3. The method for switching different input method interfaces according to claim 1, wherein: the first input method is connected with the input method interface through a communication mechanism; the communication mechanism means that the interface implementation layer of the input method registers the same signals for the first input method and the corresponding input method interface for matching.
4. The method for switching different input method interfaces according to claim 1, wherein: the input method interface includes but is not limited to a word selection window and a status bar.
5. The method for switching different input method interfaces according to claim 1, wherein: and adding a group of hooks in the input method frame to detect the switching of the input method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911100416.XA CN110825484B (en) | 2019-11-12 | 2019-11-12 | Method and device for switching interfaces of different input methods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911100416.XA CN110825484B (en) | 2019-11-12 | 2019-11-12 | Method and device for switching interfaces of different input methods |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110825484A CN110825484A (en) | 2020-02-21 |
CN110825484B true CN110825484B (en) | 2021-12-07 |
Family
ID=69554257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911100416.XA Active CN110825484B (en) | 2019-11-12 | 2019-11-12 | Method and device for switching interfaces of different input methods |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110825484B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114489911A (en) * | 2022-02-15 | 2022-05-13 | 竞技世界(北京)网络技术有限公司 | Interface switching method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799663A (en) * | 2012-07-13 | 2012-11-28 | 深圳市同洲电子股份有限公司 | Input method and input method system |
CN108647096A (en) * | 2018-05-16 | 2018-10-12 | Oppo广东移动通信有限公司 | Method of adjustment, device, storage medium and the mobile terminal of system resource configuration |
CN109144287A (en) * | 2017-06-28 | 2019-01-04 | 北京搜狗科技发展有限公司 | A kind of method and device that interface of input method is set |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106855748A (en) * | 2015-12-08 | 2017-06-16 | 阿里巴巴集团控股有限公司 | A kind of data inputting method, device and intelligent terminal |
-
2019
- 2019-11-12 CN CN201911100416.XA patent/CN110825484B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799663A (en) * | 2012-07-13 | 2012-11-28 | 深圳市同洲电子股份有限公司 | Input method and input method system |
CN109144287A (en) * | 2017-06-28 | 2019-01-04 | 北京搜狗科技发展有限公司 | A kind of method and device that interface of input method is set |
CN108647096A (en) * | 2018-05-16 | 2018-10-12 | Oppo广东移动通信有限公司 | Method of adjustment, device, storage medium and the mobile terminal of system resource configuration |
Non-Patent Citations (1)
Title |
---|
输入法(IME)实现原理;佚名;《https://blog.csdn.net/fishmai/article/details/60633558》;20170307;1-12 * |
Also Published As
Publication number | Publication date |
---|---|
CN110825484A (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2014403138B2 (en) | Terminal, server, and terminal control method | |
US10348879B2 (en) | Method and system for processing prompt message of mobile terminal based on intelligent wearable device | |
CN103634205A (en) | Vehicular entertainment system with integrated instant messaging/social application and method | |
KR101517134B1 (en) | Mode switching method and device | |
RU2008110077A (en) | NOTIFICATION STATUS OF NETWORK CONNECTION AND WIRELESS COMMUNICATION | |
CN104184899A (en) | Double-card communication method and mobile terminal | |
CN110825484B (en) | Method and device for switching interfaces of different input methods | |
WO2014172880A1 (en) | Methods and instant messaging client devices for performing im using menu option | |
CN104270534A (en) | Terminal equipment control method and device | |
CN112346612B (en) | Page display method and device | |
CN104461052A (en) | Method and device for character input between intelligent devices | |
KR101612109B1 (en) | System and method for providing visual ars services | |
KR20230116940A (en) | Transmission method, transmission device and electronic device | |
CN102932533B (en) | Method and device for third party application program to call contacts | |
CN106168974B (en) | Method and system for processing multi-system screenshot file | |
CN102681780A (en) | Intelligent Linux device and input method switching method for same | |
CN107977246A (en) | The method and apparatus handled the notice of application program | |
TW201624252A (en) | Information integrating system and method | |
JP2015220533A (en) | On-vehicle information system, on-vehicle device, information terminal, application execution method | |
CN101005487B (en) | Device and method for display module message in instant communication | |
CN104333644A (en) | Mobile communication terminal and method thereof for updating state of message | |
AU2016315330B2 (en) | Notification control device, notification control method, and notification control program | |
KR20130086851A (en) | Instant messaging service method for providing announcement message | |
CN105812543A (en) | Information integration system and method | |
CN107515523B (en) | A kind of pointer can evade the smartwatch of reading content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information |
Inventor after: Zhao Guohua Inventor after: Mi Kun Inventor after: Fu Yang Inventor before: Zhao Guohua |
|
CB03 | Change of inventor or designer information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |