CN109324696A - A kind of number input method - Google Patents

A kind of number input method Download PDF

Info

Publication number
CN109324696A
CN109324696A CN201811349106.7A CN201811349106A CN109324696A CN 109324696 A CN109324696 A CN 109324696A CN 201811349106 A CN201811349106 A CN 201811349106A CN 109324696 A CN109324696 A CN 109324696A
Authority
CN
China
Prior art keywords
input method
character
input
bookmark
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811349106.7A
Other languages
Chinese (zh)
Inventor
程在舒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201811349106.7A priority Critical patent/CN109324696A/en
Publication of CN109324696A publication Critical patent/CN109324696A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The present invention relates to a kind of number input method, input method includes: certain class called in number input method;Classification includes identification card number, cell-phone number, license plate number and other numbers, number library, coding rule, shows number input method key interface, and the number input method interface includes that input method carries edit box area, controls region and key zone;The controls region includes letter, character, number, the Chinese character etc. that certain all number includes, and the key zone is for showing the content for corresponding to controls region bookmark most possibly according to the position of the number of input;The composition feature of number is fully considered, so that number input is simpler, switches without between number, Chinese character, alphabetic character, the number of input meets coding rule, a possibility that shielding the character that can not occur, greatly reduce error.

Description

A kind of number input method
Technical field
The present invention relates to a kind of input methods for this, specific to a kind of number input method.
Background technique
Mobile phone and computer are at the tool for having the people of cognition to be unable to do without, work and study amusement shopping payment tourism etc., people The time spent is increasingly longer on mobile phone and computer daily, life is influenced bigger.When using mobile phone and computer, from not Open registration login account, most common common account is cell-phone number, identification card number, Email, motor-driven in public security traffic system License plate number is often used.
It is different from text input, number input have stringent limitation, number has the coding rule of oneself, as province card number, Cell-phone number, motor vehicle trade mark, Email, Bank Account Number cannot malfunction when inputting these numbers but be easy error, and not have at present There is independent number input method, for the input for completing certain number, needs to switch digital English symbol Chinese keyboard, brought to user It is inconvenient.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of number input method, number has been fully considered Composition feature so that number input it is simpler, need not number, Chinese character, switch between alphabetic character, the number of input meets volume Code rule, a possibility that shielding the character that can not occur, greatly reduce error.
In order to solve the above-mentioned technical problem, the embodiment of the present invention proposes a kind of number input method, the number input method Include: number sorted setting: there are many numbers that user is inputted by app and PC, as identity card, cell-phone number, motor vehicle trade mark, Email, bank's card number, fixed-line telephone, postcode carry out unique encodings to these numbers to identify and handling convenient for computer It identifies, is to establish the basis in character position library, while it is corresponding with number rule expression formula.
Establish number character location library, regular expression: number has its coding rule, such as identification card number, and front two represents Municipality directly under the Central Government of province, the three or four represents district, and motor vehicle trade mark first place is provinces and regions abbreviation etc., can be by these numerical chracters according to coding Position storage, if several preceding characters that user inputs number do not meet the content in library and prompt input error in advance or do not allow The character of user's input error finds mistake, time update in time;Compared to number character location library is established, regular expression is constructed Formula is much easier, without connection database, obtain number different location character a possibility that, ID card No., cell-phone number, electricity Sub- mail can judge whether former character strings of user's input are legal and are impermissible for inputting in key zone with regular expression Unmatched character.
Construction number, letter, character keys bookmark: most of number is made of pure digi-tal, such as cell-phone number, 17 before identity card Position number, postcode, Bank Account Number construct the key bookmark being made of 0-9 pure digi-tals, delete key acknowledgement key, identity card the tenth Eight may be 0-9 bit digital or letter X, can construct and add the bookmark that X is constituted by the former, there is also English alphabets, English The bookmark that character and digit, municipality directly under the Central Government of province are referred to as constituted.
Recall bookmark according to number type and number character position: when user app or PC input number when, the kind of number Class be it is determining, which character for inputting number is also that may determine that, according to the character feature of some position, is recalled suitable Bookmark, avoid user switch input interface.
The character that would be impossible to occur is set unavailable and is identified with different colours: when user will input some position of number Character when, certain characters there is no fear of choosing, and such as the second of cell-phone number, be unlikely to be 0,1,2 under present case, can be with These keys are arranged to different colors and user can not click or click in vain;For another example last school of ID card No. Code is tested, is the unique number calculated according to 17 bit digitals of front or letter X, the only unique selection of user, if not It is being intended to as a result, must be front number error.
Show the area where number according to the character that has inputted: identification card number, cell-phone number former positions represent number institute Area, application program can according to user input number area representated by number is shown on interface as much as possible, such as Identity card 12 represents Tianjin, and 1201 represent Nankai District, Tianjin City.Cell-phone number 1351066 represents the mobile dynamic ground in ShenZhen,GuangDong city Band.
The corresponding content of the key is directly inputted in edit box when having key to be entered and effectively, number present bit Number+1 is set, and from according to number type and current location switching key bookmark, if current Number information is enough, shows number place Area and other information.
Detailed description of the invention
Fig. 1 is flow chart of the invention.
Fig. 2 is number sorted structure chart of the invention.
Fig. 3 is that number library of the invention and number expression formula constitute figure.
Fig. 4 is key bookmark figure of the invention.
Fig. 5 is that unavailable number of the invention is shown and number information prompt is schemed.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase It mutually combines, invention is further described in detail in the following with reference to the drawings and specific embodiments.
If in addition, the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and should not be understood as Its relative importance of indication or suggestion or the quantity for implicitly indicating indicated technical characteristic.Define as a result, " first ", The feature of " second " can explicitly or implicitly include at least one of the features.
Fig. 1 to Fig. 5 is please referred to, a kind of number input method of the embodiment of the present invention mainly includes that number sorted step is arranged S1, number character location library, regular expression step S2, construction number, letter, character keys bookmark step S3, basis are established The character that number type and number character position recall bookmark step S4, would be impossible to occur is set unavailable and with different colours mark Know step S5, show the regional S6 where number according to the character inputted.
Number sorted step S1 is set.For convenient for establish from the background database and generate number rule expression formula, by inhomogeneity Other number carries out unique encodings, and sample is as follows: ID card No. classification setting is H1 S101;Phone number classification setting is H2 S102;Motor vehicle trade mark classification H3 S103;E-mail classification H4 S104;Bank card classification H5 S105;Postcode classification H6 S106。
Establish number character location library, regular expression step S2.The first two library S201 of ID card No. H1, it is interior in library Appearance is recorded as 11,12,13,14,15,21,22,23,31,32,33,34,35,36,37,41,42,43,44,45,46,50, 51,52,53,54,61,62,63,64,65,71,81,82,91, represent the coding such as municipality directly under the Central Government of province of China;Motor vehicle trade mark H3 Shou Liangwei provinces and cities abbreviation library S202, the content record in library such as: Ji A- Shijiazhuang City, the Henan Zhengzhou City A-, the Kunming cloud A-, Ji B- Tangshan City, the Henan Kaifeng B-, the Ji Qinhuangdao C-, the Henan Luoyang City C-, cloud C- Zhaotong City, the Ji Handan City D-, the Henan Pingdingshan City D-; H1 regular expression S203, with " ^ [1-9] [0-9] { 5 } (18 | 19 | ([23] [0-9])) [0-9] { 2 } ((0 [1-9]) | (10 | 11 | 12)) (([0-2] [1-9]) | 10 | 20 | 30 | 31) justice such as [0-9] { 3 } [0-9Xx] $ ", and front two number 11,12, 13,14,15,21,22,23,31,32,33,34,35,36,37,41,42,43,44,45,46,50,51,52,53,54,61, 62,63,64,65,71,81,82,91 } in;H2 regular expression S204, with regular expression " ^ (and (13 [0-9]) | (14 [57]) | (15 [0-3,5-9]) | (17 [0,3,5-8]) | (18 [0-9]) | 166 | 198 | 199 | (147)) the justice such as d { 8 } $ ";H4 rule Expression formula S205, with regular expression " ^ ([A-Za-z0-9_-])+@([A-Za-z0-9_-])+ ([A-Za-z] { 2, }) justice such as $ ".
Construction number, letter, character keys bookmark step S3.Since the English alphabet in number is nearly all capitalization, Construct capital letter bookmark S301, including acknowledgement key, delete key;English is likely to be on certain positions of certain numbers Letter or number constructs character and digit bookmark S302;Pure digi-tal bookmark S303, such as ten before input handset number, identity card Seven numbers, postcode, bank's card number etc.;Pure digi-tal with " X " bookmark S304, be served only for ID card No. the 18th;Automobile registration Number the first bookmark S305, it is characterized in that the abbreviation of municipality directly under the Central Government of province, arranges according to the initial of abbreviation phonetic transcriptions of Chinese characters, when initial not When being same as previous position, this letter is identified under abbreviation key, due to be it is the first, this bookmark both confirmed without delete key or not Key, as a result such as figure S305.
Bookmark S4 is recalled according to number type and number character position: 17, cell-phone number, postal before inputting ID card No. Compile, bank's card number when, recall bookmark key S303, when input ID card No. last when, recall bookmark S304, and work as When inputting automobile license plate first place, bookmark S305 is recalled, latter four then recall bookmark S302.
The character that would be impossible to occur is set unavailable and identifies S5 with different colours: when input handset first place, bookmark Delete key unavailable (it is invalid to click), other number keys in addition to number 1 are unavailable, and color is set to grey, and when input When second number, delete key is available, but 1,2, the 0 unavailable S501 of key;It is 1 when ID card No. first, inputs second When, 6,7,8,9 unavailable S502 of number, when inputting 7-10, it is impossible to the number for meeting H1 regular expression is unavailable, It can only be 0 or 1 as the 7th bit digital is greater than the 3, the 11st, the 18th can only be according to the verification after 17 of front calculating Code, other keys are unavailable, if not meeting last position of ID card No., need to check the mistake that front inputs.
The regional S6 where number is shown according to the character inputted: before inputting some number when several digits, this A little numbers can indicate certain meaning: such as input ID card No. 120104, then represent Tianjin Nankai area, system can be this Information show as scheme S601, and before cell-phone number 7 1351066 then indicate Shenzhen mobile dream network number.
In addition, a part of the invention can be applied to computer program product, such as computer program instructions, when its quilt When computer executes, by the operation of the computer, it can call or provide according to the method for the present invention and/or technical solution. And the program instruction of method of the invention is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to described program instruction operation In the working storage of computer equipment.Here, according to one embodiment of present invention including a kind of number input method, the number Input method includes the memory for storing computer program instructions and the processor for executing program instructions, wherein when this When computer program instructions are executed by the processor, number input method operation is triggered based on aforementioned multiple realities according to the present invention Apply the method and/or technology scheme of example.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding And modification, the scope of the present invention are defined by the appended claims and their equivalents.

