CN101888427A - Method for matching dialing name and terminal - Google Patents
Method for matching dialing name and terminal Download PDFInfo
- Publication number
- CN101888427A CN101888427A CN2009100840111A CN200910084011A CN101888427A CN 101888427 A CN101888427 A CN 101888427A CN 2009100840111 A CN2009100840111 A CN 2009100840111A CN 200910084011 A CN200910084011 A CN 200910084011A CN 101888427 A CN101888427 A CN 101888427A
- Authority
- CN
- China
- Prior art keywords
- letter
- name
- contact
- strings
- string
- 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.)
- Granted
Links
Images
Landscapes
- Telephone Function (AREA)
- Machine Translation (AREA)
Abstract
本发明公开了一种拨号匹配方法,包括:接收用户在拨号界面经拨号盘输入的多个数字串和分隔符,分隔符位于多个数字串之间,分隔符隔开的多个数字串分别根据被查找的联系人姓或名对应的拼音或英文字母串中包含其首字母的字母子串确定;将由分隔符隔开的多个数字串分别转换为对应的字母串;按照预设的首字母排序规则对转换后的字母串进行排序,得到排序后的字母串组;将字母串组中的每个字母串与联系人姓名列表中存储的与每个联系人姓名对应的按照预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串进行匹配,确定出匹配的联系人姓名。本发明还公开了一种终端。采用本发明可以精确快速地进行联系人姓名匹配。
The invention discloses a dial matching method, comprising: receiving a plurality of digit strings and separators input by a user on a dial interface through a dial pad, the separator is located between the plurality of digit strings, and the plurality of digit strings separated by the separator are respectively It is determined according to the substring containing the first letter in the pinyin or English alphabet string corresponding to the surname or first name of the searched contact; convert multiple strings of numbers separated by separators into corresponding alphabet strings; according to the preset initial Alphabetical sorting rules sort the converted letter strings to obtain sorted letter string groups; each letter string in the letter string group is stored in the contact name list and corresponds to each contact name according to the preset Match the pinyin or English letter strings corresponding to the first and last names of the contact after sorting by the first letter sorting rule, and determine the matching contact name. The invention also discloses a terminal. By adopting the present invention, contact name matching can be performed accurately and rapidly.
Description
技术领域technical field
本发明涉及通信技术领域,尤其是涉及一种拨号姓名匹配方法及终端。The invention relates to the technical field of communication, in particular to a dialing name matching method and a terminal.
背景技术Background technique
在手机与人们日常生活的关系越来越密码的今天,用户通常会在手机中存储大量的联系人号码。将全部号码一一记忆显然是很难做到的,而每次拨号前繁琐的查找过程又极其浪费时间。为解决该问题,现有技术提出了拨号匹配技术,可以根据用户的输入提示出相应的匹配号码,供用户选择,可大大缩短用户查找号码的时间。Today, when the relationship between mobile phones and people's daily life is becoming more and more complicated, users usually store a large number of contact numbers in their mobile phones. It is obviously difficult to memorize all the numbers one by one, and the tedious search process before dialing each time is extremely time-consuming. In order to solve this problem, the prior art proposes a dial matching technology, which can prompt the corresponding matching number according to the user's input for the user to choose, which can greatly shorten the time for the user to search for the number.
目前已有的一些拨号匹配方法主要有以下三种模式:Some existing dial matching methods mainly have the following three modes:
一是号码首串匹配,通过输入联系人号码的前几位进行匹配查找,如输入“139”,终端会匹配出所有手机号以“139”开头的联系人供用户选择;One is the matching of the first string of the number, by entering the first few digits of the contact number for matching search, such as inputting "139", the terminal will match all the contacts whose mobile phone numbers start with "139" for the user to choose;
二是号码子串匹配,通过输入联系人号码任意位置的连续几位数字进行匹配,如输入“139”,终端会匹配出所有手机号中包含连续“139”数字串的联系人供用户选择;The second is the number substring matching, by entering several consecutive digits in any position of the contact number for matching, such as inputting "139", the terminal will match all the contacts whose mobile phone numbers contain consecutive "139" digit strings for the user to choose;
三是中文拼音首字母匹配,通过输入联系人拼音的首字母进行匹配查找,如输入“39”,终端会识别为数字键对应的字母,匹配出所有姓名前两个字拼音首字母为“DW”、“FW”等的组合的联系人。The third is the matching of the first letter of the Chinese pinyin, by entering the first letter of the contact person's pinyin for matching search, such as inputting "39", the terminal will recognize it as the letter corresponding to the number key, and match the first two letters of the pinyin of all names as "DW ", "FW" and so on.
但现有的拨号匹配方法存在不同程度的缺陷,当采用号码首串匹配或号码子串匹配时,至少存在如下缺陷:一是用户必须清楚的记得联系人号码的其中连续几位,然而大多数情况下,用户往往只记得联系人的姓名;二是当手机上存储的联系人数量较大时,手机前几位或任意位置连续几位相同的联系人会比较多,用户仍需较长时间才能查询到待拨号码。However, there are defects in different degrees in the existing dial matching methods. When adopting number first string matching or number substring matching, there are at least the following defects: one is that the user must clearly remember the consecutive digits of the contact number, but most Under normal circumstances, the user often only remembers the name of the contact; the second is that when the number of contacts stored on the mobile phone is large, there will be more consecutive contacts in the first few or any positions of the mobile phone, and it still takes a long time for the user to Only then can the number to be dialed be found.
当采用联系人拼音首字母匹配方式时,至少存在如下缺陷:一是用户必须清楚记得联系人的姓名;二是联系人数量较大时,拼音首字母相同的联系人也会较多,用户仍需较长时间才能找到待拨号码。When adopting contact person's pinyin initial letter matching mode, there is following defect at least: the one, the user must clearly remember the name of contact person; It takes a long time to find the number to dial.
发明内容Contents of the invention
本发明实施例提供了一种拨号姓名匹配方法,可以精确快速地进行联系人姓名匹配,包括:The embodiment of the present invention provides a dialing name matching method, which can accurately and quickly perform contact name matching, including:
接收用户在拨号界面经拨号盘输入的多个数字串和分隔符,所述分隔符位于所述多个数字串之间,所述分隔符隔开的所述多个数字串分别根据被查找的联系人姓或名对应的拼音或英文字母串中包含其首字母的字母子串确定;Receive multiple number strings and separators input by the user on the dial interface through the dial pad, the separators are located between the multiple number strings, and the multiple number strings separated by the separators are respectively based on the searched The pinyin or English letter string corresponding to the contact's surname or first name is determined by the letter substring containing its initial letter;
将由所述分隔符隔开的所述多个数字串分别转换为对应的字母串;Converting the plurality of numeric strings separated by the delimiter into corresponding alphabetic strings;
按照预设的首字母排序规则对转换后的字母串进行排序,得到排序后的字母串组;Sorting the converted letter strings according to the preset alphabetical sorting rules to obtain the sorted letter strings;
将所述字母串组中的每个字母串与联系人姓名列表中存储的与每个联系人姓名对应的按照所述预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串进行匹配,确定出匹配的联系人姓名。Corresponding each letter string in the letter string group to the last name and first name of the contact person stored in the contact name list and corresponding to each contact name sorted according to the preset initial alphabet sorting rule Pinyin or English letter strings are matched to determine the matching contact name.
本发明实施例还提供了一种终端,可以精确快速地进行联系人姓名匹配,包括:The embodiment of the present invention also provides a terminal that can accurately and quickly perform contact name matching, including:
接收模块,用于接收用户在拨号界面经拨号盘输入的多个数字串和分隔符,所述分隔符位于所述多个数字串之间,所述分隔符隔开的所述多个数字串分别根据被查找的联系人姓或名对应的拼音或英文字母串中包含其首字母的字母子串确定;The receiving module is used to receive a plurality of digit strings and separators input by the user through the dial pad on the dial interface, the separator is located between the plurality of digit strings, and the plurality of digit strings separated by the separator It is determined according to the substring of the first letter of the pinyin or English letter string corresponding to the surname or first name of the searched contact;
转换模块,用于将由所述分隔符隔开的所述多个数字串分别转换为对应的字母串;A conversion module, configured to convert the plurality of numeric strings separated by the delimiter into corresponding alphabetic strings;
排序模块,用于按照预设的首字母排序规则对转换后的字母串进行排序,得到排序后的字母串组;A sorting module, configured to sort the converted letter strings according to a preset initial alphabetical sorting rule, to obtain sorted letter string groups;
存储模块,用于存储联系人姓名,及与每个联系人姓名对应的按照所述预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串;A storage module, configured to store the names of the contacts, and corresponding to each contact name, the pinyin or English letter strings corresponding to the first and last names of the contact sorted according to the preset initial alphabet ordering rules;
匹配模块,用于将所述字母串组中的每个字母串与所述存储模块中存储的与每个联系人姓名对应的按照所述预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串进行匹配,确定出匹配的联系人姓名。A matching module, configured to compare each letter string in the letter string group with the contact name stored in the storage module and corresponding to each contact name sorted according to the preset initial alphabetical ordering rule Match the pinyin or English letter strings corresponding to the first and last names to determine the matching contact name.
本发明实施例中,用户直接在拨号界面经拨号盘输入多个数字串和分隔符,根据多个数字串和分隔符进行拨号姓名匹配,无须进入其他界面,缩短了匹配时间;将由分隔符隔开的多个数字串分别转换为对应的字母串,按照预设的首字母排序规则对转换后的字母串进行排序,采用上述排序方法,被查找的联系人姓或名对应的字母串中包含首字母的字母子串的输入顺序可以是顺序,也可以是逆序,弥补了现有的拨号匹配方法只可顺序输入拼音首字母进行首字母匹配方式的不足,降低了用户关于联系人姓名记忆的准确度要求;本发明实施例中,将排序后得到的字母串组中的每一个字母串与联系人姓名列表中存储的与每个联系人姓名对应的按照预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串进行匹配,确定出匹配的联系人姓名,提高了拨号模糊匹配的搜索精度,可以精确快速地进行联系人匹配查询,提高了用户的拨号体验。In the embodiment of the present invention, the user directly inputs a plurality of number strings and separators on the dial interface through the dial pad, and performs dialing name matching according to the plurality of number strings and separators, without entering other interfaces, shortening the matching time; The opened multiple number strings are respectively converted into corresponding letter strings, and the converted letter strings are sorted according to the preset initial letter sorting rules. Using the above sorting method, the letter strings corresponding to the surname or first name of the searched contact contain The input order of the letter substrings of the first letter can be sequential or reverse order, which makes up for the deficiency that the existing dial matching method can only input the first letter of the pinyin in order to carry out the first letter matching method, and reduces the user's memory of the contact name. Accuracy requirements; in the embodiment of the present invention, each letter string in the letter string group obtained after sorting is stored in the contact name list and corresponds to each contact name after sorting according to the preset first letter sorting rule Match the pinyin or English letter string corresponding to the last name and first name of the contact, determine the matching contact name, improve the search accuracy of dialing fuzzy matching, can accurately and quickly conduct contact matching queries, and improve the user's dialing efficiency. experience.
附图说明Description of drawings
图1是本发明实施例中拨号姓名匹配方法的流程图;Fig. 1 is the flowchart of dialing name matching method in the embodiment of the present invention;
图2是本发明实施例中对联系人姓名进行匹配的流程图;Fig. 2 is the flowchart of matching contact name in the embodiment of the present invention;
图3是本发明实施例中联系人姓名列表的示意图;Fig. 3 is a schematic diagram of a contact name list in an embodiment of the present invention;
图4、图5、图6及图7是本发明实施例中匹配结果示意图;Fig. 4, Fig. 5, Fig. 6 and Fig. 7 are schematic diagrams of matching results in the embodiment of the present invention;
图8是本发明实施例中终端的结构示意图;FIG. 8 is a schematic structural diagram of a terminal in an embodiment of the present invention;
图9是本发明实施例中接收模块的结构示意图;FIG. 9 is a schematic structural diagram of a receiving module in an embodiment of the present invention;
图10是本发明实施例中排序模块的结构示意图;Fig. 10 is a schematic structural diagram of a sorting module in an embodiment of the present invention;
图11是本发明实施例中匹配模块的结构示意图。Fig. 11 is a schematic structural diagram of a matching module in an embodiment of the present invention.
具体实施方式Detailed ways
为提升用户的拨号体验,弥补现有拨号匹配方法的不足,本发明实施例提供了一种拨号姓名匹配方法,可以精确快速地进行联系人姓名匹配,提高了拨号模糊匹配的精度,降低对用户关于联系人姓名记忆的准确度的要求,具体的处理流程如图1所示,包括:In order to improve the user's dialing experience and make up for the shortcomings of the existing dialing matching method, the embodiment of the present invention provides a dialing name matching method, which can accurately and quickly perform contact name matching, improves the accuracy of dialing fuzzy matching, and reduces the burden on users. Regarding the requirements for the accuracy of contact name memory, the specific processing flow is shown in Figure 1, including:
步骤101、接收用户在拨号界面经拨号盘输入的多个数字串和分隔符,分隔符位于多个数字串之间,分隔符隔开的多个数字串分别根据被查找的联系人姓或名对应的拼音或英文字母串中包含其首字母的字母子串确定;
步骤102、将由分隔符隔开的多个数字串分别转换为对应的字母串;
步骤103、按照预设的首字母排序规则对转换后的字母串进行排序,得到排序后的字母串组;
步骤104、将字母串组中的每个字母串与联系人姓名列表中存储的与每个联系人姓名对应的按照预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串进行匹配,确定出匹配的联系人姓名。
在日常生活中,用户可能存在不能完全记住被查找的联系人的姓名的情况,有可能只记得联系姓名中的两个字,如姓和名中的一个字,或者名中的两个字,甚至有可能只记得联系姓名中的两个字,却并不记得两个字的顺序,在这种情况下,现有的首字母匹配方式就无法匹配出用户查找的联系人姓名。为解决上述问题,本发明实施例提出利用分隔符将输入的多个数字串分隔开的方法,具体实施方式如下:在一个实施例中,步骤101在实施时,用户在拨号界面经拨号盘输入多个数字串和分隔符,其中,分隔符位于多个数字串之间,由分隔符隔开的各数字串分别根据被查找的联系人姓或名对应的拼音或英文字母串中包含其首字母的字母子串确定。也就是说,在本发明实施例中,用户只需在拨号界面经拨号盘输入多个数字串和分隔符,就可以直接进行联系人的查询,并不需要进入通讯录或其他查询联系人信息的界面,简单快捷。In daily life, users may not be able to fully remember the name of the contact being searched for, and may only remember two characters in the contact name, such as one character between the last name and the first name, or two characters in the first name , it is even possible to only remember two words in the contact name, but not remember the order of the two words. In this case, the existing initial letter matching method cannot match the contact name that the user is looking for. In order to solve the above-mentioned problem, the embodiment of the present invention proposes the method that utilizes delimiter to separate a plurality of input numeral strings, and specific implementation is as follows: In one embodiment, when
在一个实施例中,分隔符可以有多种实现方式,例如,可以利用空格作为分隔符,也可以利用“*”作为分隔符,也可以利用“#”作为分隔符,还可以利用拨号盘上除数字外的其他符号作为分隔符,只要该符号可以实现将多个数字串分隔开的目的即可。In one embodiment, the delimiter can be realized in many ways, for example, a space can be used as a delimiter, a "*" can be used as a delimiter, a "#" can be used as a delimiter, and Symbols other than numbers are used as separators, as long as the symbols can achieve the purpose of separating multiple strings of numbers.
在一个实施例中,由于两个字相同的联系人姓名较少,为实现精确快速地进行联系人姓名匹配,应输入至少一个分隔符,当输入一个分隔符时,分隔符分隔开的两个数字串分别对应被查找的联系人姓或名中的两个字。In one embodiment, since there are few contact names with the same two characters, at least one delimiter should be input in order to achieve accurate and rapid contact name matching. A string of digits corresponds to two characters in the last name or first name of the contact being searched for.
在一个实施例中,步骤102在实施时,将由分隔符隔开的多个数字串分别转换为对应的字母串,转换规则是拨号盘上预设的数字与字母的对应转换规则。In one embodiment, when
在一个实施例中,步骤103在实施时,按照预设的首字母排序规则对转换后的字母串进行排序,得到排序后的字母串组,其中,预设的首字母排序规则可以是首字母升序排序,也可以是首字母降序排序,在实施中,具体采用何种排序方式由实际情况而定。In one embodiment, when
在一个实施例中,步骤104在实施时,将字母串组中的每个字母串与联系人姓名列表中存储的与每个联系人姓名对应的按照预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串进行匹配,确定出匹配的联系人姓名。实施时,在按照预设的首字母排序规则对联系人姓和名对应的拼音或英文字母串进行排序时,可以利用分隔符将联系人姓和名对应的拼音或英文字母串分隔开。在实施时,联系人姓名列表有多种实现形式,如,可以是文件形式,也可以是表格形式,还可以是其他可以存储联系人姓名及与之对应的拼音或英文字母串的形式。In one embodiment, when
在本发明实施例中,将字母串组中的每个字母串与联系人姓名列表中存储的排序后的联系人姓和名对应的拼音或字母串进行匹配,因此,两者需采用预设的同一首字母排序规则,如,两者均采用首字母升序排序,或者,两者均采用首字母降序排序。In the embodiment of the present invention, each letter string in the letter string group is matched with the pinyin or letter string corresponding to the sorted contact surname and first name stored in the contact name list. Therefore, the two need to use the preset The same first letter sorting rule, for example, both are sorted in ascending order of first letter, or both are sorted in descending order of first letter.
在实施时,具体的匹配流程如图2所示,包括:During implementation, the specific matching process is shown in Figure 2, including:
步骤201、获取字母串组中的第一个字母串,在存储的联系人的姓和名对应的拼音或英文字母串中,确定出包含第一个字母串的拼音或英文字母串对应的联系人姓名集合;Step 201, obtain the first letter string in the letter string group, and determine the contact corresponding to the pinyin or English letter string containing the first letter string in the stored pinyin or English letter string corresponding to the first and last name of the contact collection of person names;
步骤202、获取字母串组中的下一个字母串,在其上一个字母串对应的联系人姓名集合中,进一步确定出联系人的姓和名对应的拼音或英文字母串中包含本次获取的字母串的拼音或英文字母串对应的联系人姓名集合;Step 202, obtain the next letter string in the letter string group, and further determine that the pinyin or English letter string corresponding to the last name and first name of the contact person contains the obtained this time in the contact name set corresponding to the previous letter string A collection of contact names corresponding to the pinyin or English letter string of the letter string;
步骤203、将包含字母串组中的最后一个字母串的拼音或英文字母串对应的联系人姓名集合中的联系人姓名,确定为匹配的联系人姓名。Step 203: Determine the contact name in the set of contact names corresponding to the pinyin or English letter string containing the last letter string in the letter string group as the matching contact name.
在一个实施例中,联系人姓名列表中还可以存储有与每个联系人姓名对应的电话号码,在确定出匹配的联系人姓名时,还确定出与匹配的联系人姓名对应的电话号码。In an embodiment, the contact name list may also store a phone number corresponding to each contact name, and when a matching contact name is determined, the phone number corresponding to the matching contact name is also determined.
若联系人姓名列表中存储的联系人姓名较多时,可以通过增加各字符串的长度来缩小匹配范围。本发明实施例中,对联系人姓名中的每个字进行模糊匹配,而联系人姓名中两个字都相同的概率较小,故而匹配范围大大缩小,提高了匹配精度。If there are many contact names stored in the contact name list, the matching range can be narrowed by increasing the length of each character string. In the embodiment of the present invention, fuzzy matching is performed on each word in the contact name, and the probability that two words in the contact name are the same is small, so the matching range is greatly reduced and the matching accuracy is improved.
现以一具体实施例进行说明,在该例中,采用空格作为标识符,预设的首字母规则为首字母升序排序:Let’s take a specific example to illustrate. In this example, a space is used as an identifier, and the default rule for initial letters is to sort them in ascending order of initial letters:
现假设用户要查找的联系人姓名为“葛静岚”,但用户只记得联系人姓名中存在“葛”、“静”两个字,并不记得两个字的顺序,也不记得第三个字,此时,用户可以在拨号界面通过拨号盘输入“454”,终端对接收的多个数字串进行检测,在检测到空格后,将空格隔开的数字串转换为对应的字符串“G JI”。按照首字母升序排序对“G JI”进行排序,得到排序后的字母串组“G JI”。在本例中,联系人姓名列表存储有大量联系人姓名,还存储有与每个联系人姓名对应的按照预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串,如“葛静岚”,经转换后得到的对应的字符串为“GE JING LAN”,按首字母升序排序后仍为“GE JING LAN”,当然,联系人姓名列表还存储有其他联系人姓名,具体如图3所示。Now assume that the name of the contact the user is looking for is "Ge Jinglan", but the user only remembers the two characters "Ge" and "Jing" in the contact name, and does not remember the order of the two characters, nor the third character , at this time, the user can input "454" on the dial interface through the dial pad, and the terminal detects multiple received number strings, and after detecting spaces, converts the number strings separated by spaces into the corresponding string "G JI ". Sort "G JI" according to the ascending order of the first letter, and get the sorted letter string "G JI". In this example, the contact name list stores a large number of contact names, and also stores the pinyin or English corresponding to the contact's first and last names sorted according to the preset initial alphabetic sorting rules corresponding to each contact name Alphabet strings, such as "Ge Jinglan", the corresponding character string obtained after conversion is "GE JING LAN", which is still "GE JING LAN" after sorting in ascending order of the first letter. Of course, the contact name list also stores other contacts name, as shown in Figure 3.
匹配时,首先获取第一个字母串“G”,在联系人姓名列表中存储的联系人的姓和名对应的拼音或英文字母串中,确定出包含所有以“G”为首字母的字符串的拼音或英文字母串对应的联系人姓名集合;其次,获取第二个字母串“JI”,继续在前一次匹配出的联系人姓名集合中搜索以“JI”开头的字符串,缩小匹配范围,便可以较容易地匹配出“葛静岚”,在具体实施例中,可以将匹配结果(包括姓名及号码)输出至显示屏上,如图4所示。When matching, first obtain the first letter string "G", and determine all the strings that contain "G" as the first letter in the pinyin or English alphabet strings corresponding to the contact's surname and first name stored in the contact name list The contact name collection corresponding to the pinyin or English letter string; secondly, obtain the second letter string "JI", and continue to search for the string starting with "JI" in the previous matching contact name collection to narrow the matching range , it is easier to match "Ge Jinglan". In a specific embodiment, the matching result (including name and number) can be output to the display screen, as shown in FIG. 4 .
若用户输入的拨号信息顺序为“54 5”,终端将其转换为“JI G”,在该例中,终端将“JI G”按首字母升序排序,排序后的结果仍为“G JI”,因此,匹配的结果仍相同,具体的显示结果如图5所示。If the sequence of dialing information entered by the user is "54 5", the terminal converts it to "JI G". In this example, the terminal sorts "JI G" in ascending order of the first letter, and the sorted result is still "G JI" , therefore, the matching result is still the same, and the specific display result is shown in FIG. 5 .
当然,若联系人姓名列表中存储的联系人姓名较多时,可以增加匹配的字符串长度,如利用“葛”、“静”对应的拼音字母串的前三位字母进行匹配,提高匹配精度和查找速度。Of course, if there are many contact names stored in the contact name list, the length of the matching character string can be increased, such as using the first three letters of the pinyin alphabet strings corresponding to "Ge" and "Jing" to match, so as to improve the matching accuracy and Find speed.
本发明实施例提供的拨号姓名匹配方法也适用于英文姓名,现以一具体实施例说明:The dialing name matching method provided by the embodiment of the present invention is also applicable to English names, and is now described with a specific embodiment:
现假设用户查找的联系人姓名为“Jim Carter”,在该例中,“Jim Carter”按首字母升序排序后为“CARTER JIM”。用户可能记不全全部的英文拼写,且顺序也不记得,如只记得“Ji Ca”或“Car J”,假设用户只记得“Car J”,用户在拨号界面输入“227 5”,终端将空格两侧的数字串转换为“CAR J”,排序后得到的字母串组为“CAR J”。Now assume that the name of the contact the user is looking for is "Jim Carter". In this example, "Jim Carter" is sorted in ascending order of the first letter to "CARTER JIM". The user may not remember all the English spellings, and the order may not be remembered. For example, only "Ji Ca" or "Car J", assuming that the user only remembers "Car J", the user enters "227 5" on the dial interface, and the terminal will display a space The number strings on both sides are converted to "CAR J", and the alphabet string obtained after sorting is "CAR J".
匹配时,首先获取第一个字母串“CAR”,在联系人姓名列表中存储的联系人的姓和名对应的拼音或英文字母串中,确定出包含所有以“CAR”为首的字符串的拼音或英文字母串对应的联系人姓名集合;其次,获取第二个字母串“J”,继续在前一次匹配出的联系人姓名集合中搜索以“J”开头的字符串,缩小匹配范围,便可以较容易地匹配出“Jim Carter”,并将姓名及号码显示出来,具体如图6所示。When matching, first obtain the first letter string "CAR", and determine the strings containing all the strings starting with "CAR" in the pinyin or English alphabet strings corresponding to the first and last name of the contact stored in the contact name list The contact name collection corresponding to the pinyin or English letter string; secondly, obtain the second letter string "J", and continue to search for the string starting with "J" in the previous matching contact name collection to narrow the matching range, Then "Jim Carter" can be easily matched, and the name and number are displayed, as shown in Figure 6.
同理,若用户只记得“Ji Ca”,用户在拨号界面输入“54 22”,终端将其转换为“CA JI”,因此,匹配的结果仍相同,如图7所示。Similarly, if the user only remembers "Ji Ca", the user enters "54 22" on the dial interface, and the terminal converts it to "CA JI". Therefore, the matching result is still the same, as shown in Figure 7.
基于同一发明构思,本发明实施例还提供了一种终端,如图8所示,包括:Based on the same inventive concept, an embodiment of the present invention also provides a terminal, as shown in FIG. 8 , including:
接收模块801,用于接收用户在拨号界面经拨号盘输入的多个数字串和分隔符,分隔符位于多个数字串之间,分隔符隔开的多个数字串分别根据被查找的联系人姓或名对应的拼音或英文字母串中包含其首字母的字母子串确定;The receiving module 801 is used to receive a plurality of digit strings and separators input by the user on the dial interface through the dial pad, the separator is located between the plurality of digit strings, and the plurality of digit strings separated by the separator are respectively selected according to the number of contacts to be searched. The letter substring containing its initial letter in the pinyin or English letter string corresponding to the surname or first name is determined;
转换模块802,用于将由分隔符隔开的多个数字串分别转换为对应的字母串;A conversion module 802, configured to convert a plurality of numeric strings separated by separators into corresponding alphabetic strings;
排序模块803,用于按照预设的首字母排序规则对转换后的字母串进行排序,得到排序后的字母串组;The sorting module 803 is used to sort the converted letter strings according to the preset alphabetical sorting rules to obtain the sorted letter strings;
存储模块804,用于存储联系人姓名,及与每个联系人姓名对应的按照预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串;The storage module 804 is used to store the names of the contacts, and corresponding to each contact name, the pinyin or English letter strings corresponding to the first and last names of the contact sorted according to the preset initial alphabet ordering rules;
匹配模块805,用于将字母串组中的每个字母串与存储模块804中存储的与每个联系人姓名对应的按照预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串进行匹配,确定出匹配的联系人姓名。The
在一个实施例中,如图9所示,接收模块801可以包括:In one embodiment, as shown in FIG. 9, the receiving module 801 may include:
接收子模块901,用于接收用户在拨号界面经拨号盘输入的多个数字串和分隔符,分隔符位于多个数字串之间;The receiving submodule 901 is used to receive a plurality of digit strings and separators input by the user on the dial interface through the dial pad, and the separator is located between the plurality of digit strings;
分隔符确定子模块902,用于分别根据被查找的联系人姓或名对应的拼音或英文字母串中包含其首字母的字母子串确定分隔符隔开的多个数字串;The delimiter determination submodule 902 is used to determine a plurality of number strings separated by a delimiter according to the pinyin or English alphabet string corresponding to the surname or first name of the searched contact person or the letter substring containing its initial letter;
输出子模块903,用于将分隔符隔开的多个数字串输出给转换模块802。The output sub-module 903 is configured to output the multiple number strings separated by delimiters to the conversion module 802 .
一个实施例中,如图10所示,排序模块803可以包括:In one embodiment, as shown in Figure 10, the sorting module 803 may include:
升序子模块1001,用于按照首字母的升序对转换后的字母串进行排序;和/或Ascending order sub-module 1001, for sorting the converted letter strings according to the ascending order of the first letter; and/or
降序子模块1002,用于按照首字母的降序对转换后的字母串进行排序。The descending order sub-module 1002 is configured to sort the converted letter strings in descending order of initial letters.
一个实施例中,如图11所示,匹配模块805可以包括:In one embodiment, as shown in FIG. 11, the
第一匹配子模块1101,用于获取字母串组中的第一个字母串,在存储的联系人的姓和名对应的拼音或英文字母串中,确定出包含第一个字母串的拼音或英文字母串对应的联系人姓名集合;The
第二匹配子模块1102,用于获取字母串组中的下一个字母串,在其上一个字母串对应的联系人姓名集合中,进一步确定出联系人的姓和名对应的拼音或英文字母串中包含本次获取的字母串的拼音或英文字母串对应的联系人姓名集合;The
确定子模块1103,用于将包含字母串组中的最后一个字母串的拼音或英文字母串对应的联系人姓名集合中的联系人姓名,确定为匹配的联系人姓名。The determining sub-module 1103 is configured to determine the contact name in the contact name set corresponding to the pinyin or English letter string containing the last letter string in the letter string group as the matching contact name.
本发明实施例中,用户直接在拨号界面经拨号盘输入多个数字串和分隔符,根据多个数字串和分隔符进行拨号姓名匹配,无须进入其他界面,缩短了匹配时间;将由分隔符隔开的多个数字串分别转换为对应的字母串,按照预设的首字母排序规则对转换后的字母串进行排序,采用上述排序方法,被查找的联系人姓或名对应的字母串中包含首字母的字母子串的输入顺序可以是顺序,也可以是逆序,弥补了现有的拨号匹配方法只可顺序输入拼音首字母进行首字母匹配方式的不足,降低了用户关于联系人姓名记忆的准确度要求;本发明实施例中,将排序后得到的字母串组中的每一个字母串与联系人姓名列表中存储的与每个联系人姓名对应的按照预设的首字母排序规则排序后的该联系人的姓和名对应的拼音或英文字母串进行匹配,确定出匹配的联系人姓名,提高了拨号模糊匹配的搜索精度,可以精确快速地进行联系人匹配查询,提高了用户的拨号体验。In the embodiment of the present invention, the user directly inputs a plurality of number strings and separators on the dial interface through the dial pad, and performs dialing name matching according to the plurality of number strings and separators, without entering other interfaces, shortening the matching time; The opened multiple number strings are respectively converted into corresponding letter strings, and the converted letter strings are sorted according to the preset initial letter sorting rules. Using the above sorting method, the letter strings corresponding to the surname or first name of the searched contact contain The input order of the letter substrings of the first letter can be sequential or reverse order, which makes up for the deficiency that the existing dial matching method can only input the first letter of the pinyin in order to carry out the first letter matching method, and reduces the user's memory of the contact name. Accuracy requirements; in the embodiment of the present invention, each letter string in the letter string group obtained after sorting is stored in the contact name list and corresponds to each contact name after sorting according to the preset first letter sorting rule Match the pinyin or English letter string corresponding to the last name and first name of the contact, determine the matching contact name, improve the search accuracy of dialing fuzzy matching, can accurately and quickly conduct contact matching queries, and improve the user's dialing efficiency. experience.
显然,本领域的技术人员可以对本发明进行各种改动和变形而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变形属于本发明权利要求及其等同技术范围之内,则本发明也意图包含这些改动和变形在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their technical equivalents, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910084011.1A CN101888427B (en) | 2009-05-12 | 2009-05-12 | Method for matching dialing name and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910084011.1A CN101888427B (en) | 2009-05-12 | 2009-05-12 | Method for matching dialing name and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101888427A true CN101888427A (en) | 2010-11-17 |
CN101888427B CN101888427B (en) | 2015-03-11 |
Family
ID=43074141
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910084011.1A Expired - Fee Related CN101888427B (en) | 2009-05-12 | 2009-05-12 | Method for matching dialing name and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101888427B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063482A (en) * | 2010-12-27 | 2011-05-18 | 北京友录在线科技发展有限公司 | High-efficiency contact searching method of handheld device |
CN102156757A (en) * | 2011-05-19 | 2011-08-17 | 重庆国虹科技发展有限公司 | Android system-based method for intelligently retrieving mobile phone contact |
WO2012109839A1 (en) * | 2011-02-18 | 2012-08-23 | 中兴通讯股份有限公司 | Method for processing contact person information and mobile terminal |
CN102833380A (en) * | 2012-07-26 | 2012-12-19 | 北京小米科技有限责任公司 | Method and device for searching for contact in communication terminal |
CN102955835A (en) * | 2011-08-31 | 2013-03-06 | 上海夏尔软件有限公司 | Method for positioning options |
CN103020287A (en) * | 2012-11-20 | 2013-04-03 | 高剑青 | Method for eliminating limited projects based on part of hash values |
WO2013143061A1 (en) * | 2012-03-27 | 2013-10-03 | Yang Zijiang | Keyboard, intelligent terminal, and address book fast searching method |
CN104219362A (en) * | 2013-05-30 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Method and device for searching for contact person |
CN102833380B (en) * | 2012-07-26 | 2016-11-30 | 小米科技有限责任公司 | Contact searching method in communication terminal and device |
CN106657523A (en) * | 2016-10-18 | 2017-05-10 | 北京珠穆朗玛移动通信有限公司 | Contact person searching method and mobile terminal terminal thereof |
CN108111703A (en) * | 2017-12-18 | 2018-06-01 | 迈普通信技术股份有限公司 | Contact method querying method and telephone exchange server |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1486564A (en) * | 2001-11-08 | 2004-03-31 | ���Ͽع�����˾ | Method and device for querying name from personal information database |
CN1588279A (en) * | 2004-09-06 | 2005-03-02 | 梁启华 | Method for realizing quick searching Chinese information using number and letter corresponding relationship |
CN101127798A (en) * | 2007-09-14 | 2008-02-20 | 深圳华为通信技术有限公司 | Sorting and searching method and device for number book and mobile terminal |
CN101369215A (en) * | 2008-09-28 | 2009-02-18 | 宇龙计算机通信科技(深圳)有限公司 | Contact person positioning method, system and mobile communication terminal |
-
2009
- 2009-05-12 CN CN200910084011.1A patent/CN101888427B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1486564A (en) * | 2001-11-08 | 2004-03-31 | ���Ͽع�����˾ | Method and device for querying name from personal information database |
CN1588279A (en) * | 2004-09-06 | 2005-03-02 | 梁启华 | Method for realizing quick searching Chinese information using number and letter corresponding relationship |
CN101127798A (en) * | 2007-09-14 | 2008-02-20 | 深圳华为通信技术有限公司 | Sorting and searching method and device for number book and mobile terminal |
CN101369215A (en) * | 2008-09-28 | 2009-02-18 | 宇龙计算机通信科技(深圳)有限公司 | Contact person positioning method, system and mobile communication terminal |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063482A (en) * | 2010-12-27 | 2011-05-18 | 北京友录在线科技发展有限公司 | High-efficiency contact searching method of handheld device |
CN102063482B (en) * | 2010-12-27 | 2013-03-06 | 北京友录在线科技发展有限公司 | High-efficiency contact searching method of handheld device |
WO2012109839A1 (en) * | 2011-02-18 | 2012-08-23 | 中兴通讯股份有限公司 | Method for processing contact person information and mobile terminal |
CN102156757A (en) * | 2011-05-19 | 2011-08-17 | 重庆国虹科技发展有限公司 | Android system-based method for intelligently retrieving mobile phone contact |
CN102955835A (en) * | 2011-08-31 | 2013-03-06 | 上海夏尔软件有限公司 | Method for positioning options |
WO2013143061A1 (en) * | 2012-03-27 | 2013-10-03 | Yang Zijiang | Keyboard, intelligent terminal, and address book fast searching method |
CN102833380B (en) * | 2012-07-26 | 2016-11-30 | 小米科技有限责任公司 | Contact searching method in communication terminal and device |
CN102833380A (en) * | 2012-07-26 | 2012-12-19 | 北京小米科技有限责任公司 | Method and device for searching for contact in communication terminal |
CN103020287A (en) * | 2012-11-20 | 2013-04-03 | 高剑青 | Method for eliminating limited projects based on part of hash values |
CN103020287B (en) * | 2012-11-20 | 2018-08-10 | 高剑青 | Finite term purpose is excluded based on part cryptographic Hash |
CN104219362A (en) * | 2013-05-30 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Method and device for searching for contact person |
US9996586B2 (en) | 2013-05-30 | 2018-06-12 | Tencent Technology (Shenzhen) Company Limited | Method and device for searching for contact object, and storage medium |
CN106657523A (en) * | 2016-10-18 | 2017-05-10 | 北京珠穆朗玛移动通信有限公司 | Contact person searching method and mobile terminal terminal thereof |
CN108111703A (en) * | 2017-12-18 | 2018-06-01 | 迈普通信技术股份有限公司 | Contact method querying method and telephone exchange server |
Also Published As
Publication number | Publication date |
---|---|
CN101888427B (en) | 2015-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101888427B (en) | Method for matching dialing name and terminal | |
CN1154912C (en) | Method and apparatus for entering text messages from a keypad | |
RU2589873C2 (en) | Input processing method and apparatus | |
CN102063482B (en) | High-efficiency contact searching method of handheld device | |
US20060290535A1 (en) | Using language models to expand wildcards | |
WO2008037216A1 (en) | Method and device for information positioning | |
KR101030656B1 (en) | How to search phone number on mobile terminal idle screen | |
US9996586B2 (en) | Method and device for searching for contact object, and storage medium | |
CN86105459A (en) | Imput process system | |
KR101288653B1 (en) | Portable telephone | |
CN101087327A (en) | A phone book search method of mobile terminal | |
TWI604318B (en) | Method of data sorting | |
CN101075231A (en) | Method for indexing cell-phone visiting card | |
CN101676911A (en) | Contact person searching system and method | |
CN100437441C (en) | Method and apparatus for inputting Chinese characters and phrases | |
CN100550929C (en) | The sort method of the phone directory of handheld device and lookup method | |
CN100502429C (en) | Telephone number intelligent inquiry method for mobile phone directory | |
CN107679122A (en) | One kind searches for method and terminal generally | |
TW200947241A (en) | Database indexing algorithm and method and system for database searching using the same | |
TWI341990B (en) | Method and apparatus for searching data | |
CN101996202A (en) | System and method for quickly searching data by keyword | |
KR101050400B1 (en) | Index database device for initial search, string search system and method using same | |
JP4004060B1 (en) | Character search method | |
CN1157919C (en) | Chinese character and word input method and system | |
CN1581031A (en) | Method and device for inputting chinese charater phrase |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150311 Termination date: 20210512 |
|
CF01 | Termination of patent right due to non-payment of annual fee |