CN102681780A - Intelligent Linux device and input method switching method for same - Google Patents

Intelligent Linux device and input method switching method for same Download PDF

Info

Publication number
CN102681780A
CN102681780A CN2012101268297A CN201210126829A CN102681780A CN 102681780 A CN102681780 A CN 102681780A CN 2012101268297 A CN2012101268297 A CN 2012101268297A CN 201210126829 A CN201210126829 A CN 201210126829A CN 102681780 A CN102681780 A CN 102681780A
Authority
CN
China
Prior art keywords
input method
input
active user
shortcut
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.)
Pending
Application number
CN2012101268297A
Other languages
Chinese (zh)
Inventor
沈永康
于珊珊
许国昌
夏颖
胡秋立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Standard Software Co Ltd
Original Assignee
China Standard Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN2012101268297A priority Critical patent/CN102681780A/en
Publication of CN102681780A publication Critical patent/CN102681780A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an intelligent Linux device and an input method switching method for the same. The method includes firstly, capturing a focus switching event; secondly, detecting whether two different input units are switched or not based on the captured focus switching event; thirdly, acquiring a preset input method shortcut key corresponding to an input unit with a current user and a current focus when the two different input units are detected to be switched; and fourthly, generating an event representing input of the acquired shortcut key so as to enable a current input method to be switched to an input method corresponding to the acquired input method shortcut key. Therefore, user friendliness is increased, a system can be switched to a desired input method by the user automatically, and even the same input unit can be switched to different preset input methods according to different users.

Description

