CN103294547A - Input method calling method, input method calling device and terminal - Google Patents

Input method calling method, input method calling device and terminal Download PDF

Info

Publication number
CN103294547A
CN103294547A CN2013101564878A CN201310156487A CN103294547A CN 103294547 A CN103294547 A CN 103294547A CN 2013101564878 A CN2013101564878 A CN 2013101564878A CN 201310156487 A CN201310156487 A CN 201310156487A CN 103294547 A CN103294547 A CN 103294547A
Authority
CN
China
Prior art keywords
language
category
input method
target web
source code
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
CN2013101564878A
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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN2013101564878A priority Critical patent/CN103294547A/en
Publication of CN103294547A publication Critical patent/CN103294547A/en
Priority to PCT/CN2014/076330 priority patent/WO2014177033A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Abstract

The invention discloses an input method calling method, an input method calling device and a terminal, and belongs to the technical field of information input. The input method calling method includes the steps as follows: acquiring webpage source codes of a target webpage; determining the language type of the target webpage according to the webpage source codes; and sending the determined language type to an operation system, so as to enable the operation system to call an input method corresponding to the language type. The problems that when an explorer receives an input signal from a user, the operation calls the input method which is used by the user last time or is a default of the operation system, so that manual switching is required and user experience is poor are solved; and moreover, as the explorer can send the determined language type of the target webpage to the operation system and the operation system is enabled to call the input method matched with the language type, the use by the user is facilitated and the use experience of the user is improved.

Description

