Background technology
The convenience of operating process is more and more paid close attention in present mobile phone products research and development, the design of each function of mobile phone also strives appearing suddenly in the details place care, operating process scientific and reasonable convenient of human nature, make mobile phone really become user's indispensable instrument, the competent assistant who deals with problems.
The phone book records search is one of basic function of mobile phone, and the existing means of searching mainly comprise following several: 1, complete Chinese or the English name of input, i.e. mode of mating fully.See also Fig. 1, be the course of work flow chart of prior art.At first the inputted search word under the situation of mating fully, if input is English, is then searched for the Chinese record of English or lead-in phonetic; If Chinese record then searched in input Chinese.This method requires the searched person's of the correct memory of user title, and the number of words of input is many, complicated operation.The user often would rather browse search from the beginning to the end, makes this method and being of little use.2, the lead-in of input name is then imported " week " as the telephony recording of desire search " Zhou Bichang ", then imports " Harry " as the telephony recording of desire search " Harry Potter ".This method has reduced search precision, and the also corresponding increase of the scope of hitting, what search is all telephony recordings of the personnel of surname Zhou in the telephone directory, all is named as the personnel's of " Harry " telephony recording, and the user also needs browse search in this scope, could determine required telephony recording at last.Search procedure is more complicated still, and touch potential is too much.As the TCL718 mobile phone is adopting said method.3, only import the numerical key of initial correspondence of the Chinese phonetic alphabet of name.This method only needs button once can find roughly scope, needs buttons 4 times unlike method 2 inputs " week ", but still needs thereafter further search by the mode of browsing.The problem of this method is, often corresponding 3,4 letters of numerical key, press the English alphabet sequence arrangement, telephony recording as desire search " Zhou Bichang ", button " 9 " then, but telephone directory navigates to telephony recording place of first letter of pinyin " W " automatically, and redundant data volume is too much, and seek rate is slow.In addition, existing search means scarcely support substring to search, and make certain name is remembered when inaccurate, can only large tracts of land browse.And way of search is not configurable, and the user can not be forbidden the way of search of disliking, as the search of forbidding lead-in phonetic.
Be a kind of relation of dynamic equilibrium between definite degree, search precision and the convenience degree of the search of input when searching record, search is accurate, and the convenience that operates will correspondingly reduce, but the precision height; Search is fuzzy, and operation is convenient, has but sacrificed precision.Utilize new technology to find wherein balance point, make the user obtain facility, rapidly and service accurately be the only direction that the mobile phone products research and development are paid close attention to.
Summary of the invention
Technical problem underlying to be solved by this invention is, can rely on minimum touch potential when making the cellphone subscriber search number inputted search word, finds required telephony recording rapidly.
To achieve these goals, the invention provides a kind of searching method of telephony recording of portable terminal.
In order further to realize above-mentioned purpose, the invention provides a kind of searching method of telephony recording of portable terminal, English or Chinese record title and an authentication code all preserved automatically in every record of telephone directory, this authentication code is made up of the first phonetic letter or the English name of this record name, corresponding letter of each Chinese character in the record name, each letter is corresponding with a numeral; During search, input Chinese character, letter, numeral or its mixing are as search, and what search is and each corresponding successively record name of search;
The character string of importing a function key and being made up of Chinese character, letter or number can search the record name that correspondence has comprised this character string as search;
The spelling phonetic alphabet of input record name can search the Chinese record title of this spelling phonetic alphabet correspondence as search.
Described input Chinese character, letter, numeral or its searching algorithm that mixes as the search correspondence comprise:
Obtaining in the telephone directory every record and search one by one compares, each search compares with the corresponding numeral of record name, authentication code, the authentication code of corresponding position successively, as long as a kind of identical relatively next bit that then continues with this search is wherein arranged, relatively finishes up to all figure places with search; Exist difference then to obtain next bar record, everybody identically then chooses with search.
Described input " * " and the character string be made up of Chinese character, letter or number comprise as the searching algorithm of search:
Obtain every record in the telephone directory one by one, whether comprise the character string after this function key in the numeral of searching record title, authentication code, authentication code correspondence, comprise then and choosing, do not comprise that then obtaining next bar record compares, until relatively finishing with all records.
The spelling phonetic alphabet of described input record name comprise as the searching algorithm of search:
Obtain every record in the telephone directory one by one, the Chinese record title is changed into spelling phonetic word string, then English record name is constant, compare with search integral body, identically then choose, difference is then obtained next bar record and is compared, until relatively finishing with all records.
Described method also comprises: the step of setting search pattern, this search pattern comprises: search, Advanced Search fast.
Described method under described Advanced Search pattern, just can be imported Chinese character, numeral, letter or it mixes as search, and perhaps input function key and the character string be made up of Chinese character, letter or number are as search;
Described under described quick search pattern, the spelling phonetic alphabet that can import Chinese character, numeral, letter or record name are as search.
Described function key is " * " key.
The present invention can effectively reduce the touch potential in the telephony recording search procedure, the search precision height, and this method meets the hommization thinking, uses the convenience height.It can also be forbidden for unused way of search.
Embodiment
For making purpose of the present invention, structure, feature and function thereof there are further understanding, now cooperate embodiment to be described in detail as follows.Above about content of the present invention explanation and the explanation of following execution mode in order to demonstration with explain principle of the present invention, and provide patent claim of the present invention further explained.
The present invention utilizes new software also to store the authentication code of title outside the title of each bar telephony recording of preserving input, and this authentication code is made up of the first letter of pinyin of each Chinese character of title.Authentication code as " Zhou Bichang " is ZBC.And the record of English name, its title is authentication code.Simultaneously, each numerical key on the keyboard and several letter are mapped, set up a digital alphabet rule of correspondence.As, 2~ABC, 3~DEF, 4~GHI, 5~JKL, 6~MNO, 7~PQRS, 8~TUV, 9~WXYZ.Like this, can correspondingly lock some letters by numeral, again can more corresponding Chinese characters by letter.
Search engine of the present invention mainly comprises Advanced Search and searches for two kinds fast.And every kind of search engine comprises number pinyin way of search and phonetic letter way of search.Can realize complete match search, the search of initial phonetic, numeral search, substring search, Hybrid Search to the combination setting of two kinds of ways of search in the Advanced Search.Advanced Search is powerful, and is various informative but relative velocity is slower.Search can realize complete match search, the search of initial phonetic, numeral search, substring search, spelling search fast, but can not realize Hybrid Search.The user can be configured special setup menu, selects oneself to be accustomed to the way of search of use, can activate or forbid other way of search except that basic complete match search.Certainly possessed default configuration (Advanced Search activates number pinyin down) in the mobile phone, the user can skip manual configuration and directly enter search procedure.
Below in conjunction with concrete operating process, explain content of the present invention and structure.
Suppose now there have been 10 records in the mobile phone, be respectively peace peace, peace primary, An Cun, the peace mansion is pretty good, Aa, Abcd, Ac, Anan, 223,22678.
See also Fig. 2, be chosen to be in way of search under the situation of " Advanced Search ", only activate the number pinyin search, and remove the phonetic letter search.At this moment, input digit, then the lead-in phonetic according to digitized representation finds Chinese record name, finds English record name according to the English of digitized representation, thereby finds digital record.When switching to spelling input method, can in search box 1, import Chinese character.As shown in the figure, input " peace peace ", then belong to complete match pattern, software will be searched the record of coupling and will be shown in the viewing area below the search box according to search in telephony recording, show the bar number of the record that searches and current input method status simultaneously in the parameter display box on search box right side respectively.This mode needs the title of accurately memory and correct output telephony recording, though the more search procedure of input process touch potential is very accurate, can search out required content immediately.When switching to digital inputting method, as shown in the figure, input " 22 " in the search box, represented " 22 " pairing phonetic alphabet with and the numeral itself, be that its attainable search comprises " aa ", " ab ", " ac ", " ba ", " bb ", " bc ", " ca ", " cb ", " cc ", " 22 ", then its result who searches be authentication code be the Chinese character of above-mentioned character string or English name telephony recording or headed by two be the digital title record of " 22 ".As shown in the figure, it finds is recorded as " peace peace ", " peace primary ", " peace village ", " Aa ", " Abcd ", " Ac ", " 223 ", " 22678 ".The search procedure of this way of search is supported Fuzzy processing, also can find corresponding record rapidly for the unclear title of memory.And the search of input is very simple, and touch potential obviously reduces, but the scope of hitting is bigger.Total number in telephony recording is in the limited scope and each different time of title, by once the search the result in carry out secondary browse the search be very easy.
See also shown in Figure 3ly, be still under the Advanced Search pattern this moment and activate the number pinyin search, but in the phonetic letter search option, activated " initial search " again.At this moment, can in phonetic, numeral, letter input method, select a kind of.If switch to letter input method, then can search by the mode of initial search this moment, as inputted search word " Aa ", in case then software finds corresponding with it Chinese character or English to write down then is shown in the display box, having found 2 records as shown in the figure, is respectively " peace peace ", " Aa ".Simultaneously, the present invention also can support the substring search method.As shown in the figure, replace some unknown characters with " * ", and add search in addition, this search can be Chinese character, letter, numeral.For example input " * primary " in the search box, then software is inquired about title, the authentication code of all records automatically, in case find and comprise the record of search then be shown in the display box, has found 1 record as shown in the figure, is " peace primary ".The support of this kind method is searched for generally, can determine approximate range rapidly remembering unclear to search or being reluctant repeatedly to knock under the situation of keyboard, carries out browse queries again.This method also supports to mix inquiry, promptly under the English input method state, and input digit and letter simultaneously in the search box, then digital corresponding a plurality of letters mate with the authentication code of all records, as find occurrence then to show in display box.As shown in the figure, inputted search word " 2B " has found 2 records, is respectively " peace primary ", " Abcd ".Can certainly mixed inputting Chinese characters, any two or three in the numeral, letter be as search.This kind method has embodied the flexibility of bigger search, gives the user under the operating position of various complexity, and the possibility of information needed is found in expansion.
As shown in Figure 4, this moment, way of search switched to quick search, and search can realize the most of search patterns in the Advanced Search equally fast, just can not support Hybrid Search, promptly can only input digit as search, perhaps can only input alphabet, perhaps can only import Chinese character.Algorithm is comparatively simple, only needs relatively to get final product successively in a kind of record data.But search can be supported the spelling search fast.Concrete collocation method is to remove the number pinyin search, and selection " spelling search " in the phonetic letter search option.The user just can import required search with all-phonetic input method in the search box like this.As shown in the figure, selected English input method input " Anan ", two records that then are presented in the display box are respectively " peace peace ", " Anan ".The speed of search pattern on algorithm will be far above fine mode fast.But, the user is noted that, the spelling search pattern can only be applicable to quick search pattern and can not be applicable to the pattern of Advanced Search, if and activated " number pinyin search " again when under quick mode, phonetic letter search being chosen as " spelling search ", this is the set point of a mistake, can not enter the searching method of anticipation smoothly.
Below continue to introduce the rudimentary algorithm of search:
See also Fig. 5, be the outline flowchart of the search of the initial phonetic under the fine mode of the present invention, numeral search, Hybrid Search algorithm.After the inputted search word started search, data processing chip obtained this search B and a record word string A (step 501) immediately, supposes that this search B is by B
1B
2B
iB
XForm, and record word string A is by A
1A
2A
3A
iA
YForm.Then at first compare A
1With B
1Whether identical (i=1) (step 502) be if identical continuation A relatively
2With B
2(i=i+1); If A
1Be Chinese character and B
1Be numeral, the type difference is then with A
1Be converted into first letter C of authentication code
1(step 503) continues relatively B
1With this C
1(step 504) is if B
1With C
1The identical relatively A that then continues
2With B
2(i=i+1); If type is difference then once more with C also
1Be converted into the corresponding digital D of letter
1(step 505) continues relatively D
1With this B
1(step 506) continues relatively A if numeral is identical
2With B
2(i=i+1), all relatively finish up to search all; If difference is not then character string matches (step 507), this writes down and does not meet search, then obtains next bar record again, searches for once more according to above-mentioned flow process.During Y<X, the figure place of search must not match greater than the figure place of record name or authentication code; During Y>=X, as long as the preceding X position of record is corresponding identical with search, can be selected.Up to all records are all relatively finished, then the record that will choose shows.Utilize this algorithm can realize initial phonetic search, numeral search, coupling, Hybrid Search mode fully.
See also Fig. 6, be the algorithm flow chart of the search of the spelling under the quick mode of the present invention.Must import the spelling of the title Chinese character of record under the spelling pattern.After the inputted search word starts search, data processing chip obtains this a search G and a record name E (step 601) immediately, E is converted into phonetic word string F (step 602) with this record name, judge this phonetic word string F whether with this search G identical (step 603), if difference is not then character string matches (step 604), if identical then string matching (step 605), this record promptly is the searched record that arrives.Continue to obtain next word string and compare,, the record of choosing is shown up to all relatively finishing with all records.
In addition, if the user imports " * " and search under fine mode, then representative starts the substring search.Promptly, obtain every record in the telephone directory one by one, whether comprise the character string after " * " in the numeral of searching record title, authentication code, authentication code correspondence, comprise then and choosing, do not comprise that then obtaining next bar record compares, until relatively finishing, the record of choosing is shown with all records.That is, as long as comprise this search or comprise that the record of the letter or number of this search correspondence just can be selected.