Claims (10)

1. a kind of number input method, for showing the corresponding character letter number of input most possibly according to the position of input number Word Chinese character, the number input method include: construction number type number, establish number character repertoire, foundation meets coding rule Expression formula calls certain class in number input method, shows number input interface, which is characterized in that when inputting number, adjusts With certain class in number input method, corresponding character letter is shown in key zone most possibly according to the position of input number Digital Chinese character, and the character that would be impossible to occur is set to and can not click and be shown with different colors, corresponding character letter number Word Chinese character is determined by the number position in number library or coding rule expression formula, certain coding and input.
2. in number input method as described in claim 1, which is characterized in that construction number type number participates in number of number Code type includes but does not limit identity card, cell-phone number, license plate number, fixed-line telephone number, postcode, bank's card number.
3. in number input method as described in claim 1, which is characterized in that described establishes number character repertoire, according to number Type, the character alphanumeric Chinese character of the appearance of maximum possible is saved storage by the position of number.
4. number input method as described in claim 1, which is characterized in that the coding rule expression formula, when number of input When code is China's Mainland cell-phone number, and regular and regular expression " ^ ((13 [0-9]) | (14 [57]) | (15 [0-3,5-9]) | (17 [0,3,5-8]) | (18 [0-9]) | 166 | 198 | 199 | (147)) the justice such as d { 8 } $ ";
When the number of input be Email constantly, rule and regular expression " ^ ([A-Za-z0-9_-])+@([A-Za- Z0-9_-])+the justice such as ([A-Za-z] { 2, }) $ ";
When the number of input is China's Mainland identity card, regular and regular expression " ^ [1-9] [0-9] { 5 } (18 | 19 | ([23][0-9]))[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3} The justice such as [0-9Xx] $ ", and front two number 11,12,13,14,15,21,22,23,31,32,33,34,35,36,37, 41,42,43,44,45,46,50,51,52,53,54,61,62,63,64,65,71,81,82,91 } in, the 18th is calculating Check code out can only click check code, other keys are arranged to click.
5. number input method as claimed in claim 3, which is characterized in that the number character repertoire, when number is motor vehicle When the trade mark, first of character repertoire is the abbreviation of China's provincial municipality directly under the Central Government, is arranged according to first letter of pinyin sequence, when initial is with before When one difference, this initial is identified on key, second is 26 letters of English of capitalization, and third is digital to the 6th 26 letters of English of the capitalization of 0-9 and capitalization.
6. number input method as described in claim 1, which is characterized in that wrap the key zone at the number input method interface Alphabetical bookmark, digital bookmark, character and digit bookmark, symbol bookmark are included, according to current common input method arrangement push-button.
7. in number input method as described in claim 1, which is characterized in that such as according to the character feature of the position where number Number, letter, digits plus letters, Chinese character, symbol etc. convert bookmark.
8. in number input method as described in claim 1, which is characterized in that the key zone includes delete key, acknowledgement key, Input method switch key.
9. in number input method as described in claim 1, which is characterized in that, will when inputting some position of certain number The character that can not occur is arranged to not available color, clicks invalid or unavailable emphasis.
10. number input method as described in claim 1, which is characterized in that on the number input method interface, display is The number of characters of input when number is identification card number or cell-phone number, and shows the area at place.
CN201811349106.7A 2018-11-13 2018-11-13 A kind of number input method Pending CN109324696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811349106.7A CN109324696A (en) 2018-11-13 2018-11-13 A kind of number input method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811349106.7A CN109324696A (en) 2018-11-13 2018-11-13 A kind of number input method