Input method call method, calling device and terminal
Technical field
The present invention relates to the information input technology field, particularly a kind of input method call method, calling device and terminal.
Background technology
Browser is one of application program the most frequently used in the terminal such as smart mobile phone, desktop computer, panel computer or E-book reader.The user can be in the input frame of each webpage that browser provides input information realize man-machine interaction with terminal.
In the process of user's input information, input method can be called as a kind of input tool.Yet because input method both can have been supported a kind of category of language input, also can support such as multilingual kind inputs such as Chinese, English, Japanese or Koreans, when page input information that the user need provide at browser, operating system can be called input method corresponding with arbitrary category of language in the above-mentioned category of language.Existing a kind of input method call method, comprise: when browser receives user's input signal, browser sends trigger pip to operating system, makes operating system pass through the input method of the preceding nonrecoverable input method of input method interface interchange user or operating system acquiescence.
In realizing process of the present invention, the inventor finds prior art, and there are the following problems at least:
Because when the user imports information in input frame, may in input frame, import Chinese, English, Japanese, Korean etc. according to different input demands, and the input method that operating system is called at every turn all is the input method of nonrecoverable input method or operating system acquiescence before the user, the input method that need use with the active user may and not match, so this switches to the input method that current needs use with regard to the input method that causes user's needs manually operating system to be provided, the sense of user's experience is relatively poor.
Summary of the invention
Do not match in order to solve input method and the current input method that needs to use of user that operating system provides in the prior art, the user needs the problem of manual switchover, experience sense difference, and the embodiment of the invention provides a kind of input method call method, calling device and terminal.Described technical scheme is as follows:
First aspect provides a kind of input method call method, and described method comprises:
Obtain the webpage source code of target web;
Determine the category of language of described target web according to described webpage source code;
The described category of language of determining is sent to operating system, so that described operating system is called the input method corresponding with described category of language.
In first kind of first aspect possible implementation, describedly determine to comprise the category of language of described target web according to described webpage source code:
Detect the character code mode in the described webpage source code;
Determine the category of language of described target web according to detected described character code mode.
In second kind of first aspect possible implementation, describedly determine to comprise the category of language of described target web according to described webpage source code:
Detect the language keyword in the described webpage source code, described language keyword comprises the field of the category of language that is used for the described target web of sign in the described webpage source code;
Determine the category of language of described target web according to detected described language keyword.
In the third possible implementation of first aspect, describedly determine to comprise the category of language of described target web according to described webpage source code:
The total number of character of obtaining every kind of category of language in the described target web according to described webpage source code;
The maximum category of language of the total number of described character is defined as the category of language of described target web.
Second aspect provides a kind of input method calling device, and described device comprises:
The information acquisition module is for the webpage source code that obtains target web;
The language determination module is used for determining according to the described webpage source code that described information acquisition module gets access to the category of language of described target web;
The input method calling module is used for the described category of language that described language determination module is determined is sent to operating system, so that described operating system is called the input method corresponding with described category of language.
In first kind of second aspect possible implementation, described language determination module comprises:
First detecting unit, the character code mode in the described webpage source code that obtains for detection of described information acquisition module;
First determining unit is for the category of language of determining described target web according to the detected described character code mode of described first detecting unit.
In second kind of second aspect possible implementation, described language determination module comprises:
Second detecting unit, the language keyword in the described webpage source code that obtains for detection of described information acquisition module, described language keyword comprise the field of the category of language that is used for the described target web of sign in the described webpage source code;
Second determining unit is for the category of language of determining described target web according to the detected described language keyword of described second detecting unit.
In the third possible implementation of second aspect, described language determination module comprises:
The number acquiring unit is used for obtaining according to the described webpage source code that described information acquisition module obtains the total number of character of every kind of category of language of described target web;
The 3rd determining unit is used for the maximum category of language of the total number of described character that described number acquiring unit obtains is defined as the category of language of described target web.
The third aspect provides a kind of terminal, and described terminal comprises above-mentioned input method calling device.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
By determining the category of language of target web according to the webpage source code of target web, thereby call the input method corresponding with category of language according to the category of language of determining; Solved after browser receives user's input signal, the input method that operating system is called is the input method of the preceding nonrecoverable input method of user or operating system acquiescence, thereby causes the user to need the problem of manual switchover, experience sense difference; Having reached browser can be sent to operating system with the category of language of definite target web, makes operating system call the input method that is complementary with category of language, thus effect convenient for users, that improved user's experience.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram of the input method call method that provides of the embodiment of the invention one;
Fig. 2 is the method flow diagram of the input method call method that provides of the embodiment of the invention two;
Fig. 3 is the method flow diagram of the input method call method that provides of the embodiment of the invention three;
Fig. 4 is the method flow diagram of the input method call method that provides of the embodiment of the invention four;
Fig. 5 is the block diagram of the input method calling device that provides of the embodiment of the invention five;
Fig. 6 is the block diagram of the input method calling device that provides of the embodiment of the invention six;
Fig. 7 is the block diagram of the input method calling device that provides of the embodiment of the invention seven;
Fig. 8 is the block diagram of the input method calling device that provides of the embodiment of the invention eight.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing, and obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtain under the creative work prerequisite.
Embodiment one
Please refer to Fig. 1, it shows the method flow diagram of the input method call method that the embodiment of the invention one provides, and this method comprises:
Step 101 is obtained the webpage source code of target web;
Step 102 is determined the category of language of target web according to the webpage source code;
Step 103 is sent to operating system with the category of language of determining, so that operating system is called the input method corresponding with category of language.
In sum, the input method call method that present embodiment provides by determining the category of language of target web according to the webpage source code of target web, thereby calls the input method corresponding with category of language according to the category of language that is determined to; Solved after browser receives user's input signal, the input method that operating system is called is the input method of the preceding nonrecoverable input method of user or operating system acquiescence, thereby causes the user to need the problem of manual switchover, experience sense difference; Having reached browser can be sent to operating system with the category of language of definite target web, makes operating system call the input method that is complementary with category of language, thus effect convenient for users, that improved user's experience.
Because it is multiple that above-mentioned 102 implementation has, and respectively various implementations is described in detail according to different embodiment below.
Embodiment two
Please refer to Fig. 2, it shows the method flow diagram of the input method call method that the embodiment of the invention two provides, this method can be applied in the terminal browser such as smart mobile phone, desktop computer, panel computer or E-book reader, and this method comprises:
Step 201 is obtained the webpage source code of target web;
During the browser browsing page of user on using terminal, browser can obtain the webpage source code of target web according to the web page address of target web.
Step 202 detects the character code mode in the webpage source code;
Owing to can in the webpage source code, come the category of language of objective definition webpage by the method for definition character coded system, so after browser got access to the webpage source code of target web, browser can detect the character code mode in the webpage source code.Wherein, the character code mode can comprise any in the following mode: Chinese character code GBK, Chinese character code GB2312, Chinese-traditional coding Big5, Japanese coding EUC-JP, Korean coding EUC-KR and universal coding UTF-8.
Such as, the web page address of target web is www.xyz.com, wherein one section webpage source code of this target web that browser gets access to is:
<meta?http-equiv="Content-Type"content="text/html;charset=gbk"/>
Then " charset=GBK " from this webpage source code can know, this target web adopts the simplified Chinese character coded system.
Step 203 is determined the category of language of target web according to detected character code mode;
Browser can be determined the category of language of target web according to detected character code mode after detection obtains the character code mode of target web.Such as, the coded system that browser obtains target web " www.xyz.com " is the simplified Chinese character coding, then browser can determine that the category of language of this target web is Chinese.Similarly, be " charset=EUC-JP " if browser detects the coded system of target web, then browser can determine that the category of language of this target web is Japanese, repeats no more at this present embodiment.
Step 204 is sent to operating system with the category of language of determining, so that operating system is called the input method corresponding with category of language.
Because in a webpage, the user needs the information imported in input frame category of language greatly part all the category of language with webpage is identical, the category of language that also is the input method that need use of user is identical with the category of language of webpage mostly, so after browser detects the category of language of target web, browser can be sent to operating system by the input method interface with the category of language of determining, so that operating system is called the input method corresponding with category of language.
Specifically, browser can be sign of every kind of category of language agreement with operating system in advance, after browser detects the category of language of target web, this category of language corresponding identification is sent to operating system by the input method interface, thereby the input method of after operating system receives sign, calling this sign correspondence such as, browser and operating system agreement Chinese, English, the sign of Japanese and Korean is respectively ' 1,2,3,4 ', when then the category of language that detects target web at browser is for Chinese, browser can be sent to operating system by the input method interface with Chinese corresponding identification ' 1 ', thereby receives the Chinese character coding input method that sign ' 1 ' is called sign ' 1 ' correspondence afterwards in operating system.
What need supplementary notes a bit is that browser can also be sent to operating system by a newly-increased input method interface with category of language, and agreement operating system is preferentially called the input method corresponding with the category of language that receives by newly-increased input method interface.
Such as, the input method interface of operating system acquiescence is that A, newly-increased input method interface are B, then browser is after the sign with detected category of language is sent to operating system by interface B, operating system can be called the corresponding input method of sign, yet because after the webpage that browser provides receives input signal, operating system also can be called input method by default interface A, preferentially calls input method by interface B so can arrange operating system this moment.
Need supplementary notes on the other hand, it is example that present embodiment calls the input method corresponding with category of language when just receiving the category of language that browser sends with operating system, when specific implementation, can also call the input method corresponding with category of language after browser receives user's input signal, the moment that present embodiment calls the input method corresponding with category of language to operating system is not done restriction.
In sum, the input method call method that present embodiment provides by determining the category of language of target web according to the webpage source code of target web, thereby calls the input method corresponding with category of language according to the category of language that is determined to; Solved after browser receives user's input signal, the input method that operating system is called is the input method of the preceding nonrecoverable input method of user or operating system acquiescence, thereby causes the user to need the problem of manual switchover, experience sense difference; Having reached browser can be sent to operating system with the category of language of definite target web, makes operating system call the input method that is complementary with category of language, thus effect convenient for users, that improved user's experience.In the present embodiment simultaneously, by detecting the character code mode in the webpage source code, thereby determine the category of language of target web according to the character code mode, reduce the switching times that the user switches to the input method of calling needs the input method used when input information, reached the effect that is user-friendly to.
Embodiment three
Please refer to Fig. 3, it shows the method flow diagram of the input method call method that the embodiment of the invention three provides, this method can be applied in the terminal browser such as smart mobile phone, desktop computer, panel computer or E-book reader, and this method comprises:
Step 301 is obtained the webpage source code of target web;
During the browser browsing page of user on using terminal, browser can obtain the webpage source code of target web according to the web page address of target web.
Step 302 detects the language keyword in the webpage source code;
Owing to can in the webpage source code, identify the category of language of target web by language keyword, so after browser got access to the webpage source code of target web, browser can detect the language keyword in the webpage source code.Wherein, language keyword comprises the field of the category of language that is used for the sign target web in the webpage source code.
Such as, the web page address of target web is www.xxxx.com, wherein one section webpage source code of this target web that browser obtains is:
<META?http-equiv=”content-language”content="ja">
Then can know that according to above-mentioned webpage source code the field of sign target web category of language also is that language keyword is ' content=" ja " '.
What need supplementary notes is, the programming mode of the webpage source code that different web pages adopts can be the same or different, this that is to say, the mode of definitional language key word can be the same or different in different webpage source codes, present embodiment is example with above-mentioned implementation just, can also define by modes such as " g-strlanguageId=en " when specific implementation, present embodiment repeats no more this.
Step 303 is determined the category of language of target web according to detected language keyword;
Browser can be determined the category of language of target web according to detected language keyword after detecting the language keyword of target web.Such as, the language keyword that browser detects target web www.xxxx.com is " content=" ja " ", is Japanese so browser can be known the category of language of this target web.Similarly, when the detected language keyword of browser is " content=" cn " ", then the category of language of target web is Chinese; When the detected language keyword of browser is " content=" en " ", then the category of language of target web is English, does not repeat them here.
Step 304 is sent to operating system with the category of language of determining, so that operating system is called the input method corresponding with category of language.
Because in a webpage, the user needs the information imported in input frame category of language greatly part all the category of language with webpage is identical, the category of language that also is the input method that need use of user is identical with the category of language of webpage mostly, so after browser detects the category of language of target web, browser can be sent to operating system by the input method interface with the category of language of determining, so that operating system is called the input method corresponding with category of language.
What need supplementary notes a bit is that browser can also be sent to operating system by a newly-increased input method interface with category of language, and agreement operating system is preferentially called the input method corresponding with the category of language that receives by newly-increased input method interface.
Need supplementary notes on the other hand, it is example that present embodiment calls the input method corresponding with category of language when just receiving the category of language that browser sends with operating system, when specific implementation, can also call the input method corresponding with category of language after browser receives user's input signal, the moment that present embodiment calls the input method corresponding with category of language to operating system is not done restriction.
In sum, the input method call method that present embodiment provides by determining the category of language of target web according to the webpage source code of target web, thereby calls the input method corresponding with category of language according to the category of language that is determined to; Solved after browser receives user's input signal, the input method that operating system is called is the input method of the preceding nonrecoverable input method of user or operating system acquiescence, thereby causes the user to need the problem of manual switchover, experience sense difference; Having reached browser can be sent to operating system with the category of language of definite target web, makes operating system call the input method that is complementary with category of language, thus effect convenient for users, that improved user's experience.In the present embodiment simultaneously, by detecting the language keyword in the webpage source code, thereby determine the category of language of target web according to language keyword, reduce the switching times that the user switches to the input method of calling needs the input method used when input information, reached the effect that is user-friendly to.
Embodiment four
Please refer to Fig. 4, it shows the method flow diagram of the input method call method that the embodiment of the invention four provides, this method can be applied in the terminal browser such as smart mobile phone, desktop computer, panel computer or E-book reader, and this method comprises:
Step 401 is obtained the webpage source code of target web;
During the browser browsing page of user on using terminal, browser can obtain the webpage source code of target web according to the web page address of target web.
Step 402 is obtained the total number of the character of every kind of category of language in the target web according to described webpage source code;
After browser got access to the webpage source code of target web, browser can be resolved the webpage source code, thereby shows according to the content that arranges in the webpage source code.This that is to say that in the process that browser is resolved the webpage source code, browser can get access to all characters in the target web, so browser can obtain the total number of the character of every kind of category of language in the target web according to the webpage source code.Particularly, browser can calculate the total number of all Chinese character corresponding characters in the target web, the total number of all English character corresponding characters and the total number of all Japanese character corresponding characters etc. respectively.
Step 403 is defined as the maximum category of language of the total number of character the category of language of target web;
After browser calculated the character number of each category of language character string, browser can select category of language that wherein the total number of character is maximum as the category of language of target web.Such as, be in the target web of www.yyy.com at web page address, browser calculate the total number of all Chinese character corresponding characters for ' 102 ', the total number of all English character corresponding characters for ' 239 ' and the total number of all Japanese character corresponding characters individual for ' 15 ', so this moment, browser can be defined as English the category of language of target web.
Step 404 is sent to operating system with the category of language of determining, so that operating system is called the input method corresponding with category of language.
Because in a webpage, the user needs the information imported in input frame category of language greatly part all the category of language with webpage is identical, the category of language that also is the input method that need use of user is identical with the category of language of webpage mostly, so after browser detects the category of language of target web, browser can be sent to operating system by the input method interface with the category of language of determining, so that operating system is called the input method corresponding with category of language.
What need supplementary notes a bit is that browser can also be sent to operating system by a newly-increased input method interface with category of language, and agreement operating system is preferentially called the input method corresponding with the category of language that receives by newly-increased input method interface.
Need supplementary notes on the other hand, it is example that present embodiment calls the input method corresponding with category of language when just receiving the category of language that browser sends with operating system, when specific implementation, can also call the input method corresponding with category of language after browser receives user's input signal, the moment that present embodiment calls the input method corresponding with category of language to operating system is not done restriction.
In sum, the input method call method that present embodiment provides by determining the category of language of target web according to the webpage source code of target web, thereby calls the input method corresponding with category of language according to the category of language that is determined to; Solved after browser receives user's input signal, the input method that operating system is called is the input method of the preceding nonrecoverable input method of user or operating system acquiescence, thereby causes the user to need the problem of manual switchover, experience sense difference; Having reached browser can be sent to operating system with the category of language of definite target web, makes operating system call the input method that is complementary with category of language, thus effect convenient for users, that improved user's experience.In the present embodiment simultaneously, by calculate the character number of each category of language character string according to the webpage source code, and the category of language of the character string correspondence that character number is maximum is defined as the category of language of target web, thereby make the category of language of determining press close to the category of language of the actual displayed of target web more, reduce the switching times that the user switches to the input method of calling needs the input method used when input information, reached the effect that is user-friendly to.
What need supplementary notes is, present embodiment is with a kind of category of language detection method with each target web just, when specific implementation, can also use the combination of wherein two kinds or three kinds to determine the category of language of target web simultaneously, present embodiment is not done restriction to this.And, present embodiment also just determines that with three kinds of category of language wherein method is example, when specific implementation, can also determine the category of language of target web by additive method, and the category of language of determining is sent to operating system, make operating system call the input method corresponding with category of language, present embodiment is not done restriction to definite method of category of language.
Embodiment five
Please refer to Fig. 5, it shows the block diagram of the input method calling device that the embodiment of the invention five provides, and this input method calling device comprises: information acquisition module 510, language determination module 520 and input method calling module 530;
Information acquisition module 510 is for the webpage source code that obtains target web;
Language determination module 520 is used for determining according to the described webpage source code that described information acquisition module 510 gets access to the category of language of described target web;
Input method calling module 530 is used for the described category of language that described language determination module 520 is determined is sent to operating system, so that described operating system is called the input method corresponding with described category of language.
In sum, the input method calling device that present embodiment provides by determining the category of language of target web according to the webpage source code of target web, thereby calls the input method corresponding with category of language according to the category of language that is determined to; Solved after browser receives user's input signal, the input method that operating system is called is the input method of the preceding nonrecoverable input method of user or operating system acquiescence, thereby causes the user to need the problem of manual switchover, experience sense difference; Having reached browser can be sent to operating system with the category of language of definite target web, makes operating system call the input method that is complementary with category of language, thus effect convenient for users, that improved user's experience.
Embodiment six
Please refer to Fig. 6, it shows the block diagram of the input method calling device that the embodiment of the invention six provides, and this device comprises: information acquisition module 510, language determination module 520 and input method calling module 530;
Information acquisition module 510 is for the webpage source code that obtains target web;
Language determination module 520 is used for determining according to the described webpage source code that described information acquisition module 510 gets access to the category of language of described target web;
Input method calling module 530 is used for the described category of language that described language determination module 520 is determined is sent to operating system, so that described operating system is called the input method corresponding with described category of language.
Specifically, described language determination module 520 can comprise: first detecting unit 521 and first determining unit 522;
First detecting unit 521, the character code mode in the described webpage source code that obtains for detection of described information acquisition module 510;
First determining unit 522 is for the category of language of determining described target web according to described first detecting unit, 521 detected described character code modes.
In sum, the input method calling device that present embodiment provides by determining the category of language of target web according to the webpage source code of target web, thereby calls the input method corresponding with category of language according to the category of language that is determined to; Solved after browser receives user's input signal, the input method that operating system is called is the input method of the preceding nonrecoverable input method of user or operating system acquiescence, thereby causes the user to need the problem of manual switchover, experience sense difference; Having reached browser can be sent to operating system with the category of language of definite target web, makes operating system call the input method that is complementary with category of language, thus effect convenient for users, that improved user's experience.In the present embodiment simultaneously, by detecting the character code mode in the webpage source code, thereby determine the category of language of target web according to the character code mode, reduce the switching times that the user switches to the input method of calling needs the input method used when input information, reached the effect that is user-friendly to.
Embodiment seven
Please refer to Fig. 7, it shows the block diagram of the input method calling device that the embodiment of the invention seven provides, and this input method calling device comprises: information acquisition module 510, language determination module 520 and input method calling module 530;
Information acquisition module 510 is for the webpage source code that obtains target web;
Language determination module 520 is used for determining according to the described webpage source code that described information acquisition module 510 gets access to the category of language of described target web;
Input method calling module 530 is used for the described category of language that described language determination module 520 is determined is sent to operating system, so that described operating system is called the input method corresponding with described category of language.
Specifically, described language determination module 520 can comprise: second detecting unit 523 and second determining unit 524;
Second detecting unit 523, the language keyword in the described webpage source code that obtains for detection of described information acquisition module 510, described language keyword comprise the field of the category of language that is used for the described target web of sign in the described webpage source code;
Second determining unit 524 is for the category of language of determining described target web according to described second detecting unit, 523 detected described language keywords.
In sum, the input method calling device that present embodiment provides by determining the category of language of target web according to the webpage source code of target web, thereby calls the input method corresponding with category of language according to the category of language that is determined to; Solved after browser receives user's input signal, the input method that operating system is called is the input method of the preceding nonrecoverable input method of user or operating system acquiescence, thereby causes the user to need the problem of manual switchover, experience sense difference; Having reached browser can be sent to operating system with the category of language of definite target web, makes operating system call the input method that is complementary with category of language, thus effect convenient for users, that improved user's experience.In the present embodiment simultaneously, by detecting the language keyword in the webpage source code, thereby determine the category of language of target web according to language keyword, reduce the switching times that the user switches to the input method of calling needs the input method used when input information, reached the effect that is user-friendly to.
Embodiment eight
Please refer to Fig. 8, it shows the block diagram of the input method calling device that the embodiment of the invention eight provides, and this structure input method calling device can comprise: information acquisition module 510, language determination module 520 and input method calling module 530;
Information acquisition module 510 is for the webpage source code that obtains target web;
Language determination module 520 is used for determining according to the described webpage source code that described information acquisition module 510 gets access to the category of language of described target web;
Input method calling module 530 is used for the described category of language that described language determination module 520 is determined is sent to operating system, so that described operating system is called the input method corresponding with described category of language.
Specifically, described language determination module 520 can comprise: number acquiring unit 525 and the 3rd determining unit 526;
Number acquiring unit 525 is used for obtaining according to the described webpage source code that described information acquisition module 510 obtains the total number of character of every kind of category of language of described target web;
The 3rd determining unit 526 is used for the maximum category of language of the total number of described character that described number acquiring unit 525 obtains is defined as the category of language of described target web.
In sum, the input method calling device that present embodiment provides by determining the category of language of target web according to the webpage source code of target web, thereby calls the input method corresponding with category of language according to the category of language that is determined to; Solved after browser receives user's input signal, the input method that operating system is called is the input method of the preceding nonrecoverable input method of user or operating system acquiescence, thereby causes the user to need the problem of manual switchover, experience sense difference; Having reached browser can be sent to operating system with the category of language of definite target web, makes operating system call the input method that is complementary with category of language, thus effect convenient for users, that improved user's experience.In the present embodiment simultaneously, by calculate the character number of each category of language character string according to the webpage source code, and the category of language of the character string correspondence that character number is maximum is defined as the category of language of target web, thereby make the category of language of determining press close to the category of language of the actual displayed of target web more, reduce the switching times that the user switches to the input method of calling needs the input method used when input information, reached the effect that is user-friendly to.
Need to prove: the input method calling device that above-described embodiment provides is when calling input method, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the inner structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.In addition, the input method calling device that above-described embodiment provides and the method embodiment of input method call method belong to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. an input method call method is characterized in that, described method comprises:
Obtain the webpage source code of target web;
Determine the category of language of described target web according to described webpage source code;
The described category of language of determining is sent to operating system, so that described operating system is called the input method corresponding with described category of language.
2. input method call method according to claim 1 is characterized in that, describedly determines to comprise the category of language of described target web according to described webpage source code:
Detect the character code mode in the described webpage source code;
Determine the category of language of described target web according to detected described character code mode.
3. input method call method according to claim 1 is characterized in that, describedly determines to comprise the category of language of described target web according to described webpage source code:
Detect the language keyword in the described webpage source code, described language keyword comprises the field of the category of language that is used for the described target web of sign in the described webpage source code;
Determine the category of language of described target web according to detected described language keyword.
4. input method call method according to claim 1 is characterized in that, describedly determines to comprise the category of language of described target web according to described webpage source code:
The total number of character of obtaining every kind of category of language in the described target web according to described webpage source code;
The maximum category of language of the total number of described character is defined as the category of language of described target web.
5. an input method calling device is characterized in that, described device comprises:
The information acquisition module is for the webpage source code that obtains target web;
The language determination module is used for determining according to the described webpage source code that described information acquisition module gets access to the category of language of described target web;
The input method calling module is used for the described category of language that described language determination module is determined is sent to operating system, so that described operating system is called the input method corresponding with described category of language.
6. input method calling device according to claim 5 is characterized in that, described language determination module comprises:
First detecting unit, the character code mode in the described webpage source code that obtains for detection of described information acquisition module;
First determining unit is for the category of language of determining described target web according to the detected described character code mode of described first detecting unit.
7. input method calling device according to claim 5 is characterized in that, described language determination module comprises:
Second detecting unit, the language keyword in the described webpage source code that obtains for detection of described information acquisition module, described language keyword comprise the field of the category of language that is used for the described target web of sign in the described webpage source code;
Second determining unit is for the category of language of determining described target web according to the detected described language keyword of described second detecting unit.
8. input method calling device according to claim 5 is characterized in that, described language determination module comprises:
The number acquiring unit is used for obtaining according to the described webpage source code that described information acquisition module obtains the total number of character of every kind of category of language of described target web;
The 3rd determining unit is used for the maximum category of language of the total number of described character that described number acquiring unit obtains is defined as the category of language of described target web.
9. a terminal is characterized in that, described terminal comprises as the arbitrary described input method calling device of claim 5 to 8.
CN2013101564878A 2013-04-28 2013-04-28 Input method calling method, input method calling device and terminal Pending CN103294547A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2013101564878A CN103294547A (en) 2013-04-28 2013-04-28 Input method calling method, input method calling device and terminal
PCT/CN2014/076330 WO2014177033A1 (en) 2013-04-28 2014-04-28 Input method invoking method and invoking device, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101564878A CN103294547A (en) 2013-04-28 2013-04-28 Input method calling method, input method calling device and terminal

