Summary of the invention
In order to overcome the above-mentioned shortcoming of prior art, method and apparatus patent of the present invention is inquired about at Chinese data, adopt one-touch and keyboard table relatively, obtain the selected initial character collection that reduces the scope, by selecting to obtain the data of the first stroke initial character coupling for the second time.The objective of the invention is to characteristics according to Chinese, provide a kind of initial character relevant that can be used for cell-phone telephone book to search method with input method, it makes the cellphone subscriber make full use of the directionkeys and the large-screen of mobile phone, utilizes the relation of keyboard digital and input method, finds required record fast.
The invention provides a kind of method of searching the content of storage in having the electronic installation of keyboard, described electronic installation comprises input unit, processing unit, display screen and storage device, described input unit comprises key or the bar that is used for input in Chinese, and options button, and described method comprises step:
The database of pre-defined rule is satisfied in foundation, and described database comprises the described record of searching the content of storage with predetermined data-structure;
Enter predetermined input pattern;
First key of first character correspondence of the record that input will be searched;
All records that show the content in described first key correspondence database;
From described content displayed, select to satisfy the specific record of customer requirements.
Alternatively, the described foundation step that satisfies the database of pre-defined rule comprises: different input patterns is set up the different databases with different pieces of information structure.
Preferably, described database comprises corresponding to the database of phonetic input and the database of stroke input.
Alternatively, describedly enter predetermined input pattern and comprise step: select to enter phonetic input pattern or stroke input pattern.
Preferably, method also comprises step: show all records that can show.
Alternatively, the step of first key of first character correspondence of the record that described input will be searched comprises: when first character is English alphabet or numeral, import described letter or number.
Preferably, the step of first key of first character correspondence of the record that will search of described input comprises:
In input mode is phonetic and first character when being Chinese, first letter of the phonetic of described first character of input;
In input mode is stroke and first character when being Chinese, first stroke of described first character of input.
Alternatively, described options button is a directionkeys, and the step that the specific record of customer requirements is satisfied in described selection comprises utilizes the specific record of described directionkeys moving cursor to described requirement.
The present invention also provides a kind of device of searching the content of storage in having the electronic installation of keyboard, comprising:
Input/output unit comprises input unit, is used for input information, and display screen, is used for display message;
Processing unit is coupled to described input/output unit, and the information and/or the output information that are used to receive input unit are shown by described display screen;
Storage device is used for stored information, comprises in the described storage device that the database that satisfies pre-defined rule, described database comprise the described record of searching the content of storage with predetermined data-structure;
Wherein, described input unit comprises key or the bar that is used for input in Chinese, and options button: under concrete input pattern; First key of first character correspondence of the record that described input unit input will be searched; Described processing unit is searched the record that meets the demands according to first key of input in described database, and controls all records that described display screen shows the content in described first key correspondence database; Described processing unit also responds described options button, selects to satisfy the specific record of customer requirements.
Alternatively, device also comprises: the input pattern options button, be used to select input pattern, and described processing unit calls the different database of storing in the described storage device according to the difference of input pattern.
Preferably, described options button is a directionkeys, is used for moving cursor to selected record.
Method and apparatus of the present invention has improved the search efficiency to Chinese data, has realized Chinese high-speed searching.
Embodiment
For those skilled in the art being understood and implementing the present invention, now describe the present invention with reference to accompanying drawing in conjunction with the embodiments.
When input method is spelling input method, with reference to Fig. 1,2,3,4,5,6,7,8 describe embodiment.
At first, the cell phone keyboard of specific embodiments of the present invention is shown with reference to Fig. 1.This keyboard comprises 3 * 4 QWERTY keyboard, and one 5 to key and 2 soft keys, and dial key and on-hook key.Use spelling input method in the embodiments of the invention.On numerical key 2-9, indicate at least one phonetic alphabet respectively.And when adopting stroke input method, on numerical key 1-6 and 7 and 9 keys, indicate a stroke respectively, in fact, can only there be 5 numerical keys to mark 5 basic strokes respectively.
Fig. 6 illustrates the phonebook database in the mobile phone of being stored in of specific embodiments example.Wherein, comprise 6 records: Zhang San, open five, 6 addresses that Li Si, Xiao Wang, West and 555 are stored in data link table respectively.In order to support the initial character relevant to search fast, need to produce a mobile phone key and phone book records correspondence table with input method.Fig. 7 is illustrated in the tables of data of embodiments of the invention under the spelling input method.This table is the data link table that is stored in the mobile phone, and it divides two parts, and the left side contains the number of the initial character of each button for to press key table.The right is the chained list of one group of initial character, comprises the index value of character and this character the first stroke record.In the present embodiment, the key ' 5 ' among Fig. 1 is relevant with 2 initial characters, be respectively the database index value be 3 ' Lee ' and index value be 6 ' 5 '.Key ' 9 ' is relevant with 3 initial characters, is respectively that the database index value is ' opening ' of 1, and index value is that 4 ' little ' and index value are 5 ' W '.And key " 2 ", " 3 ", " 4 ", " 6 ", " 7 ", " 8 " all do not have corresponding initial character.In an embodiment of the present invention, each numerical key is by circuit and processing unit in the mobile phone, organically couples together with the mode of the data of storing in the storage device in mobile phone by Fig. 7.For example, after mobile phone entered the state of searching, the display screen of mobile phone showed content as shown in Figure 2, because the display screen of the embodiment of the invention can show 6 row, therefore, had shown 6 records.This is a phone book records tabulation, and original cursor is on the first stroke record " Zhang San ".In fact original cursor can be in any position, as the centre position
When the user wanted to search " Xiao Wang " this notes record, first letter of phonetic ' x ' of initial character " little " was on ' 9 ' key, so by ' 9 '.After key " 9 " is pressed, keyboard scanning device scans key " 5 ", then, sends the signal that key " 9 " is pressed to control device, control device is according to this signal, according to the structure of data table of setting (Fig. 7), find the data of 9 correspondences, as shown in Figure 7, the content of this data correspondence is shown, promptly show " opening ", " little ", " W ".Generate initial character and select interface (Fig. 3), utilize 5 then to the key moving cursor to " little " (Fig. 4) and select, the user is by determining key, and what mobile phone obtained that the user selects is " little ".Store the tables of data of Fig. 7 in the control device, control device obtains the index value 4 of the first stroke record of initial character " little " according to this tables of data.Then, control device control mobile phone upgrades the interface, cursor is moved on on the record of phonebook database index value 4, drives display screen by drive circuit and shows.Just come fourth line because present screen display 6 row, index value are 4 record, so the cursor after searching moves on to fourth line, the interface is Fig. 5.
Fig. 8 is a schematic flow sheet of embodiment.Usually, the user should set up database in mobile phone, in an embodiment of the present invention, control device is according to predetermined rule, rule as shown in Figure 7 is set up data structure (this step is finished usually in advance, is step 815) with all address dates in the flow chart of Fig. 8.In step 1: it is relevant with which kind of input method that mobile phone wants clear and definite initial character to search method, is generally phonetic or stroke.Mobile phone can provide default association, as phonetic, and also can be by the user by the keyboard setting.According to the database of memory device stores, the control device control display screen shows the address date that it can show, these addresses can also can show (step 810 of Fig. 8) from any default value from beginning demonstration.
Then, in step 2: when the user will search record, when pressing first character input of this record name earlier will by first key (step 820 of Fig. 8).In one embodiment, the user will search a notes record " Zhang San " by name, and relevant input method is a phonetic.First character of this record name is " opening ", and phonetic is " zhang ", ' z ' on key ' 9 ', so when input will by first key be ' 9 '.
In another embodiment, search the record that numeral 3 or English alphabet B take the lead, can directly press corresponding key.As, record " Beijing " is by ' 2 ', and record " 3000 " is by ' 3 '.In this case, not necessarily need to enter the phonetic input state.
Then in step 3: select (step 825 of Fig. 8 and 830) with the set of the initial character of enter key headed by this key (promptly satisfying the condition in the step 2) for the user in all records of screen display.
As 6 notes records being arranged, " Zhang San ", " opening five ", " Li Si ", " Xiao Wang ", " West ", " 555 " in the telephone directory.Press ' 5 ', screen display " Lee ", " 5 ", selective.Press ' 9 ', screen display " is opened ", " little ", " W ".Because the phonetic of " Lee " is with ' 1 ' beginning, ' 1 ' on key ' 5 '.
Step 4: the user selects the initial character (step 835 of Fig. 8) that will look in the set of initial character, and in the present embodiment, mobile phone is chosen the first stroke record (step 840) that meets this initial character automatically.In last example, earlier by ' 9 ', choosing " opening " again, mobile phone just should be chosen " Zhang San " (step 845).And in fact, the arbitrary notes record of the default value of cursor is as a notes record or a finishing touch record of centre.
Use benefit of the present invention to be, each notes record can utilize large-screen and directionkeys to select corresponding to a numerical key then, can find required record fast, intuitively.
In an embodiment of the present invention, there are the 6 notes records of storing in the telephone directory with Fig. 6 form.Relevant input method is a spelling input method.
The initial interface of the cell-phone telephone book that shows is Fig. 2.This is a phone book records tabulation, and in the present embodiment, a screen shows 6 line items.Original cursor is on the first stroke record " Zhang San ".Simultaneously, mobile phone is searched fast in order to support the initial character relevant with spelling input method, has produced a mobile phone key and phone book records correspondence table (Fig. 7).This table is the data link table that is stored in the mobile phone, and it divides two parts, and the left side contains the number of the initial character of each button for to press key table.The right is the chained list of one group of initial character, comprises the index value of character and this character the first stroke record.
In this example, (Fig. 6) can get by phonebook database, and ' opening ', ' Lee ', ' little ', ' W ', ' 5 ' 5 initial characters are altogether arranged.' open '-zhang, ' Lee '-li, ' little '-xiao according to phonetic, ' z ' on key 9, ' 1 ' on key 5, and ' x ' adds ' W ' that do not need input method on key 9 on key 9, and key 5 itself is exactly an initial character.More than can extrapolate, the key ' 5 ' among Fig. 7 is relevant with 2 initial characters, be respectively the database index value be 3 ' Lee ' and index value be 6 ' 5 '.Key ' 9 ' is relevant with 3 initial characters, is respectively that the database index value is ' opening ' of 1, and index value is that 4 ' little ' and index value are 5 ' W '.
When the user wanted to search " Xiao Wang " this notes record, first letter of phonetic ' x ' of initial character " little " was on ' 9 ' key, so by ' 9 '.Mobile phone " is opened " " little ", " W " according to Fig. 7 to all initial characters relevant with ' 9 '.Generate initial character and select interface (Fig. 3).
The user need look for " Xiao Wang ", and initial character is " little ", selects with directionkeys cursor " little ", as Fig. 4.The user is by determining key, and what mobile phone obtained user's selection is " little ".Can get the index value 4 of the first stroke record of initial character " little " according to Fig. 7.Mobile phone upgrades the interface, cursor is moved on on the record of phonebook database index value 4.Just come the 6th row because present screen display 6 row, index value are 4 record, so the cursor after searching moves on to the 6th row, the interface is Fig. 5.
When input method is stroke input method, with reference to Fig. 1,2,5,6,8,9,10 describe embodiment.
Fig. 9 illustrates the mobile phone of specific embodiments example and search the mobile phone key concordance list that generates for realization under the stroke input condition.Figure 10 illustrates the interface of mobile phone after cell-phone telephone book under the stroke input condition is by mistake ' 2 ' key of specific embodiments example.In the phonebook database of Fig. 6, mobile phone generates the button concordance list of Fig. 9.Stroke the first stroke of ' opening ' is ' ', the key ' 5 ' on the corresponding keyboard.The stroke the first stroke of ' Lee ' is ' one ', the key ' 1 ' on the corresponding keyboard.The stroke the first stroke of ' little ' is ' Shu ', the key ' 2 ' on the corresponding keyboard.' W ' on keyboard ' 9 ', ' 5 ' on keyboard ' 5 '.Such one has 4 keys the initial character that is associated, and ' 1 ' ' 2 ' ' 5 ' ' 9 ', 2 initial characters is arranged on ' 5 ' key wherein respectively, and other 3 keys respectively have an initial character.
When the user wanted to search " Xiao Wang " this notes record, first stroke ' Shu ' of initial character " little " was on ' 2 ' key, so by ' 2 '.Mobile phone is according to Fig. 9, has only an initial character " little " to relevant with ' 2 '.Generate initial character and select the interface, as shown in figure 10.
The user need not select, and directly by determining key, what mobile phone obtained user's selection is " little ".Can get the index value 4 of the first stroke record of initial character " little " according to Fig. 9.Mobile phone upgrades the interface, cursor is moved on on the record of phonebook database index value 4.Because being 4 record, present screen display 6 row, index value just come the 6th row, so the cursor after searching moves on to the 6th row, interface such as Fig. 5.
In an embodiment of the present invention, a kind of device of searching the content of storage in having the mobile phone of keyboard comprises: input/output unit, comprise input keyboard, and be used for input information, and display screen, be used for display message; The processing unit that comprises CPU is coupled to described input/output unit, and the information and/or the output information that are used to receive input unit are shown by described display screen; Comprise the storage device of ROM, RAM, be used for stored information, comprise in the described storage device that the database that satisfies pre-defined rule, described database comprise the described record of searching the content of storage with predetermined data-structure;
Wherein, described input unit comprise key or the bar that is used for input in Chinese and select specific record 5 to key: under concrete input pattern; First key of first character correspondence of the record that described input unit input will be searched; Described processing unit is searched the record that meets the demands according to first key of input in described database, and controls all records that described display screen shows the content in described first key correspondence database; Described processing unit also responds described options button, selects to satisfy the specific record of customer requirements.
On this keyboard, comprise the input pattern options button, this can be the key of fixing, and also can be the soft key that utilizes software to select by menu, be used to select input pattern, described processing unit calls the different database of storing in the described storage device according to the difference of input pattern.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.