Linux intelligent apparatus and input method switching method thereof
Technical field
The invention belongs to the literal input field in the infotech, relate in particular to a kind of Linux under can be according to user's request Linux intelligent apparatus and the input method switching method thereof that literal imports that automatically switch.
Background technology
Along with the development of electronic information technology, intelligent terminal is used more and more wider.But intelligent terminal possibly be accustomed to using different input methods for different people when use input characters functional module, often need the use shortcut to switch to the input method of oneself being accustomed to use.For example: different people operates same editing machine, and the input method that different people is accustomed to using is different, just needs when so different people operates to switch input method, causes inconvenience.
Inventor of the present invention notices that the problems referred to above and the input method under the linux environment launched further investigation and proposed the present invention.
Summary of the invention
One of technical matters to be solved by this invention is that a kind of Linux intelligent apparatus input method switching method and Linux intelligent apparatus that automatically switches from the input method of user's expectation that be applicable to need be provided.
In order to solve the problems of the technologies described above, the invention provides a kind of input method switching method of Linux intelligent apparatus.This input method switching method comprises:
The focus capture handover event;
Focus handover event based on being caught detects the switching that whether has taken place between two different input blocks;
When detecting the switching that has taken place between two different input blocks, obtain preset to the active user and the corresponding input method shortcut of the input block current focus place;
The incident that the shortcut that obtains has been imported in the generation expression is so that current input method switches to and the said corresponding input method of input method shortcut of obtaining.
Input method switching method according to another aspect of the invention; When detecting the switching that has taken place between two different input blocks; Whether also detect the active user for getting into current focus place input block first; When detecting the active user is when getting into current focus place input block first; Provide first input method that the interface is set to the active user, said input method is provided with the relevant information of input method that the interface is used to be provided with and should automatically switch to when getting into current focus place input block the active user.
Input method switching method according to another aspect of the invention; According to the said relevant information of input method that should automatically switch to when getting into current focus place input block the active user, confirm and be kept at the shortcut information of the input method that should automatically switch to when the active user gets into current focus place input block.
Input method switching method according to another aspect of the invention; When detecting the switching that has taken place between two different input blocks; Whether also detect the active user for getting into current focus place application program first; Detecting the active user is when moving the pairing application program of current focus place input block first; Provide second input method that the interface is set to the active user, said second input method is provided with the relevant information of input method that should automatically switch to respectively when the interface is used to be provided with each input block of getting into current focus place application program the active user.
Input method switching method according to another aspect of the invention; According to the said relevant information of input method that should automatically switch to respectively during with each input block of getting into current focus place application program the active user, confirm and be kept at the shortcut information of each input method that should automatically switch to respectively when the active user gets into each input block of current focus place application program.
Input method switching method according to another aspect of the invention; If receive the set input method of user; Then detect the shortcut that whether exists this input method corresponding; If detect to not existing, then interface be set and for this input method corresponding shortcut be set to make things convenient for the active user through shortcut to active user's display input method manager.
According to the input method switching method of another aspect of the invention,, preset the pairing input method shortcut of each input block in this application program through the preset code that is used to be provided with the mapping relations of each input block and input method in the program code of application program.
According to the input method switching method of another aspect of the invention, produce the incident that the shortcut that obtains has been imported in expression through XTestFakeKeyEvent.
According to a further aspect of the invention, a kind of Linux intelligent apparatus is provided also, this Linux intelligent apparatus adopts the input method switching method of arbitrary aforementioned techniques scheme to carry out the input method switching.
Linux intelligent apparatus according to a further aspect of the invention; The menu or the button that comprise the corresponding input method shortcut of each input block that is used to be provided with each application program; When the user clicks this menu or button; Provide the 3rd input method that the interface is set to the user, said the 3rd input method is provided with the relevant information of input method that should automatically switch to respectively when the interface is used to be provided with each input block of getting into each application program the active user.
Compared with prior art; One or more embodiment of the present invention is preset to the active user and the corresponding input method shortcut of the input block current focus place through obtaining; Increased user friendly; The input method from user's expectation can automatically be switched in system, even, can automatically switch to preset different input methods to different users to same input block.
Though will combine certain exemplary enforcement and method of application to describe the present invention hereinafter, and it will be appreciated by those skilled in the art that to not being intended to the present invention is limited to these embodiment.Otherwise, be intended to cover all substitutes, correction and the equivalent that are included in defined spirit of the present invention of appending claims and the scope.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used to explain the present invention jointly with embodiments of the invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of the input method switching method of Linux intelligent apparatus according to an embodiment of the invention;
Fig. 2 is that SCIM input method of the prior art is provided with examples of interfaces.
Embodiment
Below will combine accompanying drawing and embodiment to specify embodiment of the present invention, how the application technology means solve technical matters to the present invention whereby, and the implementation procedure of reaching technique effect can make much of and implement according to this.Need to prove that only otherwise constitute conflict, each embodiment among the present invention and each characteristic among each embodiment can mutually combine, formed technical scheme is all within protection scope of the present invention.
In addition; Can in computer system, carry out in the step shown in the process flow diagram of accompanying drawing such as a set of computer-executable instructions, and, though logical order has been shown in process flow diagram; But in some cases, can carry out step shown or that describe with the order that is different from here.
Inventor of the present invention notices that in the Linux intelligent terminal, the X window system of Linux can provide basic framework for gui environment: the interactive program of accepting, move, reach management computer and mouse, keyboard.To these characteristics, the characteristic that the interface that the inventor makes full use of X11 to be provided realizes obtaining keyboard or mouse event has realized the flexible binding of input method preferably.Below introduce in detail step according to a specific embodiment of the input method switching method of Linux intelligent terminal of the present invention.
Step S110, the focus capture handover event;
More specifically, can come the focus capture handover event through tracking keyboard, mouse, touchscreen events.
Step S120 detects the switching that whether has taken place between two different input blocks based on the focus handover event of being caught.
Here, input block can be edit box, input field or editing machine etc.For example, when focus when an edit box or editing machine switch to another edit box and switch to another edit box, be judged as the switching that has taken place between two different input blocks.
Step S130 when detecting the switching that has taken place between two different input blocks, obtains preset to the active user and the corresponding input method shortcut of input block (also being called for short shortcut) the current focus place.
, can be provided with in advance to the active user and the corresponding input method shortcut of the input block current focus place for preset by user or service technician.
Preferably; When detecting the switching that has taken place between two different input blocks; Whether also detect the active user for getting into current focus place input block first; When detecting the active user is when getting into current focus place input block first; Provide first input method that the interface is set to the active user; This first input method is provided with the interface and is used to be provided with the relevant information of input method that system should automatically switch to when getting into current focus place input block the active user, and for example, the relevant information of this input method can be when the active user gets into current focus place input block, to hope input method that system automatically switches to, or hope the corresponding shortcut of input method institute that system automatically switches to etc.Like this; The relevant information of input method that the system when getting into current focus place input block the active user that can be provided with according to the user should automatically switch to is confirmed and the shortcut information of the input method that system should automatically switch to when being kept at the active user and getting into current focus place input block.Like this, the user can be provided with the input method that oneself is expected easily.For example, if this user is the financial staff, when he got into certain input block that will fail amount in Chinese character for the first time, system ejected the input method that system automatically switches to when asking the user to select to expect its this input block of entering next time.At this moment, this account personnel can select a kind of input method of just directly importing the word figure function by numeral that has, and can satisfy financial demand easily like this.
It is thus clear that; Preset through obtaining to the active user and the corresponding input method shortcut of the input block current focus place; The Linux intelligent apparatus can be according to about the information of this user through the shortcut (also claiming the input method shortcut) of the input method that system should automatically switch to when this user gets into this input block of this interface setting; Not only can switch corresponding input method according to the input block at current place; Also can therefore increase user friendly to same input block to the different different input methods of user preset.
In another kind of optimal way; When detecting the switching that has taken place between two different input blocks; Whether also detect the active user for getting into current focus place application program first; Detecting the active user is when moving the pairing application program of current focus place input block first; Provide second input method that the interface is set to the active user, the relevant information of input method that system should automatically switch to respectively when this second input method was provided with the interface and is used to be provided with each input block of getting into this application program the active user.The relevant information of input method that be provided with according to the user then and that system should automatically switch to respectively when getting into each input block of current focus place application program the active user is confirmed and the shortcut information of each input method that system should automatically switch to respectively when being kept at the active user and getting into each input block of current focus place application program.Like this, the user can be disposable easily be provided with input method for each (all) input block of this application program.For example, the user can disposablely be that a plurality of input blocks are specified identical input methods, also can select the input method that have nothing in common with each other for different input frames, has improved the user friendly of setting up procedure like this.
In addition; According to menu or the button that is exclusively used in the corresponding input method shortcut of each input block that each application program is set can be set in the Linux intelligent apparatus of the present invention; When the user clicks this menu or button; Provide the 3rd input method that the interface is set to the user, the 3rd input method is provided with the relevant information of input method that should automatically switch to respectively when the interface is used to be provided with each input block of getting into each application program the active user.
In addition, also, preset the pairing input method shortcut of each input block in each application program through can in each program code, presetting the code that is used to be provided with the mapping relations of each input frame and input method in it.
By the way, can be easily for the user provide the shortcut input interface, thus improve user friendly.
The user can import the pairing input method of each input block; After the Linux intelligent apparatus receives the input method of user's setting; Confirm the pairing shortcut of each input method based on input method; Write down this shortcut then, also can directly import the pairing input method shortcut of each input block and write down this shortcut.
More preferably; If the user is provided with interface or the second interface of input method setting/selected input method through first input method; In other words, through first input method input method that interface or second interface of input method are provided with is set, then detects the shortcut that whether exists this input method corresponding if receive the user; If do not exist, then interface is set and for this input method corresponding shortcut is set to make things convenient for the active user through shortcut to active user's display input method manager.Hereinafter can specify and how under the linux environment, utilize input method manager to come shortcut to be set for each input method.
Step S140, the incident that the shortcut that obtains has been imported in the generation expression is so that current input method switches to and the said corresponding input method of input method shortcut of obtaining.
Can produce the incident that the shortcut that obtains has been imported in expression through XTestFakeKeyEvent, like this, can be so that after the user switches to new input block, the Linux intelligent apparatus switches the desired input method of active user with input method rapidly.
Specify XTestFakeKeyEvent below.Its concrete statement as follows: XTestFakeKeyEvent (pDisplay, and XKeysymToKeycode (pDisplay, XK_Control_L), True, 0).XTestFakeKeyEvent realizes the keyboard button simulating incident.Use the XTEST expansion to send the interface of key-press event, first parameter of XKeysymToKeycode: pDisplay specifies the X server that connects, and XK_Control_L representes the character code of keyboard, like XK_Up, XK_Down etc.The 3rd parametric representation button is pressed or discharges, if press, then sends the KeyPress incident, otherwise sends KeyRelease.When using this function, will transmit according to the incident transfer mechanism of true keyboard.More information can with reference in the prior art about the related description of the X window system of Linux.
For the ease of understanding the present invention, below in detail as an example, explain that input method managers such as how under the linux environment, utilizing SCIM comes for each input method shortcut to be set with SCIM.
SCIM is a literal input platform more general on a linux operating system, supports Chinese/Korean/many kinds of language such as Japanese.Itself carries input methods such as phonetic, ISN, and simple routine interface is provided simultaneously, makes things convenient for the programmer easily it to be expanded.
The operation steps that starts the simplified form of Chinese Character input method platform among the SCIM is following.(1) click [system] | [preference] | [setting of SCIM input method] order, open [setting of SCIM input method] dialog box, as shown in Figure 2.The user can be to different input method setting shortcuts separately in the page shown in Figure 2.
The present invention also refers to carry out the Linux intelligent apparatus that input method is switched at the above-mentioned said method that used of protection.
Though the embodiment that the present invention disclosed as above, the embodiment that described content just adopts for the ease of understanding the present invention is not in order to limit the present invention.Technician under any the present invention in the technical field; Under the prerequisite of spirit that does not break away from the present invention and disclosed and scope; Can do any modification and variation what implement in form and on the details; But scope of patent protection of the present invention still must be as the criterion with the scope that appending claims was defined.