Publications (1)

Publication Number Publication Date
CN103294547A true CN103294547A (en) 2013-09-11

Family

ID=49095478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101564878A Pending CN103294547A (en) 2013-04-28 2013-04-28 Input method calling method, input method calling device and terminal

Country Status (2)

Country Link
CN (1) CN103294547A (en)
WO (1) WO2014177033A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014177033A1 (en) * 2013-04-28 2014-11-06 华为终端有限公司 Input method invoking method and invoking device, and terminal
CN107748737A (en) * 2017-11-17 2018-03-02 深圳市泉眼网络科技有限公司 A kind of word editing method and device
CN109947517A (en) * 2019-03-22 2019-06-28 青岛海信电器股份有限公司 A kind of method that the input method of UI is called in Web application in display equipment
CN110427238A (en) * 2019-07-30 2019-11-08 北京航天发射技术研究所 A kind of software is multilingual to show and inputs method for synchronously switching, system, terminal and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391622A (en) * 2014-12-11 2015-03-04 厦门美图移动科技有限公司 Input method rapid-setting method for input box

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004054854A (en) * 2002-07-24 2004-02-19 Fujitsu Ltd Method and system for input with pointing device
CN101706690A (en) * 2009-12-07 2010-05-12 北京搜狗科技发展有限公司 Adaptive input method and adaptive input system
CN102436454A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Input method switching method and system for browser
CN102577334A (en) * 2009-10-14 2012-07-11 高通股份有限公司 Method and apparatus for the automatic predictive selection of input methods for web browsers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294547A (en) * 2013-04-28 2013-09-11 华为终端有限公司 Input method calling method, input method calling device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004054854A (en) * 2002-07-24 2004-02-19 Fujitsu Ltd Method and system for input with pointing device
CN102577334A (en) * 2009-10-14 2012-07-11 高通股份有限公司 Method and apparatus for the automatic predictive selection of input methods for web browsers
CN101706690A (en) * 2009-12-07 2010-05-12 北京搜狗科技发展有限公司 Adaptive input method and adaptive input system
CN102436454A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Input method switching method and system for browser

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014177033A1 (en) * 2013-04-28 2014-11-06 华为终端有限公司 Input method invoking method and invoking device, and terminal
CN107748737A (en) * 2017-11-17 2018-03-02 深圳市泉眼网络科技有限公司 A kind of word editing method and device
CN109947517A (en) * 2019-03-22 2019-06-28 青岛海信电器股份有限公司 A kind of method that the input method of UI is called in Web application in display equipment
CN110427238A (en) * 2019-07-30 2019-11-08 北京航天发射技术研究所 A kind of software is multilingual to show and inputs method for synchronously switching, system, terminal and storage medium

