CN104902091A - Sorting method for address book and terminal - Google Patents
Sorting method for address book and terminal Download PDFInfo
- Publication number
- CN104902091A CN104902091A CN201510279834.5A CN201510279834A CN104902091A CN 104902091 A CN104902091 A CN 104902091A CN 201510279834 A CN201510279834 A CN 201510279834A CN 104902091 A CN104902091 A CN 104902091A
- Authority
- CN
- China
- Prior art keywords
- phonetic
- unicode
- name
- symbol string
- phonetic symbol
- 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
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000013518 transcription Methods 0.000 claims description 26
- 230000035897 transcription Effects 0.000 claims description 26
- 238000012163 sequencing technique Methods 0.000 claims description 14
- 230000007812 deficiency Effects 0.000 claims description 8
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 230000003068 static effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Abstract
Embodiments of the invention disclose a sorting method for an address book and a terminal. The method comprises the following steps of obtaining at least one traditional Chinese contact name in the address book; respectively inquiring a name in Pinyin of each obtained traditional Chinese contact name; respectively inquiring a phonetic symbol string of the name in Pinyin of each obtained traditional Chinese contact name according to preset phonetic symbol strings of the names in Pinyin; and sorting all phonetic symbol strings according to the size of a Unicode of each phonetic symbol string in order to obtain the sorting of at least one traditional Chinese contact name in the address book. By applying the embodiments of the invention, the efficiency for inquiring the traditional Chinese contact names can be improved.
Description
Technical field
The present invention relates to communication technical field, be specifically related to a kind of address book ordering method and terminal.
Background technology
Phonetic symbol, is once called as the Chinese phonetic script, and be Chinese characters phonetic notation and the symbol that sets, continent is stopped using after carrying out the Scheme for the Chinese Phonetic Alphabet from 1958.At present, the unsimplified Hanzi that Taiwan uses still combines instrument with phonetic symbol into syllables as it, and a lot of Overseas Chinese district also still uses phonetic symbol to combine unsimplified Hanzi into syllables.Address list is in the market substantially all sort based on the Chinese phonetic alphabet for the sequence of traditional Chinese name of contact person, and for the Taiwan Compatriots being unfamiliar with the Chinese phonetic alphabet and Overseas Chinese, the efficiency of searching traditional Chinese name of contact person is very low.Visible, exist in current user terminal and search the inefficient problem of traditional Chinese name of contact person.
Summary of the invention
The embodiment of the present invention provides a kind of address book ordering method and terminal, can provide a kind of address book ordering mode based on phonetic symbol, improves the efficiency of searching traditional Chinese name of contact person.
First aspect, provides a kind of address book ordering method, comprising:
Obtain at least one traditional Chinese name of contact person in address list;
Inquire about the name phonetic of each traditional Chinese name of contact person of described acquisition respectively;
The phonetic symbol string of the name phonetic of each traditional Chinese contact person is inquired about respectively according to the phonetic symbol string of the name phonetic pre-set;
Size according to the Unicode of each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person described in described address list.
In the first possible implementation of first aspect, the size of the described Unicode according to each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person described in described address list, comprising:
The longest Unicode of figure place is searched, using the figure place of Unicode the longest for described figure place as standard figure place from the Unicode of described all phonetic symbol strings;
According to the Unicode preset characters cover of described standard figure place by figure place deficiency, all Unicodes are converted to standard Unicode, all have a standard Unicode to make each phonetic symbol string;
By each standard Unicode from a high position to low level successive appraximation, sort from small to large according to standard Unicode, obtain the sequence of the standard Unicode of described all phonetic symbol strings;
According to the sequence of the standard Unicode of described all phonetic symbol strings, obtain the sequence of at least one traditional Chinese name of contact person described in described address list.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, the size of the described Unicode according to each phonetic symbol string sorts to all phonetic symbol strings, obtain the sequence of at least one traditional Chinese name of contact person described in described address list, also comprise:
If when occurring that the Unicode of multiple phonetic symbol string is identical, the tone order of multiple name phonetics of more described multiple phonetic symbol string, tone order according to described multiple name phonetic sorts to described multiple phonetic symbol string, obtains the sequence of multiple traditional Chinese name of contact persons of described multiple name phonetic.
In conjunction with first aspect, in the third possible implementation of first aspect, described inquire about phonetic symbol string corresponding to each phonetic transcriptions of Chinese characters respectively before, described method also comprises:
The phonetic symbol string of name phonetic is set.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, the described phonetic symbol string arranging name phonetic, comprising:
The phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters is set, uses the phonetic annotation of Chinese characters symbol string of described phonetic transcriptions of Chinese characters that the phonetic symbol string of name phonetic is set.
Second aspect, provides a kind of terminal, comprising:
Acquiring unit, for obtaining at least one traditional Chinese name of contact person in address list;
First query unit, for inquiring about the name phonetic of each traditional Chinese name of contact person of described acquisition respectively;
Second query unit, for inquiring about the phonetic symbol string of the name phonetic of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set;
Sequencing unit, the size for the Unicode according to each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person described in described address list.
In the first possible implementation of second aspect, described sequencing unit comprises:
Search subelement, for searching the longest Unicode of figure place, using the figure place of Unicode the longest for described figure place as standard figure place in the Unicode from described all phonetic symbol strings;
Conversion subelement, for according to the Unicode preset characters cover of described standard figure place by figure place deficiency, is converted to standard Unicode by all Unicodes, all has a standard Unicode to make each phonetic symbol string;
First sequence subelement, for by each standard Unicode from a high position to low level successive appraximation, sort from small to large according to standard Unicode, obtain the sequence of the standard Unicode of described all phonetic symbol strings;
Second sequence subelement, for the sequence of the standard Unicode according to described all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person described in described address list.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, described sequencing unit also comprises:
Relatively subelement, for when occurring that the Unicode of multiple phonetic symbol string is identical, the tone order of multiple name phonetics of more described multiple phonetic symbol string;
3rd sequence subelement, sorts to described multiple phonetic symbol string for the tone order according to described multiple name phonetic, obtains the sequence of multiple traditional Chinese name of contact persons of described multiple name phonetic.
In conjunction with second aspect, in the third possible implementation of second aspect, described terminal also comprises:
Setting unit, for arranging the phonetic symbol string of name phonetic.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, the mode that described setting unit arranges the phonetic symbol string of name phonetic is specially:
Described setting unit arranges the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters, uses the phonetic annotation of Chinese characters symbol string of described phonetic transcriptions of Chinese characters to arrange the phonetic symbol string of name phonetic.
In technique scheme, obtain at least one traditional Chinese name of contact person in address list; Inquire about the name phonetic of each traditional Chinese name of contact person of acquisition respectively; The phonetic symbol string of the name phonetic of each traditional Chinese contact person is inquired about respectively according to the phonetic symbol string of the name phonetic pre-set; Size according to the Unicode of each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person in address list.Be substantially all sort based on the Chinese phonetic alphabet for the sequence of traditional Chinese name of contact person compared to existing technology, the technical program provides a kind of address book ordering mode based on phonetic symbol, can improve the efficiency of searching traditional Chinese name of contact person.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of address book ordering method disclosed in the embodiment of the present invention;
Fig. 2 is the flow chart of another kind of address book ordering method disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in embodiment of the present invention, the technical scheme in embodiment of the present invention is clearly and completely described.Obviously, described execution mode is a part of execution mode of the present invention, instead of whole execution mode.Based on the execution mode in the present invention, the every other execution mode that those of ordinary skill in the art obtain under the prerequisite not making creative work, all should belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of address book ordering method and terminal, can improve the efficiency of searching traditional Chinese name of contact person.Below be described in detail respectively.
The terminal described in the embodiment of the present invention can comprise: mobile phone, panel computer or walkman etc., and above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
Refer to Fig. 1, Fig. 1 is the flow chart of a kind of address book ordering method disclosed in the embodiment of the present invention.As shown in Figure 1, the address book ordering method described in the present embodiment, comprises step:
S101, obtains at least one traditional Chinese name of contact person in address list.
In the embodiment of the present invention, terminal obtains at least one traditional Chinese name of contact person in address list, wherein, each traditional Chinese name of contact person all associates corresponding contact person's contact method, and contact person's contact method can comprise phone number, base number, email address, micro-letter account, QQ account etc.User according to the traditional Chinese name of contact person found, can utilize this traditional Chinese name of contact person to associate corresponding contact method and communicates with this traditional Chinese contact person.
S102, inquires about the name phonetic of each traditional Chinese name of contact person of acquisition respectively.
In the embodiment of the present invention, each traditional Chinese name of contact person all has a name phonetic corresponding with it, such as, the name phonetic that " Liu Xiao is bright " is corresponding is " liuxiaoming ", the name phonetic that " Zhang ripple " is corresponding is " zhangbo ", and the name phonetic that " Zhou Jian Let " is corresponding is " zhoujianshe ".
S103, inquires about the phonetic symbol string of the name phonetic of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set.
In the embodiment of the present invention, phonetic symbol string is made up of 40 phonetic symbols, wherein, 40 phonetic symbols comprise: " ㄅ ", " ㄆ ", " ㄇ ", " ㄈ ", " ㄉ ", " ㄊ ", " ㄋ ", " ㄌ ", " ㄍ ", " ㄎ ", " ㄏ ", " ㄐ ", " > ", " ㄒ ", " ㄓ ", " ㄔ ", " ㄕ ", " ㄖ ", " ㄗ ", " ㄘ ", " ㄙ ", " ㄚ ", " ㄛ ", " ㄜ ", " ㄝ ", " ㄞ ", " ㄟ ", " ㄠ ", " ㄡ ", " ㄢ ", " ㄣ ", " ㄤ ", " ㄥ ", " ㄦ ", " Shu ", " ㄨ ", " ㄩ ", " ten thousand ", " towering ", " extensively ".Wherein, each name phonetic all has a phonetic symbol string corresponding with it, such as, the phonetic symbol string that " liuxiaoming " is corresponding is " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ ", the phonetic symbol string that " zhangbo " is corresponding is " ㄓ ㄤ ㄅ ㄛ ", and the phonetic symbol string that " zhoujianshe " is corresponding is " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ".
S104, the size according to the Unicode of each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person in address list.
In the embodiment of the present invention, each phonetic symbol all has a unique Unicode corresponding with it, the Unicode of phonetic symbol is the heuristicimal code of four, such as: the Unicode of " ㄅ " is " 3105 ", the Unicode of " ㄆ " is " 3106 ", the Unicode of " ㄇ " is " 3107 ", the Unicode of " ㄈ " is " 3108 ", the Unicode of " ㄉ " is " 3109 ", the Unicode of " ㄊ " is " 310A ", the Unicode of " ㄋ " is " 310B ", the Unicode of " ㄌ " is " 310C ", the Unicode of " ㄍ " is " 310D ", the Unicode of " ㄎ " is " 310E ", the Unicode of " ㄏ " is " 310F ", the Unicode of " ㄐ " is " 3110 ", the Unicode of " > " is " 3111 ", the Unicode of " ㄒ " is " 3112 ", the Unicode of " ㄓ " is " 3113 ", the Unicode of " ㄔ " is " 3114 ", the Unicode of " ㄕ " is " 3115 ", the Unicode of " ㄖ " is " 3116 ", the Unicode of " ㄗ " is " 3117 ", the Unicode of " ㄘ " is " 3118 ", the Unicode of " ㄙ " is " 3119 ", the Unicode of " ㄚ " is " 311A ", the Unicode of " ㄛ " is " 311B ", the Unicode of " ㄜ " is " 311C ", the Unicode of " ㄝ " is " 311D ", the Unicode of " ㄞ " is " 311E ", the Unicode of " ㄟ " is " 311F ", the Unicode of " ㄠ " is " 3120 ", the Unicode of " ㄡ " is " 3121 ", the Unicode of " ㄢ " is " 3122 ", the Unicode of " ㄣ " is " 3123 ", the Unicode of " ㄤ " is " 3124 ", the Unicode of " ㄥ " is " 3125 ", the Unicode of " ㄦ " is " 3126 ", the Unicode of " Shu " is " 3127 ", the Unicode of " ㄨ " is " 3128 ", the Unicode of " ㄩ " is " 3129 ", the Unicode of " ten thousand " is " 312A ", the Unicode of " towering " is " 312B ", the Unicode of " extensively " is " 312C ".Wherein, each phonetic symbol string all has a Unicode corresponding with it, such as, if address list comprises " Liu Xiao is bright ", " Zhang ripple " and " Zhou Jian Let " three traditional Chinese name of contact persons, the name phonetic of " Liu Xiao is bright " is " liuxiaoming ", and the phonetic symbol string of " liuxiaoming " is " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ "; The name phonetic of " Zhang ripple " is " zhangbo ", and the phonetic symbol string of " zhangbo " is " ㄓ ㄤ ㄅ ㄛ "; The name phonetic of " Zhou Jian Let " is " zhoujianshe ", and the phonetic symbol string of " zhoujianshe " is " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ".Wherein, the Unicode of " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " is " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", the Unicode of " ㄓ ㄤ ㄅ ㄛ " is " 3,113 3,124 3105 311B ", and the Unicode of " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " is " 3,113 3,121 3,110 3,127 3,122 3115 311C ".Carry out sequence to above-mentioned phonetic symbol string to obtain: " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " makes number one, 3113 3,121 3,110 3,127 3,122 3115 311C " come second; and " 3,113 3,124 3105 311B " comes the 3rd; the sequence namely obtaining three traditional Chinese name of contact persons in above-mentioned address list is: " Liu Xiao is bright " makes number one; " Zhou Jian Let " comes second, and " Zhang ripple " comes the 3rd.
In the execution mode that some are feasible, step S104 can comprise:
11) from the Unicode of all phonetic symbol strings, the longest Unicode of figure place is searched, using the figure place of Unicode the longest for figure place as standard figure place;
12) according to standard figure place by the Unicode of figure place deficiency preset characters cover, all Unicodes are converted to standard Unicode, all have a standard Unicode to make each phonetic symbol string;
13) by each standard Unicode from a high position to low level successive appraximation, sort from small to large according to standard Unicode, obtain the sequence of the standard Unicode of all phonetic symbol strings;
14) according to the sequence of the standard Unicode of all phonetic symbol strings, the sequence of at least one traditional Chinese name of contact person in address list is obtained.
In the embodiment of the present invention, from the Unicode of all phonetic symbol strings, search the longest Unicode of figure place, using the figure place of Unicode the longest for figure place as standard figure place.Such as, can comprise " Liu Xiao is bright ", " Zhang ripple " and " week builds Let " in address list, all phonetic symbol strings can comprise: " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " (corresponding traditional Chinese contact artificial " Liu Xiao is bright "), " ㄓ ㄤ ㄅ ㄛ " (corresponding traditional Chinese contact artificial " Zhang ripple ") and " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " (corresponding traditional Chinese contact artificial " week builds Let ").The Unicode of all phonetic symbol strings can comprise: " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 " (corresponding phonetic symbol string is " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ "), " 3,113 3,124 3105 311B " (corresponding phonetic symbol string is " ㄓ ㄤ ㄅ ㄛ ") and " 3,113 3,121 3,110 3,127 3,122 3115 311C " (corresponding phonetic symbol string is " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ").The Unicode that can obtain the Unicode median of all phonetic symbol strings the longest is: " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", the figure place of the Unicode that this figure place is the longest is 36, and namely standard figure place is 36.
According to standard figure place by the Unicode of figure place deficiency preset characters cover, all Unicodes are converted to standard Unicode.Wherein, preset characters can be " 0 ", " 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", " 9 ", " A ", " B ", " C ", " D ", " E ", any one in " F ", such as, if standard figure place is 36, preset characters is " 0 ", then the standard Unicode of " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 " is itself, the standard Unicode of " 3,113 3,124 3105 311B " is " 3,113 3,124 3105 311B 0,000 0,000 0,000 0,000 0000 ", the standard Unicode of " 3,113 3,121 3,110 3,127 3,122 3115 311C " is " 3,113 3,121 3,110 3,127 3,122 3115 311C 0,000 0000 ".
By each standard Unicode from a high position to low level successive appraximation, sort from small to large according to standard Unicode, obtain the sequence of the standard Unicode of all phonetic symbol strings.Such as, there are three standard Unicodes, be respectively the first standard Unicode " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", second standard Unicode " 3,113 3,124 3105 311B 0,000 0,000 0,000 0,000 0000 " and the 3rd standard Unicode " 3,113 3,121 3,110 3,127 3,122 3115 311C 0,000 0000 ", then by each standard Unicode from a high position to low level successive appraximation, it is identical that first of each standard Unicode is " 3 ", then the second of more each standard Unicode, wherein, the second of the first standard Unicode is " 0 ", the second of the second standard Unicode and the 3rd standard Unicode is " 1 ", then the first standard Unicode is made number one, continue the size comparing the second standard Unicode and the 3rd standard Unicode, the 3rd that compares the second standard Unicode and the 3rd standard Unicode, wherein, the 3rd of second standard Unicode and the 3rd standard Unicode is " 1 ", continue the 4th that compares the second standard Unicode and the 3rd standard Unicode, 5th, 6th, 7th etc., until compare the size of the second standard Unicode and the 3rd standard Unicode, because the second standard Unicode is all identical with the first seven position of the 3rd standard Unicode, the 8th of second standard Unicode is " 4 ", the 8th of 3rd standard Unicode is " 1 ", namely the 3rd standard Unicode comes second, second standard Unicode comes the 3rd.
According to the sequence of the standard Unicode of all phonetic symbol strings, obtain the sequence of at least one traditional Chinese name of contact person in address list.Such as, the standard Unicode " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 " of " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " ranked first, the standard Unicode " 3,113 3,124 3105 311B 0,000 0,000 0,000 0,000 0000 " of " ㄓ ㄤ ㄅ ㄛ " ranked third, the standard Unicode " 3,113 3,121 3,110 3,127 3,122 3115 311C 0,000 0000 " of " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " ranked second, namely in this address list, " Liu Xiao is bright " makes number one, " Zhou Jian Let " comes second, and " Zhang ripple " comes the 3rd.
In the execution mode that some are feasible, step S104 can also comprise:
21) if when occurring that the Unicode of multiple phonetic symbol string is identical, the tone order of multiple name phonetics of more multiple phonetic symbol string;
22) according to the tone order of multiple name phonetic, multiple phonetic symbol string is sorted, obtain the sequence of multiple traditional Chinese name of contact persons of multiple name phonetic.
In the embodiment of the present invention, if when occurring that the Unicode of multiple phonetic symbol string is identical, such as, if there is two traditional Chinese contacts artificial " Zhang person of outstanding talent " and " Zhang is great ", the name phonetic of these two traditional Chinese contact persons is " zhanghao ", the phonetic symbol string of the name phonetic of these two traditional Chinese contact persons is " ㄓ ㄤ ㄏ ㄠ ", the Unicode of these two phonetic symbol strings is identical, now can compare the tone order of the name phonetic of these two traditional Chinese contact persons, concerning traditional Chinese contact person " Zhang person of outstanding talent ", the tone of " zhanghao " (the traditional Chinese contact of correspondence is artificial " Zhang person of outstanding talent ") is first sound (phonetic of first traditional Chinese word " Zhang " correspondence is " zh ā ng ") and the rising tone (phonetic of second traditional Chinese word " person of outstanding talent " correspondence is " h á o "), concerning traditional Chinese contact person " Zhang is great ", the tone of " zhanghao " (corresponding traditional Chinese contact artificial " Zhang is great ") is first sound (phonetic of first traditional Chinese word " Zhang " correspondence is " zh ā ng ") and the falling tone (phonetic of second traditional Chinese word " great " correspondence is " h à o "), can show that the sequence of these two traditional Chinese name of contact persons is: " Zhang person of outstanding talent " comes before " Zhang is great ".
In the embodiment of the present invention, obtain at least one traditional Chinese name of contact person in address list; Inquire about the name phonetic of each traditional Chinese name of contact person of acquisition respectively; The phonetic symbol string of the name phonetic of each traditional Chinese contact person is inquired about respectively according to the phonetic symbol string of the name phonetic pre-set; Size according to the Unicode of each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person in address list.Implement the embodiment of the present invention, a kind of address book ordering mode based on phonetic symbol is provided, thus the efficiency of searching traditional Chinese name of contact person can be improved.
Refer to Fig. 2, Fig. 2 is the flow chart of another kind of address book ordering method disclosed in the embodiment of the present invention.As shown in Figure 2, the address book ordering method described in the present embodiment, comprises step:
S201, arranges the phonetic symbol string of name phonetic.
In the embodiment of the present invention, the phonetic symbol string arranging name phonetic can be that each phonetic transcriptions of Chinese characters arranges a corresponding phonetic symbol string by setting up Hash table, specifically, Static 2D string array can be defined, the all phonetic transcriptions of Chinese characters character strings of one-dimension storage, the phonetic transcriptions of Chinese characters character string that two-dimensional storage is all, concrete code text is as follows:
Private static final String[][]PINYIN_TO_ZHUYING_TABLE={
{"a","ㄚ"},{"ai","ㄞ"},{"an","ㄢ"},
{"ang","ㄤ"},{"ao","ㄠ"},{"au","ㄠ"},
{"ba","ㄅㄚ"},
………
{"zui","ㄗㄨㄟ"},
{"zun","ㄗㄨㄣ"},
{"zuo","ㄗㄨㄛ"}
};
In the execution mode that some are feasible, S201 can comprise:
The phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters is set, uses the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters that the phonetic symbol string of name phonetic is set.
In the embodiment of the present invention, name phonetic is made up of multiple phonetic transcriptions of Chinese characters, by arranging the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters, the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters namely can be used to arrange the phonetic symbol string of name phonetic.For example, the phonetic annotation of Chinese characters symbol string of " zuo " is " ㄗ ㄨ ㄛ ", and the phonetic annotation of Chinese characters symbol string of " zun " is " ㄗ ㄨ ㄣ ", and namely name phonetic is the phonetic symbol string of " zuozun " is " ㄗ ㄨ ㄛ ㄗ ㄨ ㄣ ".
S202, obtains at least one traditional Chinese name of contact person in address list.
S203, inquires about the name phonetic of each traditional Chinese name of contact person of acquisition respectively.
S204, inquires about the phonetic symbol string of the name phonetic of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set.
S205, the size according to the Unicode of each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person in address list.
Step S202 in the embodiment of the present invention ~ step S205 can consult step S101 shown in Fig. 1 ~ step S104, and the embodiment of the present invention repeats no more.
In the embodiment of the present invention, the phonetic symbol string of name phonetic is set; Obtain at least one traditional Chinese name of contact person in address list; Inquire about the name phonetic of each traditional Chinese name of contact person of acquisition respectively; The phonetic symbol string of the name phonetic of each traditional Chinese contact person is inquired about respectively according to the phonetic symbol string of the name phonetic pre-set; Size according to the Unicode of each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person in address list.Implement the embodiment of the present invention, a kind of address book ordering mode based on phonetic symbol is provided, thus the efficiency of searching traditional Chinese name of contact person can be improved.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention.As shown in Figure 3, the terminal described in the present embodiment, comprises acquiring unit 301, first query unit 302, second query unit 303 and sequencing unit 304, wherein:
Acquiring unit 301, for obtaining at least one traditional Chinese name of contact person in address list.
In the embodiment of the present invention, acquiring unit 301 obtains at least one traditional Chinese name of contact person in address list, wherein, each traditional Chinese name of contact person all associates corresponding contact person's contact method, and contact person's contact method can comprise phone number, base number, email address, micro-letter account, QQ account etc.User according to the traditional Chinese name of contact person found, can utilize this traditional Chinese name of contact person to associate corresponding contact method and communicates with this traditional Chinese contact person.
First query unit 302, for inquiring about the name phonetic of each traditional Chinese name of contact person of acquisition respectively.
In the embodiment of the present invention, the first query unit 302 inquires about the name phonetic of each traditional Chinese name of contact person of acquisition respectively.Wherein, each traditional Chinese name of contact person all has a name phonetic corresponding with it, such as, the name phonetic that " Liu Xiao is bright " is corresponding is " liuxiaoming ", the name phonetic that " Zhang ripple " is corresponding is " zhangbo ", and the name phonetic that " Zhou Jian Let " is corresponding is " zhoujianshe ".
Second query unit 303, for inquiring about the phonetic symbol string of the name phonetic of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set.
In the embodiment of the present invention, the second query unit 303 inquires about the phonetic symbol string of the name phonetic of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set.Wherein, phonetic symbol string is made up of 40 phonetic symbols, wherein, 40 phonetic symbols comprise: " ㄅ ", " ㄆ ", " ㄇ ", " ㄈ ", " ㄉ ", " ㄊ ", " ㄋ ", " ㄌ ", " ㄍ ", " ㄎ ", " ㄏ ", " ㄐ ", " > ", " ㄒ ", " ㄓ ", " ㄔ ", " ㄕ ", " ㄖ ", " ㄗ ", " ㄘ ", " ㄙ ", " ㄚ ", " ㄛ ", " ㄜ ", " ㄝ ", " ㄞ ", " ㄟ ", " ㄠ ", " ㄡ ", " ㄢ ", " ㄣ ", " ㄤ ", " ㄥ ", " ㄦ ", " Shu ", " ㄨ ", " ㄩ ", " ten thousand ", " towering ", " extensively ".Wherein, each name phonetic all has a phonetic symbol string corresponding with it, such as, the phonetic symbol string that " liuxiaoming " is corresponding is " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ ", the phonetic symbol string that " zhangbo " is corresponding is " ㄓ ㄤ ㄅ ㄛ ", and the phonetic symbol string that " zhoujianshe " is corresponding is " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ".
Sequencing unit 304, the size for the Unicode according to each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person in address list.
In the embodiment of the present invention, sequencing unit 304 sorts to all phonetic symbol strings according to the size of the Unicode of each phonetic symbol string, obtains the sequence of at least one traditional Chinese name of contact person in address list.Wherein, each phonetic symbol all has a unique Unicode corresponding with it, the Unicode of phonetic symbol is the heuristicimal code of four, such as: the Unicode of " ㄅ " is " 3105 ", the Unicode of " ㄆ " is " 3106 ", the Unicode of " ㄇ " is " 3107 ", the Unicode of " ㄈ " is " 3108 ", the Unicode of " ㄉ " is " 3109 ", the Unicode of " ㄊ " is " 310A ", the Unicode of " ㄋ " is " 310B ", the Unicode of " ㄌ " is " 310C ", the Unicode of " ㄍ " is " 310D ", the Unicode of " ㄎ " is " 310E ", the Unicode of " ㄏ " is " 310F ", the Unicode of " ㄐ " is " 3110 ", the Unicode of " > " is " 3111 ", the Unicode of " ㄒ " is " 3112 ", the Unicode of " ㄓ " is " 3113 ", the Unicode of " ㄔ " is " 3114 ", the Unicode of " ㄕ " is " 3115 ", the Unicode of " ㄖ " is " 3116 ", the Unicode of " ㄗ " is " 3117 ", the Unicode of " ㄘ " is " 3118 ", the Unicode of " ㄙ " is " 3119 ", the Unicode of " ㄚ " is " 311A ", the Unicode of " ㄛ " is " 311B ", the Unicode of " ㄜ " is " 311C ", the Unicode of " ㄝ " is " 311D ", the Unicode of " ㄞ " is " 311E ", the Unicode of " ㄟ " is " 311F ", the Unicode of " ㄠ " is " 3120 ", the Unicode of " ㄡ " is " 3121 ", the Unicode of " ㄢ " is " 3122 ", the Unicode of " ㄣ " is " 3123 ", the Unicode of " ㄤ " is " 3124 ", the Unicode of " ㄥ " is " 3125 ", the Unicode of " ㄦ " is " 3126 ", the Unicode of " Shu " is " 3127 ", the Unicode of " ㄨ " is " 3128 ", the Unicode of " ㄩ " is " 3129 ", the Unicode of " ten thousand " is " 312A ", the Unicode of " towering " is " 312B ", the Unicode of " extensively " is " 312C ".Wherein, each phonetic symbol string all has a Unicode corresponding with it, such as, if address list comprises " Liu Xiao is bright ", " Zhang ripple " and " Zhou Jian Let " three traditional Chinese name of contact persons, the name phonetic of " Liu Xiao is bright " is " liuxiaoming ", and the phonetic symbol string of " liuxiaoming " is " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ "; The name phonetic of " Zhang ripple " is " zhangbo ", and the phonetic symbol string of " zhangbo " is " ㄓ ㄤ ㄅ ㄛ "; The name phonetic of " Zhou Jian Let " is " zhoujianshe ", and the phonetic symbol string of " zhoujianshe " is " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ".Wherein, the Unicode of " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " is " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", the Unicode of " ㄓ ㄤ ㄅ ㄛ " is " 3,113 3,124 3105 311B ", and the Unicode of " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " is " 3,113 3,121 3,110 3,127 3,122 3115 311C ".Carry out sequence to above-mentioned phonetic symbol string to obtain: " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " makes number one, 3113 3,121 3,110 3,127 3,122 3115 311C " come second; and " 3,113 3,124 3105 311B " comes the 3rd; the sequence namely obtaining three traditional Chinese name of contact persons in above-mentioned address list is: " Liu Xiao is bright " makes number one; " Zhou Jian Let " comes second, and " Zhang ripple " comes the 3rd.
Optionally, as shown in Figure 4, Fig. 4 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention, and wherein, sequencing unit 304 can comprise:
Search subelement 3401, for searching the longest Unicode of figure place, using the figure place of Unicode the longest for figure place as standard figure place in the Unicode from all phonetic symbol strings.
Conversion subelement 3402, for according to standard figure place by the Unicode of figure place deficiency preset characters cover, all Unicodes are converted to standard Unicode, all have a standard Unicode to make each phonetic symbol string.
First sequence subelement 3403, for by each standard Unicode from a high position to low level successive appraximation, sort from small to large according to standard Unicode, obtain the sequence of the standard Unicode of all phonetic symbol strings.
Second sequence subelement 3404, for the sequence of the standard Unicode according to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person in address list.
In the embodiment of the present invention, search subelement 3401 and search the longest Unicode of figure place, using the figure place of Unicode the longest for figure place as standard figure place from the Unicode of all phonetic symbol strings.Such as, can comprise " Liu Xiao is bright ", " Zhang ripple " and " week builds Let " in address list, all phonetic symbol strings can comprise: " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " (corresponding traditional Chinese contact artificial " Liu Xiao is bright "), " ㄓ ㄤ ㄅ ㄛ " (corresponding traditional Chinese contact artificial " Zhang ripple ") and " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " (corresponding traditional Chinese contact artificial " week builds Let ").The Unicode of all phonetic symbol strings can comprise: " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 " (corresponding phonetic symbol string is " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ "), " 3,113 3,124 3105 311B " (corresponding phonetic symbol string is " ㄓ ㄤ ㄅ ㄛ ") and " 3,113 3,121 3,110 3,127 3,122 3115 311C " (corresponding phonetic symbol string is " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ").The Unicode that can obtain the Unicode median of all phonetic symbol strings the longest is: " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", the figure place of the Unicode that this figure place is the longest is 36, and namely standard figure place is 36.
All Unicodes by the Unicode of figure place deficiency preset characters cover, are converted to standard Unicode according to standard figure place by conversion subelement 3402.Wherein, preset characters can be " 0 ", " 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", " 9 ", " A ", " B ", " C ", " D ", " E ", any one in " F ", such as, if standard figure place is 36, preset characters is " 0 ", then the standard Unicode of " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 " is itself, the standard Unicode of " 3,113 3,124 3105 311B " is " 3,113 3,124 3105 311B 0,000 0,000 0,000 0,000 0000 ", the standard Unicode of " 3,113 3,121 3,110 3,127 3,122 3115 311C " is " 3,113 3,121 3,110 3,127 3,122 3115 311C 0,000 0000 ".
Each standard Unicode from a high position to low level successive appraximation, sorts according to standard Unicode, obtains the sequence of the standard Unicode of all phonetic symbol strings by the first sequence subelement 3403 from small to large.Such as, there are three standard Unicodes, be respectively the first standard Unicode " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", second standard Unicode " 3,113 3,124 3105 311B 0,000 0,000 0,000 0,000 0000 " and the 3rd standard Unicode " 3,113 3,121 3,110 3,127 3,122 3115 311C 0,000 0000 ", then by each standard Unicode from a high position to low level successive appraximation, it is identical that first of each standard Unicode is " 3 ", then the second of more each standard Unicode, wherein, the second of the first standard Unicode is " 0 ", the second of the second standard Unicode and the 3rd standard Unicode is " 1 ", then the first standard Unicode is made number one, continue the size comparing the second standard Unicode and the 3rd standard Unicode, the 3rd that compares the second standard Unicode and the 3rd standard Unicode, wherein, the 3rd of second standard Unicode and the 3rd standard Unicode is " 1 ", continue the 4th that compares the second standard Unicode and the 3rd standard Unicode, 5th, 6th, 7th etc., until compare the size of the second standard Unicode and the 3rd standard Unicode, because the second standard Unicode is all identical with the first seven position of the 3rd standard Unicode, the 8th of second standard Unicode is " 4 ", the 8th of 3rd standard Unicode is " 1 ", namely the 3rd standard Unicode comes second, second standard Unicode comes the 3rd.
Second sequence subelement 3404, according to the sequence of the standard Unicode of all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person in address list.Such as, the standard Unicode " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 " of " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " ranked first, the standard Unicode " 3,113 3,124 3105 311B 0,000 0,000 0,000 0,000 0000 " of " ㄓ ㄤ ㄅ ㄛ " ranked third, the standard Unicode " 3,113 3,121 3,110 3,127 3,122 3115 311C 0,000 0000 " of " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " ranked second, namely in this address list, " Liu Xiao is bright " makes number one, " Zhou Jian Let " comes second, and " Zhang ripple " comes the 3rd.
Optionally, as shown in Figure 5, Fig. 5 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention, wherein, sequencing unit 304, except comprising searching except subelement 3401, conversion subelement 3402, first sequence subelement 3403 and the second sequence subelement 3404 shown in Fig. 4, can also comprise:
Relatively subelement 3405, for when occurring that the Unicode of multiple phonetic symbol string is identical, the tone order of multiple name phonetics of more multiple phonetic symbol string.
3rd sequence subelement 3406, sorts to multiple phonetic symbol string for the tone order according to multiple name phonetic, obtains the sequence of multiple traditional Chinese name of contact persons of multiple name phonetic.
In the embodiment of the present invention, if when occurring that the Unicode of multiple phonetic symbol string is identical, compare the tone order of multiple name phonetics of subelement 3405 more multiple phonetic symbol string; 3rd sequence subelement 3406 sorts to multiple phonetic symbol string according to the tone order of multiple name phonetic, obtains the sequence of multiple traditional Chinese name of contact persons of multiple name phonetic.Such as, if there is two traditional Chinese contacts artificial " Zhang person of outstanding talent " and " Zhang is great ", the name phonetic of these two traditional Chinese contact persons is " zhanghao ", the phonetic symbol string of the name phonetic of these two traditional Chinese contact persons is " ㄓ ㄤ ㄏ ㄠ ", the Unicode of these two phonetic symbol strings is identical, now can compare the tone order of the name phonetic of these two traditional Chinese contact persons, concerning traditional Chinese contact person " Zhang person of outstanding talent ", the tone of " zhanghao " (the traditional Chinese contact of correspondence is artificial " Zhang person of outstanding talent ") is first sound (phonetic of first traditional Chinese word " Zhang " correspondence is " zh ā ng ") and the rising tone (phonetic of second traditional Chinese word " person of outstanding talent " correspondence is " h á o "), concerning traditional Chinese contact person " Zhang is great ", the tone of " zhanghao " (corresponding traditional Chinese contact artificial " Zhang is great ") is first sound (phonetic of first traditional Chinese word " Zhang " correspondence is " zh ā ng ") and the falling tone (phonetic of second traditional Chinese word " great " correspondence is " h à o "), can show that the sequence of these two traditional Chinese name of contact persons is: " Zhang person of outstanding talent " comes before " Zhang is great ".
In the embodiment of the present invention, acquiring unit 301 obtains at least one traditional Chinese name of contact person in address list; First query unit 302 inquires about the name phonetic of each traditional Chinese name of contact person of acquisition respectively; Second query unit 303 inquires about the phonetic symbol string of the name phonetic of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set; Sequencing unit 304 sorts to all phonetic symbol strings according to the size of the Unicode of each phonetic symbol string, obtains the sequence of at least one traditional Chinese name of contact person in address list.Implement the embodiment of the present invention, a kind of address book ordering mode based on phonetic symbol is provided, thus the efficiency of searching traditional Chinese name of contact person can be improved.
Refer to Fig. 6, Fig. 6 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention.As shown in Figure 6, the terminal described in the present embodiment, except comprising acquiring unit 301, first query unit 302, second query unit 303 shown in Fig. 3 and sequencing unit 304, also comprises setting unit 305, wherein:
Setting unit 305, for arranging the phonetic symbol string of name phonetic.
In the embodiment of the present invention, the phonetic symbol string that setting unit 305 arranges name phonetic can be that each phonetic transcriptions of Chinese characters arranges a corresponding phonetic symbol string by setting up Hash table, specifically, Static 2D string array can be defined, the all phonetic transcriptions of Chinese characters character strings of one-dimension storage, the phonetic transcriptions of Chinese characters character string that two-dimensional storage is all, concrete code text is as follows:
Private static final String[][]PINYIN_TO_ZHUYING_TABLE={
{"a","ㄚ"},{"ai","ㄞ"},{"an","ㄢ"},
{"ang","ㄤ"},{"ao","ㄠ"},{"au","ㄠ"},
{"ba","ㄅㄚ"},
………
{"zui","ㄗㄨㄟ"},
{"zun","ㄗㄨㄣ"},
{"zuo","ㄗㄨㄛ"}
};
In the execution mode that some are feasible, the mode that setting unit 305 arranges the phonetic symbol string of name phonetic is specially:
Setting unit 305 arranges the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters, uses the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters to arrange the phonetic symbol string of name phonetic.
In the embodiment of the present invention, name phonetic is made up of multiple phonetic transcriptions of Chinese characters, and setting unit 305, by arranging the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters, namely can use the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters to arrange the phonetic symbol string of name phonetic.For example, the phonetic annotation of Chinese characters symbol string of " zuo " is " ㄗ ㄨ ㄛ ", and the phonetic annotation of Chinese characters symbol string of " zun " is " ㄗ ㄨ ㄣ ", and namely name phonetic is the phonetic symbol string of " zuozun " is " ㄗ ㄨ ㄛ ㄗ ㄨ ㄣ ".
In the embodiment of the present invention, setting unit 305 arranges the phonetic symbol string of name phonetic; Acquiring unit 301 obtains at least one traditional Chinese name of contact person in address list; First query unit 302 inquires about the name phonetic of each traditional Chinese name of contact person of acquisition respectively; Second query unit 303 inquires about the phonetic symbol string of the name phonetic of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set; Sequencing unit 30 sorts to all phonetic symbol strings according to the size of the Unicode of each phonetic symbol string, obtains the sequence of at least one traditional Chinese name of contact person in address list.Implement the embodiment of the present invention, a kind of address book ordering mode based on phonetic symbol is provided, thus the efficiency of searching traditional Chinese name of contact person can be improved.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
A kind of address book ordering method provided the embodiment of the present invention above and terminal are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. an address book ordering method, is characterized in that, comprising:
Obtain at least one traditional Chinese name of contact person in address list;
Inquire about the name phonetic of each traditional Chinese name of contact person of described acquisition respectively;
The phonetic symbol string of the name phonetic of each traditional Chinese contact person is inquired about respectively according to the phonetic symbol string of the name phonetic pre-set;
Size according to the Unicode of each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person described in described address list.
2. method according to claim 1, is characterized in that, the size of the described Unicode according to each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person described in described address list, comprising:
The longest Unicode of figure place is searched, using the figure place of Unicode the longest for described figure place as standard figure place from the Unicode of described all phonetic symbol strings;
According to the Unicode preset characters cover of described standard figure place by figure place deficiency, all Unicodes are converted to standard Unicode, all have a standard Unicode to make each phonetic symbol string;
By each standard Unicode from a high position to low level successive appraximation, sort from small to large according to standard Unicode, obtain the sequence of the standard Unicode of described all phonetic symbol strings;
According to the sequence of the standard Unicode of described all phonetic symbol strings, obtain the sequence of at least one traditional Chinese name of contact person described in described address list.
3. method according to claim 2, it is characterized in that, the size of the described Unicode according to each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person described in described address list, also comprises:
If when occurring that the Unicode of multiple phonetic symbol string is identical, the tone order of multiple name phonetics of more described multiple phonetic symbol string, tone order according to described multiple name phonetic sorts to described multiple phonetic symbol string, obtains the sequence of multiple traditional Chinese name of contact persons of described multiple name phonetic.
4. method according to claim 1, is characterized in that, described inquire about phonetic symbol string corresponding to each phonetic transcriptions of Chinese characters respectively before, described method also comprises:
The phonetic symbol string of name phonetic is set.
5. method according to claim 4, is characterized in that, the described phonetic symbol string arranging name phonetic, comprising:
The phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters is set, uses the phonetic annotation of Chinese characters symbol string of described phonetic transcriptions of Chinese characters that the phonetic symbol string of name phonetic is set.
6. a terminal, is characterized in that, comprising:
Acquiring unit, for obtaining at least one traditional Chinese name of contact person in address list;
First query unit, for inquiring about the name phonetic of each traditional Chinese name of contact person of described acquisition respectively;
Second query unit, for inquiring about the phonetic symbol string of the name phonetic of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set;
Sequencing unit, the size for the Unicode according to each phonetic symbol string sorts to all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person described in described address list.
7. terminal according to claim 6, is characterized in that, described sequencing unit comprises:
Search subelement, for searching the longest Unicode of figure place, using the figure place of Unicode the longest for described figure place as standard figure place in the Unicode from described all phonetic symbol strings;
Conversion subelement, for according to the Unicode preset characters cover of described standard figure place by figure place deficiency, is converted to standard Unicode by all Unicodes, all has a standard Unicode to make each phonetic symbol string;
First sequence subelement, for by each standard Unicode from a high position to low level successive appraximation, sort from small to large according to standard Unicode, obtain the sequence of the standard Unicode of described all phonetic symbol strings;
Second sequence subelement, for the sequence of the standard Unicode according to described all phonetic symbol strings, obtains the sequence of at least one traditional Chinese name of contact person described in described address list.
8. terminal according to claim 7, is characterized in that, described sequencing unit also comprises:
Relatively subelement, for when occurring that the Unicode of multiple phonetic symbol string is identical, the tone order of multiple name phonetics of more described multiple phonetic symbol string;
3rd sequence subelement, sorts to described multiple phonetic symbol string for the tone order according to described multiple name phonetic, obtains the sequence of multiple traditional Chinese name of contact persons of described multiple name phonetic.
9. terminal according to claim 6, is characterized in that, described terminal also comprises:
Setting unit, for arranging the phonetic symbol string of name phonetic.
10. terminal according to claim 9, is characterized in that, the mode that described setting unit arranges the phonetic symbol string of name phonetic is specially:
Described setting unit arranges the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters, uses the phonetic annotation of Chinese characters symbol string of described phonetic transcriptions of Chinese characters to arrange the phonetic symbol string of name phonetic.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510279834.5A CN104902091B (en) | 2015-05-27 | 2015-05-27 | A kind of address book ordering method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510279834.5A CN104902091B (en) | 2015-05-27 | 2015-05-27 | A kind of address book ordering method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104902091A true CN104902091A (en) | 2015-09-09 |
CN104902091B CN104902091B (en) | 2018-03-27 |
Family
ID=54034482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510279834.5A Expired - Fee Related CN104902091B (en) | 2015-05-27 | 2015-05-27 | A kind of address book ordering method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104902091B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017128101A1 (en) * | 2016-01-27 | 2017-08-03 | 阿里巴巴集团控股有限公司 | Method for displaying and processing name list, client, and server |
CN110287147A (en) * | 2019-06-27 | 2019-09-27 | 北京奇艺世纪科技有限公司 | A kind of character string sorting method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1728735A (en) * | 2004-07-27 | 2006-02-01 | 夏新电子股份有限公司 | Method for sorting and looking up telephone book of hand held |
CN101478604A (en) * | 2009-01-12 | 2009-07-08 | 深圳市同洲电子股份有限公司 | Contact positioning method, system and mobile terminal |
CN101621560A (en) * | 2009-08-10 | 2010-01-06 | 上海闻泰电子科技有限公司 | Method for searching for traditional Chinese character telephone book record by phonetic initial |
CN101894127A (en) * | 2010-05-26 | 2010-11-24 | 洪朝彬 | Intelligent arranging and searching method for mobile phone contact |
-
2015
- 2015-05-27 CN CN201510279834.5A patent/CN104902091B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1728735A (en) * | 2004-07-27 | 2006-02-01 | 夏新电子股份有限公司 | Method for sorting and looking up telephone book of hand held |
CN101478604A (en) * | 2009-01-12 | 2009-07-08 | 深圳市同洲电子股份有限公司 | Contact positioning method, system and mobile terminal |
CN101621560A (en) * | 2009-08-10 | 2010-01-06 | 上海闻泰电子科技有限公司 | Method for searching for traditional Chinese character telephone book record by phonetic initial |
CN101894127A (en) * | 2010-05-26 | 2010-11-24 | 洪朝彬 | Intelligent arranging and searching method for mobile phone contact |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017128101A1 (en) * | 2016-01-27 | 2017-08-03 | 阿里巴巴集团控股有限公司 | Method for displaying and processing name list, client, and server |
CN110287147A (en) * | 2019-06-27 | 2019-09-27 | 北京奇艺世纪科技有限公司 | A kind of character string sorting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104902091B (en) | 2018-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104657058A (en) | Screenshot method | |
CN104679405A (en) | Terminal | |
CN103970751A (en) | Multi-language web page converting system and method | |
CN101303628B (en) | Method and device for performing character word input by digital keyboard | |
CN104902091A (en) | Sorting method for address book and terminal | |
CN103473361A (en) | Searching method and searching device | |
CN102135812A (en) | method and device for inputting polyphonic Chinese characters | |
CN104915458A (en) | Automatic association method and system during application search by user, and mobile terminal | |
CN102710833B (en) | Mobile phone test case and automatic generation method thereof | |
CN103220387A (en) | Searching method and searching device for touch-screen phone | |
CN101686274B (en) | Contact name searching system and method | |
CN102999639B (en) | A kind of lookup method based on speech recognition character index and system | |
CN101529499B (en) | Pen-type voice computer and method thereof | |
CN101593191A (en) | The index establishing method of database, database search method and system | |
CN101446975A (en) | File location method, device and mobile terminal | |
CN104598464A (en) | Information processing method and electronic equipment | |
CN108428195B (en) | Hoisting sequence setting method and system | |
CN101894127A (en) | Intelligent arranging and searching method for mobile phone contact | |
CN102821183A (en) | Contact person search method and device and mobile terminal | |
CN101621560A (en) | Method for searching for traditional Chinese character telephone book record by phonetic initial | |
CN106126048B (en) | Method and device for inquiring contact information of mobile equipment | |
KR20100091579A (en) | Index database structure for searching initial sound, system and method for searching string using the same | |
CN104063449A (en) | Electronic bookmark generation and positioning method and system for mobile terminal | |
CN109558387A (en) | Processing method, device, storage medium and the terminal of identification card number | |
CN104598451A (en) | Method and terminal equipment for looking up contact person |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180327 |