Claims (10)

1. the input method switching method of a Linux intelligent apparatus is characterized in that, comprising:
The focus capture handover event;
Focus handover event based on being caught detects the switching that whether has taken place between two different input blocks;
When detecting the switching that has taken place between two different input blocks, obtain preset to the active user and the corresponding input method shortcut of the input block current focus place;
The incident that the shortcut that obtains has been imported in the generation expression is so that current input method switches to and the said corresponding input method of input method shortcut of obtaining.
2. input method switching method according to claim 1 is characterized in that, when detecting the switching that has taken place between two different input blocks,
Whether also detect the active user for getting into current focus place input block first; When detecting the active user is when getting into current focus place input block first; Provide first input method that the interface is set to the active user, said input method is provided with the relevant information of input method that the interface is used to be provided with and should automatically switch to when getting into current focus place input block the active user.
3. input method switching method according to claim 2 is characterized in that,
According to the said relevant information of input method that should automatically switch to when getting into current focus place input block the active user, confirm and be kept at the shortcut information of the input method that should automatically switch to when the active user gets into current focus place input block.
4. input method switching method according to claim 1 is characterized in that, when detecting the switching that has taken place between two different input blocks,
Whether also detect the active user for getting into current focus place application program first; Detecting the active user is when moving the pairing application program of current focus place input block first; Provide second input method that the interface is set to the active user, said second input method is provided with the relevant information of input method that should automatically switch to respectively when the interface is used to be provided with each input block of getting into current focus place application program the active user.
5. input method switching method according to claim 4; It is characterized in that; According to the said relevant information of input method that should automatically switch to respectively during with each input block of getting into current focus place application program the active user, confirm and be kept at the shortcut information of each input method that should automatically switch to respectively when the active user gets into each input block of current focus place application program.
6. according to each described input method switching method in the claim 2 to 5, it is characterized in that,
If receive the set input method of user; Then detect the shortcut that whether exists this input method corresponding; If detect to not existing, then interface be set and for this input method corresponding shortcut be set to make things convenient for the active user through shortcut to active user's display input method manager.
7. input method switching method according to claim 1 is characterized in that,
Through the preset code that is used to be provided with the mapping relations of each input block and input method in the program code of application program, preset the pairing input method shortcut of each input block in this application program.
8. input method switching method according to claim 1 is characterized in that, produces the incident that the shortcut that obtains has been imported in expression through XTestFakeKeyEvent.
9. a Linux intelligent apparatus is characterized in that, has adopted in the claim 1 to 8 each described input method switching method to carry out input method and has switched.
10. Linux intelligent apparatus according to claim 9; The menu or the button that comprise the corresponding input method shortcut of each input block that is used to be provided with each application program; When the user clicks this menu or button; Provide the 3rd input method that the interface is set to the user, said the 3rd input method is provided with the relevant information of input method that should automatically switch to respectively when the interface is used to be provided with each input block of getting into each application program the active user.
CN2012101268297A 2012-04-26 2012-04-26 Intelligent Linux device and input method switching method for same Pending CN102681780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101268297A CN102681780A (en) 2012-04-26 2012-04-26 Intelligent Linux device and input method switching method for same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101268297A CN102681780A (en) 2012-04-26 2012-04-26 Intelligent Linux device and input method switching method for same