Also Published As

Publication number Publication date
WO2014177033A1 (en) 2014-11-06

Similar Documents

Publication Publication Date Title
CN101963844B (en) Method and device for inputting form
CN103294547A (en) Input method calling method, input method calling device and terminal
CN102339199B (en) The method that input method switches and device
CN104679405A (en) Terminal
CN104951508A (en) Time information identification method and device
CN101676911A (en) Contact person searching system and method
CN104598507A (en) Information searching method and device
CN105224666A (en) A kind of input method, device and terminal
CN102831150B (en) Browser and local exchange method, system and the terminal applied
CN101727270A (en) Method for constructing soft keyboard, device for inputting character information and method thereof
CN105183291A (en) Method and system for extracting information in display interface
CN104657065A (en) Method for acquiring search result, terminal and server
CN105095289A (en) Webpage access method and device
CN103905445A (en) Table data display method and device
CN103336666A (en) HID one-touch internet access method and HID using same
CN102063193B (en) The method of display input results and device
CN105739717A (en) Information input method and device
CN107894906A (en) Picture loading method, device and the terminal device and server of the page
CN104618558A (en) Terminal
CN105843826A (en) Search method and device
CN103472991A (en) Method, equipment and system for adding contacts
CN103488451A (en) Information input method and device
CN103076946A (en) Terminal and input prompting method
US9958955B2 (en) Key function conversion method, key function conversion device and electronic equipment
CN102999484A (en) Information output method and device

Legal Events

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

Application publication date: 20130911