Input reminding method, device and equipment
Technical field
The application is related to field of terminal technology, more particularly to a kind of input reminding method, device and equipment.
Background technology
In correlation technique, the input frame that user can be provided by terminal carries out the input of various information, how to improve use
The input efficiency at family and the direction that input experience is always that those skilled in the art make great efforts.
The content of the invention
In view of this, the application provides a kind of input reminding method, device and equipment.
Specifically, the application is achieved by the following technical solution:
One kind input reminding method, including:
Determine that user carries out character input in the input frame for specifying input theme;
In user inputs character, the character inputted is segmented according to predetermined chopping rule;
According to the corresponding relation between character field and semanteme, language corresponding to the character field output inputted for each
Justice prompting;
The character field is verified according to verification rule corresponding to the specified input theme, and in the character field
Do not meet it is described verification it is regular when, miscue corresponding to output.
A kind of input prompt device, including:
Theme determining unit, determine that user carries out character input in the input frame for specifying input theme;
Character segmentation unit, in user inputs character, the character inputted is carried out according to predetermined chopping rule
Segmentation;
Semantic Tip element, according to the corresponding relation between character field and semanteme, the character inputted for each
Semantic prompting corresponding to section output;
Miscue unit, the character field is verified according to verification rule corresponding to the specified input theme,
And the character field do not meet it is described verification it is regular when, miscue corresponding to output.
One kind input prompting equipment, including:
Processor;
For storing the memory of machine-executable instruction;
Wherein, can be held by reading and performing the machine corresponding with the control logic of input prompting of the memory storage
Row instruction, the processor are prompted to:
Determine that user carries out character input in the input frame for specifying input theme;
In user inputs character, the character inputted is segmented according to predetermined chopping rule;
According to the corresponding relation between character field and semanteme, language corresponding to the character field output inputted for each
Justice prompting;
The character field is verified according to verification rule corresponding to the specified input theme, and in the character field
Do not meet it is described verification it is regular when, miscue corresponding to output.
When character input is carried out in the input frame for specifying input theme by the application user it can be seen from above description,
Semantic prompting corresponding to the character field output that each has been inputted can be directed to, while can also not met in the character field defeated
When entering that verification is regular corresponding to theme, miscue corresponding to output.In whole input process, user can carry according to semanteme
Show and miscue finds input error in time, and then modify, improve input efficiency, also improve the input of user
Experience.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of input reminding method shown in the exemplary embodiment of the application one.
Fig. 2 is a kind of input prompting schematic diagram shown in the exemplary embodiment of the application one.
Fig. 3 is another input prompting schematic diagram shown in the exemplary embodiment of the application one.
Fig. 4 is a kind of input prompting schematic diagram shown in the exemplary embodiment of the application one.
Fig. 5 is a kind of input prompting schematic diagram shown in the exemplary embodiment of the application one.
Fig. 6 is a kind of terminal device schematic diagram for input prompt device shown in the exemplary embodiment of the application one.
Fig. 7 is a kind of block diagram of input prompt device shown in the exemplary embodiment of the application one.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application.
" one kind " of singulative used in the application and appended claims, " described " and "the" are also intended to including majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped
Containing the associated list items purpose of one or more, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
In correlation technique, some are logged in, certification scene may require that user inputs the information such as identification card number, passport No., student number,
But these information are generally longer, user is easily misremembered or inputed by mistake, and so as to cause input efficiency low, poor user experience etc. is asked
Topic.
In view of the above-mentioned problems, the application provides a kind of input reminding method, Fig. 1 is refer to, methods described can be applied
In the terminal devices such as mobile phone, PC, include following steps:
Step 101, determine that user carries out character input in the input frame for specifying input theme.
In the present embodiment, the input frame of the specified input theme can be defeated for passport NO. input frame, card number
Enter frame, diploma numbering input frame etc..
Step 102, in user inputs character, the character inputted is segmented according to predetermined chopping rule.
In the present embodiment, different input themes are generally corresponding with different chopping rules, by taking identification card number as an example, preceding two
Position is a segmentation, represents province;3rd, 4 is another segmentation, represents city etc.;5th, 6 is the 3rd segmentation, is represented
District etc..
In the present embodiment, when user carries out character input, user can have been inputted according to the chopping rule
Character be segmented, obtain character field.Wherein, each character field includes one or more characters.
Step 103, according to the corresponding relation between character field and semanteme, exported for each character field inputted
Corresponding semantic prompting.
In the present embodiment, the character field inputted for each user, this can be searched and specified under input theme
Corresponding relation between character field and semanteme, it is semantic corresponding to the character field to determine, and export semantic prompting.
Wherein, the corresponding relation between the character field and semanteme can store in the server, in the mistake of user's input
Cheng Zhong, it is corresponding semantic that terminal can search character field with server interaction in real time;Pair between the character field and semanteme
Should be related to can also be stored in terminal local, and during user inputs, terminal can be being searched locally corresponding to character field
It is semantic.
Step 104, the verification rule according to corresponding to the specified input theme verifies to the character field, and in institute
State character field do not meet it is described verification it is regular when, miscue corresponding to output.
In the present embodiment, the character field inputted for each user, input theme pair can be specified according to this
The verification rule answered verifies to the character field, if the character field does not meet the verification rule, can export corresponding
Miscue.
Wherein, not meeting the situation of the verification rule can include:Lookup is semantic less than corresponding to the character field, too far
Time, month of mistake, date etc. of mistake.It can be specifically configured by developer according to input theme, the application
This is not particularly limited.
When character input is carried out in the input frame for specifying input theme by the application user it can be seen from above description,
Semantic prompting corresponding to the character field output that each has been inputted can be directed to, while can also not met in the character field defeated
When entering that verification is regular corresponding to theme, miscue corresponding to output.In whole input process, user can carry according to semanteme
Show and miscue finds input error in time, and then modify, improve input efficiency, also improve the input of user
Experience.
The implementation process of the application is described in detail by specifying to input exemplified by theme is resident identification card number below.
Sequence number |
Character position |
Implication |
1 |
1st, 2 |
Province |
2 |
3rd, 4 |
City |
3 |
5th, 6 |
District |
4 |
7-14 positions |
Birthdate |
5 |
15th, 16 |
Location local police station |
6 |
17th |
Sex, odd number represent male, and even number represents women |
7 |
18th |
Check code |
Table 1
Table 1 is the implication of resident identification card digits, refer to table 1, occupies people's identification card number for 18, can be incited somebody to action
This 18 bit digital is divided into 7 character fields, and first character section is the 1st, 2 character, represents province, and second character field is
3rd, 4 characters, represent city, the like.
In the present embodiment,, can according to foregoing chopping rule when user inputs identification card number in identity card input frame
The character field inputted with extract real-time user, and judge whether the character field meets default verification rule, and search the character
It is semantic corresponding to section.
Refer to Fig. 2, when user inputs first character section " 33 " in identification card number input frame, according to character field with
Corresponding relation between province, the corresponding Zhejiang Province of character field " 33 " can be found, i.e. the semanteme of character field " 33 " is Zhejiang Province,
And then show that the semanteme is prompted, such as:A prompting frame can be shown in the top of identification card number input frame, and should be in prompting frame
Middle output semanteme prompting " Zhejiang Province ".
When user continues to input second character field " 02 " in the ID card No. input frame, according to character field and Zhejiang
The river corresponding relation between city inside the province, can find the Ningbo City in the corresponding Zhejiang Province of character field " 02 ", and then can carry
Show and semantic prompting " Ningbo City " is continued to output in frame.
Fig. 3 is refer to, when user continues to fill the 3rd character field " 25 " of input in the ID card No. input frame, according to
Corresponding relation between character field and Ningbo City district, Xiangshan County of the corresponding Ningbo City of character field " 25 " can be found, and then
Semantic prompting " Xiangshan County " can be continued to output in prompting frame.
Please continue to refer to Fig. 4, for the 4th character field " 19870121 " of user's input, can be exported in the prompting frame
The semantic prompting " 1987.01.21 " on date, for the 5th character field " 25 " of user's input, can according to character field with as
Corresponding relation between Shan Xian local police stations, search prompt message corresponding to local police station corresponding to character field " 25 " and output.In reality
During border is realized, because location local police station is not often paid close attention to by user, semantic prompting can not also be made, it is defeated directly in prompting frame
Go out the character field of user's input., can be in the last output of semanteme prompting for the 6th character field " 7 " of user's input
Sex corresponding to the character field.
Optionally, the character field inputted for each user, rule can also be verified according to identification card number to this
Character field is verified, if some character field does not meet the verification rule, can export corresponding miscue, such as:
The miscue corresponding to corresponding position output in prompting frame.
Wherein, not meeting the situation of the verification rule can include:Lookup is semantic less than corresponding to the character field, too far
Time, month of mistake, date etc. of mistake.It refer to Fig. 5, it is assumed that the 3rd character field of user's input is " 99 ", so
And Ningbo City district corresponding to the character field " 99 " can not be investigated, and then corresponding miscue " mistake " can be shown;Again
Assuming that the 4th character field of user's input is " 16870230 ", the semanteme of the character field is the date, corresponding 2 months 1687 30
Day, but for the residents birth date, the time in 1678 is too far, it is most likely that and it is the input error of user, such as:Touch system is led
The error of cause, and do not have No. 30 2 months, No. 30 be also likely to be user input error, and then can be by 1678 and 30
Number difference output, such as:The color output " 1678 " and " 30 " of normal semantic prompting color can be different from, to remind use
Family.Certainly, actually should in, the output attribute for error differentiating prompting and semantic prompting is not limited only to color, can be with
For font classification, font size etc., the application is not particularly limited to this.
Referring again to Fig. 2 to Fig. 5, in Fig. 2 to Fig. 5 example, semanteme prompting and miscue output can be existed
In the prompting frame of the top of input frame, the length change of the character that the length of the prompting frame can input with user and corresponding dynamic
Change.Specifically, when some character field that user's change has inputted, corresponding semantic prompting or wrong can be updated accordingly
Prompt by mistake, such as:When user deletes the character field that some has been inputted, can delete semantic corresponding to the character field in prompting frame
Prompting or miscue, and accordingly shorten the length of prompting frame, when user re-enters the character field, fresh character is exported again
Semantic prompting or miscue corresponding to section, and accordingly increase the length of prompting frame.Further, when all characters inputted
When being deleted, the prompting frame can also be cancelled.
It is worth noting that, the application is according to the corresponding relation between character field and semanteme, the character inputted
Semantic prompting corresponding to section, user can prompt to judge whether the input of oneself is wrong according to the semanteme.Referring again to Fig. 3,
Assuming that the identification card number first six digits of user are " 330125 ", 4-digit number " 1 " erroneous input is " 2 " by user, based on the application
The technical scheme of offer, after character field " 02 " corresponding " Ningbo City " is found, the semantic prompting shown in Fig. 3 can be exported,
Being prompted according to the semanteme, user can be found that oneself input error, and then 4-digit number " 2 " can be revised as into " 1 ", according to
Modification the application of user can accordingly update corresponding semantic prompting " * * areas of Hangzhou, Zhejiang province city/county ".
Corresponding with the embodiment of foregoing input reminding method, present invention also provides the embodiment of input prompt device.
The embodiment of the application input prompt device can be applied on the terminal device.Device embodiment can pass through software
Realize, can also be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, as on a logical meaning
Device, be to be read corresponding computer program instructions in nonvolatile memory by the processor of terminal device where it
Into internal memory, operation is formed.For hardware view, as shown in fig. 6, the terminal device where the application input prompt device
A kind of hardware structure diagram, it is real in addition to the processor shown in Fig. 6, internal memory, network interface and nonvolatile memory
Actual functional capability of the terminal device in example where device generally according to the terminal device is applied, other hardware can also be included, to this
Repeat no more.
Fig. 7 is a kind of block diagram of input prompt device shown in the exemplary embodiment of the application one.
Fig. 7 is refer to, the input prompt device 600 can be applied in the terminal device shown in earlier figures 6, including
Have:Theme determining unit 601, character segmentation unit 602, semantic Tip element 603 and miscue unit 604.
Wherein, theme determining unit 601, determine that user carries out character input in the input frame for specifying input theme;
Character segmentation unit 602, in user inputs character, the character inputted is entered according to predetermined chopping rule
Row segmentation;
Semantic Tip element 603, according to the corresponding relation between character field and semanteme, the word inputted for each
Accord with semantic prompting corresponding to section output;
Miscue unit 604, school is carried out to the character field according to verification rule corresponding to the specified input theme
Test, and the character field do not meet it is described verification it is regular when, miscue corresponding to output.
Optionally, the semantic Tip element 603, also when the character field inputted changes, institute is accordingly updated
Predicate justice prompting.
Optionally, the miscue unit 604, it is wrong corresponding to the output attribute output of the semantic prompting to be different from
Prompt by mistake.
Optionally, the semantic Tip element 603 and the miscue unit 604, the input based on user are defeated in real time
Go out corresponding with the character field inputted semantic prompting or miscue.
Optionally, the semantic prompting and the miscue are located at the top of the input frame, and the semantic prompting
With the length change of character that the length of prompting frame where the miscue inputs with user and corresponding dynamic change;When all
When the character inputted is deleted, cancel the prompting frame.
Optionally, the input frame of the specified input theme includes:Passport NO. input frame, card number input frame.
The function of unit and the implementation process of effect specifically refer to and step are corresponded in the above method in said apparatus
Implementation process, it will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity,
Or realized by the product with certain function.One kind typically realizes that equipment is computer, and the concrete form of computer can
To be personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment
The combination of any several equipment.
Corresponding with the embodiment of foregoing input reminding method, the application also provides a kind of input prompting equipment, the input
Prompting equipment includes:Processor and the memory for storing machine-executable instruction.Wherein, processor and memory are usual
It is connected with each other by internal bus.In other possible implementations, the equipment is also possible that external interface, with can
Communicated with other equipment or part.
In the present embodiment, by reading and performing the corresponding with the control logic of input prompting of the memory storage
Machine-executable instruction, the processor are prompted to:
Determine that user carries out character input in the input frame for specifying input theme;
In user inputs character, the character inputted is segmented according to predetermined chopping rule;
According to the corresponding relation between character field and semanteme, language corresponding to the character field output inputted for each
Justice prompting;
The character field is verified according to verification rule corresponding to the specified input theme, and in the character field
Do not meet it is described verification it is regular when, miscue corresponding to output.
Optionally, semantic corresponding to character field output inputted for each to prompt, the processor is prompted to:
When the character field inputted changes, the semantic prompting is accordingly updated.
Optionally, in miscue corresponding to output, the processor is prompted to:
To be different from miscue corresponding to the output attribute output of the semantic prompting.
Optionally, can by reading and performing the machine corresponding with the control logic of input prompting of the memory storage
Execute instruction, the processor are also prompted to:
Input based on user, the semantic prompting corresponding with the character field inputted of output in real time or miscue.
Optionally, the semantic prompting and the miscue are located at the top of the input frame, and the semantic prompting
With the length change of character that the length of prompting frame where the miscue inputs with user and corresponding dynamic change;When all
When the character inputted is deleted, cancel the prompting frame.
Optionally, the input frame of the specified input theme includes:Passport NO. input frame, card number input frame.
Corresponding with the embodiment of foregoing input reminding method, the application also provides a kind of computer-readable recording medium,
Computer program is stored thereon with, the program realizes following steps when being executed by processor:
Determine that user carries out character input in the input frame for specifying input theme;
In user inputs character, the character inputted is segmented according to predetermined chopping rule;
According to the corresponding relation between character field and semanteme, language corresponding to the character field output inputted for each
Justice prompting;
The character field is verified according to verification rule corresponding to the specified input theme, and in the character field
Do not meet it is described verification it is regular when, miscue corresponding to output.
Optionally, semantic prompting corresponding to the character field output inputted for each, including:
When the character field inputted changes, the semantic prompting is accordingly updated.
Optionally, miscue corresponding to the output, including:
To be different from miscue corresponding to the output attribute output of the semantic prompting.
Optionally, following steps are also realized when the program is executed by processor:
Input based on user, the semantic prompting corresponding with the character field inputted of output in real time or miscue.
Optionally, the semantic prompting and the miscue are located at the top of the input frame, and the semantic prompting
With the length change of character that the length of prompting frame where the miscue inputs with user and corresponding dynamic change;When all
When the character inputted is deleted, cancel the prompting frame.
Optionally, the input frame of the specified input theme includes:Passport NO. input frame, card number input frame.
Implementation process specifically refers to the implementation process that step is corresponded in the above method when the above-mentioned program is executed by processor,
It will not be repeated here.
The preferred embodiment of the application is the foregoing is only, not limiting the application, all essences in the application
God any modification, equivalent substitution and improvements done etc., should be included within the scope of the application protection with principle.