CN104902091B - A kind of address book ordering method and terminal - Google Patents
A kind of address book ordering method and terminal Download PDFInfo
- Publication number
- CN104902091B CN104902091B CN201510279834.5A CN201510279834A CN104902091B CN 104902091 B CN104902091 B CN 104902091B CN 201510279834 A CN201510279834 A CN 201510279834A CN 104902091 B CN104902091 B CN 104902091B
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000013518 transcription Methods 0.000 claims description 26
- 230000035897 transcription Effects 0.000 claims description 26
- 238000012163 sequencing technique Methods 0.000 claims description 12
- 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
- 238000003491 array Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 239000000700 radioactive tracer Substances 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the invention discloses a kind of address book ordering method and terminal, this method to include:Obtain at least one traditional Chinese name of contact person in address list;The name phonetic of each traditional Chinese name of contact person of acquisition is inquired about respectively;Inquire 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;All phonetic symbol strings are ranked up according to the size of the Unicode of each phonetic symbol string, obtain the sequence of at least one traditional Chinese name of contact person in address list.Implement the embodiment of the present invention, the efficiency for searching traditional Chinese name of contact person can be improved.
Description
Technical field
The present invention relates to communication technical field, and in particular to a kind of address book ordering method and terminal.
Background technology
Phonetic symbol, the Chinese phonetic script is once called as, is the symbol set for Chinese characters phonetic notation, the Chinese was carried out in continent from 1958
Stopped using after language phonetic plan.At present, the unsimplified Hanzi that Taiwan uses still combines instrument into syllables by the use of phonetic symbol as it, very
More Overseas Chinese areas also still combine unsimplified Hanzi into syllables using phonetic symbol.Address list in the market is for traditional Chinese contact person
The sequence of name is substantially to be ranked up based on the Chinese phonetic alphabet, Taiwan Compatriots and Overseas Chinese for being unfamiliar with the Chinese phonetic alphabet
For, the efficiency for searching traditional Chinese name of contact person is very low.Traditional Chinese contact is searched it can be seen that existing at present in user terminal
The problem of people's name efficiency is low.
The content of the invention
The embodiment of the present invention provides a kind of address book ordering method and terminal, can provide a kind of logical based on phonetic symbol
News record sortord, improves the efficiency for searching traditional Chinese name of contact person.
First aspect, there is provided a kind of address book ordering method, including:
Obtain at least one traditional Chinese name of contact person in address list;
The name phonetic of each traditional Chinese name of contact person of the acquisition is inquired about respectively;
The name for inquiring about each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set is spelled
The phonetic symbol string of sound;
All phonetic symbol strings are ranked up according to the size of the Unicode of each phonetic symbol string, obtained described logical
The sequence of at least one traditional Chinese name of contact person described in news record.
In the first possible implementation of first aspect, the Unicode of each phonetic symbol string of basis it is big
It is small that all phonetic symbol strings are ranked up, obtain at least one traditional Chinese name of contact person described in the address list
Sequence, including:
The most long Unicode of digit is searched from the Unicode of all phonetic symbol strings, the digit is most long
The digit of Unicode is as standard digit;
According to the standard digit by digit deficiency Unicode preset characters cover, all Unicodes are converted to
Standard Unicode, so that each phonetic symbol string has a standard Unicode;
By each standard Unicode from a high position to low level successive appraximation, it is ranked up from small to large according to standard Unicode,
Obtain the sequence of the standard Unicode of all phonetic symbol strings;
According to the sequence of the standard Unicode of all phonetic symbol strings, obtain at least one described in the address list
The sequence of individual traditional Chinese name of contact person.
With reference to the first possible implementation of first aspect, in second of possible implementation of first aspect
In, the size of the Unicode of each phonetic symbol string of basis is ranked up to all phonetic symbol strings, is obtained described logical
The sequence of at least one traditional Chinese name of contact person described in news record, in addition to:
If the Unicode for multiple phonetic symbol strings occur is identical, multiple names of more the multiple phonetic symbol string are spelled
The tone order of sound, the multiple phonetic symbol string is ranked up according to the tone order of the multiple name phonetic, obtained
The sequence of multiple traditional Chinese name of contact persons of the multiple name phonetic.
It is described to inquire about each Chinese character respectively with reference in a first aspect, in the third possible implementation of first aspect
Before phonetic symbol string corresponding to phonetic, methods described also includes:
The phonetic symbol string of name phonetic is set.
With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect
In, the phonetic symbol string that name phonetic is set, including:
The phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters is set, name is set using the phonetic annotation of Chinese characters symbol string of the phonetic transcriptions of Chinese characters
The phonetic symbol string of phonetic.
Second aspect, there is provided a kind of terminal, including:
Acquiring unit, for obtaining at least one traditional Chinese name of contact person in address list;
First query unit, the name phonetic of each traditional Chinese name of contact person for inquiring about the acquisition respectively;
Second query unit, it is numerous for inquiring about each Chinese respectively according to the phonetic symbol string of the name phonetic pre-set
The phonetic symbol string of the name phonetic of body contact person;
Sequencing unit, the size for the Unicode according to each phonetic symbol string are arranged all phonetic symbol strings
Sequence, obtain the sequence of at least one traditional Chinese name of contact person described in the address list.
In the first possible implementation of second aspect, the sequencing unit includes:
Subelement is searched, for searching the most long Unicode of digit from the Unicode of all phonetic symbol strings,
Using the digit of the most long Unicode of the digit as standard digit;
Conversion subunit, for according to the standard digit by digit deficiency Unicode preset characters cover, by institute
Some Unicodes are converted to standard Unicode, so that each phonetic symbol string has a standard Unicode;
First sequence subelement, for each standard Unicode from a high position to low level successive appraximation, to be unified according to standard
Code is ranked up from small to large, obtains the sequence of the standard Unicode of all phonetic symbol strings;
Second sequence subelement, for the sequence of the standard Unicode according to all phonetic symbol strings, obtains institute
State the sequence of at least one traditional Chinese name of contact person described in address list.
With reference to the first possible implementation of second aspect, in second of possible implementation of second aspect
In, the sequencing unit also includes:
Comparing subunit, for when the Unicode for multiple phonetic symbol strings occur is identical, more the multiple phonetic notation to accord with
Number string multiple name phonetics tone order;
3rd sequence subelement, for the tone order according to the multiple name phonetic to the multiple phonetic symbol string
It is ranked up, obtains the sequence of multiple traditional Chinese name of contact persons of the multiple name phonetic.
With reference to second aspect, in the third possible implementation of second aspect, the terminal also includes:
Setting unit, for setting the phonetic symbol string of name phonetic.
With reference to the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect
In, the mode of the phonetic symbol string of the setting unit setting name phonetic is specially:
The setting unit sets the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters, is accorded with using the phonetic annotation of Chinese characters of the phonetic transcriptions of Chinese characters
Number string set name phonetic phonetic symbol string.
In above-mentioned technical proposal, at least one traditional Chinese name of contact person in address list is obtained;Inquiry obtains respectively
The name phonetic of each traditional Chinese name of contact person;Inquired about respectively often according to the phonetic symbol string of the name phonetic pre-set
The phonetic symbol string of the name phonetic of individual traditional Chinese contact person;According to the size of the Unicode of each phonetic symbol string to all
Phonetic symbol string be ranked up, obtain the sequence of at least one traditional Chinese name of contact person in address list.Compared to existing skill
The art of sequence in to(for) traditional Chinese name of contact person is substantially to be ranked up based on the Chinese phonetic alphabet, and the technical program provides
A kind of address book ordering mode based on phonetic symbol, the efficiency for searching traditional Chinese name of contact person can be improved.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of flow chart of address book ordering method disclosed in the embodiment of the present invention;
Fig. 2 is the flow chart of another address book ordering method disclosed in the embodiment of the present invention;
Fig. 3 is a kind of structural representation of terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another 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 carried out clear
Chu, it is fully described by.Obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiment party
Formula.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained on the premise of creative work is not made
The every other embodiment obtained, should all 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 and search traditional Chinese contact person's surname
The efficiency of name.It is described in detail individually below.
Terminal described in the embodiment of the present invention may include:Mobile phone, tablet personal computer or walkman etc., above-mentioned terminal are only
Citing, and it is non exhaustive, including but not limited to above-mentioned terminal.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of address book ordering method disclosed in the embodiment of the present invention.Such as Fig. 1 institutes
Show, the address book ordering method described in the present embodiment, including step:
S101, obtain 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, Mei Gezhong
Literary traditional font name of contact person associates corresponding contact person's contact method, and contact person's contact method can include phone number, seat
Machine number, email address, wechat account, QQ accounts etc..User can utilize according to the traditional Chinese name of contact person found
Contact method corresponding to traditional Chinese name of contact person association is communicated with traditional Chinese contact person.
S102, the name phonetic of each traditional Chinese name of contact person of acquisition is inquired about respectively.
In the embodiment of the present invention, each traditional Chinese name of contact person has a corresponding name phonetic, for example,
Name phonetic corresponding to " Liu Xiao are bright " is " liuxiaoming ", and name phonetic corresponding to " Zhang ripples " is " zhangbo ", and " week builds
Name phonetic corresponding to Let " is " zhoujianshe ".
S103, inquire about the surname of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set
The phonetic symbol string of name phonetic.
In the embodiment of the present invention, phonetic symbol string is made up of 40 phonetic symbols, wherein, 40 phonetic symbols include:
“ㄅ”、“ㄆ”、“ㄇ”、“ㄈ”、“ㄉ”、“ㄊ”、“ㄋ”、“ㄌ”、“ㄍ”、“ㄎ”、“ㄏ”、“ㄐ”、“ㄑ”、“ㄒ”、“ㄓ”、“ㄔ”、
“ㄕ”、“ㄖ”、“ㄗ”、“ㄘ”、“ㄙ”、“ㄚ”、“ㄛ”、“ㄜ”、“ㄝ”、“ㄞ”、“ㄟ”、“ㄠ”、“ㄡ”、“ㄢ”、“ㄣ”、
" ㄤ ", " ㄥ ", " ㄦ ", " Shu ", " ㄨ ", " ㄩ ", " ten thousand ", " towering ", " wide ".Wherein, each name phonetic has one to correspond to therewith
Phonetic symbol string, for example, phonetic symbol string corresponding to " liuxiaoming " is " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ ", " zhangbo "
Corresponding phonetic symbol string is " ㄓ ㄤ ㄅ ㄛ ", phonetic symbol string corresponding to " zhoujianshe " are " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ".
S104, all phonetic symbol strings are ranked up according to the size of the Unicode of each phonetic symbol string, obtained
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 has a unique Unicode to correspond to therewith, the system of phonetic symbol
One yard is the heuristicimal code of four, such as:The Unicode of " ㄅ " is " 3105 ", and the Unicode of " ㄆ " is " 3106 ", " ㄇ's "
Unicode is " 3107 ", and the Unicode of " ㄈ " is " 3108 ", and the Unicode of " ㄉ " is " 3109 ", and the Unicode of " ㄊ " is
" 310A ", the Unicode of " ㄋ " is " 310B ", and the Unicode of " ㄌ " is " 310C ", and the Unicode of " ㄍ " is " 310D ", " ㄎ's "
Unicode is " 310E ", and the Unicode of " ㄏ " is " 310F ", and the Unicode of " ㄐ " is " 3110 ", and the Unicode of " > " is " 3111 ",
The Unicode of " ㄒ " is " 3112 ", and the Unicode of " ㄓ " is " 3113 ", and the Unicode of " ㄔ " is " 3114 ", and the Unicode of " ㄕ " is
" 3115 ", the Unicode of " ㄖ " is " 3116 ", and the Unicode of " ㄗ " is " 3117 ", and the Unicode of " ㄘ " is " 3118 ", " ㄙ's "
Unicode is " 3119 ", and the Unicode of " ㄚ " is " 311A ", and the Unicode of " ㄛ " is " 311B ", and the Unicode of " ㄜ " is
" 311C ", the Unicode of " ㄝ " is " 311D ", and the Unicode of " ㄞ " is " 311E ", and the Unicode of " ㄟ " is " 311F ", " ㄠ's "
Unicode is " 3120 ", and the Unicode of " ㄡ " is " 3121 ", and the Unicode of " ㄢ " is " 3122 ", and the Unicode of " ㄣ " is
" 3123 ", the Unicode of " ㄤ " are " 3124 ", and the Unicode of " ㄥ " is " 3125 ", and the Unicode of " ㄦ " is " 3126 ", the system of " Shu "
One yard is " 3127 ", and the Unicode of " ㄨ " is " 3128 ", and the Unicode of " ㄩ " is " 3129 ", and the Unicode of " ten thousand " is " 312A ",
The Unicode of " towering " is " 312B ", and the Unicode of " wide " is " 312C ".Wherein, each phonetic symbol string has one to correspond to therewith
Unicode, if for example, address list include " Liu Xiao are bright ", " Zhang ripples " and " three traditional Chinese name of contact persons of Zhou Jian Let ",
The name phonetic of " Liu Xiao are bright " is " liuxiaoming ", and the phonetic symbol string of " liuxiaoming " is " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu
ㄥ”;The name phonetic of " Zhang ripples " is " zhangbo ", and the phonetic symbol string of " zhangbo " is " ㄓ ㄤ ㄅ ㄛ ";" Zhou Jian Let's "
Name phonetic is " zhoujianshe ", and the phonetic symbol string of " zhoujianshe " is " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ".Wherein, " ㄌ Shu ㄡ
ㄒ Shu ㄠ ㄇ Shu ㄥ " Unicode is " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", " ㄓ ㄤ ㄅ
ㄛ " Unicode is " 3,113 3,124 3105 311B ", and " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " Unicode is " 3,113 3,121 3110
3127 3122 3115 311C”.Above-mentioned phonetic symbol string is ranked up to obtain:" ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " come first
Position, 3,113 3,121 3,110 3,127 3,122 3115 311C " come second, and " 3,113 3,124 3105 311B " comes the
Three, that is, obtain in above-mentioned address list being ordered as three traditional Chinese name of contact persons:" Liu Xiao are bright " makes number one, " week
Jian Let " come second, and " Zhang ripples " comes the 3rd.
In some feasible embodiments, step S104 can include:
11) the most long Unicode of digit is searched from the Unicode of all phonetic symbol strings, by the most long unification of digit
The digit of code is as standard digit;
12) according to standard digit by digit deficiency Unicode preset characters cover, all Unicodes are converted to
Standard Unicode, so that each phonetic symbol string has a standard Unicode;
13) by each standard Unicode from a high position to low level successive appraximation, arranged from small to large according to standard Unicode
Sequence, 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, it is numerous to obtain at least one Chinese in address list
The sequence of body name of contact person.
In the embodiment of the present invention, the most long Unicode of digit is searched from the Unicode of all phonetic symbol strings, by position
The digit of the most long Unicode of number is as standard digit.For example, " Liu Xiao are bright ", " Zhang ripples " and " week builds can be included in address list
Let ", all phonetic symbol strings can include:" ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " (corresponding artificial " the Liu Xiao of traditional Chinese contact
It is bright "), " ㄓ ㄤ ㄅ ㄛ " (corresponding traditional Chinese contact artificial " Zhang ripples ") and " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " (corresponding traditional Chineses
Contact it is artificial " week builds Let ").The Unicode of all phonetic symbol strings can include:“310C 3127 3121 3112 3127
3120 3,107 3,127 3125 " (corresponding phonetic symbol string for " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ "), " 3,113 3,124 3105
311B " (corresponding phonetic symbol string for " ㄓ ㄤ ㄅ ㄛ ") and " 3,113 3,121 3,110 3,127 3,122 3115 311C " are (right
The phonetic symbol string answered for " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ").The Unicode median that all phonetic symbol strings can be obtained is most long
Unicode is:" 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", the most long Unicode of the digit
Digit is 36, i.e., standard digit is 36.
According to standard digit by digit deficiency Unicode preset characters cover, all Unicodes are converted into mark
Quasi- Unicode.Wherein, preset characters can be " 0 ", " 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", " 9 ", " A ", " B ",
Any one in " C ", " D ", " E ", " F ", if for example, standard digit is 36, preset characters are " 0 ", then " 310C 3127
3121 3,112 3,127 3,120 3,107 3,127 3125 " standard Unicode is itself, " 3,113 3,124 3105 311B "
Standard Unicode be " 3,113 3,124 3105 311B 0,000 0,000 0,000 0,000 0000 ", " 3,113 3,121 3110
3127 3,122 3115 311C " standard Unicode is " 3,113 3,121 3,110 3,127 3,122 3115 311C 0000
0000”。
By each standard Unicode from a high position to low level successive appraximation, it is ranked up from small to large according to standard Unicode,
Obtain the sequence of the standard Unicode of all phonetic symbol strings.For example, have three standard Unicodes, respectively the first standard system
One yard " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", the second standard Unicode " 3,113 3124
3105 311B 0,000 0,000 0,000 0,000 0000 " and the 3rd standard Unicode " 3,113 3,121 3,110 3,127 3122
3115 311C 0,000 0000 ", then by each standard Unicode from a high position to low level successive appraximation, each standard Unicode
First is that " 3 " are identical, then the second of more each standard Unicode, wherein, the second of the first standard Unicode
For " 0 ", the second of the second standard Unicode and the 3rd standard Unicode is " 1 ", then the first standard Unicode is come into
One, continue the size for comparing the second standard Unicode and the 3rd standard Unicode, compare the second standard Unicode and the 3rd mark
The 3rd of quasi- Unicode, wherein, the 3rd of the second standard Unicode and the 3rd standard Unicode is " 1 ", continues to compare
The 4th, the 5th, the 6th, the 7th etc. of second standard Unicode and the 3rd standard Unicode, until comparing
The size of two standard Unicodes and the 3rd standard Unicode, due to the first seven position of the second standard Unicode and the 3rd standard Unicode
All same, the 8th of the second standard Unicode is " 4 ", and the 8th of the 3rd standard Unicode is " 1 ", i.e. the 3rd standard is unified
Code comes second, and the second standard Unicode comes the 3rd.
According to the sequence of the standard Unicode of all phonetic symbol strings, at least one traditional Chinese connection in address list is obtained
It is the sequence of people's name.For example, " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " standard Unicode " 310C 3,127 3,121 3,112 3127
3120 3,107 3,127 3125 " ranked first, " ㄓ ㄤ ㄅ ㄛ " standard Unicode " 3,113 3,124 3105 311B 0000
0000 0,000 0,000 0000 " ranked third, " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " standard Unicode " 3,113 3,121 3,110 3127
3122 3115 311C 0,000 0000 " ranked second, i.e., in the address list, " Liu Xiao are bright " makes number one, and " Zhou Jian Let " come
Second, " Zhang ripples " come the 3rd.
In some feasible embodiments, step S104 can also include:
21) if the Unicode for multiple phonetic symbol strings occur is identical, multiple names of more multiple phonetic symbol strings are spelled
The tone order of sound;
22) multiple phonetic symbol strings are ranked up according to the tone order of multiple name phonetics, obtain multiple names and spell
The sequence of multiple traditional Chinese name of contact persons of sound.
In the embodiment of the present invention, if the Unicode for multiple phonetic symbol strings occur is identical, if for example, there are two Chinese
Traditional font contact artificial " Zhang persons of outstanding talent " and " Zhang is great ", the name phonetic of the two traditional Chineses contact person is " zhanghao ", and this two
The phonetic symbol string of the name phonetic of individual traditional Chinese contact person is " ㄓ ㄤ ㄏ ㄠ ", the Unicode of the two phonetic symbol strings
It is identical, it can now compare the tone order of the name phonetic of the two traditional Chineses contact person, to traditional Chinese contact person " Zhang
For person of outstanding talent ", the tone of " zhanghao " (corresponding traditional Chinese contact is artificial " Zhang persons of outstanding talent ") is the first sound (first traditional Chinese
Phonetic corresponding to word " Zhang " for " zh ā ng ") and the rising tone (phonetic corresponding to second traditional Chinese word " person of outstanding talent " be " h á o ");It is right
For traditional Chinese contact person " Zhang is great ", the tone of " zhanghao " (corresponding traditional Chinese contact is artificial " Zhang is great ") is first
Sound (phonetic corresponding to first traditional Chinese word " Zhang " for " zh ā ng ") and the falling tone (" great " correspondence of second traditional Chinese word
Phonetic for " h à o "), it can be deduced that the two traditional Chinese name of contact persons are ordered as:" Zhang persons of outstanding talent " is come before " Zhang is great ".
In the embodiment of the present invention, at least one traditional Chinese name of contact person in address list is obtained;Inquiry obtains respectively
The name phonetic of each traditional Chinese name of contact person;Inquired about respectively often according to the phonetic symbol string of the name phonetic pre-set
The phonetic symbol string of the name phonetic of individual traditional Chinese contact person;According to the size of the Unicode of each phonetic symbol string to all
Phonetic symbol string be ranked up, obtain the sequence of at least one traditional Chinese name of contact person in address list.Implement the present invention
Embodiment, there is provided a kind of address book ordering mode based on phonetic symbol, traditional Chinese contact person's surname is searched so as to improve
The efficiency of name.
Referring to Fig. 2, Fig. 2 is the flow chart of another address book ordering method disclosed in the embodiment of the present invention.Such as Fig. 2 institutes
Show, the address book ordering method described in the present embodiment, including step:
S201, the phonetic symbol string of name phonetic is set.
In the embodiment of the present invention, setting the phonetic symbol string of name phonetic can be spelled by establishing Hash table for each Chinese character
Sound sets a corresponding phonetic symbol string, specifically, can define Static 2D string arrays, one-dimension storage institute
There is a phonetic transcriptions of Chinese characters character string, all phonetic transcriptions of Chinese characters character strings of two-dimensional storage, specific code text is as follows:
Private static final String [] [] PINYIN_TO_ZHUYING_TABLE=
{"a","ㄚ"},{"ai","ㄞ"},{"an","ㄢ"},
{"ang","ㄤ"},{"ao","ㄠ"},{"au","ㄠ"},
{"ba","ㄅㄚ"},
………
{"zui","ㄗㄨㄟ"},
{"zun","ㄗㄨㄣ"},
{"zuo","ㄗㄨㄛ"}
};
In some feasible embodiments, S201 can include:
The phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters is set, name phonetic is set using the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters
Phonetic symbol string.
In the embodiment of the present invention, name phonetic is made up of multiple phonetic transcriptions of Chinese characters, by the phonetic annotation of Chinese characters for setting phonetic transcriptions of Chinese characters
Symbol string, you can to set the phonetic symbol string of name phonetic using the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters.For example,
The phonetic annotation of Chinese characters symbol string of " zuo " is " ㄗ ㄨ ㄛ ", the phonetic annotation of Chinese characters symbol string of " zun " is " ㄗ ㄨ ㄣ ", i.e. name phonetic are
The phonetic symbol string of " zuozun " is " ㄗ ㄨ ㄛ ㄗ ㄨ ㄣ ".
S202, obtain at least one traditional Chinese name of contact person in address list.
S203, the name phonetic of each traditional Chinese name of contact person of acquisition is inquired about respectively.
S204, inquire about the surname of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set
The phonetic symbol string of name phonetic.
S205, all phonetic symbol strings are ranked up according to the size of the Unicode of each phonetic symbol string, obtained
The sequence of at least one traditional Chinese name of contact person in address list.
Step S202~step S205 in the embodiment of the present invention can refer to step S101 shown in Fig. 1~step S104,
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 in address list
Name of contact person;The name phonetic of each traditional Chinese name of contact person of acquisition is inquired about respectively;According to the name pre-set
The phonetic symbol string of phonetic inquires about the phonetic symbol string of the name phonetic of each traditional Chinese contact person respectively;According to each phonetic notation
The size of the Unicode of symbol string is ranked up to all phonetic symbol strings, obtains at least one traditional Chinese connection in address list
It is the sequence of people's name.Implement the embodiment of the present invention, there is provided a kind of address book ordering mode based on phonetic symbol, so as to
Improve the efficiency for searching traditional Chinese name of contact person.
Referring to Fig. 3, Fig. 3 is a kind of structural representation of terminal disclosed in the embodiment of the present invention.As shown in figure 3, this reality
Apply the terminal described in example, including acquiring unit 301, the first query unit 302, the 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, its
In, each traditional Chinese name of contact person associates corresponding contact person's contact method, and contact person's contact method can include hand
Machine number, base number, email address, wechat account, QQ accounts etc..User can be according to the traditional Chinese contact person found
Name, communicated using contact method corresponding to traditional Chinese name of contact person association with traditional Chinese contact person.
First query unit 302, the name phonetic of each traditional Chinese name of contact person for inquiring about acquisition respectively.
In the embodiment of the present invention, the first query unit 302 inquires about each traditional Chinese name of contact person of acquisition respectively
Name phonetic.Wherein, each traditional Chinese name of contact person has a corresponding name phonetic, for example, " Liu Xiao are bright "
Corresponding name phonetic is " liuxiaoming ", and name phonetic corresponding to " Zhang ripples " is " zhangbo ", " corresponding to Zhou Jian Let "
Name phonetic is " zhoujianshe ".
Second query unit 303, for inquired about respectively according to the phonetic symbol string of name phonetic pre-set it is each in
The phonetic symbol string of the name phonetic of literary traditional font contact person.
In the embodiment of the present invention, the second query unit 303 is distinguished according to the phonetic symbol string of the name phonetic pre-set
Inquire about the phonetic symbol string of the name phonetic of each traditional Chinese contact person.Wherein, phonetic symbol string is by 40 phonetic symbol groups
Into, wherein, 40 phonetic symbols include:“ㄅ”、“ㄆ”、“ㄇ”、“ㄈ”、“ㄉ”、“ㄊ”、“ㄋ”、“ㄌ”、“ㄍ”、“ㄎ”、
“ㄏ”、“ㄐ”、“ㄑ”、“ㄒ”、“ㄓ”、“ㄔ”、“ㄕ”、“ㄖ”、“ㄗ”、“ㄘ”、“ㄙ”、“ㄚ”、“ㄛ”、“ㄜ”、“ㄝ”、“ㄞ”、
" ㄟ ", " ㄠ ", " ㄡ ", " ㄢ ", " ㄣ ", " ㄤ ", " ㄥ ", " ㄦ ", " Shu ", " ㄨ ", " ㄩ ", " ten thousand ", " towering ", " wide ".Wherein, often
Individual name phonetic has a corresponding phonetic symbol string, for example, phonetic symbol string is corresponding to " liuxiaoming "
" ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ ", phonetic symbol string corresponding to " zhangbo " is " ㄓ ㄤ ㄅ ㄛ ", are noted corresponding to " zhoujianshe "
Phonemic notation string is " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ".
Sequencing unit 304, the size for the Unicode according to each phonetic symbol string are entered to all phonetic symbol strings
Row sequence, 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 is according to the size of the Unicode of each phonetic symbol string to all notes
Phonemic notation string is ranked up, and obtains the sequence of at least one traditional Chinese name of contact person in address list.Wherein, each phonetic notation symbol
Number there is a unique Unicode to correspond to therewith, the Unicode of phonetic symbol is the heuristicimal code of four, such as:" ㄅ's "
Unicode is " 3105 ", and the Unicode of " ㄆ " is " 3106 ", and the Unicode of " ㄇ " is " 3107 ", and the Unicode of " ㄈ " is
" 3108 ", the Unicode of " ㄉ " is " 3109 ", and the Unicode of " ㄊ " is " 310A ", and the Unicode of " ㄋ " is " 310B ", " ㄌ's "
Unicode is " 310C ", and the Unicode of " ㄍ " is " 310D ", and the Unicode of " ㄎ " is " 310E ", and the Unicode of " ㄏ " is
" 310F ", the Unicode of " ㄐ " are " 3110 ", and the Unicode of " > " is " 3111 ", and the Unicode of " ㄒ " is " 3112 ", the system of " ㄓ "
One yard is " 3113 ", and the Unicode of " ㄔ " is " 3114 ", and the Unicode of " ㄕ " is " 3115 ", and the Unicode of " ㄖ " is " 3116 ",
The Unicode of " ㄗ " is " 3117 ", and the Unicode of " ㄘ " is " 3118 ", and the Unicode of " ㄙ " is " 3119 ", and the Unicode of " ㄚ " is
" 311A ", the Unicode of " ㄛ " is " 311B ", and the Unicode of " ㄜ " is " 311C ", and the Unicode of " ㄝ " is " 311D ", " ㄞ's "
Unicode is " 311E ", and the Unicode of " ㄟ " is " 311F ", and the Unicode of " ㄠ " is " 3120 ", and the Unicode of " ㄡ " is
" 3121 ", the Unicode of " ㄢ " is " 3122 ", and the Unicode of " ㄣ " is " 3123 ", and the Unicode of " ㄤ " is " 3124 ", " ㄥ's "
Unicode is " 3125 ", and the Unicode of " ㄦ " is " 3126 ", and the Unicode of " Shu " is " 3127 ", and the Unicode of " ㄨ " is " 3128 ",
The Unicode of " ㄩ " is " 3129 ", and the Unicode of " ten thousand " is " 312A ", and the Unicode of " towering " is " 312B ", and the Unicode of " wide " is
“312C”.Wherein, each phonetic symbol string has a corresponding Unicode, if for example, address list includes " Liu Xiao
It is bright ", " Zhang ripples " and " three traditional Chinese name of contact persons of Zhou Jian Let ", the name phonetic of " Liu Xiao are bright " is " liuxiaoming ",
The phonetic symbol string of " liuxiaoming " is " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ ";The name phonetic of " Zhang ripples " is " zhangbo ",
The phonetic symbol string of " zhangbo " is " ㄓ ㄤ ㄅ ㄛ ";" Zhou Jian Let " name phonetic is " zhoujianshe ",
The phonetic symbol string of " zhoujianshe " is " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ".Wherein, " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " Unicode is
" 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", " ㄓ ㄤ ㄅ ㄛ " Unicode is " 3,113 3124
3105 311B ", " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " Unicode is " 3,113 3,121 3,110 3,127 3,122 3115 311C ".To upper
Phonetic symbol string is stated to be ranked up to obtain:" ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " make number one, and 3,113 3,121 3,110 3,127 3122
3115 311C " come second, and " 3,113 3,124 3105 311B " comes the 3rd, that is, obtain in above-mentioned address list in three
Literary traditional font name of contact person is ordered as:" Liu Xiao are bright " makes number one, and " Zhou Jian Let " come second, and " Zhang ripples " comes the 3rd
Position.
Optionally, as shown in figure 4, Fig. 4 is the structural representation of another terminal disclosed in the embodiment of the present invention, wherein,
Sequencing unit 304 can include:
Subelement 3401 is searched, for searching the most long Unicode of digit from the Unicode of all phonetic symbol strings,
Using the digit of the most long Unicode of digit as standard digit.
Conversion subunit 3402, for according to standard digit by digit deficiency Unicode preset characters cover, by institute
Some Unicodes are converted to standard Unicode, so that each phonetic symbol string has a standard Unicode.
First sequence subelement 3403, for by each standard Unicode from a high position to low level successive appraximation, according to standard
Unicode is ranked up from small to large, obtains 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, is led to
The sequence of at least one traditional Chinese name of contact person in news record.
In the embodiment of the present invention, it is most long that lookup subelement 3401 searches digit from the Unicode of all phonetic symbol strings
Unicode, using the digit of the most long Unicode of digit as standard digit.For example, in address list can include " Liu Xiao are bright ",
" Zhang ripples " and " Zhou Jian Let ", all phonetic symbol strings can include:" ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " (corresponding traditional Chinese connection
System is artificial " Liu Xiao are bright "), " ㄓ ㄤ ㄅ ㄛ " (corresponding traditional Chinese contact is artificial " Zhang ripples ") and " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " (are corresponded to
Traditional Chinese contact it is artificial " week builds Let ").The Unicode of all phonetic symbol strings can include:“310C 3127 3121
3112 3,127 3,120 3,107 3,127 3125 " (corresponding phonetic symbol string for " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ "), " 3113
3124 3105 311B " (corresponding phonetic symbol string for " ㄓ ㄤ ㄅ ㄛ ") and " 3,113 3,121 3,110 3,127 3,122 3115
311C " (corresponding phonetic symbol string for " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ ").The Unicode middle position of all phonetic symbol strings can be obtained
Counting most long Unicode is:" 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", the digit is most long
The digit of Unicode is 36, i.e., standard digit is 36.
Conversion subunit 3402 according to standard digit by digit deficiency Unicode preset characters cover, by all systems
One yard is converted to standard Unicode.Wherein, preset characters can be " 0 ", " 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ",
Any one in " 9 ", " A ", " B ", " C ", " D ", " E ", " F ", if for example, standard digit is 36, preset characters are " 0 ",
Then the standard Unicode of " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 " is itself, " 3113
3124 3105 311B " standard Unicode 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 3122
3115 311C 0000 0000”。
First sequence subelement 3403 by each standard Unicode from a high position to low level successive appraximation, according to standard Unicode
It is ranked up from small to large, obtains the sequence of the standard Unicode of all phonetic symbol strings.For example, there are three standards unified
Code, respectively the first standard Unicode " 310C 3,127 3,121 3,112 3,127 3,120 3,107 3,127 3125 ", the second mark
Quasi- Unicode " 3,113 3,124 3105 311B 0,000 0,000 0,000 0,000 0000 " and the 3rd standard Unicode " 3113
3121 3,110 3,127 3,122 3115 311C 0,000 0000 ", then each standard Unicode is compared by turn from a high position to low level
Compared with, first of each standard Unicode is that " 3 " are identical, then the second of more each standard Unicode, wherein, first
The second of standard Unicode is " 0 ", and the second of the second standard Unicode and the 3rd standard Unicode is " 1 ", then by
One standard Unicode makes number one, and continues the size for comparing the second standard Unicode and the 3rd standard Unicode, compares second
The 3rd of standard Unicode and the 3rd standard Unicode, wherein, the 3rd of the second standard Unicode and the 3rd standard Unicode the
Position is " 1 ", continues compare the second standard Unicode and the 3rd standard Unicode the 4th, the 5th, the 6th, the 7th
Etc., the size until comparing the second standard Unicode and the 3rd standard Unicode, due to the second standard Unicode and the 3rd
The first seven all same of standard Unicode, the 8th of the second standard Unicode is " 4 ", and the 8th of the 3rd standard Unicode is
" 1 ", i.e. the 3rd standard Unicode come second, and the second standard Unicode comes the 3rd.
Second sequence subelement 3404 is obtained in address list 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.For example, " ㄌ Shu ㄡ ㄒ Shu ㄠ ㄇ Shu ㄥ " standard Unicode " 310C 3127
3121 3,112 3,127 3,120 3,107 3,127 3125 " ranked first, " ㄓ ㄤ ㄅ ㄛ " standard Unicode " 3,113 3124
3105 311B 0,000 0,000 0,000 0,000 0000 " ranked third, " ㄓ ㄡ ㄐ Shu ㄢ ㄕ ㄜ " standard Unicode " 3113
3121 3,110 3,127 3,122 3115 311C 0,000 0000 " ranked second, i.e., in the address list, " Liu Xiao are bright " comes first
Position, " Zhou Jian Let " come second, and " Zhang ripples " comes the 3rd.
Optionally, as shown in figure 5, Fig. 5 is the structural representation of another terminal disclosed in the embodiment of the present invention, wherein,
Sequencing unit 304 is except including the lookup subelement 3401 shown in Fig. 4, the sequence subelement 3403 of conversion subunit 3402, first
Outside the second sequence subelement 3404, it can also include:
Comparing subunit 3405, for when the Unicode for multiple phonetic symbol strings occur is identical, more multiple phonetic notations to accord with
Number string multiple name phonetics tone order.
Multiple phonetic symbol strings are carried out by the 3rd sequence subelement 3406 for the tone order according to multiple name phonetics
Sequence, obtains the sequence of multiple traditional Chinese name of contact persons of multiple name phonetics.
In the embodiment of the present invention, if the Unicode for multiple phonetic symbol strings occur is identical, comparing subunit 3405 compares
The tone order of multiple name phonetics of multiple phonetic symbol strings;3rd sequence subelement 3406 is according to the sounds of multiple name phonetics
Tune order is ranked up to multiple phonetic symbol strings, obtains the row of multiple traditional Chinese name of contact persons of multiple name phonetics
Sequence.If for example, there is two traditional Chinese contacts artificial " Zhang persons of outstanding talent " and " Zhang is great ", the name spelling of the two traditional Chineses contact person
Sound is " zhanghao ", the phonetic symbol string of the name phonetic of the two traditional Chineses contact person be " ㄓ ㄤ ㄏ ㄠ ", this
The Unicode of two phonetic symbol strings is identical, and the tone that can now compare the name phonetic of the two traditional Chineses contact person is suitable
Sequence, for traditional Chinese contact person " Zhang persons of outstanding talent ", the tone of " zhanghao " (corresponding traditional Chinese contact is artificial " Zhang persons of outstanding talent ")
For the first sound (phonetic corresponding to first traditional Chinese word " Zhang " for " zh ā ng ") and the rising tone (second traditional Chinese word
Phonetic corresponding to " person of outstanding talent " for " h á o ");For traditional Chinese contact person " Zhang is great ", " zhanghao " (corresponding traditional Chinese connection
System is artificial " Zhang is great ") tone be the first sound (phonetic corresponding to first traditional Chinese word " Zhang " be " zh ā ng ") and the falling tone
(phonetic corresponding to second traditional Chinese word " great " for " h à o "), it can be deduced that the row of the two traditional Chinese name of contact persons
Sequence is:" Zhang persons of outstanding talent " is come 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;The basis of second query unit 303
The phonetic symbol string of the name phonetic pre-set inquires about the phonetic symbol of the name phonetic of each traditional Chinese contact person respectively
String;Sequencing unit 304 is ranked up according to the size of the Unicode of each phonetic symbol string to all phonetic symbol strings, is obtained
The sequence of at least one traditional Chinese name of contact person in address list.Implement the embodiment of the present invention, there is provided one kind is accorded with based on phonetic notation
Number address book ordering mode, so as to improve search traditional Chinese name of contact person efficiency.
Referring to Fig. 6, Fig. 6 is the structural representation of another terminal disclosed in the embodiment of the present invention.As shown in fig. 6, this
Terminal described in embodiment, except including the acquiring unit 301 shown in Fig. 3, the first query unit 302, the second cargo tracer
Outside member 303 and sequencing unit 304, in addition to setting unit 305, wherein:
Setting unit 305, for setting the phonetic symbol string of name phonetic.
In the embodiment of the present invention, setting unit 305 sets the phonetic symbol string of name phonetic can be by establishing Hash table
One corresponding phonetic symbol string is set for each phonetic transcriptions of Chinese characters, specifically, Static 2D string arrays can be defined,
All phonetic transcriptions of Chinese characters character strings of one-dimension storage, all phonetic transcriptions of Chinese characters character strings of two-dimensional storage, specific code text is such as
Under:
Private static final String [] [] PINYIN_TO_ZHUYING_TABLE=
{"a","ㄚ"},{"ai","ㄞ"},{"an","ㄢ"},
{"ang","ㄤ"},{"ao","ㄠ"},{"au","ㄠ"},
{"ba","ㄅㄚ"},
………
{"zui","ㄗㄨㄟ"},
{"zun","ㄗㄨㄣ"},
{"zuo","ㄗㄨㄛ"}
};
In some feasible embodiments, setting unit 305 sets the mode of the phonetic symbol string of name phonetic specific
For:
Setting unit 305 sets 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
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, and setting unit 305 is by setting phonetic transcriptions of Chinese characters
Phonetic annotation of Chinese characters symbol string, you can with using phonetic transcriptions of Chinese characters phonetic annotation of Chinese characters symbol string set name phonetic phonetic symbol string.
For example, the phonetic annotation of Chinese characters symbol string of " zuo " is " ㄗ ㄨ ㄛ ", the phonetic annotation of Chinese characters symbol string of " zun " is " ㄗ ㄨ ㄣ ", i.e. surname
Name phonetic is that the phonetic symbol string of " zuozun " is " ㄗ ㄨ ㄛ ㄗ ㄨ ㄣ ".
In the embodiment of the present invention, setting unit 305 sets the phonetic symbol string of name phonetic;Acquiring unit 301 obtains logical
At least one traditional Chinese name of contact person in news record;First query unit 302 inquires about each traditional Chinese connection of acquisition respectively
It is the name phonetic of people's name;Second query unit 303 is inquired about respectively according to the phonetic symbol string of the name phonetic pre-set
The phonetic symbol string of the name phonetic of each traditional Chinese contact person;Sequencing unit 30 is according to the Unicode of each phonetic symbol string
Size all phonetic symbol strings are ranked up, obtain the row of at least one traditional Chinese name of contact person in address list
Sequence.Implement the embodiment of the present invention, there is provided a kind of address book ordering mode based on phonetic symbol, Chinese is searched so as to improve
The efficiency of traditional font name of contact person.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), random access device (Random Access
Memory, RAM), disk or CD etc..
A kind of the address book ordering method and terminal provided above the embodiment of the present invention is described in detail, herein
In apply specific case to the present invention principle and embodiment be set forth, the explanation of above example is only intended to help
Assistant solves the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, the think of according to the present invention
Think, in specific embodiments and applications there will be changes, in summary, this specification content should not be construed as pair
The limitation of the present invention.
Claims (8)
- A kind of 1. address book ordering method, it is characterised in that including:Obtain at least one traditional Chinese name of contact person in address list;The name phonetic of each traditional Chinese name of contact person of the acquisition is inquired about respectively;Inquire about the name phonetic of each traditional Chinese contact person respectively according to the phonetic symbol string of the name phonetic pre-set Phonetic symbol string;The phonetic symbol string of the name phonetic pre-set includes:It is that each phonetic transcriptions of Chinese characters is set by Hash table The phonetic symbol string put;The most long Unicode of digit is searched from the Unicode of all phonetic symbol strings, by the most long Unicode of the digit Digit is as standard digit;According to the standard digit by digit deficiency Unicode preset characters cover, all Unicodes are converted into standard Unicode, so that each phonetic symbol string has a standard Unicode;By each standard Unicode from a high position to low level successive appraximation, it is ranked up, obtains from small to large according to standard Unicode The sequence of the standard Unicode of all phonetic symbol strings;According to the sequence of the standard Unicode of all phonetic symbol strings, obtain it is at least one described in the address list in The sequence of literary traditional font name of contact person.
- 2. according to the method for claim 1, it is characterised in that the size of the Unicode of each phonetic symbol string of basis All phonetic symbol strings are ranked up, obtain the row of at least one traditional Chinese name of contact person described in the address list Sequence, in addition to:If the Unicode for multiple phonetic symbol strings occur is identical, multiple name phonetics of more the multiple phonetic symbol string Tone order, the multiple phonetic symbol string is ranked up according to the tone order of the multiple name phonetic, obtained described The sequence of multiple traditional Chinese name of contact persons of multiple name phonetics.
- 3. according to the method for claim 1, it is characterised in that described to inquire about phonetic notation symbol corresponding to each phonetic transcriptions of Chinese characters respectively Number string before, methods described also includes:The phonetic symbol string of name phonetic is set.
- 4. according to the method for claim 3, it is characterised in that the phonetic symbol string that name phonetic is set, including:The phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters is set, name phonetic is set using the phonetic annotation of Chinese characters symbol string of the phonetic transcriptions of Chinese characters Phonetic symbol string.
- A kind of 5. terminal, it is characterised in that including:Acquiring unit, for obtaining at least one traditional Chinese name of contact person in address list;First query unit, the name phonetic of each traditional Chinese name of contact person for inquiring about the acquisition respectively;Second query unit, for inquiring about each traditional Chinese connection respectively according to the phonetic symbol string of the name phonetic pre-set It is the phonetic symbol string of the name phonetic of people;The phonetic symbol string of the name phonetic pre-set includes:Pass through Hash table The phonetic symbol string set for each phonetic transcriptions of Chinese characters;Subelement is searched, for searching the most long Unicode of digit from the Unicode of all phonetic symbol strings, by institute's rheme The digit of the most long Unicode of number is as standard digit;Conversion subunit, for according to standard digit by digit deficiency Unicode preset characters cover, by all unifications Code is converted to standard Unicode, so that each phonetic symbol string has a standard Unicode;First sequence subelement, for by each standard Unicode from a high position to low level successive appraximation, according to standard Unicode from It is small to being ranked up greatly, obtain the sequence of the standard Unicode of all phonetic symbol strings;Second sequence subelement, for the sequence of the standard Unicode according to all phonetic symbol strings, obtain described logical The sequence of at least one traditional Chinese name of contact person described in news record.
- 6. terminal according to claim 5, it is characterised in that the sequencing unit also includes:Comparing subunit, for when the Unicode for multiple phonetic symbol strings occur is identical, more the multiple phonetic symbol string Multiple name phonetics tone order;3rd sequence subelement, is carried out for the tone order according to the multiple name phonetic to the multiple phonetic symbol string Sequence, obtains the sequence of multiple traditional Chinese name of contact persons of the multiple name phonetic.
- 7. terminal according to claim 5, it is characterised in that the terminal also includes:Setting unit, for setting the phonetic symbol string of name phonetic.
- 8. terminal according to claim 7, it is characterised in that the setting unit sets the phonetic symbol string of name phonetic Mode be specially:The setting unit sets the phonetic annotation of Chinese characters symbol string of phonetic transcriptions of Chinese characters, uses the phonetic annotation of Chinese characters symbol string of the phonetic transcriptions of Chinese characters The phonetic symbol string of name phonetic is set.
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 CN104902091A (en) | 2015-09-09 |
CN104902091B true 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) |
Families Citing this family (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 |
CN110287147B (en) * | 2019-06-27 | 2022-08-19 | 北京奇艺世纪科技有限公司 | 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 |
Also Published As
Publication number | Publication date |
---|---|
CN104902091A (en) | 2015-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103294776B (en) | Smartphone address book fuzzy search method | |
CN102081515A (en) | Method and equipment for providing input data perceptible to context | |
CN101459712A (en) | Telephone book ordering method and mobile phone equipment | |
CN103235789B (en) | A kind of Chinese character is converted to the method for spelling and initial | |
CN104715028A (en) | Reference data finding system and method based on numbers of exercises and knowledge points | |
CN104902091B (en) | A kind of address book ordering method and terminal | |
CN102478968A (en) | Chinese pinyin input method and chinese pinyin input system | |
CN102135812A (en) | method and device for inputting polyphonic Chinese characters | |
CN103220387A (en) | Searching method and searching device for touch-screen phone | |
CN101539433A (en) | Searching method with first letter of pinyin and intonation in navigation system and device thereof | |
CN102999639B (en) | A kind of lookup method based on speech recognition character index and system | |
CN101529499B (en) | Pen-type voice computer and method thereof | |
CN101938551A (en) | Fuzzy inquiry method and device for phonebook of mobile terminal | |
CN106446062A (en) | Retrieval system and method for continuous characters and fuzzy characters | |
TWI273450B (en) | Method and apparatus for searching data | |
TW200947241A (en) | Database indexing algorithm and method and system for database searching using the same | |
CN101894127A (en) | Intelligent arranging and searching method for mobile phone contact | |
CN101539428A (en) | Searching method with first letter of pinyin and intonation in navigation system and device thereof | |
KR101381534B1 (en) | Method and system for inputting unknown chinese characters with pinyin input methods | |
CN103853479B (en) | Double with reference to hand-writing input method write formula Chinese character sound figure identifying device and method | |
KR20100091579A (en) | Index database structure for searching initial sound, system and method for searching string using the same | |
CN1779620B (en) | Building method for Chinese inputting system, Chinese phonetic inputting system and method | |
CN101854419A (en) | Method and device for searching for mobile phone contacts | |
CN102147666B (en) | Method and device for processing text information outputted by input method | |
CN100419751C (en) | Query pattern employing voice input and mobile electronic device employing voice input |
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 |