Publications (1)

Publication Number Publication Date
CN102681780A true CN102681780A (en) 2012-09-19

Family

ID=46813782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101268297A Pending CN102681780A (en) 2012-04-26 2012-04-26 Intelligent Linux device and input method switching method for same

Country Status (1)

Country Link
CN (1) CN102681780A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577363A (en) * 2012-08-08 2014-02-12 杨丽 Method for controlling input of external input device
CN103744575A (en) * 2013-10-08 2014-04-23 百度在线网络技术(北京)有限公司 Method and equipment for providing input auxiliary areas of input applications
CN105975339A (en) * 2016-05-26 2016-09-28 北京金山安全软件有限公司 Switching operation method and device
CN106886354A (en) * 2015-12-15 2017-06-23 上海嵩恒网络科技有限公司 A kind of touch-controlled electronic devices and its multi input integrated approach
CN107193556A (en) * 2017-05-11 2017-09-22 天津麒麟信息技术有限公司 Hierarchy type input method under a kind of linux
CN112041791A (en) * 2018-05-10 2020-12-04 华为技术有限公司 Method and terminal for displaying virtual keyboard of input method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706690A (en) * 2009-12-07 2010-05-12 北京搜狗科技发展有限公司 Adaptive input method and adaptive input system
CN101842243A (en) * 2007-09-06 2010-09-22 谷歌公司 Dynamic virtual input device configuration
CN101895631A (en) * 2010-07-09 2010-11-24 深圳市五巨科技有限公司 Method, device and system for intelligently switching input method by mobile terminal
CN101916158A (en) * 2010-07-30 2010-12-15 百度在线网络技术(北京)有限公司 Method and device for configuring input mode according to input box of user device
CN102043585A (en) * 2010-12-08 2011-05-04 北京佳讯飞鸿电气股份有限公司 Method for automatically switching multiple input methods on graphical interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101842243A (en) * 2007-09-06 2010-09-22 谷歌公司 Dynamic virtual input device configuration
CN101706690A (en) * 2009-12-07 2010-05-12 北京搜狗科技发展有限公司 Adaptive input method and adaptive input system
CN101895631A (en) * 2010-07-09 2010-11-24 深圳市五巨科技有限公司 Method, device and system for intelligently switching input method by mobile terminal
CN101916158A (en) * 2010-07-30 2010-12-15 百度在线网络技术(北京)有限公司 Method and device for configuring input mode according to input box of user device
CN102043585A (en) * 2010-12-08 2011-05-04 北京佳讯飞鸿电气股份有限公司 Method for automatically switching multiple input methods on graphical interface

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577363A (en) * 2012-08-08 2014-02-12 杨丽 Method for controlling input of external input device
CN103744575A (en) * 2013-10-08 2014-04-23 百度在线网络技术(北京)有限公司 Method and equipment for providing input auxiliary areas of input applications
CN106886354A (en) * 2015-12-15 2017-06-23 上海嵩恒网络科技有限公司 A kind of touch-controlled electronic devices and its multi input integrated approach
CN105975339A (en) * 2016-05-26 2016-09-28 北京金山安全软件有限公司 Switching operation method and device
CN107193556A (en) * 2017-05-11 2017-09-22 天津麒麟信息技术有限公司 Hierarchy type input method under a kind of linux
CN107193556B (en) * 2017-05-11 2020-07-31 麒麟软件有限公司 Linux lower-level input method
CN112041791A (en) * 2018-05-10 2020-12-04 华为技术有限公司 Method and terminal for displaying virtual keyboard of input method
CN112041791B (en) * 2018-05-10 2022-05-27 荣耀终端有限公司 Method and terminal for displaying virtual keyboard of input method
US11681432B2 (en) 2018-05-10 2023-06-20 Honor Device Co., Ltd. Method and terminal for displaying input method virtual keyboard

