CN105357398B - The method and device of contact person is searched by dial - Google Patents
The method and device of contact person is searched by dial Download PDFInfo
- Publication number
- CN105357398B CN105357398B CN201510908588.5A CN201510908588A CN105357398B CN 105357398 B CN105357398 B CN 105357398B CN 201510908588 A CN201510908588 A CN 201510908588A CN 105357398 B CN105357398 B CN 105357398B
- Authority
- CN
- China
- Prior art keywords
- input method
- searching code
- character
- searching
- code
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 396
- 230000015654 memory Effects 0.000 claims description 25
- 238000006243 chemical reaction Methods 0.000 claims description 18
- 238000000151 deposition Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 8
- 238000012163 sequencing technique Methods 0.000 description 6
- 230000002093 peripheral effect Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 239000003795 chemical substances by application Substances 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 210000004209 hair Anatomy 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 229920000642 polymer Polymers 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
- H04M1/2745—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
- H04M1/27467—Methods of retrieving data
- H04M1/2748—Methods of retrieving data by matching character strings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72466—User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Telephone Function (AREA)
- Machine Translation (AREA)
Abstract
The invention discloses a kind of method and devices for searching contact person by dial, this method includes receiving contact name input by user, and the Chinese character in the contact name is respectively converted into the corresponding character string of different input methods, according to the correspondence of input method character in specified matching way and dial and number, character string is converted into multigroup searching code, establish the incidence relation of searching code and associated person information, and it stores into contact database, it receives user and passes through the numeric string that is inputted in dial, and according to the sequence of the corresponding searching code priority of pre-set difference input method, it searches and the matched searching code of the numeric string, the associated whole associated person informations of searching code for obtaining and showing and finding.The present invention carries out the matching and positioning of contact person according to the corresponding searching code of the currently used input method of user, the speed and efficiency for searching contact person can be improved by the way that contact name is saved as the corresponding searching code of different input methods.
Description
Technical field
The invention belongs to technical field of mobile terminals more particularly to a kind of methods and dress for searching contact person by dial
It sets.
Background technology
Mobile terminal use at present is more and more frequent and the widely available use of the relevant software of social communication how
Be particularly important to contact person using the enough rapidly and efficiently matching inquiries of dial, can make user realize can speed dialling,
Send the relevant operations such as information, wechat, microblogging.
In the prior art, it is inquired usually using the method that first letter of pinyin sorts using dial inquiring contactor, it is many
It is well known, phonetic input method is widely used that on Taiwan, Hong Kong and other places to realize the input of word, with spelling input method rule
Difference, therefore, the mode narrow scope of application of inquiring contactor in the prior art, search efficiency is not high, influences user
The convenience of operation.
Invention content
The present invention provides a kind of method and device for searching contact person by dial, and the present invention is by by contact name
The corresponding searching code of different input methods is converted to, is realized in a variety of inputs such as spelling input method, phonetic input method, foreign language input methods
The speed and efficiency of the contact person stored in mobile terminal are searched under method hybrid mode, enhance user's operation convenience.
First aspect present invention provides a kind of method for searching contact person by dial, the method includes:
Contact name input by user is received, and the Chinese character in the contact name is respectively converted into different inputs
The corresponding character string of method, the character string are made of input method character;
According to the correspondence of input method character in specified matching way and dial and number, the character string is converted
For multigroup searching code for showing as digital form, wherein each different input method corresponds to last set code respectively, per group searching
Code includes the searching code of a grouping or multiple groupings, and the searching code being each grouped is opposite with each specified matching way
It answers;
The incidence relation of described search code and the associated person information is established, and is stored into contact database;It receives
The user different inputs by inputting the numeric string for searching contact person in the dial, and according to pre-set
The sequence of the corresponding searching code priority of method is searched and the matched search of the numeric string in the contact database
Code;
The associated whole associated person informations of searching code for obtaining and showing and finding.
With reference to first aspect, in the first possible realization method of first aspect, the reception user input
Contact name after include:
Determine the currently used input method type of the user;
According to the currently used input method type, the searching code priority of different input methods is set.
The possible realization method of with reference to first aspect the first, in second of possible realization method of first aspect
In, described according to the currently used input method type, the searching code priority that different input methods are arranged includes:
If the currently used input method is spelling input method, the searching code priority for being set as spelling input method is high
It is preferential higher than the searching code of foreign language input method in the searching code priority of the searching code priority of phonetic input method, phonetic input method
Grade;
If the currently used input method is phonetic input method, the searching code priority for being set as phonetic input method is high
It is preferential higher than the searching code of foreign language input method in the searching code priority of the searching code priority of spelling input method, spelling input method
Grade;
If the currently used input method is foreign language input method, the searching code priority for being set as foreign language input method is high
It is preferential higher than the searching code of phonetic input method in the searching code priority of the searching code priority of spelling input method, spelling input method
Grade.
With reference to first aspect, described according to specified matching way in the third possible realization method of first aspect
And in dial input method character and number correspondence, the character string is converted to and multigroup shows as searching for digital form
Rope code includes:
If character match mode headed by the specified matching way, the character corresponding with current input method is obtained
String, and obtain each initial character that the Chinese character is corresponded in the character string;
According to the correspondence of current input method character described in the dial and number, each initial character pair is obtained
The number answered, and the sequence that the number of acquisition is compareed to each initial character is arranged in order as searching code.
With reference to first aspect, described according to specified matching way in the 4th kind of possible realization method of first aspect
And in dial input method character and number correspondence, the character string is converted to and multigroup shows as searching for digital form
Rope code further includes:
If the specified matching way is all-character matching way, the character corresponding with current input method is obtained
String;
According to the correspondence of current input method character described in dial and number, each character in the character string is obtained
Corresponding number, and the number of acquisition is compareed into the character string and is arranged in order as searching code.
With reference to first aspect, the first possibility of first aspect, second of possible, first aspect third of first aspect
Possible or first aspect the 4th kind of possibility is planted, in the 5th kind of possible realization method of first aspect, the method is also
Including:
When searching searching code matched with the numeric string, whenever detecting one number of user's input, then obtain
Take numeric string current in the dial;
The searching code with the Contemporary Digital String matching in the dial is searched, and the matched searching code is associated
In the contact name, Chinese character corresponding with the current numeric string is highlighted.
Second aspect of the present invention provides a kind of device for searching contact person by dial, and described device includes:
Receiving module, for receiving contact name input by user;
Conversion module, for the Chinese character in the contact name to be respectively converted into the corresponding character of different input methods
String, the character string are made of input method character;
The conversion module is additionally operable to according to the pass corresponding with number of input method character in specified matching way and dial
System, multigroup searching code for showing as digital form is converted to by the character string, wherein each different input method corresponds to respectively
Last set code includes the searching code of a grouping or multiple groupings, the searching code being each grouped and each institute per group searching code
It is corresponding to state specified matching way;
Module is established, the incidence relation for establishing described search code and the associated person information;
Memory module, for being associated with described search code and the associated person information for establishing module foundation
System, in storage to contact database;
The receiving module is additionally operable to receive the user by being inputted in the dial for searching contact person's
Numeric string;
Searching module is used for the sequence according to the corresponding searching code priority of pre-set difference input method,
It is searched and the matched searching code of the numeric string in the contact database;
Acquisition module, the associated whole associated person informations of searching code for obtaining and finding;
Display module, for showing the acquisition module is got whole contact persons associated with searching code that is finding
Information.
In conjunction with second aspect, in the first possible realization method of second aspect, described device further includes:
Determining module, the input method type currently used for determining the user;
Setup module, the currently used input method type for being determined according to the determining module, setting are different
The searching code priority of input method.
In conjunction with second of possible realization method of second aspect, the setup module, if being additionally operable to described currently used
Input method be spelling input method, then it is excellent higher than the searching code of phonetic input method to be set as the searching code priority of spelling input method
First grade, the searching code priority of phonetic input method are higher than the searching code priority of foreign language input method;
If the currently used input method is phonetic input method, the searching code priority for being set as phonetic input method is high
It is preferential higher than the searching code of foreign language input method in the searching code priority of the searching code priority of spelling input method, spelling input method
Grade;
If the currently used input method is foreign language input method, the searching code priority for being set as foreign language input method is high
It is preferential higher than the searching code of phonetic input method in the searching code priority of the searching code priority of spelling input method, spelling input method
Grade.
The first possible or second aspect second in conjunction with second aspect, second aspect is possible, in second aspect
The third possible realization method in, the conversion module includes:
Acquisition submodule, if for character match mode headed by the specified matching way, acquisition and current input method
The corresponding character string, and obtain each initial character that the Chinese character is corresponded in the character string;
The acquisition submodule is additionally operable to according to the pass corresponding with number of current input method character described in the dial
System obtains the corresponding number of each initial character;
Module is arranged, the sequence for the number of acquisition to be compareed to each initial character is arranged in order as searching code.
The third in conjunction with second aspect is possible, in the 4th kind of possible realization method of second aspect, the acquisition
Submodule obtains corresponding with current input method described if it is all-character matching way to be additionally operable to the specified matching way
Character string;
The acquisition submodule is additionally operable to the correspondence according to current input method character described in dial and number,
Obtain the corresponding number of each character in the character string;
The arrangement module is additionally operable to the number control character string of acquisition being arranged in order as searching code.
In conjunction with the 4th kind of possibility of second aspect, in the 5th kind of possible realization method of second aspect, the acquisition
Module is additionally operable to when searching searching code matched with the numeric string, whenever detecting one number of user's input, then
Obtain numeric string current in the dial;
The searching module is additionally operable to search the searching code with the Contemporary Digital String matching in the dial;
The display module, for will in the matched associated contact name of searching code, with it is described currently
The corresponding Chinese character of numeric string be highlighted.
From the embodiments of the present invention it is found that the present invention is by saving as contact name, different input methods are corresponding to search
Rope code so that when searching dial lookup contact person, join according to the corresponding searching code of the currently used input method of user
It is the matching and positioning of people, compared to the prior art, the present invention can be under multilingual different input method environment quickly and accurately
Contact person is searched, expands the applicability of lookup method, improves the convenience of user's operation.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those skilled in the art without having to pay creative labor, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of structure diagram of mobile terminal;
Fig. 2 is the method implementation process schematic diagram that contact person is searched by dial that first embodiment of the invention provides;
Fig. 3 is the dial schematic diagram of display input method character and digital correspondence;
Fig. 4 is the method implementation process schematic diagram that contact person is searched by dial that second embodiment of the invention provides;
Fig. 5 is the apparatus structure schematic diagram that contact person is searched by dial that third embodiment of the invention provides;
Fig. 6 is the apparatus structure schematic diagram that contact person is searched by dial that fourth embodiment of the invention provides.
Specific implementation mode
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality
It is only a part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, people in the art
The every other embodiment that member is obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 shows a kind of structure diagram of mobile terminal.Provided in an embodiment of the present invention searched by dial contacts
The method of people can be applied in mobile terminal 10 as shown in Figure 1, mobile terminal 10 can be, but not limited to include:Battery need to be relied on
Smart mobile phone, notebook, tablet computer, the wearing smart machine etc. for maintaining normal operation and supporting network and download function.
As shown in Figure 1, mobile terminal 10 includes memory 101, storage control 102, one or more (is only shown in figure
One) processor 103, Peripheral Interface 104, radio-frequency module 105, key-press module 106, audio-frequency module 107 and Touch Screen
108.These components are mutually communicated by one or more communication bus/signal wire 109.
It is appreciated that structure shown in FIG. 1 is only to illustrate, the structure of mobile terminal is not caused to limit.It is mobile whole
End 10 may also include than shown in Fig. 1 more either less components or with the configuration different from shown in Fig. 1.It is shown in FIG. 1
Hardware, software, or its combination realization may be used in each component.
Memory 101 can be used for storing software program and module, such as being searched by dial in the embodiment of the present invention
Corresponding program instruction/the module of method and device of contact person, processor 103 are stored in soft in memory 101 by operation
Part program and module realize above-mentioned mobile terminal 10 by dialling to perform various functions application and data processing
The method that dialer searches contact person.
Memory 101 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic
Property memory mobile terminal, flash memory or other non-volatile solid state memories.In some instances, memory 101 can be further
Include the memory remotely located relative to processor 103, these remote memories can pass through network connection to mobile terminal
10.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processing
Device 103 and other possible components can carry out the access of memory 101 under the control of storage control 102.
Peripheral Interface 104 couples various input/output devices to CPU and memory 101.The operation of processor 103 is deposited
Various softwares, instruction in reservoir 101 are to execute the various functions of mobile terminal 10 and carry out data processing.
In some embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be in one single chips
It realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 105 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with
Communication network or other equipment are communicated.Radio-frequency module 105 may include the various existing electricity for executing these functions
Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card,
Memory etc..Radio-frequency module 105 can be with the wireless network progress of various networks such as internet, intranet, preset type
Communication is communicated by the wireless network of preset type with other equipment.The wireless network of above-mentioned preset type can wrap
Include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).The wireless network of above-mentioned preset type can use various communications
Standard, agreement and technology, including but not limited to global system for mobile communications (Global System for Mobile
Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE) is wide
Band Code Division Multiple Access (Wideband Code Division Multiple Access, W-CDMA), Code Division Multiple Access
(Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA),
Bluetooth, adopting wireless fidelity technology (Wireless-Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE
802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over
Internet Protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for
Microwave Access, Wi-Max), other for mail, instant messaging and short message agreement and any other is suitable
Communications protocol.
Key-press module 106 provides the interface that is inputted to mobile terminal of user, user can by press it is different by
Key is so that mobile terminal 10 executes different functions.
Audio-frequency module 107 provides a user audio interface, may include that one or more microphones, one or more raises
Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 104, and voice data is converted to power information,
Power information is transmitted to loud speaker.Power information is converted to the sound wave that human ear can be heard by loud speaker.Voicefrequency circuit is also from microphone
Place receives power information, converts electrical signals to voice data, and by data transmission in network telephony to Peripheral Interface 104 with into advancing one
The processing of step.Audio data can obtain from memory 101 or by radio-frequency module 105.In addition, audio data can also
It stores into memory 101 or is sent by radio-frequency module 105.In some instances, audio-frequency module 107 may also include
One earphone broadcasts hole, for providing audio interface to earphone or other equipment.
Touch Screen 108 provides an output and input interface simultaneously between mobile terminal and user.Specifically, touch-control
Screen 108 shows that video output, the content of these videos output may include word, figure, video and its arbitrary group to user
It closes.Some outputs are the result is that correspond to some user interface objects.Touch Screen 108 also receives the input of user, such as user
The gesture operations such as click, sliding, so that user interface object responds the input of these users.It detects input by user
Technology can be based on resistance-type, condenser type or any other possible touch control detection technology.108 display unit of Touch Screen
Specific example include but is not limited to liquid crystal display or light emitting polymer displays.
Referring to Fig. 2, the realization for the method for searching contact person by dial that Fig. 2, which is first embodiment of the invention, to be provided
Flow diagram.The method provided in this embodiment for searching contact person by dial can be applied to mobile end as shown in Figure 1
In end 10, mainly include the following steps that:
S201, contact name input by user is received, and the Chinese character in the contact name is respectively converted into difference
The corresponding character string of input method, the character string are made of input method character.
Input method includes spelling input method, phonetic input method and foreign language input method, and wherein foreign language input method includes:English is defeated
Enter the input method including method, Russian input method, Japanese inputting method etc..
It identifies the Chinese character in contact name, and Chinese character is respectively converted into the corresponding character string of variant input method, it should
Character string is made of the character of corresponding input method.Particular by character library is called, the corresponding pass between Chinese character and phonetic is obtained
System, Chinese character is converted to the corresponding character string of spelling input method, then by the correspondence between phonetic and phonetic notation, further
The corresponding character string of spelling input method is converted to the corresponding character string of phonetic notation phonetic input method.To Chinese character is converted to foreign language input method
Character string can be by calling China and foreign countries' cliction allusion quotation to realize.
For example, contact name is known as Zhang little Dong, then " Zhang little Dong " is respectively converted into the corresponding character string of spelling input method
Character string corresponding with phonetic input method.Wherein, " Zhang little Dong " is converted to the corresponding character string of spelling input method
“zhangxiaodong”。
S202, according to input method character in specified matching way and the dial with number correspondence, by the word
Symbol string is converted to multigroup searching code for showing as digital form.
Wherein, each different input method corresponds to last set code respectively, includes a grouping or multiple per group searching code
The searching code of grouping, the searching code being each grouped are corresponding with each specified matching way.
Fig. 3 is referred to, shows that phonetic input method character, spelling input method character and English are defeated in dial shown in Fig. 3
Enter correspondence of the method character respectively with number.
Searching code shows as digital form, it is a numeric string sequence, for what is inputted on dial according to user
Content match query contact person in contact database.There is the title of multiple contact persons in the contacts list of user, it is each pair of
An input method is answered, last set code corresponding with multiple contact names is just generated, then, with multiple and different input methods pair
It answers, generates multigroup different searching code.
Further, different specified matching ways corresponds to different searching codes, and specifically, matching way may include contacting
The initial character matching way of each word in name word, further includes the all-character matching way of all words in contact name.Matching
Mode can specify setting in systems by user, it is possible to specify a kind of matching way, using initial character matching way or full word
Matching way is accorded with, two kinds of matching ways can also be specified, using initial character matching way and all-character matching way and deposited.Cause
This, includes the searching code of a grouping or multiple groupings per group searching code, and the searching code being each grouped is specified with each this and matched
Mode is corresponding.For example, if this specifies character match mode headed by matching way, a grouping is only included in every group searching code
Searching code, corresponding initial character matching way, if the specified matching way is all-character matching way, per in group searching code
Only include the searching code of a grouping, corresponding all-character matching way, if the specified matching way both can headed by character match
Mode, or all-character matching way includes then the searching code of two groupings per group searching code, corresponds to initial character respectively
Matching way and all-character matching way, if there is other specified matching ways, rule as described above scans for
The conversion of code.
For example, contact name is known as " Zhang little Dong ", the character string of spelling input method is " zhangxiaodong ", according to
The correspondence of input method character and number, the character string can be exchanged into a numeric string in the dial
" 9426494263664 " according to tandem include following correspondence in the numeric string:" 94264 " correspondence " zhang ",
" 9426 " correspondence " xiao ", " 3664 " correspondence " dong ".If character match mode headed by specified matching way, contact person
" Zhang little Dong " corresponding searching code is that the corresponding numeric string of initial character " zxd " is " 993 ";If specified matching way is all-character
Matching way, then the corresponding searching code of contact person " Zhang little Dong " is that the corresponding numeric string of all characters " zhangxiaodong " is
“9426494263664”;If specifying character match mode and all-character matching way headed by matching way and depositing, contact person
" Zhang little Dong " corresponding searching code is " 993 " and " 9426494263664 ".Likewise, it is appreciated that contact person " Zhang little Dong " goes back
There is the corresponding character string of corresponding phonetic input method, alternatively, the corresponding character string of corresponding foreign language input method, therefore, contact person "
The searching code in small east " can have multigroup searching code corresponding from different input methods, and may include and specify again per group searching code
The searching code of the corresponding one or more packets of matching way.
S203, the incidence relation for establishing the searching code and the associated person information, and store into contact database.
The associated person information includes:Contact name, contact number, contact number property, contact person and user
The information such as relationship and contact head image.
The incidence relation of the searching code and the associated person information is established, and is stored into contact database, due to dialing
It is the corresponding multiple characters of a number on one button of disk, therefore, a searching code can correspond to multiple associated person informations.This
Sample, when a searching code matches with the number for searching contact person that user inputs on dial, which closes
The contact person of connection is the user contact person to be searched.
Further, the incidence relation between searching code input method corresponding with searching code, specified matching way is preserved.
For example, the corresponding contact name of searching code " 993 " is known as " Zhang little Dong ", the corresponding input method of searching code is that phonetic is defeated
Enter method, specifies character match mode headed by matching way, the incidence relation of these parameters is stored in contact database.
S204, the user is received by inputting the numeric string for searching contact person in the dial, according in advance setting
The sequence for the searching code priority set is searched and the matched searching code of the numeric string in the contact database.
Number can only be inputted in the dial of mobile terminal, when user will input the contact name of lookup, shown as
The numeric string for searching contact person is had input by dial, it is excellent according to the corresponding searching code of pre-set difference input method
The sequence of first grade is searched and the matched searching code of the numeric string in the contact database.Searching code priority according to
Different input methods is set as different upper-lower hierarchies, and usually, the corresponding searching code of the currently used input method of user is preferential
Grade highest.
For example, user searches contact person " Zhang little Dong ", current input method is spelling input method, and spelling input method is corresponding to be searched
Rope code highest priority, then, if user inputs the initial character of the contact person, which is " zxd "
Corresponding " 993 ", if user inputs the all-character of the contact person, which is
" zhangxiaodong " corresponding " 9426494263664 " are searched searching code " 993 " in contact database, or are searched
Searching code " 9426494263664 ".
S205, acquisition and the associated whole associated person informations of searching code for showing and finding.
One searching code can be associated with multiple contact persons.For example, searching code " 993 " can be " zxd " with the initial of title
Contact person there is association correspondence, also can be " wzf " with initial, the contact person of " xyd " etc. has and is associated with correspondence,
And " zxd ", " wzf " and " xyd " can be respectively to coping with a contact name.If the number input by user for searching contact person
Word string is " 993 ", then, the searching code for matching the numeric string is also " 993 ", is obtained and the associated all connection of searching code " 993 "
It is the information of people, that is, obtains the letters such as contact name, contact number, contact person and the relationship of the user of these contact persons
Breath, and these information are shown to the user, by the user selection target contact person.
It shows the associated whole associated person informations of the searching code, can be shown after sorting according to pre-set sequence, it should
Pre-set sequence can be the sequence that the initial character of contact name is carried out according to the sequencing of English character, can also be contact
The sequence that people's number is carried out according to the sequencing of Arabic numerals.
The method provided in this embodiment that contact person is searched by dial, it is different defeated by saving as contact name
Enter the corresponding searching code of method so that corresponding according to the currently used input method of user when searching dial lookup contact person
Searching code carries out the matching and positioning of contact person, and compared to the prior art, the present invention can be in multilingual different input method environment
Under quickly and accurately search contact person, expand the applicability of lookup method, improve the convenience of user's operation.
Referring to Fig. 4, the realization for the method for searching contact person by dial that Fig. 4, which is second embodiment of the invention, to be provided
Flow diagram.The method provided in this embodiment for searching contact person by dial can be applied to mobile end as shown in Figure 1
In end 10, mainly include the following steps that:
S401, the currently used input method type of user is determined.
It determines the currently used input method type of user, is spelling input method, phonetic input method, English input method, Japanese
It is any in input method, Russian input method etc..
S402, according to currently used input method type, the searching code priority of different input methods is set.
Set the priority of the searching code of currently used input method to highest.
Can be specifically, if currently used input method is spelling input method, to be set as the searching code of spelling input method
Priority higher than phonetic input method searching code priority, the priority of the searching code of phonetic input method is higher than foreign language input
The priority of the searching code of method;
If currently used input method is phonetic input method, the priority for being set as the searching code of phonetic input method is higher than
The priority of the searching code of spelling input method, the priority of the searching code of spelling input method are higher than the searching code of foreign language input method
Priority;
If currently used input method is foreign language input method, the priority for being set as the searching code of foreign language input method is higher than
The priority of the searching code of spelling input method, the priority of the searching code of spelling input method are higher than the searching code of phonetic input method
Priority.
Different priorities are set for different input methods corresponding searching code, adapt to the currently used input method of user, it can be with
It improves and searches contact human efficiency.
S403, contact name input by user is received, and the Chinese character in the contact name is respectively converted into difference
The corresponding character string of input method, the character string are made of input method character.
It identifies the Chinese character in contact name, and Chinese character is respectively converted into the corresponding character string of variant input method, it should
Character string is made of the character of corresponding input method.For example, contact name is known as Meng Hai, then " Meng Hai " is respectively converted into phonetic
The corresponding character string of input method and the corresponding character string of phonetic input method.Wherein, " Meng Hai " it is corresponding to be converted to spelling input method
Character string " menghai ".
S404, according to input method character in specified matching way and the dial with number correspondence, by the word
Symbol string is converted to multigroup searching code for showing as digital form.
Wherein, each different input method corresponds to last set code respectively, includes a grouping or multiple per group searching code
The searching code of grouping, the searching code being each grouped are corresponding with each specified matching way.
Searching code shows as digital form, it is a numeric string sequence, for what is inputted on dial according to user
Content match query contact person in contact database.There is the title of multiple contact persons in the contacts list of user, it is each pair of
An input method is answered, last set code corresponding with multiple contact names is just generated, then, with multiple and different input methods pair
It answers, generates multigroup different searching code.
Further, different specified matching ways corresponds to different searching codes, and specifically, matching way may include contacting
The initial character matching way of each word in name word, further includes the all-character matching way of all words in contact name.Matching
Mode can specify setting in systems by user, it is possible to specify a kind of matching way, using initial character matching way or full word
Matching way is accorded with, two kinds of matching ways can also be specified, using initial character matching way and all-character matching way and deposited.
Specifically, if this specifies character match mode headed by matching way, the word corresponding with current input method is obtained
Symbol string, and each initial character of corresponding Chinese character in the character string is obtained, according to the current input method character in dial and number
Correspondence, obtain the corresponding number of each initial character, and the sequence that the number of acquisition is compareed to each initial character is arranged in order work
For searching code.That is, the priority of multiple numbers put in order it is identical as their sequences in tandem of corresponding initial character.
If the specified matching way is all-character matching way, character string corresponding with current input method is obtained, according to
The correspondence of current input method character and number in dial obtains the corresponding number of each character in the character string, and will obtain
The number control character string taken is arranged in order as searching code.That is, the priority of multiple numbers put in order it is corresponding respectively with them
Character in tandem sequence it is identical.
Therefore, include the searching code of a grouping or multiple groupings per group searching code, the searching code being each grouped with it is each
The specified matching way is corresponding.For example, if this specifies character match mode headed by matching way, only wrapped in every group searching code
The searching code of a grouping, corresponding initial character matching way are included, if the specified matching way is all-character matching way, every group
Also the searching code of a grouping, corresponding all-character matching way are only included in searching code, if the specified matching way both can be
Initial character matching way, or all-character matching way includes then the searching code of two groupings per group searching code, respectively
Corresponding initial character matching way and all-character matching way, if also having other specified matching ways, rule as described above
Rule scans for the conversion of code.
Above-mentioned searching code is not only related to input method, also related to specified matching way, substantially increases searching code setting
Reasonability, improve lookup contact human efficiency.
For example, contact name is known as " Meng Hai ", the character string of spelling input method is " menghai ", according to the dial
The correspondence of middle input method character and number, the character string can be exchanged into a numeric string " 6364424 ", pressed in the numeric string
Include following correspondence according to tandem:" 6364 " correspondence " meng ", " 424 " correspondence " hai ".If specified matching way is
Initial character matching way, then it is " 64 " that the corresponding searching code of contact person " Meng Hai ", which is the corresponding numeric string of initial character " mh ",;If
Specified matching way is all-character matching way, then the corresponding searching code of contact person " Meng Hai " is that all characters " menghai " are right
The numeric string answered is " 6364424 ";If specifying character match mode and all-character matching way headed by matching way and depositing,
The corresponding searching code of contact person " Meng Hai " is " 64 " and " 6364424 ".Likewise, it is appreciated that contact person " Meng Hai " also have pair
The corresponding character string of phonetic input method is answered, alternatively, the corresponding character string of corresponding foreign language input method, therefore, contact person " Meng Hai "
Searching code can have multigroup searching code corresponding from different input methods, and may include again and specified match party per group searching code
The searching code of the corresponding one or more packets of formula.
S405, the incidence relation for establishing the searching code and the associated person information, and store into contact database.
The associated person information includes:Contact name, contact number, contact number property, contact person and user
The information such as relationship and contact head image.
The incidence relation of the searching code and the associated person information is established, and is stored into contact database, due to dialing
It is the corresponding multiple characters of a number on one button of disk, therefore, a searching code can correspond to multiple associated person informations.This
Sample, when a searching code matches with the number for searching contact person that user inputs on dial, which closes
The contact person of connection is the user contact person to be searched.
Further, the incidence relation between searching code input method corresponding with searching code, specified matching way is preserved.
S406, the user is received by inputting the numeric string for searching contact person in the dial, according in advance setting
The sequence for the searching code priority set is searched and the matched searching code of the numeric string in the contact database.
Number can only be inputted in the dial of mobile terminal, when user will input the contact name of lookup, shown as
The numeric string for searching contact person is had input by dial, it is excellent according to the corresponding searching code of pre-set difference input method
The sequence of first grade is searched and the matched searching code of the numeric string in the contact database.
Specifically, if currently used input method is spelling input method, the priority of the searching code of spelling input method is high
In the priority of the searching code of phonetic input method, the priority of the searching code of phonetic input method is higher than the searching code of foreign language input method
Priority, that is, first check that whether there is or not be used to search what the numeric string of contact person matched with this in the searching code of spelling input method
Target search code, then check that whether there is or not be used to search the mesh that the numeric string of contact person matches with this in the searching code of phonetic input method
Searching code is marked, finally checks that whether there is or not be used to search the mesh that the numeric string of contact person matches with this in the searching code of foreign language input method
Mark searching code.
If currently used input method is phonetic input method, the priority of the searching code of phonetic input method is defeated higher than phonetic
Enter the priority of the searching code of method, the priority of the searching code of spelling input method is preferential higher than the searching code of foreign language input method
Grade, that is, first check that the target to match whether there is or not the numeric string for being used to search contact person with this in the searching code of phonetic input method is searched
Rope code, then check that whether there is or not be used to search the target search that the numeric string of contact person matches with this in the searching code of spelling input method
Code finally checks that whether there is or not be used to search the target search that the numeric string of contact person matches with this in the searching code of foreign language input method
Code.
If currently used input method is foreign language input method, the priority of the searching code of foreign language input method is tall and big in phonetic
The priority of the searching code of input method, the tall and big searching code in phonetic input method of priority of the searching code of spelling input method it is excellent
First grade..
For example, user searches contact person " Zhang little Dong ", current input method is spelling input method, and spelling input method is corresponding to be searched
Rope code highest priority, then, if user inputs the initial character of the contact person, which is " zxd "
Corresponding " 993 ", if user inputs the all-character of the contact person, which is
" zhangxiaodong " corresponding " 9426494263664 " are searched searching code " 993 " in contact database, or are searched
Searching code " 9426494263664 ".
S407, acquisition and the associated whole associated person informations of searching code for showing and finding.
One searching code can be associated with multiple contact persons.It is matched with the numeric string input by user for searching contact person
Searching code can there are one, it is possibility to have it is multiple, the letter for showing the associated whole contact persons of searching code is arranged according to pre-set sequence
Breath obtains the information such as contact name, contact number, contact person and the relationship of the user of these contact persons, and shows
These information give the user, by the user selection target contact person.
Further, when searching searching code matched with the numeric string input by user, with number input by user
The variation of string is constantly updated and the matched searching code of the numeric string, that is, whenever detecting user's one number of input, is just obtained
The current numeric string of dial, search with the current matched searching code of numeric string in dial, and matched will be searched with this
In the associated contact name of rope code, Chinese character corresponding with the current numeric string is highlighted.It specifically, can be by looking into
The searching code of string matching input by user is looked for, and calculates the deviant with the searching code matching result, determines and carries out height
The position of the Chinese character of bright display.
One example, user input " 5 ", then can be any searching code that " 5 " are first place with " 5 " matched searching code,
Such as, " 5 ", " 53 ", " 599 ", " 55385978 " etc., will be with searching code " 5 ", " 53 ", " 599 ", " 55385978 " associated contact
During name claims, Chinese character corresponding with " 5 " is highlighted, as " river " in contact name " river " is highlighted;With
" 599 " corresponding Chinese character is highlighted, as " Lee " in contact name " Li little Yu " is highlighted.
Further, user continues to input, and when the numeric string of input is " 59 ", can be with " 59 " matched searching code
It, will be associated with searching code " 599 ", " 55385978 " with " 59 " matched any searching code, such as " 599 ", " 55385978 "
It is during name claims, Chinese character corresponding with " 599 " is highlighted, as " Lee is small " in contact name " Li little Yu " carries out height
Bright display..
During searching contact person, as user inputs the variation of numeric string, contact corresponding to matched searching code
Name in claiming Chinese character corresponding with the current numeric string be highlighted so that the variation of lookup can be clearly seen in user
Journey promotes user experience to improve simple operation.
The method provided in this embodiment that contact person is searched by dial, it is different defeated by saving as contact name
Enter the corresponding searching code of method so that corresponding according to the currently used input method of user when searching dial lookup contact person
Searching code carries out the matching and positioning of contact person, and compared to the prior art, the present invention can be in multilingual different input method environment
Under quickly and accurately search contact person, expand the applicability of lookup method, improve the convenience of user's operation.
Referring to Fig. 5, the structure for the device for searching contact person by dial that Fig. 5, which is third embodiment of the invention, to be provided
Schematic diagram illustrates only and the relevant part of the embodiment of the present invention for convenience of description.The exemplary devices of Fig. 5 can be aforementioned
The executive agent for the method that contact person is searched by dial that embodiment provides, can be mobile terminal or therein one
A function module.Fig. 5 it is exemplary by dial search contact person device, include mainly:Receiving module 501, conversion module
502, module 503, memory module 504, searching module 505, acquisition module 506 and display module 507 are established.Each function module
Detailed description are as follows:
Receiving module 501, for receiving contact name input by user.
Conversion module 502, for the Chinese character in the contact name to be respectively converted into the corresponding character of different input methods
String, the character string are made of input method character.
Input method includes spelling input method, phonetic input method and foreign language input method, and wherein foreign language input method includes:English is defeated
Enter the input method including method, Russian input method, Japanese inputting method etc..
It identifies the Chinese character in contact name, and Chinese character is respectively converted into the corresponding character string of variant input method, it should
Character string is made of the character of corresponding input method.Particular by character library is called, the corresponding pass between Chinese character and phonetic is obtained
System, Chinese character is converted to the corresponding character string of spelling input method, then by the correspondence between phonetic and phonetic notation, further
The corresponding character string of spelling input method is converted to the corresponding character string of phonetic notation phonetic input method.To Chinese character is converted to foreign language input method
Character string can be by calling China and foreign countries' cliction allusion quotation to realize.
Conversion module 502 is additionally operable to according to the pass corresponding with number of input method character in specified matching way and dial
System, multigroup searching code for showing as digital form is converted to by the character string, wherein each different input method corresponds to one respectively
Group searching code, includes the searching code of a grouping or multiple groupings per group searching code, the searching code being each grouped with it is each described
Specified matching way is corresponding.
Searching code shows as digital form, it is a numeric string sequence, for what is inputted on dial according to user
Content match query contact person in contact database.There is the title of multiple contact persons in the contacts list of user, it is each pair of
An input method is answered, last set code corresponding with multiple contact names is just generated, then, with multiple and different input methods pair
It answers, generates multigroup different searching code.
Further, different specified matching ways corresponds to different searching codes, and specifically, matching way may include contacting
The initial character matching way of each word in name word, further includes the all-character matching way of all words in contact name.Matching
Mode can specify setting in systems by user, it is possible to specify a kind of matching way, using initial character matching way or full word
Matching way is accorded with, two kinds of matching ways can also be specified, using initial character matching way and all-character matching way and deposited.Cause
This, includes the searching code of a grouping or multiple groupings per group searching code, and the searching code being each grouped is specified with each this and matched
Mode is corresponding.For example, if this specifies character match mode headed by matching way, a grouping is only included in every group searching code
Searching code, corresponding initial character matching way, if the specified matching way is all-character matching way, per in group searching code
Only include the searching code of a grouping, corresponding all-character matching way, if the specified matching way both can headed by character match
Mode, or all-character matching way includes then the searching code of two groupings per group searching code, corresponds to initial character respectively
Matching way and all-character matching way, if there is other specified matching ways, rule as described above scans for
The conversion of code.
Module 503 is established, the incidence relation for establishing the searching code and the associated person information.
The associated person information includes:Contact name, contact number, contact number property, contact person and user
The information such as relationship and contact head image.
Establish the incidence relation of the searching code and the associated person information.Due to being a number on a button of dial
Corresponding multiple characters, therefore, a searching code can correspond to multiple associated person informations.In this way, when a searching code exists with user
When the number for searching contact person inputted on dial matches, the associated contact person of the searching code, which is user, to search
Contact person.
Memory module 504, the incidence relation for the searching code and the associated person information that module 503 is established will to be established,
It stores in contact database.
Further, the incidence relation between searching code input method corresponding with searching code, specified matching way is preserved.
Receiving module 501 is additionally operable to receive the user and passes through the number for searching contact person that is inputted in the dial
String.
Number can only be inputted in the dial of mobile terminal, when user will input the contact name of lookup, shown as
The numeric string for searching contact person is had input by dial.
Searching module 505 is used for the sequence according to the corresponding searching code priority of pre-set difference input method,
It is searched and the matched searching code of the numeric string in the contact database.
Searching code priority is set as different upper-lower hierarchies according to different input methods, and usually, user is currently used
The corresponding searching code highest priority of input method.
Acquisition module 506, the associated whole associated person informations of searching code for obtaining and finding.
One searching code can be associated with multiple contact persons, the letter of the associated whole contact persons of the searching code for obtaining and finding
Breath obtains the information such as contact name, contact number, contact person and the relationship of the user of these contact persons
Display module 507 that acquisition module 507 is got is contacted for showing with the associated whole of searching code that is finding
People's information.
Show that the associated whole associated person informations of the searching code found to the user, are contacted by user's selection target
People.
It shows the associated whole associated person informations of the searching code, can be shown after sorting according to pre-set sequence, it should
Pre-set sequence can be the sequence that the initial character of contact name is carried out according to the sequencing of English character, can also be contact
The sequence that people's number is carried out according to the sequencing of Arabic numerals.
It should be noted that in the embodiment of the exemplary devices for searching contact person by dial of above-mentioned Fig. 5, each work(
The division of energy module is merely illustrative of, can be as needed in practical application, such as the configuration requirement of corresponding hardware or soft
The convenient of the realization of part considers, and above-mentioned function distribution is completed by different function modules, i.e., searches this by dial
The internal structure of the device of contact person is divided into different function modules, to complete all or part of the functions described above.
Moreover, in practical application, the corresponding function module in the present embodiment can be by corresponding hardware realization, can also be by corresponding
Hardware execute corresponding software and complete.Each embodiment that this specification provides can all apply foregoing description principle.
In the embodiment of the present invention, by the way that contact name is saved as the corresponding searching code of different input methods so that looking into
When dial being looked for search contact person, carries out the matching of contact person according to the corresponding searching code of the currently used input method of user and determine
Position, compared to the prior art, the present invention can quickly and accurately search contact person under multilingual different input method environment, expand
The applicability of lookup method improves the convenience of user's operation.
Referring to Fig. 6, the structure for the device for searching contact person by dial that Fig. 6, which is fourth embodiment of the invention, to be provided
Schematic diagram illustrates only and the relevant part of the embodiment of the present invention for convenience of description.Fig. 6 is exemplary to be searched by dial
The device of contact person can be the executive agent for the method that contact person is searched by dial that previous embodiment provides, can be with
It is mobile terminal or one of function module.The device shown in fig. 6 that contact person is searched by dial, it is main to wrap
It includes:Receiving module 601, acquisition submodule 6021, arrangement module 6022, establishes module 603, memory module at conversion module 602
604, searching module 605, acquisition module 606, display module 607, determining module 608 and setup module 609.Each function module
Detailed description are as follows:
Receiving module 601, for receiving contact name input by user.
Conversion module 602, for the Chinese character in the contact name to be respectively converted into the corresponding character of different input methods
String, the character string are made of input method character.
It identifies the Chinese character in contact name, and Chinese character is respectively converted into the corresponding character string of variant input method, it should
Character string is made of the character of corresponding input method.Particular by character library is called, the corresponding pass between Chinese character and phonetic is obtained
System, Chinese character is converted to the corresponding character string of spelling input method, then by the correspondence between phonetic and phonetic notation, further
The corresponding character string of spelling input method is converted to the corresponding character string of phonetic notation phonetic input method.To Chinese character is converted to foreign language input method
Character string can be by calling China and foreign countries' cliction allusion quotation to realize.
Conversion module 602 is additionally operable to according to the pass corresponding with number of input method character in specified matching way and dial
System, multigroup searching code for showing as digital form is converted to by the character string, wherein each different input method corresponds to one respectively
Group searching code, includes the searching code of a grouping or multiple groupings per group searching code, the searching code being each grouped with it is each described
Specified matching way is corresponding.
Searching code is a numeric string sequence, and the content for being inputted on dial according to user is in contact database
Middle match query contact person.There is the title of multiple contact persons in the contacts list of user, often corresponds to an input method, just generate
Last set code corresponding with multiple contact names, then, it is corresponding with multiple and different input methods, generate multigroup different search
Rope code.
Further, different specified matching ways corresponds to different searching codes, and specifically, matching way may include contacting
The initial character matching way of each word in name word, further includes the all-character matching way of all words in contact name.Matching
Mode can specify setting in systems by user, it is possible to specify a kind of matching way, using initial character matching way or full word
Matching way is accorded with, two kinds of matching ways can also be specified, using initial character matching way and all-character matching way and deposited.Cause
This, includes the searching code of a grouping or multiple groupings per group searching code, and the searching code being each grouped is specified with each this and matched
Mode is corresponding.For example, if this specifies character match mode headed by matching way, a grouping is only included in every group searching code
Searching code, corresponding initial character matching way, if the specified matching way is all-character matching way, per in group searching code
Only include the searching code of a grouping, corresponding all-character matching way, if the specified matching way both can headed by character match
Mode, or all-character matching way includes then the searching code of two groupings per group searching code, corresponds to initial character respectively
Matching way and all-character matching way, if there is other specified matching ways, rule as described above scans for
The conversion of code.
Module 603 is established, the incidence relation for establishing the searching code and the associated person information.
The associated person information includes:Contact name, contact number, contact number property, contact person and user
The information such as relationship and contact head image.
Establish the incidence relation of the searching code and the associated person information.Due to being a number on a button of dial
Corresponding multiple characters, therefore, a searching code can correspond to multiple associated person informations.In this way, when a searching code exists with user
When the number for searching contact person inputted on dial matches, the associated contact person of the searching code, which is user, to search
Contact person.
Memory module 604, the incidence relation for the searching code and the associated person information that module 603 is established will to be established,
It stores in contact database.
Further, the incidence relation between searching code input method corresponding with searching code, specified matching way is preserved.
Receiving module 601 is additionally operable to receive the user and passes through the number for searching contact person that is inputted in the dial
String.
Searching module 605 is used for the sequence according to the corresponding searching code priority of pre-set difference input method,
It is searched and the matched searching code of the numeric string in the contact database.
Searching code priority is set as different upper-lower hierarchies according to different input methods, and usually, user is currently used
The corresponding searching code highest priority of input method.
Acquisition module 606, the associated whole associated person informations of searching code for obtaining and finding.
One searching code can be associated with multiple contact persons, the letter of the associated whole contact persons of the searching code for obtaining and finding
Breath obtains the information such as contact name, contact number, contact person and the relationship of the user of these contact persons
Display module 607 that acquisition module 607 is got is contacted for showing with the associated whole of searching code that is finding
People's information.
Show that the associated whole associated person informations of the searching code found to the user, are contacted by user's selection target
People.
It shows the associated whole associated person informations of the searching code, can be shown after sorting according to pre-set sequence, it should
Pre-set sequence can be the sequence that the initial character of contact name is carried out according to the sequencing of English character, can also be contact
The sequence that people's number is carried out according to the sequencing of Arabic numerals.
Further, which further includes:
Determining module 608, the input method type currently used for determining the user.
Setup module 609, the currently used input method type for being determined according to determining module 608, setting are different defeated
Enter the searching code priority of method.
Further, setup module 609 are set as spelling if it is spelling input method to be additionally operable to currently used input method
The searching code priority of phonetic input method is higher than the searching code priority of phonetic input method, and the searching code priority of phonetic input method is high
In the searching code priority of foreign language input method;If currently used input method is phonetic input method, it is set as phonetic input method
Searching code priority be higher than the searching code priority of spelling input method, the searching code priority of spelling input method is defeated higher than foreign language
Enter the searching code priority of method;If currently used input method is foreign language input method, it is set as the searching code of foreign language input method
Priority is higher than the searching code priority of spelling input method, searching code priority the searching higher than phonetic input method of spelling input method
Rope code priority.
Different priorities are set for different input methods corresponding searching code, adapt to the currently used input method of user, it can be with
It improves and searches contact human efficiency.
Further, conversion module 602 includes:
Acquisition submodule 6021 obtains and current input if for character match mode headed by the specified matching way
The corresponding character string of method, and obtain each initial character that Chinese character is corresponded in the character string.
Acquisition submodule 6021 is additionally operable to the correspondence according to the current input method character in the dial and number,
Obtain the corresponding number of each initial character.
Module 6022 is arranged, the sequence for the number of acquisition to be compareed to each initial character is arranged in order as searching code.
That is, the priority of multiple numbers put in order it is identical as their sequences in tandem of corresponding initial character.
Acquisition submodule 6021, if it is all-character matching way to be additionally operable to the specified matching way, obtain with it is currently defeated
Enter the corresponding character string of method.
Acquisition submodule 6021 is additionally operable to, according to the correspondence of the current input method character in dial and number, obtain
Take the corresponding number of each character in the character string.
Module 6022 is arranged, is additionally operable to the number of acquisition compareing the character string and is arranged in order as searching code.
That is, the priority of multiple numbers put in order it is identical as their sequences in tandem of corresponding character.
Further, acquisition module 606 are additionally operable to when searching with the matched searching code of the numeric string, whenever detecting
The user inputs a number, then obtains numeric string current in the dial.
Searching module 605 is additionally operable to search the searching code with the Contemporary Digital String matching in the dial.
Display module 607, for by the associated contact name of the matched searching code, current numeric string with this
Corresponding Chinese character is highlighted.
When searching with the matched searching code of the numeric string input by user, with the variation of numeric string input by user,
It constantly updates and the matched searching code of the numeric string, that is, whenever detecting user's one number of input, it is current just to obtain dial
Numeric string, search with the current matched searching code of numeric string in dial, and will be associated with the matched searching code
In contact name, Chinese character corresponding with the current numeric string is highlighted.
Other details in the present embodiment refer to description of the earlier figures 2 to embodiment illustrated in fig. 5.
In the embodiment of the present invention, by the way that contact name is saved as the corresponding searching code of different input methods so that looking into
When dial being looked for search contact person, carries out the matching of contact person according to the corresponding searching code of the currently used input method of user and determine
Position, compared to the prior art, the present invention can quickly and accurately search contact person under multilingual different input method environment, expand
The applicability of lookup method improves the convenience of user's operation.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only
Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple module or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or module
Letter connection can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separated, aobvious as module
The component shown may or may not be physical module, you can be located at a place, or may be distributed over multiple
On network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, it can also
That modules physically exist alone, can also two or more modules be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
It should be noted that for each method embodiment above-mentioned, describe, therefore it is all expressed as a series of for simplicity
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because
According to the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs
Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
It is the description to a kind of method and device by dial lookup contact person provided by the present invention above, for
Those skilled in the art, the thought of embodiment, has change in specific embodiments and applications according to the present invention
Place, to sum up, the content of the present specification should not be construed as limiting the invention.
Claims (8)
1. a kind of method for searching contact person by dial, which is characterized in that the method includes:
Contact name input by user is received, and the Chinese character in the contact name is respectively converted into different input methods pair
The character string answered, the character string are made of input method character;
According to the correspondence of input method character in specified matching way and dial and number, the character string is converted to more
Group shows as the searching code of digital form, wherein each different input method corresponds to last set code respectively, per group searching code packet
The searching code of a grouping or multiple groupings is included, the searching code being each grouped is corresponding with each specified matching way;
The incidence relation of described search code and the associated person information is established, and is stored into contact database;Described in reception
User is by inputting the numeric string for searching contact person in the dial, and according to pre-set different input methods pair
The sequence for the searching code priority answered is searched and the matched searching code of the numeric string in the contact database;
The associated whole associated person informations of searching code for obtaining and showing and finding;
Wherein, include after the reception contact name input by user:
Determine the currently used input method type of the user;
According to the currently used input method type, the searching code priority of different input methods is set;
It is described according to the currently used input method type, the searching code priority that different input methods are arranged includes:
If the currently used input method is spelling input method, the searching code priority of spelling input method is set as higher than note
The searching code priority of phonetic input method, the searching code priority of phonetic input method are higher than the searching code priority of foreign language input method;
If the currently used input method is phonetic input method, the searching code priority of phonetic input method is set as higher than spelling
The searching code priority of phonetic input method, the searching code priority of spelling input method are higher than the searching code priority of foreign language input method;
If the currently used input method is foreign language input method, the searching code priority of foreign language input method is set as higher than spelling
The searching code priority of phonetic input method, the searching code priority of spelling input method are higher than the searching code priority of phonetic input method.
2. according to the method described in claim 1, it is characterized in that, which is characterized in that it is described according to specified matching way and dial
The correspondence of input method character and number, multigroup searching code for showing as digital form is converted to by the character string in dialer
Including:
If character match mode headed by the specified matching way, the character string corresponding with current input method is obtained, and
Obtain each initial character that the Chinese character is corresponded in the character string;
According to the correspondence of current input method character described in the dial and number, it is corresponding to obtain each initial character
Number, and the sequence that the number of acquisition is compareed to each initial character is arranged in order as searching code.
3. according to the method described in claim 1, it is characterized in that, which is characterized in that it is described according to specified matching way and dial
The correspondence of input method character and number, multigroup searching code for showing as digital form is converted to by the character string in dialer
Further include:
If the specified matching way is all-character matching way, the character string corresponding with current input method is obtained;
According to the correspondence of current input method character described in dial and number, obtains each character in the character string and correspond to
Number, and the number of acquisition is compareed into the character string and is arranged in order as searching code.
4. method according to any one of claims 1 to 3, which is characterized in that the method further includes:
When searching searching code matched with the numeric string, whenever detecting one number of user's input, then institute is obtained
State numeric string current in dial;
The searching code with the Contemporary Digital String matching in the dial is searched, and the matched searching code is associated described
In contact name, Chinese character corresponding with the current numeric string is highlighted.
5. a kind of device for searching contact person by dial, which is characterized in that described device includes:
Receiving module, for receiving contact name input by user;
Conversion module, for the Chinese character in the contact name to be respectively converted into the corresponding character string of different input methods, institute
Character string is stated to be made of input method character;
The conversion module is additionally operable to the correspondence according to input method character in specified matching way and dial and number,
The character string is converted into multigroup searching code for showing as digital form, wherein each different input method corresponds to one respectively
Group searching code, includes the searching code of a grouping or multiple groupings per group searching code, the searching code being each grouped with it is each described
Specified matching way is corresponding;
Module is established, the incidence relation for establishing described search code and the associated person information;
Memory module, for by the incidence relation of the described search code and the associated person information for establishing module foundation, depositing
It stores up in contact database;
The receiving module is additionally operable to receive the user and passes through the number for searching contact person that is inputted in the dial
String;
Searching module, for the sequence according to the corresponding searching code priority of pre-set difference input method, described
It is searched and the matched searching code of the numeric string in contact database;
Acquisition module, the associated whole associated person informations of searching code for obtaining and finding;
Display module, for showing that the acquisition module is got whole contact persons associated with searching code that is finding believe
Breath;
Wherein, described device further includes:
Determining module, the input method type currently used for determining the user;
Setup module, the currently used input method type for being determined according to the determining module, is arranged different inputs
The searching code priority of method;
The setup module is set as spelling input method if it is spelling input method to be additionally operable to the currently used input method
Searching code priority be higher than the searching code priority of phonetic input method, the searching code priority of phonetic input method is defeated higher than foreign language
Enter the searching code priority of method;
If the currently used input method is phonetic input method, the searching code priority of phonetic input method is set as higher than spelling
The searching code priority of phonetic input method, the searching code priority of spelling input method are higher than the searching code priority of foreign language input method;
If the currently used input method is foreign language input method, the searching code priority of foreign language input method is set as higher than spelling
The searching code priority of phonetic input method, the searching code priority of spelling input method are higher than the searching code priority of phonetic input method.
6. device according to claim 5, which is characterized in that the conversion module includes:
Acquisition submodule obtains corresponding with current input method if for character match mode headed by the specified matching way
The character string, and obtain each initial character that the Chinese character is corresponded in the character string;
The acquisition submodule is additionally operable to the correspondence according to current input method character described in the dial and number,
Obtain the corresponding number of each initial character;
Module is arranged, the sequence for the number of acquisition to be compareed to each initial character is arranged in order as searching code.
7. device according to claim 6, which is characterized in that
The acquisition submodule obtains and current input if it is all-character matching way to be additionally operable to the specified matching way
The corresponding character string of method;
The acquisition submodule is additionally operable to the correspondence according to current input method character described in dial and number, obtains
The corresponding number of each character in the character string;
The arrangement module is additionally operable to the number control character string of acquisition being arranged in order as searching code.
8. device according to claim 7, which is characterized in that
The acquisition module is additionally operable to when searching with the matched searching code of the numeric string, whenever detecting that the user is defeated
Enter a number, then obtains numeric string current in the dial;
The searching module is additionally operable to search the searching code with the Contemporary Digital String matching in the dial;
The display module, for by the matched associated contact name of searching code, with the current number
The corresponding Chinese character of word string is highlighted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510908588.5A CN105357398B (en) | 2015-12-09 | 2015-12-09 | The method and device of contact person is searched by dial |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510908588.5A CN105357398B (en) | 2015-12-09 | 2015-12-09 | The method and device of contact person is searched by dial |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105357398A CN105357398A (en) | 2016-02-24 |
CN105357398B true CN105357398B (en) | 2018-07-13 |
Family
ID=55333253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510908588.5A Active CN105357398B (en) | 2015-12-09 | 2015-12-09 | The method and device of contact person is searched by dial |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105357398B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105847514A (en) * | 2016-05-09 | 2016-08-10 | 广东欧珀移动通信有限公司 | Method and apparatus for searching for contact person, and mobile terminal |
CN107370861A (en) * | 2016-05-11 | 2017-11-21 | 李汉忠 | A kind of method and system of intellectual search address list |
CN106126525A (en) * | 2016-06-13 | 2016-11-16 | 珠海市魅族科技有限公司 | Associated person information acquisition methods and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741948A (en) * | 2008-11-19 | 2010-06-16 | 龙旗科技(上海)有限公司 | Method for automatically matching inputted digits with contact persons for information receiver |
CN101894127A (en) * | 2010-05-26 | 2010-11-24 | 洪朝彬 | Intelligent arranging and searching method for mobile phone contact |
CN103164122B (en) * | 2011-12-08 | 2015-10-28 | 中兴通讯股份有限公司 | A kind of method and device calling address list content |
CN102883020A (en) * | 2012-09-10 | 2013-01-16 | 广东欧珀移动通信有限公司 | Dialing method and dialing system for mobile terminal |
-
2015
- 2015-12-09 CN CN201510908588.5A patent/CN105357398B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105357398A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243517A (en) | Content sharing method and device used between different terminals | |
CN104615585B (en) | Handle the method and device of text message | |
CN104935744A (en) | Verification code display method, verification code display device and mobile terminal | |
CN106251869A (en) | Method of speech processing and device | |
CN106657528A (en) | Incoming call management method and device | |
CN106033337A (en) | Instant-messaging emoticon generating method and device | |
CN105262878B (en) | The processing method and mobile terminal of call automatic recording | |
CN105892822A (en) | Mobile terminal and rapid setting method and device thereof | |
CN107608720A (en) | Using the display methods of footmark, device, mobile terminal and storage medium | |
CN107948055A (en) | Shielding group members send out the method, apparatus and computer-readable recording medium of message | |
CN107360332A (en) | Talking state display methods, device, mobile terminal and storage medium | |
CN105357398B (en) | The method and device of contact person is searched by dial | |
CN106406947B (en) | The method and device that prevents system service process from restarting, mobile terminal | |
CN104333643A (en) | Method and system for adding contacts, and terminal | |
CN105744609B (en) | Improve the method and device of mobile terminal power consumption | |
CN106254791A (en) | The startup method of photographic head and mobile terminal | |
CN105704106B (en) | A kind of visualization IVR implementation method and mobile terminal | |
CN106788561B (en) | Radio circuit control method, device and terminal device | |
CN104966526A (en) | Random play method and apparatus | |
CN105933492A (en) | Phone number obtaining method and device | |
CN105516933A (en) | Message processing method, message processing device, mobile terminal and server | |
CN104978981B (en) | A kind of music shuffle method and device | |
CN104168386B (en) | Double card changing method and device | |
CN106095132A (en) | Playback equipment keypress function method to set up and device | |
CN107332967A (en) | Contact person's display methods, device, mobile terminal and computer-readable recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |
|
CP01 | Change in the name or title of a patent holder |