Publications (1)

Publication Number Publication Date
CN109324696A true CN109324696A (en) 2019-02-12

Family

ID=65260179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811349106.7A Pending CN109324696A (en) 2018-11-13 2018-11-13 A kind of number input method

Country Status (1)

Country Link
CN (1) CN109324696A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732692A (en) * 2021-01-15 2021-04-30 联想(北京)有限公司 Data processing method and device and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732692A (en) * 2021-01-15 2021-04-30 联想(北京)有限公司 Data processing method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN101375581B (en) Method and apparatus for locating information
US7477165B2 (en) Handheld electronic device and method for learning contextual data during disambiguation of text input
US8760389B2 (en) Handwriting recognition in electronic devices
CN100549916C (en) Mobile terminal device and characters input method
JP2005539432A (en) Apparatus, method and computer program product for dialing a telephone number using letter selection
US20090154682A1 (en) Systems and Methods for Semi-Automatic Dialing from a Mixed Entry Sequence Having Numeric and Non-Numeric Data
CN104219362A (en) Method and device for searching for contact person
JP3722359B2 (en) Character input system and communication terminal
KR20100046043A (en) Disambiguation of keypad text entry
US20120029905A1 (en) Handheld Electronic Device and Method For Employing Contextual Data For Disambiguation of Text Input
KR100324634B1 (en) Telephone keypad and character input system using the same
CN109324696A (en) A kind of number input method
CN102999639B (en) A kind of lookup method based on speech recognition character index and system
CN102780802A (en) Method and terminal for quick dialing
CN104156363A (en) Searching method for address book information
JP6744643B1 (en) Information processing apparatus, program, and document creation method
JP6221275B2 (en) Character input program and character input device
KR20080095823A (en) Device and method for multilingual mailing capable of selecting text input mode
JP5493376B2 (en) Portable terminal, character input method thereof, program, and recording medium
CN102843459A (en) Contact searching method and device
JP2000250830A (en) Electronic mail preparing device, computer, electronic mail preparing method, and medium stored with electronic mail preparing program
CN107219933A (en) The operation processing method and device of input method, computer equipment and computer-readable recording medium
KR20110089381A (en) Smart input system for characters and numbers in a on-screen or digital keypad
CN1889018A (en) Method for realizing fast inputting on cell phone
CN101226431A (en) Chinese characters input method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190212

WD01 Invention patent application deemed withdrawn after publication