Similar Documents

Publication Publication Date Title
CN105867925B (en) Shortcut establishing method and electronic equipment
US10078376B2 (en) Multimodel text input by a keyboard/camera text input module replacing a conventional keyboard text input module on a mobile device
CN104049866B (en) The implementation method and device of a kind of mobile terminal and its split screen
CN104135684B (en) A kind of interface display method and device based on Firefox OS
CN102681780A (en) Intelligent Linux device and input method switching method for same
WO2018040943A1 (en) Display data control method, device, and system
CN102929425B (en) A kind of touch key control method and device
CN101834938A (en) Device and method for realizing horizontal/vertical screen switching of mobile terminal
CN101661375A (en) Touch control method, system and display terminal
CN108039173B (en) Voice information input method, mobile terminal, system and readable storage medium
CN103686289A (en) Intelligent television keyboard input control method and intelligent television
CN103596027A (en) Method and device for retrieving keyboards under different scenes of intelligent television
CN106843915A (en) A kind of firmware switching method and apparatus
KR20230002939A (en) Display method, device and electronic device of message detail page
CN103164214A (en) Calling method and system of browser on camera in mobile terminal
CN103634640A (en) Method and system for controlling voice input of smart television terminal by using mobile terminal equipment
US10628031B2 (en) Control instruction identification method and apparatus, and storage medium
US10498874B2 (en) Display apparatus having ability of voice control and method of instructing voice control timing
CN104239018A (en) Methods and systems for demonstrating and generating demonstration scripts
US8922491B2 (en) Method and apparatus enabling keystroke acceleration
CN101710277B (en) Script processing method, device of embedded browser
CN103399685A (en) Method, device and terminal for restoring language settings
CN102929530A (en) Touch screen operation processing method and system on basis of mobile terminal and mobile terminal
CN106020694A (en) Electronic device, selected area dynamic adjusting method and device
CN116088992A (en) Click control method and system based on image recognition and voice recognition

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120919