CN109933213A - Input method and device - Google Patents
Input method and device Download PDFInfo
- Publication number
- CN109933213A CN109933213A CN201711378032.5A CN201711378032A CN109933213A CN 109933213 A CN109933213 A CN 109933213A CN 201711378032 A CN201711378032 A CN 201711378032A CN 109933213 A CN109933213 A CN 109933213A
- Authority
- CN
- China
- Prior art keywords
- input state
- user
- input
- content
- target
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 75
- 230000009471 action Effects 0.000 claims abstract description 53
- 230000004044 response Effects 0.000 claims abstract description 45
- 238000013507 mapping Methods 0.000 claims description 11
- 238000012790 confirmation Methods 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 description 12
- 238000003860 storage Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 238000012217 deletion Methods 0.000 description 7
- 230000037430 deletion Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 230000006399 behavior Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000000712 assembly Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 2
- 230000037147 athletic performance Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 210000003127 knee Anatomy 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 239000012092 media component Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a kind of input method and device, method therein is specifically included: in response to the trigger action of user, shielding content in delete target;First input state is switched to the second input state;Under second input state, obtains candidate item corresponding with content is shielded in the target and show.The embodiment of the present invention can save the operating cost of user, and then the input efficiency of user can be improved.
Description
Technical field
The present invention relates to input method technique field more particularly to a kind of input method and devices.
Background technique
With the continuous development of input method technology, input method application program can provide a user a variety of input states, example
If input method application program can provide a user input in Chinese state and English input state, so that user can be different
The corresponding character of different language, such as Chinese character and English character are inputted under input state.
In practical applications, user may directly input in the case where ignoring current input state.For example,
In the case where input method application program is in English input state, there may be the input demands of Chinese by user, but may be
Input string is on screen the input string for afterwards, just finding to shield and non-required Chinese;In such cases, user needs to delete on
English input state is switched to input in Chinese state, and re-enters identical input string again by the input string of screen, to realize
The input of required Chinese.Above-mentioned " deletion-switches-re-enters " needs to expend more operating cost, so that input
Efficiency is lower.
Summary of the invention
The embodiment of the present invention provides a kind of input method and device, can save the operating cost of user, and then can mention
The input efficiency of high user.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of input methods, comprising:
In response to the trigger action of user, shield content in delete target;
First input state is switched to the second input state;
Under second input state, obtains candidate item corresponding with content is shielded in the target and show.
Optionally, the method also includes:
Whether the upper screen content of detection user matches with the entry in dictionary corresponding to the first input state;
When the upper screen content and the entry mismatch, using the upper screen content as shielding content in target.
Optionally, described when the upper screen content and entry mismatch, using the upper screen content as in target
Shield content, comprising:
When the upper screen content and the entry mismatch, prompt information is exported;Prompt information prompt user is
It is no that operation is switched over to the upper screen content;
In response to user for the confirmation operation of the prompt information, using the upper screen content as shielding content in target.
Optionally, shield content on the trigger action in response to user, delete target, comprising:
In response to the trigger action of user, the last upper screen content is obtained;
Using the upper screen content of described the last time as shielding content in target;
It deletes and shields content in the target.
Optionally, the trigger action includes: trigger action of the user to switching key, alternatively, user is in upper screen
The delete operation of appearance.
Optionally, the method also includes:
Key set interface is shown to user;The key set interface triggers the switching key for being arranged;
In response to user to the selection operation of key, key corresponding with the selection operation is pressed as the switching
Key.
Optionally, second input state is determined as follows:
According to the mapping relations between the first input state and the second input state, determine that first input state is corresponding
The second input state;And/or
Matching degree in dictionary corresponding to upper screen content and input state according to user between entry or input string, really
Fixed corresponding second input state of first input state.
Optionally, first input state is English input state, and second input state is input in Chinese state.
Another aspect, the embodiment of the invention discloses a kind of input units, comprising:
Removing module shields content in delete target for the trigger action in response to user;
Switching module, for the first input state to be switched to the second input state;
Module is obtained, under second input state, obtaining candidate item corresponding with content is shielded in the target
And show.
Optionally, described device further include:
Detection module, for detect user upper screen content whether with the entry phase in dictionary corresponding to the first input state
Matching;
Content determination module, for when the upper screen content and the entry mismatch, using the upper screen content as
Shield content in target.
Optionally, the content determination module includes:
Output sub-module, for exporting prompt information when the upper screen content and entry mismatch;The prompt
Whether information alert user switches over operation to the upper screen content;
It determines submodule, for the confirmation operation in response to user for the prompt information, the upper screen content is made
To shield content in target.
Optionally, the removing module includes:
Acquisition submodule obtains the last upper screen content for the trigger action in response to user;
Submodule is determined, for using the upper screen content of described the last time as shielding content in target;
Submodule is deleted, shields content in the target for deleting.
Optionally, the trigger action includes: trigger action of the user to switching key, alternatively, user is in upper screen
The delete operation of appearance.
Optionally, described device further include:
Display module, for showing key set interface to user;The key set interface is for being arranged described in triggering
Switching key;
Key determining module corresponding with the selection operation will be pressed for the selection operation in response to user to key
Key is as the switching key.
Optionally, described device further include:
First state determining module, for the mapping relations between the first input state of foundation and the second input state, really
Determine corresponding second input state of first input state;And/or
Second state determining module, for according to user upper screen content and input state corresponding in dictionary entry or
Matching degree between input string determines corresponding second input state of the first input state.
Optionally, first input state is English input state, and second input state is input in Chinese state.
In another aspect, including memory and one or one the embodiment of the invention discloses a kind of input unit
Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with
It includes the instruction for performing the following operation that upper processor, which executes the one or more programs:
In response to the trigger action of user, shield content in delete target;
First input state is switched to the second input state;
Under second input state, obtains candidate item corresponding with content is shielded in the target and show.
In another aspect, be stored thereon with instruction the embodiment of the invention discloses a kind of machine readable media, when by one or
When multiple processors execute, so that device executes the input method as described in one or more in first aspect.
The embodiment of the present invention includes following advantages:
The input method and device of the embodiment of the present invention are deleted and are shielded in determining target in response to the trigger action of user
Input state is switched to the second input state from the first input state by content, then will shield content in the target of deletion as the
The character string that user inputs under two input states obtains candidate item corresponding with content is shielded in the target;The embodiment of the present invention can
Deleted according to the trigger action of user in the case where user's input is with content is shielded in the unmatched target of the first input state
Shield in the target and re-entered under content, switching input state and input state after handover, since user can be saved
It deletes to shield in the target and the troublesome operations such as re-enters under content, switching input state and input state after handover, therefore
The operating cost of user can be saved, and then the input efficiency of user can be improved.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of signal of input interface of existing scheme;
Fig. 2 is a kind of step flow chart of input method embodiment of the embodiment of the present invention;
Fig. 3 is the step flow chart of another input method embodiment of the embodiment of the present invention;
Fig. 4 is the step flow chart of another input method embodiment of the embodiment of the present invention;
Fig. 5 is a kind of structural block diagram of input unit embodiment of the embodiment of the present invention;
Fig. 6 is a kind of block diagram of input unit 600 of the embodiment of the present invention;And
Fig. 7 is the structural schematic diagram of server in some embodiments of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
In existing scheme, if user under the first input state, upper screen in the unmatched upper screen of the first input state
Hold, then needs to delete screen content on this manually, input method procedure is switched into the second input state, and in the second input state
Under again input on shield content, to obtain corresponding candidate item.
For example, as shown in Figure 1, user under English input state, has input and the unmatched upper screen of English input state
Content " tianqihao ", then need to delete screen content " tianqihao " on this, and it is defeated that English input state switched to Chinese
Enter state, finally input " tianqihao " again, to obtain corresponding Chinese candidate item.
The embodiment of the invention provides a kind of input scheme, the program can be in response to the trigger action of user, in deletion
Shield content, input state is switched to the second input state from the first input state, then using the upper screen content of deletion as second
The character string that user inputs under input state obtains candidate item corresponding with screen content on this;The embodiment of the present invention can with
In the case where family input and the unmatched upper screen content of the first input state, deleted on this in screen according to the trigger action of user
Hold, re-entered under switching input state and input state after handover, is deleted on this in screen since user can be saved
The troublesome operations such as hold, re-enter under switching input state and input state after handover, therefore the behaviour of user can be saved
Make cost, and then the input efficiency of user can be improved.
The embodiment of the present invention can be applied to the input method procedure of the various input modes such as keyboard, voice, hand-written, i.e. user can
To carry out text input by coded string (namely input string in the embodiment of the present invention).In input method field, for example
Such as the input method procedure of Chinese, Japanese, Korean or other Languages, usually the input string that user inputs can be converted into phase
Answer the candidate item of language.It is mainly illustrated by taking Chinese as an example below, other Languages is cross-referenced.It is appreciated that described
Chinese character coding input method can include but is not limited to spelling, simplicity, stroke, five etc., and the embodiment of the present invention is corresponding for certain language
Specific input method procedure it is without restriction.
Wherein, input method procedure may operate in terminal, and above-mentioned terminal specifically includes but unlimited: smart phone, plate
Computer, E-book reader, MP3 (dynamic image expert's compression standard audio level 3, Moving Picture Experts
Group Audio Layer III) player, MP4 (dynamic image expert's compression standard audio level 4, Moving Picture
Experts Group Audio Layer IV) player, pocket computer on knee, vehicle-mounted computer, desktop computer, machine top
Box, intelligent TV set, wearable device etc..
In practical applications, for keyboard symbol input method mode, user can pass through physical keyboard or dummy keyboard
Deng the above-mentioned input string of input.For example, dummy keyboard can be arranged in input interface for the terminal with touch screen, with
Used the input that input string is carried out by triggering the virtual key that above-mentioned dummy keyboard includes.Optionally, above-mentioned dummy keyboard
Example may include: 9 key boards and 26 key boards etc..Also, it is to be understood that in addition to being provided with letter in above-mentioned input interface
Except corresponding virtual key, be also provided with symbol keys, digital keys, for example Sino-British switching key function button,
Alternatively, being also provided with toolbar key etc., it will be understood that the embodiment of the present invention is specifically pressed for what input interface was included
Key is without restriction.
According to some embodiments, above-mentioned input string be can include but is not limited to: user is pressed by one that key is inputted
The combination of keysym or multiple key symbols.The key symbols can specifically include: phonetic, stroke, assumed name etc..
In the embodiment of the present invention, candidate item can be used for indicating one or more to be easily selected by a user corresponding with input string
A character.Candidate item can be the character of the language such as Chinese character, English character, Japanese character, and candidate entry may be face
The symbol combination of the forms such as text, picture.Wherein, the face text includes but is not limited to lines, symbol, figure composed by text
It draws, for example, the example of the face text may include: ": P ", " :-o ", ": -) " etc..
In practical applications, it can be searched in the dictionary corresponding to current input state according to above-mentioned input string,
To obtain corresponding candidate item.For example, above-mentioned dictionary may include: system dictionary, user thesaurus, cell dictionary, cloud dictionary
Deng the embodiment of the present invention is without restriction for the specific acquisition modes of candidate item.
Embodiment of the method
Referring to Fig. 2, a kind of step flow chart of input method embodiment of the invention is shown, can specifically include:
Step 201, the trigger action in response to user shield content in delete target.
The embodiment of the present invention can when the upper screen content of user meets preset condition, as in target shield content into
Row is deleted.
For example, above-mentioned preset condition may include: in the upper screen content dictionary corresponding with the first input state of user
Entry mismatches, wherein the first input state can be the corresponding input state of upper screen content namely input method procedure of user
The input state being presently in.Specifically, when user edits input text information, client can be to the content of user's input
It is detected, if the entry in the upper screen content of user and dictionary mismatches, that is to say the upper screen content of user and be not present
In dictionary, then illustrate that screen content is not entry corresponding to current input state on this, it can be by the upper screen content of user
As shielding content in target.It, can be in response to the trigger action of user, in the target when detecting the trigger action of user
Screen content is deleted, to obtain corresponding candidate item according to content is shielded in the target in the next steps.
Wherein, which may include: trigger action of the user to switching key, alternatively, user is in upper screen
The delete operation of appearance, the switching key can be accustomed to being configured depending on the user's operation.For example, if in triggering delete target
The switching key for shielding content is " shift+alt ", then when detecting user to the triggering of key " shift " and key " alt " behaviour
When making, then it can be deleted content is shielded in the target determined.
In a kind of application example of the invention, it is assumed that the first input state is English input state, and user is defeated in English
Entering and has above shielded " tianqihao " under state, client can match content dictionary corresponding with English input state,
And determine in dictionary and entry " tianqihao " is not present, then it can work as detection using screen content on this as content is shielded in target
To user trigger action when, then can delete in the target and shield content.
First input state is switched to the second input state by step 202.
Optionally, which can be English input state, which can be input in Chinese
State.Certainly, which can be input in Chinese state, which can be English input state.
Certainly, above-mentioned Chinese input state and English input state are intended only as example, in fact, first input state or the
Two input states can also be for Japanese input state, Korean input state etc., that is, first input state or second defeated
Entering state can be the corresponding input state of any language, and the embodiment of the present invention is without restriction for specific input state.
It in practical applications, can be using current input state as the first input state, further, the embodiment of the present invention
The following method of determination of second input state can be provided:
Mapping relations between method of determination 1, the first input state of foundation and the second input state, determine that described first is defeated
Enter corresponding second input state of state;And/or
In dictionary corresponding to method of determination 2, the upper screen content according to user and input state between entry or input string
Matching degree, determine corresponding second input state of the first input state.
In method of determination 1, the mapping relations between the first input state and the second input state can be set by the user, or
Person can determine according to the historical behavior data of user.According to a kind of embodiment, the historical behavior data can reflect user for
The use habit of input state, it is assumed that user is between input state A and input state B and in input state A and input shape
Switching was carried out between state C, then it can be by input state A and input state B and addition input state A and input state C extremely
Mapping relations between first input state and the second input state.According to another embodiment, which can be with
Reflect user for the use habit of language, it is possible thereby to determine that the corresponding mother tongue of user, first foreign language, Second Foreign Language etc. use
Language is established between the first input state and the second input state it is possible thereby to be directed to the corresponding input state of different language
Mapping relations.For example, the language of user A includes mother tongue Chinese, first foreign language English and Second Foreign Language Japanese, then can establish
Reflecting between the mapping relations and input in Chinese state and Japanese input state between literary input state and English input state
Penetrate relationship etc..
It, can be according to upper screen content and the entry in dictionary corresponding to each input state of user or defeated in method of determination 2
Enter the matching degree between string, determine corresponding second input state of the first input state, for example, can be more than matching by matching degree
The input state for spending threshold value, as corresponding second input state of the first input state;Alternatively, can be more than first by matching degree
The input state of the corresponding matching degree of input state, as corresponding second input state of the first input state etc..
In practical applications, if input method client includes a variety of input states such as China and British, Japan and Korea S., when user exists
When inputting input string under English input state, if detecting in the input string of user's input dictionary corresponding with English input state
Entry mismatch, then the input string can be matched with input string corresponding to other input states, determine it is defeated with this
Enter the second input state that string matches, so that the first current input state be switched to and matched second input of input string
State, and then corresponding candidate item is provided.
After to screen content is deleted in target, it is defeated that the first current input state can be switched to second by client
Enter state, so as in the next steps, can obtain, show according to screen content in target and upper screen under the second input state
Corresponding candidate item.
For example, the first input state is English input state, the second input state is input in Chinese state, then client exists
Determined in step 201 and delete in target shield content after, English input state can be switched to input in Chinese state.
Step 203, under the second input state, obtain and simultaneously show with the corresponding candidate item of screen content in target.
It is corresponding to shield content after the first input state is switched to the second input state by client, in available target
Input string, and in dictionary corresponding with the second input state, obtains candidate item corresponding with screen content in the target, and to
Family shows the candidate item obtained, so that candidate item of the user to acquisition selects and upper screen.
For example, the first input state is English input state, the second input state is input in Chinese state, and client is the
Under one input state, screen content is " jintiantianqihao " in determination and the target deleted, then is switching to the second input
After state, it is that " jintiantianqihao " is used as input string, and obtains corresponding with the input string that content can will be shielded in target
Candidate item " It's lovely day ", most rear line shows the candidate item, so that user selects to shield to the candidate item.
For another example, the first input state is input in Chinese state, and the second input state is English input state, and client is the
Under one input state, determines and screen content is " the sorrow of parting be " in the target deleted, then it, can after switching to the second input state
Using the corresponding input string " delicous " of acquisition " the sorrow of parting be " as input string, and obtain candidate item corresponding with the input string
" delicous ", most rear line show the candidate item, so that user selects to shield to the candidate item.
To sum up, the input method of the embodiment of the present invention is deleted in determining target in screen in response to the trigger action of user
Hold, input state is switched to the second input state from the first input state, then content will be shielded in the target of deletion as second
The character string that user inputs under input state obtains candidate item corresponding with content is shielded in the target;The embodiment of the present invention can be with
In the case where user's input is with content is shielded in the unmatched target of the first input state, being deleted according to the trigger action of user should
Shield in target and re-entered under content, switching input state and input state after handover, is deleted since user can be saved
The troublesome operations such as re-enter under content, switching input state and input state after handover except shielding in the target, therefore can
To save the operating cost of user, and then the input efficiency of user can be improved.
Referring to Fig. 3, a kind of step flow chart of input method embodiment of the invention is shown, can specifically include:
Whether step 301, the trigger action in response to user, the upper screen content for detecting user are right with the first input state institute
The entry in dictionary is answered to match.
Wherein, which matches with the first input state, that is, the entry stored in the dictionary be can with it is first defeated
Enter the corresponding entry of language of state.For example, the first input state is English input state, then the entry stored in the dictionary can
To include English word, english abbreviation etc..
It, can be by this upper screen content of user after carrying out upper screen to the content of user's input under the first input state
Be compared with the entry in dictionary corresponding to the first input state, determine in dictionary in multiple entries whether include in upper screen
Hold consistent or similar entry.If any one entry in dictionary and user this upper screen content is consistent or class
Seemingly, then it can determine that the upper screen content of user matches with the entry in dictionary, the content of upper screen user input can be continued.
But if when this upper screen content of each entry in dictionary and user is different from or is dissimilar,
Illustrate that the upper screen content of user and the entry in dictionary mismatch namely user this upper screen content may be that user has input
Shield content in the unmatched target of the first input state, causes the entry in this upper screen content and dictionary to mismatch, then
Step 302 can be executed.
Step 302, when upper screen content and entry mismatch, using upper screen content as shielding content in target.
Determine user this upper screen content and dictionary in entry mismatch when, then can using screen content on this as
Shield content in target, so that in the next steps corresponding operation can be executed to content is shielded in the target.
Further, client is when shielding content and entry in determination and mismatching, user may also be prompted whether to need by
For screen content as content is shielded in target, avoiding screen content on this is that user is desired, but client is but to screen on this on this
Content has carried out the corresponding operation for deleting conversion.
Optionally, when upper screen content and entry mismatch, prompt information can be exported, and this is mentioned in response to user
The confirmation operation for showing information, using screen content on this as shielding content in target.Wherein, which prompts the user whether to this
Upper screen content switches over operation.
When client detects that user determines using screen content on this as content is shielded in target, step 303 can be executed
To step 305.It, can not be using screen content on this as mesh but if client detects the cancellation operation of user's triggering
Screen content is put on, dictionary corresponding with current input state can also be added to using screen content on this as entry, it is possible thereby to
Realize the expansion of dictionary.
Step 303, the trigger action in response to user shield content in delete target.
First input state is switched to the second input state by step 304.
Step 305, under the second input state, obtain and simultaneously show with the corresponding candidate item of screen content in target.
To sum up, the input method of the embodiment of the present invention is deleted in determining target in screen in response to the trigger action of user
Hold, input state is switched to the second input state from the first input state, then content will be shielded in the target of deletion as second
The character string that user inputs under input state obtains candidate item corresponding with content is shielded in the target;The embodiment of the present invention can be with
In the case where user's input is with content is shielded in the unmatched target of the first input state, being deleted according to the trigger action of user should
Shield in target and re-entered under content, switching input state and input state after handover, is deleted since user can be saved
The troublesome operations such as re-enter under content, switching input state and input state after handover except shielding in the target, therefore can
To save the operating cost of user, and then the input efficiency of user can be improved.
Referring to Fig. 4, a kind of step flow chart of input method embodiment of the invention is shown, can specifically include:
Step 401, the trigger action in response to user obtain the last upper screen content.
According to a kind of embodiment, whether can be matched with the entry in dictionary with the upper screen content of active detecting user, in turn
The upper screen content determined the need for pair switches over.According to another embodiment, can will be used according to the trigger action of user
The upper screen content of family the last time is as shielding content in target.Therefore, client can first provide a user key set interface,
For the switching key of trigger action to be arranged;The trigger action is the selection operation according to user to switching key.
Optionally, client can show key set interface to user, and in response to user to the selection operation of key,
Will key corresponding with selection operation as switching key.Wherein, the key set interface is for being arranged switching key.
For example, terminal can will be used after showing key set interface to user according to user to the selection operation of key
At least one key that family selects deletes conversion input string as switching key, so that user can trigger according to the switching key
Function.
Step 402, using the last upper screen content as shielding content in target.
It is corresponding with step 302, it is unmatched with current input state due to being added in dictionary in step 302
Entry after then shielding the entry on detecting user, will not carry out conversion operation to the entry.But user is in this input
Shi Keneng needs convert the entry, then can select switching key, and the function of conversion input string is deleted in triggering,
So that it is determined that shielding content in target, to convert in the next steps to the entry.
Optionally, in response to the trigger action of user, the upper screen content of available the last time, and by the last time
Upper screen content as shielding content in target, to convert in the next steps to shielding content in the target.
It should be noted that upper screen content can be added to by client according to the confirmation operation of user in step 302
Dictionary can also delete the upper screen content in dictionary, can also record according to the handover operation in this step 402
The confirmation operation and handover operation of user's triggering, determine the need for actively switching screen content on this according to corresponding frequency, when
It so can also determine the need for actively switching screen content on this using other modes, it is not limited in the embodiment of the present invention.
Shield content in step 403, delete target.
First input state is switched to the second input state by step 404.
Step 405, under the second input state, obtain and simultaneously show with the corresponding candidate item of screen content in target.
To sum up, the input method of the embodiment of the present invention is deleted in determining target in screen in response to the trigger action of user
Hold, input state is switched to the second input state from the first input state, then content will be shielded in the target of deletion as second
The character string that user inputs under input state obtains candidate item corresponding with content is shielded in the target;The embodiment of the present invention can be with
In the case where user's input is with content is shielded in the unmatched target of the first input state, being deleted according to the trigger action of user should
Shield in target and re-entered under content, switching input state and input state after handover, is deleted since user can be saved
Except shielding the troublesome operation re-entered under content, switching input state and input state after handover in the target, therefore can
To save the operating cost of user, and then the input efficiency of user can be improved.
It should be noted that for simple description, therefore, it is stated as a series of movement is dynamic for embodiment of the method
It combines, but those skilled in the art should understand that, the embodiment of the present invention is not by the limit of described athletic performance sequence
System, because according to an embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, art technology
Personnel also should be aware of, and the embodiments described in the specification are all preferred embodiments, and related athletic performance is simultaneously different
It surely is necessary to the embodiment of the present invention.
Installation practice
Referring to Fig. 5, a kind of structural block diagram of input unit embodiment of the invention is shown, can specifically include:
Removing module 501 shields content in delete target for the trigger action in response to user;
Switching module 502, for the first input state to be switched to the second input state;
Module 503 is obtained, under second input state, obtaining candidate item corresponding with content is shielded in the target simultaneously
Show.
To sum up, the input unit of the embodiment of the present invention is deleted and shields content in determining target, and input state is defeated from first
Enter state and is switched to the second input state, then the word inputted content is shielded in the target of deletion as user under the second input state
Symbol string obtains candidate item corresponding with content is shielded in the target;The embodiment of the present invention can input and the first input shape in user
In the case where shielding content in the unmatched target of state, it is automatically deleted in the target and shields content, switching input state and switching
Re-entered under input state afterwards, due to can save user delete in the target shield content, switching input state and
The troublesome operation re-entered under input state after switching, therefore the operating cost of user can be saved, and then use can be improved
The input efficiency at family.
Optionally, which can also include:
Detection module, for detect user upper screen content whether with the entry phase in dictionary corresponding to the first input state
Matching;
Content determination module is used for when screen content on this and entry mismatch, using screen content on this as in target
Shield content.
Optionally, which may include:
Output sub-module, for exporting prompt information when screen content on this and entry mismatch;The prompt information mentions
Show whether user switches over operation to screen content on this;
Submodule is determined, for the confirmation operation in response to user for the prompt information, using screen content on this as mesh
Put on screen content.
Optionally, which may include:
Acquisition submodule obtains the last upper screen content for the trigger action in response to user;
Submodule is determined, for using the upper screen content of the last time as shielding content in target;
Submodule is deleted, shields content in the target for deleting.
Optionally, which may include: trigger action of the user to switching key, alternatively, user is for upper screen
The delete operation of content.
Optionally, which can also include:
Display module, for showing key set interface to user;The key set interface triggers the switching for being arranged
Key;
Key determining module will key corresponding with the selection operation for the selection operation in response to user to key
As the switching key.
Optionally, which can also include:
First state determining module, for the mapping relations between the first input state of foundation and the second input state, really
Fixed corresponding second input state of first input state;And/or
Second state determining module, for according to user upper screen content and input state corresponding in dictionary entry or
Matching degree between input string determines corresponding second input state of the first input state.
Optionally, which is English input state, which is input in Chinese state.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
It include memory and one or more than one the embodiment of the invention also provides a kind of input unit
Program, perhaps more than one program is stored in memory and is configured to by one or more than one processing for one of them
It includes the instruction for performing the following operation that device, which executes the one or more programs: the triggering in response to user is grasped
Make, shields content in delete target;First input state is switched to the second input state;Under second input state, obtain
It takes candidate item corresponding with content is shielded in the target and shows.
Optionally, described device is also configured to execute one or one by one or more than one processor
Procedure above includes the instruction for performing the following operation:
Whether the upper screen content of detection user matches with the entry in dictionary corresponding to the first input state;
When the upper screen content and the entry mismatch, using the upper screen content as shielding content in target.
Optionally, described when the upper screen content and entry mismatch, using the upper screen content as in target
Shield content, comprising:
When the upper screen content and the entry mismatch, prompt information is exported;Prompt information prompt user is
It is no that operation is switched over to the upper screen content;
In response to user for the confirmation operation of the prompt information, using the upper screen content as shielding content in target.
Optionally, the trigger action in response to user shields content in delete target, comprising:
In response to the trigger action of user, the last upper screen content is obtained;
Using the upper screen content of described the last time as shielding content in target;
It deletes and shields content in the target.
Optionally, the trigger action includes: trigger action of the user to switching key, alternatively, user is in upper screen
The delete operation of appearance.
Optionally, described device is also configured to execute one or one by one or more than one processor
Procedure above includes the instruction for performing the following operation:
Key set interface is shown to user;The key set interface is for being arranged the switching key;
In response to user to the selection operation of key, key corresponding with the selection operation is pressed as the switching
Key.
Optionally, second input state is determined as follows:
According to the mapping relations between the first input state and the second input state, determine that first input state is corresponding
The second input state;And/or
Matching degree in dictionary corresponding to upper screen content and input state according to user between entry or input string, really
Fixed corresponding second input state of first input state.
Optionally, first input state is English input state, and second input state is input in Chinese state.
Fig. 6 is a kind of block diagram of input unit 600 shown according to an exemplary embodiment, which can be for eventually
End or server.For example, device 600 can be mobile phone, computer, digital broadcasting terminal, messaging device, game
Console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 6, device 600 may include following one or more components: processing component 602, memory 604, power supply
Component 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614, and
Communication component 616.
The integrated operation of the usual control device 600 of processing component 602, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing element 602 may include that one or more processors 820 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just
Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate
Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in equipment 600.These data are shown
Example includes the instruction of any application or method for operating on device 600, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 may include power management system
System, one or more power supplys and other with for device 600 generate, manage, and distribute the associated component of electric power.
Multimedia component 608 includes the screen of one output interface of offer between described device 600 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 608 includes a front camera and/or rear camera.When equipment 600 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike
Wind (MIC), when device 600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 604 or via communication set
Part 616 is sent.In some embodiments, audio component 610 further includes a loudspeaker, is used for output audio signal.
I/O interface 612 provides interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented
Estimate.For example, sensor module 614 can detecte the state that opens/closes of equipment 600, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 600, and sensor module 614 can be with 600 1 components of detection device 600 or device
Position change, the existence or non-existence that user contacts with device 600,600 orientation of device or acceleration/deceleration and device 600
Temperature change.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device
600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 820 of device 600 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
Fig. 7 is the structural schematic diagram of server in some embodiments of the present invention.The server 700 can be because of configuration or performance
It is different and generate bigger difference, it may include one or more central processing units (central processing
Units, CPU) 722 (for example, one or more processors) and memory 732, one or more storages apply journey
The storage medium 730 (such as one or more mass memory units) of sequence 742 or data 744.Wherein, 732 He of memory
Storage medium 730 can be of short duration storage or persistent storage.The program for being stored in storage medium 730 may include one or one
With upper module (diagram does not mark), each module may include to the series of instructions operation in server.Further, in
Central processor 722 can be set to communicate with storage medium 730, execute on server 700 a series of in storage medium 730
Instruction operation.
Server 700 can also include one or more power supplys 726, one or more wired or wireless networks
Interface 750, one or more input/output interfaces 758, one or more keyboards 756, and/or, one or one
The above operating system 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The embodiment of the present invention improves a kind of machine readable media, is stored thereon with instruction, handles when by one or more
When device executes, so that device executes the input method as described in Fig. 2 one or more into Fig. 4.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium by device (terminal or
Server) processor execute when, enable a device to execute a kind of input method, which comprises in response to user's
Trigger action shields content in delete target;First input state is switched to the second input state;In second input state
Under, it obtains candidate item corresponding with content is shielded in the target and shows.
Optionally, the method also includes:
Whether the upper screen content of detection user matches with the entry in dictionary corresponding to the first input state;
When the upper screen content and the entry mismatch, using the upper screen content as shielding content in target.
Optionally, described when the upper screen content and entry mismatch, using the upper screen content as in target
Shield content, comprising:
When the upper screen content and the entry mismatch, prompt information is exported;Prompt information prompt user is
It is no that operation is switched over to the upper screen content;
In response to user for the confirmation operation of the prompt information, using the upper screen content as shielding content in target.
Optionally, the trigger action in response to user shields content in delete target, comprising:
In response to the trigger action of user, the last upper screen content is obtained;
Using the upper screen content of described the last time as shielding content in target;
It deletes and shields content in the target.
Optionally, the trigger action includes: trigger action of the user to switching key, alternatively, user is in upper screen
The delete operation of appearance.
Optionally, the method also includes:
Key set interface is shown to user;The key set interface is for being arranged the switching key;
In response to user to the selection operation of key, key corresponding with the selection operation is pressed as the switching
Key.
Optionally, second input state is determined as follows:
According to the mapping relations between the first input state and the second input state, determine that first input state is corresponding
The second input state;And/or
Matching degree in dictionary corresponding to upper screen content and input state according to user between entry or input string, really
Fixed corresponding second input state of first input state.
Optionally, first input state is English input state, and second input state is input in Chinese state.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
It above to a kind of input method provided by the present invention and device, is described in detail, tool used herein
Principle and implementation of the present invention are described for body example, the above embodiments are only used to help understand this hair
Bright method and its core concept;At the same time, for those skilled in the art, according to the thought of the present invention, specific real
Apply in mode and application range that there will be changes, in conclusion the content of the present specification should not be construed as to limit of the invention
System.
Claims (11)
1. a kind of input method, which is characterized in that the described method includes:
In response to the trigger action of user, shield content in delete target;
First input state is switched to the second input state;
Under second input state, obtains candidate item corresponding with content is shielded in the target and show.
2. the method according to claim 1, wherein the method also includes:
Whether the upper screen content of detection user matches with the entry in dictionary corresponding to the first input state;
When the upper screen content and the entry mismatch, using the upper screen content as shielding content in target.
3. according to the method described in claim 2, it is characterized in that, described when the upper screen content and the entry mismatch
When, using the upper screen content as shielding content in target, comprising:
When the upper screen content and the entry mismatch, prompt information is exported;The prompt information prompts the user whether pair
The upper screen content switches over operation;
In response to user for the confirmation operation of the prompt information, using the upper screen content as shielding content in target.
4. the method according to claim 1, wherein the trigger action in response to user, in delete target
Shield content, comprising:
In response to the trigger action of user, the last upper screen content is obtained;
Using the upper screen content of described the last time as shielding content in target;
It deletes and shields content in the target.
5. according to claim 1 to any method in 4, which is characterized in that the trigger action includes: user to switching
The trigger action of key, alternatively, delete operation of the user for upper screen content.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
Key set interface is shown to user;The key set interface is for being arranged the switching key;
In response to user to the selection operation of key, will key corresponding with the selection operation as the switching key.
7. according to claim 1 to any method in 4, which is characterized in that determine that described second is defeated as follows
Enter state:
According to the mapping relations between the first input state and the second input state, first input state corresponding the is determined
Two input states;And/or
Matching degree corresponding to upper screen content and input state according to user in dictionary between entry or input string determines the
Corresponding second input state of one input state.
8. according to claim 1 to any method in 4, which is characterized in that first input state is English input
State, second input state are input in Chinese state.
9. a kind of input unit, which is characterized in that described device includes:
Removing module shields content in delete target for the trigger action in response to user;
Switching module, for the first input state to be switched to the second input state;
Module is obtained, under second input state, obtaining candidate item corresponding with content is shielded in the target and opening up
It is existing.
10. a kind of input unit, which is characterized in that include memory and one or more than one program, wherein one
A perhaps more than one program is stored in memory and is configured to execute described one by one or more than one processor
A or more than one program includes the instruction for performing the following operation:
In response to the trigger action of user, shield content in delete target;
First input state is switched to the second input state;
Under second input state, obtains candidate item corresponding with content is shielded in the target and show.
11. a kind of machine readable media is stored thereon with instruction, when executed by one or more processors, so that device is held
Input method of the row as described in one or more in claim 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711378032.5A CN109933213A (en) | 2017-12-19 | 2017-12-19 | Input method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711378032.5A CN109933213A (en) | 2017-12-19 | 2017-12-19 | Input method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109933213A true CN109933213A (en) | 2019-06-25 |
Family
ID=66984044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711378032.5A Pending CN109933213A (en) | 2017-12-19 | 2017-12-19 | Input method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109933213A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112445403A (en) * | 2020-11-30 | 2021-03-05 | 北京搜狗科技发展有限公司 | Text processing method and device and text processing device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102495679A (en) * | 2011-12-01 | 2012-06-13 | 上海量明科技发展有限公司 | Composite spelling input method, word bank and system thereof |
CN103049098A (en) * | 2012-12-28 | 2013-04-17 | 华为技术有限公司 | Device and method for input method shifting |
CN103902139A (en) * | 2012-12-26 | 2014-07-02 | 联想(北京)有限公司 | Method and device for inputting characters |
-
2017
- 2017-12-19 CN CN201711378032.5A patent/CN109933213A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102495679A (en) * | 2011-12-01 | 2012-06-13 | 上海量明科技发展有限公司 | Composite spelling input method, word bank and system thereof |
CN103902139A (en) * | 2012-12-26 | 2014-07-02 | 联想(北京)有限公司 | Method and device for inputting characters |
CN103049098A (en) * | 2012-12-28 | 2013-04-17 | 华为技术有限公司 | Device and method for input method shifting |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112445403A (en) * | 2020-11-30 | 2021-03-05 | 北京搜狗科技发展有限公司 | Text processing method and device and text processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10162489B2 (en) | Multimedia segment analysis in a mobile terminal and control method thereof | |
US8103296B2 (en) | Mobile terminal and method of displaying information in mobile terminal | |
US8452339B2 (en) | Mobile terminal and method of controlling the same | |
CN112068762B (en) | Interface display method, device, equipment and medium of application program | |
CN106484138B (en) | A kind of input method and device | |
RU2609033C1 (en) | Input method and input system | |
US9448589B2 (en) | Mobile terminal and control method thereof | |
CN107918496A (en) | It is a kind of to input error correction method and device, a kind of device for being used to input error correction | |
EP3734472A1 (en) | Method and device for text processing | |
CN107193393A (en) | Input method switching method and device | |
CN109783244A (en) | Treating method and apparatus, the device for processing | |
CN109521888A (en) | A kind of input method, device and medium | |
CN105187597B (en) | A kind of management method of voice record, device and its mobile terminal | |
CN113936697B (en) | Voice processing method and device for voice processing | |
CN108073291B (en) | Input method and device and input device | |
CN110795014A (en) | Data processing method and device and data processing device | |
KR20130034885A (en) | Mobile terminal and intelligent information search method thereof | |
CN110286775A (en) | A kind of dictionary management method and device | |
CN108536653A (en) | A kind of input method, device and the device for input | |
CN109901726B (en) | Candidate word generation method and device and candidate word generation device | |
CN109933213A (en) | Input method and device | |
KR101984094B1 (en) | Mobile terminal and control method thereof | |
CN110096163A (en) | A kind of expression input method and device | |
CN111092971A (en) | Display method and device for displaying | |
CN109799916A (en) | A kind of candidate item association method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190625 |
|
RJ01 | Rejection of invention patent application after publication |