CN101459712A - Telephone book ordering method and mobile phone equipment - Google Patents

Telephone book ordering method and mobile phone equipment Download PDF

Info

Publication number
CN101459712A
CN101459712A CNA2009100015078A CN200910001507A CN101459712A CN 101459712 A CN101459712 A CN 101459712A CN A2009100015078 A CNA2009100015078 A CN A2009100015078A CN 200910001507 A CN200910001507 A CN 200910001507A CN 101459712 A CN101459712 A CN 101459712A
Authority
CN
China
Prior art keywords
character
data
chinese
area
name
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.)
Pending
Application number
CNA2009100015078A
Other languages
Chinese (zh)
Inventor
王震
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Shenzhen Co Ltd
Original Assignee
Shenzhen Huawei Communication Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Huawei Communication Technologies Co Ltd filed Critical Shenzhen Huawei Communication Technologies Co Ltd
Priority to CNA2009100015078A priority Critical patent/CN101459712A/en
Publication of CN101459712A publication Critical patent/CN101459712A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a method for ordering a phonebook and a handset device, wherein the method for ordering a phonebook comprises: generating data which comprises two regions by characters when the characters are judged to be Chinese according to uni-codes of the characters in names, wherein the first region comprises at least six characters which are used to represent ASCII of English letters of character Chinese spelling, the second region comprises at least two characters which are used to represent the uni-codes of the characters, the first region and the second region are arranged according to the order from the high level to the lower level, data which is generated by each character in each name is arranged according to the character order in turn, and the data which is generated by each name of in the phonebook is ordered through comparison. The ordering method and the handset device can well order Chinese phonebooks and can avoid the disordered ordering problem due to phrases with same spells and homophones, and users can find out demanded contact person information conveniently and rapidly according to the names.

Description

A kind of telephone book ordering method and cell phone apparatus
Technical field
The present invention relates to the mobile phone technique field, relate in particular to a kind of telephone book ordering method and cell phone apparatus.
Background technology
Phone directory in the mobile devices such as mobile phone is mainly used in the contact details such as telephone number of storing contact.In order to search conveniently, phone directory is ordering in a certain order usually.The phone directory that has is also supported function of search, can dwindle seek scope by importing certain keyword or letter, finds needed contact person's contact details fast.
Phone directory in the existing Chinese mobile phone adopts the spelling of Chinese character to sort usually, is specially: obtain in the phone directory the Chinese spelling of each character in each Chinese Name; Each letter in the Chinese spelling character string of obtaining is generated corresponding ASCII (ASCII, American StandardCode for Information Interchange) data, the pairing ascii data of each name is compared according to the order from a high position to the low level is byte-by-byte, arrange according to size order.Wherein, ASCII is the single-byte character encoding scheme of standard, is used for the text based data.ASCII originates in the later stage fifties, decides on a verdict in 1967.ASCII uses 7 of appointment or 8 bits to make up to represent 128 or 256 kind of possible character.Standard A SCII uses 7 bits to represent all upper case and lower case letters, numeral 0 to 9, punctuation mark, and the special control character that uses in Americanese.Many systems based on x86 all support to use expansion (or " height ") ASCII at present.Expansion ASCII allows the 8th with each character to be used for determining additional 128 additional character characters, foreign word letter and graphic symbol.
The present inventor finds in to the research of prior art and practice, adopts the Chinese character spelling to sort and may cause ordering chaotic.For example, the Chinese spelling character string of phrase " Li Nan li ' nan " and " Linan lin ' an " all is " linan ", and therefore corresponding ascii data is identical, causes the two to distinguish.Homophone " is opened " and the Chinese spelling character string of " chapter " all is " zhang ", and the two corresponding ascii data is also identical, " open XX, chapter XX, open YY " such ordering confusion therefore can occur, causes and searches inconvenience, and efficient is lower.
Summary of the invention
Embodiment of the invention technical problem to be solved provides a kind of telephone book ordering method and cell phone apparatus, can make the user find required associated person information quickly and easily.
For solving the problems of the technologies described above, the present invention is achieved by the following technical solutions:
The embodiment of the invention provides a kind of telephone book ordering method, and this method comprises:
When the Unicode of character is judged described character and is Chinese in according to name, described character is generated the data that comprise two zones, wherein: the first area comprises at least 6 bytes, is used to represent the ASCII ASCII of the English alphabet of described character Chinese spelling; Second area comprises at least 2 bytes, is used to represent the Unicode of described character; First area and second area are according to the sequence arrangement from a high position to the low level;
The data that each character generated in each name are arranged in order according to character sequence;
The data that each name generated in the phone directory are compared ordering.
The embodiment of the invention also provides corresponding cell phone apparatus, and this equipment comprises: judging unit, first data generating unit and first sequencing unit and second sequencing unit, wherein:
Judging unit is used for judging according to the Unicode of name character the type of described character, and when described character is Chinese, triggers first data generating unit;
First data generating unit is used for Chinese character is generated the data comprise two zones, and wherein: the first area comprises at least 6 bytes, is used to represent the ASCII ASCII of the English alphabet of described character Chinese spelling; Second area comprises at least 2 bytes, is used to represent the Unicode of described character; First area and second area are according to the sequence arrangement from a high position to the low level;
First sequencing unit is used for the data that each each character of name is generated are arranged in order according to character sequence;
Second sequencing unit is used for each name data after the ordering of first sequencing unit is compared ordering.
As can be seen from the above technical solutions, when judging described character and be Chinese according to the Unicode of character in the name in the phone directory, described character is generated the data that comprise two zones, and described data have two zones successively from a high position to the low level: at least 6 bytes in first area are used to represent the ASCII of described character Chinese spelling; 2 bytes of second area are used to represent the Unicode of described character; First area and second area are according to the sequence arrangement from a high position to the low level; The data that each character generated in each name are sorted successively according to character sequence, and the data that name generated in the phone directory are compared ordering.Because the Chinese spelling of a character is the longest 6 characters are arranged, therefore the first area is set at least 6 bytes, can distinguish the identical situation of the spelling of phrase in the name; And each character has unique Unicode coding, therefore, under the identical situation in first area, can distinguish homophone in the Chinese character by second area.In summary, described sort method and corresponding cell phone apparatus centering message script for story-telling well sort, avoid the chaotic problem of the phrase of identical phonetic and ordering that homophone causes, make the user to find required associated person information quickly and easily according to name.
Description of drawings
Fig. 1 is telephone book ordering method one flow chart in the embodiment of the invention;
Fig. 2 is telephone book ordering method two flow charts in the embodiment of the invention;
Fig. 3 is cell phone apparatus one structural representation in the embodiment of the invention;
Fig. 4 is cell phone apparatus two structural representations in the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of telephone book ordering method and cell phone apparatus, can make the user find required contact person's information quickly and easily.
For the purpose, technical scheme and the advantage that make the embodiment of the invention more cheer and bright, below with reference to accompanying drawing, the embodiment of the invention is elaborated.
With reference to Fig. 1, be the embodiment of the invention one telephone book ordering method flow chart, concrete steps are as follows:
S101, when the Unicode of character is judged described character and is Chinese in according to name, described character is generated the data that comprise two zones, wherein: the first area comprises at least 6 bytes, is used to represent the ASCII of the English alphabet of described character Chinese spelling; Second area comprises at least 2 bytes, is used to represent the Unicode of described character; First area and second area are according to the sequence arrangement from a high position to the low level;
Unicode claims ten thousand country codes, single sign indicating number again, is a kind of character code that uses on computers.It is in every kind of language each character setting unified and unique binary coding, stride language, the cross-platform requirement of carrying out text-converted, processing to satisfy.Unicode is based on universal character set (UCS, UniversalCharacter Set) standard develops, be used for practical Unicode version at present corresponding to UCS the 2nd edition (UCS-2), use the space encoder of 16 (bit), just each character takies 2 bytes.
The Unicode of Chinese character is two bytes 16bit data altogether, and can be expressed as with 16 systems: 0xXYWU, wherein, wherein 0x represents that XYWU is 16 system numbers.Be positioned at [0x4E00,0x9FA5] when interval when the Unicode of the character that gets access to shows with 16 system numerical tables, described character is a Chinese character.
S102, the data that each character generated in the name are arranged in order according to character sequence;
S103, the data that each name generated in the phone directory are compared ordering.
The data that each name generated in the phone directory are compared according to the order from a high position to the low level is byte-by-byte, sort according to size order.
For example, adopt above-mentioned sort method, order such as table 1 after following name is sorted:
Sequence number Name Sorting data (using 16 system numerical tables to show)
1 Li Nan 6C?69?20?20?20?20?67?4E?6E?61?6E?20?20?20?69?60
2 Face 6C?69?6E?20?20?20?4E?34
3 Linan 6C?69?6E?20?20?20?4E?34?61?6E?20?20?20?20?5B?89
4 Open two 7A?68?61?6E?67?20?5F?20?65?72?20?20?20?20?4E?8C
5 Chapter 7A?68?61?6E?67?20?7A?E0
6 Chapter three 7A?68?61?6E?67?20?7A?E0?73?61?6E?20?20?20?4E?09
Table 1
And if adopt the sequencing schemes of spelling, the sorted lists such as the table 2 of above-mentioned name:
Sequence number Name Sorting data (using the English alphabet of its Chinese spelling to represent)
1 Face lin
2 Li Nan linan
3 Linan linan
4 Chapter zhang
5 Open two zhanger
6 Chapter three Zhangsan
Table 2
Comparison sheet 1 and table 2 adopt the sort method of spelling as can be seen, because the spelling of " Li Nan " and " Linan " is " linan ", therefore, " Li Nan " come " facing " centre with " Linan "; Also can't distinguish homophone " opens " and " chapter ", therefore, " opening two " has come between " chapter " and " chapter three ", the sort method of the above embodiment of the present invention then can address the above problem, as can be seen, because its spelling of each Chinese character is no more than 6 English characters at most, promptly take 6 bytes at most, therefore as the spelling " zhuang " in Chinese character " village ", in the Chinese character transfer process, its first area is minimum establishes 6 bytes, and for the part of deficiency, then can fill, for example, adopt ASCII " 0x20 " polishing of space correspondence in the table 1 with the data of agreement.Be understandable that, also can adopt other data to fill.By in the Chinese character transfer process, expanding the first area, can distinguish the identical phrase of spelling; And, then can distinguish the identical homophone of spelling by second area.According to the size of data after the name conversion in the phone directory, byte-by-byte comparing from a high position to the low level, and sort according to size order.As can be seen, ordering according to the method described above can be avoided the chaotic problem of the phrase of identical spelling and ordering that homophone causes, meets Chinese user's use habit more, makes the user can find required contact person's information quickly and easily.
In concrete enforcement, also Chinese character can be converted to the data of 9 bytes or 9 above bytes, for example, the first area insufficient section is filled with the data 0x20 of ASCII or other fixed datas of setting.Illustrate no longer one by one.
With reference to Fig. 2, be the embodiment of the invention two telephone book ordering method flow charts, be with the difference of embodiment one, present embodiment can not only be distinguished phrase and the homophone that spelling is identical in the Chinese Name, can also distinguish Chinese and English, with Chinese and English name separately, concrete steps are as follows:
S201, obtain the Unicode of each character of name in the phone directory;
S202, judge the scope of the Unicode of the character get access to, and as the Unicode of the character that gets access to during less than 0xFF, execution S203; When the Unicode of the character that gets access between the 0x4E00 to 0x9FA5 the time, carry out S204; When the character that gets access to is the double-byte characters of non-Chinese, carry out S205;
Be used for practical Unicode version at present corresponding to UCS the 2nd edition (UCS-2), use the space encoder of 16 (bit), just each character takies 2 bytes.Wherein, for English character and some control characters, its valid data are less than 0xFF, and are corresponding with the ASCII of character.When Unicode was positioned at [0x4E00,0x9FA5] interval, description character was a Chinese character.When the Unicode of the character that gets access to during, be the double-byte characters of other category of language in other scopes.
S203, described character generated the ascii data of described character;
For example, the Unicode data of character " T " are 0x0054, and then Dui Ying ascii data is 0x54, promptly keep the data of its low byte.
S204, described character is generated the data of 9 bytes, described data comprise three zones, and wherein: the 3rd zone comprises 1 byte, is used for distinguishing Chinese and English; The first area comprises 6 bytes, is used to represent the Unicode of described character Chinese spelling; Second area comprises 2 bytes, is used to represent the Unicode of described character; The 3rd zone, first area and second area are according to the sequence arrangement from a high position to the low level;
The Unicode data of S205, the described character of maintenance are constant;
S206, the data that each character generated in each name are arranged in order according to character sequence;
S207, will be in the phone directory compare according to the order from a high position to the low level is byte-by-byte, sort according to from small to large order according to the data that each name generated after the character sequence ordering.
Be understandable that, also can sort according to order from big to small.
For example, for " Tom ", because it is the English character string, the Unicode of each character is carried out according to S203 all less than 0xFF, only keeps the valid data of a byte, uses 16 systems to represent to be followed successively by: 0x54,0x6F, 0x6D;
For Chinese character " Lee ", because its Unicode is 0x674E, be positioned at [0x4E00,0x9FA5], carry out according to S204,1 byte of establishing the first area is 0x7F, and second area is that " ASCII:0x6C69 of the English alphabet of li correspondence; be 2 bytes, its remaining 4 bytes can be with predefined fixed data polishing for the Chinese spelling of Chinese character " Lee ".Because 0x20 represents the space in ASCII, for simplicity, can be with the part polishing of 0x20 with deficiency, the Unicode of Chinese character " Lee " is: 0x674E, then the data of 9 bytes being generated of Chinese character " Lee " are represented to be specially with 16 systems: 7F 6C 69 20 20 20 20 67 4E.
For the double-byte characters of non-Chinese, then keep its Unicode data constant.
Adopt above-mentioned sort method, order such as table 3 after following name is sorted:
Sequence number Name Sorting data (using 16 system numerical tables to show)
1 Tom 54?6F?6D
2 Li Nan 7F?6C?69?20?20?20?20?67?4E?7F?6E?61?6E?20?20?20?69?60
3 Face 7F?6C?69?6E?20?20?20?4E?34
4 Linan 7F?6C?69?6E?20?20?20?4E?34?7F?61?6E?20?20?20?20?5B?89
5 Open two 7F?7A?68?61?6E?67?20?5F?20?7F?65?72?20?20?20?20?4E?8C
6 Chapter 7F?7A?68?61?6E?67?20?7A?E0
7 Chapter three 7F?7A?68?61?6E?67?20?7A?E0?7F?73?61?6E?20?20?20?4E?09
Table 3
And if adopt the sequencing schemes of spelling, the clooating sequence such as the table 4 of above-mentioned name:
Sequence number Name Sorting data (using English alphabet to represent)
1 Face lin
2 Li Nan linan
3 Linan linan
4 Tom tom
5 Chapter zhang
6 Open two zhanger
7 Chapter three Zhangsan
Table 4
Comparison sheet 3 and table 4 adopt the sort method of spelling can't distinguish phrase " Li Nan " and " Linan " as can be seen, and therefore, " Li Nan " come " facing " centre with " Linan "; And also can't distinguish Chinese and English, therefore " Tom " come the centre of Chinese Name; Also can't distinguish homophone " opens " and " chapter ", therefore, " opening two " has come between " chapter " and " chapter three ", the sort method of the above embodiment of the present invention then can address the above problem, as can be seen since the Unicode of all English characters all less than 0x7F, can represent with byte, therefore, 0x7F is come a high position as the 3rd zone of all Chinese character data, all English character strings can be come the front of Chinese character string; Because its spelling of each Chinese character is no more than 6 English alphabets at most, promptly take 6 bytes at most, spelling " zhuang " as Chinese character " village ", therefore in the Chinese character transfer process, its first area is minimum establishes 6 bytes, and for the part of deficiency, then can fill with the data of agreement, for example, can use Unicode " 0x20 " polishing of space correspondence.Be understandable that, also can adopt other fixed data to fill.By in the Chinese character transfer process, expanding the first area, can distinguish the identical phrase of spelling; And, then can distinguish the identical homophone of spelling by second area.Data after the name conversion in the phone directory are compared according to the order from a high position to the low level is byte-by-byte, and sort according to size order.As can be seen, ordering according to the method described above, can avoid the chaotic problem of the phrase of Chinese and English mixing, identical spelling and ordering that homophone causes, meet Chinese user's use habit more, make the user can find required contact person's information quickly and easily.
Be understandable that, the 3rd zone also can be filled other data and be distinguished Chinese and English, for example, fills 0x20, because the Unicode of English character more than or equal to 0x41, therefore can come the contact person of all Chinese Names the contact person's of english name front like this.Certainly, the Unicode that also can fill other comes all Chinese Names less than the data of 0x41 the front of english name.In concrete enforcement, also Chinese character can be converted to the data of 10 bytes or 10 above bytes, for example, the first area is filled to byte more than 7 or 7, insufficient section 0x20 polishing.Illustrate no longer one by one.
In concrete the application,, also can keep its Unicode data constant for character less than 0xFF.Correspondingly, for distinguishing Chinese and English, data after the conversion are established the 4th zone, described the 4th zone is positioned at before the first area, the 4th zone comprises the fixed data of 2 bytes, for example, if the data after will changing compare according to the order from a high position to the low level is byte-by-byte, and arrange according to order from small to large, then be set to the front that 0x007F can come all english names Chinese Name; And the 4th zone is set to the front that 0x0020 can come all Chinese Names english name; Also can the four-range upper byte be set to non-0 numerical value, all english names are come the front of Chinese Name, for example, establish the 4th zone and be set to 0xXYWU, then, all english names can be come the front of Chinese Name as long as guarantee that X, Y are not 0 entirely.Simultaneously, the first area comprises the data of at least 6 bytes at least, is used to represent the Chinese spelling of Chinese character correspondence, and insufficient section can be used the fixed data polishing of setting, for example 0x20.Second area comprises the data of 2 bytes, is used to represent the Unicode of described character.
Said method equally can be to the name in the phone directory according to the data after changing, compare according to the order from a high position to the low level is byte-by-byte, to sort according to size of data, and then can form phone directory lists, make the cellphone subscriber can find needed associated person information quickly and easily.
Be understandable that, the sort method that the embodiment of the invention is introduced also is applicable to the situation that comprises Chinese and English in the name simultaneously, and the method ordering of for example adopting the present invention and being introduced is for Tom, the Tom chapter, Tom opens, and Lee Tom is because bebinning character is English, therefore, should come the front of all pure Chinese Names, and be followed successively by according to sequence arrangement from small to large: Tom, Lee Tom, Tom open, the Tom chapter.In like manner,, open Tom, Lee Tom, open Lili, chapter Lili, compare according to the order from a high position to the low level is byte-by-byte, and be followed successively by: Tom, Lee Tom, a Lili, Tom, chapter Lili according to rank order from small to large for Tom.
More than telephone book ordering method is had been described in detail by idiographic flow, below the pairing cell phone apparatus of said method is described in detail:
With reference to Fig. 3, be one structural representation of cell phone apparatus in the embodiment of the invention, this cell phone apparatus comprises: judging unit 301, first data generating unit 302, first sequencing unit 303 and second sequencing unit 304, wherein:
Judging unit 301 is used for judging according to the Unicode of name character the type of described character, and when described character is Chinese, triggers first data generating unit;
First data generating unit 302 is used for Chinese character is generated the data comprise two zones, and wherein: the first area comprises at least 6 bytes, is used to represent the ASCII of the English alphabet of described character Chinese spelling; Second area comprises 2 bytes, is used to represent the Unicode of described character; First area and second area are according to the sequence arrangement from a high position to the low level;
First sequencing unit 303 is used for the data that each character of name is generated are arranged in order according to character sequence;
Second sequencing unit 304 is used for each name data after 303 orderings of first sequencing unit is compared ordering.
Second sequencing unit can compare each name data after the ordering of first sequencing unit according to the order from a high position to the low level is byte-by-byte, sort according to size order.
Wherein, when first data generating unit 302 was positioned at [0x4E00,0x9FA5] interval at the Unicode of the character that gets access to, corresponding characters was a Chinese character.
Because the Chinese spelling of a Chinese character takies 6 bytes at most, the data that therefore first area can be set are at least 6 bytes, the data that first data generating unit 302 is generated are specifically as follows 8 bytes, and described first area is 6 bytes, and described second area is 2 bytes.If fill with 6 bytes the first area, can use at the end data 0x20 of byte or other fixed datas of 6 bytes of less than are filled.
As seen, described cell phone apparatus is used for Chinese character is converted to the data of at least 8 bytes, because the Chinese spelling of a Chinese character is the longest 6 characters is arranged, and therefore the first area is set at least 6 bytes, can distinguish the identical situation of the spelling of phrase in the name; And each character has unique Unicode, therefore, under the identical situation in first area, can distinguish homophone in the Chinese character by second area.In summary, described sort method and corresponding cell phone apparatus can sort to phone directory well, the chaotic problem of the ordering of avoiding identical phrase of spelling and homophone to cause makes the user to find required associated person information quickly and easily according to name.
In specific embodiment, can also do further to optimize to above-mentioned cell phone apparatus, describe for another embodiment below.
With reference to Fig. 4, be two structural representations of cell phone apparatus in the embodiment of the invention, for distinguishing Chinese and English, on above-mentioned cell phone apparatus basis, also comprise: second data generating unit and the 3rd data generating unit, described judging unit 301 also is used for triggering second data generating unit 401 when the valid data of the Unicode of name character are byte; Also be used for when the character of name is the double-byte characters of non-Chinese, triggering the 3rd data generating unit 402;
Second data generating unit 401, being used for valid data is the ascii data that the character of byte generates described character;
The 3rd data generating unit 402 is used to keep the Unicode of double-byte characters of non-Chinese constant;
The data that first data generating unit 302 is generated also comprise the 3rd zone, and described the 3rd zone comprises the fixed data of at least one byte, are positioned at before the first area, are used for distinguishing Chinese and English;
Be understandable that, in concrete enforcement, described first data generating unit 302, second data generating unit 401 and the 3rd data generating unit 402 can integrate, with reference to Fig. 4, data generating unit 400, be used for generating name data according to the type of judging unit 301 according to the character of the Unicode judgement of name character.
For saving memory space, described first data generating unit 302 is specifically as follows 9 bytes with the data that Chinese character generated, and wherein, described the 3rd zone is the data of 1 byte, is used for distinguishing Chinese and English; Described first area is 6 bytes, is used to represent the ASCII of the English alphabet of described character correspondence.
1 byte in described the 3rd zone represents to be specially 0x7F with 16 systems, according to sequence arrangement from small to large, all english names can be come the front of Chinese Name.The 3rd zone also can be set to 0x20, because the ASCII of all English alphabets is greater than 0x40, therefore, according to sequence arrangement from small to large, all Chinese Names can be come the front of english name, make the cellphone subscriber can find needed associated person information quickly and easily.
In concrete enforcement, when described first data generating unit 302 also is used in 6 bytes of data deficiencies of first area at the end with fixed data polishings such as 0x20.
In sequencer procedure,, can carry out different settings to described cell phone apparatus for distinguishing Chinese and English.For example, the Unicode of the described several first non-Chinese character that also can be used for keeping accessed according to generation unit 302 is constant, the data that described Chinese character generated are at least 10 bytes, described data also comprise the 4th zone, it is the fixed data of 2 bytes, be positioned at before the first area, be used for distinguishing Chinese and English.
For example, the 4th zone specifically can be set to 0x007F, 0x0020 or 0xXYWU, and wherein, X, Y are not 0 entirely.
As seen, described cell phone apparatus can with other double-byte characters make a distinction by the data that Chinese character are converted to 9 bytes at least, and the 3rd (or four) zone of the individual byte data in 9 (or 10) that is generated can make a distinction Chinese character and English character; And because the Chinese spelling of a character is the longest 6 characters are arranged, therefore the first area is set at least 6 bytes, can distinguish the identical situation of the spelling of phrase in the name; And each character has unique Unicode, therefore, under the situation identical with the first area of the 3rd (or four) zone, can distinguish homophone in the Chinese character by second area.In summary, described sort method and corresponding cell phone apparatus can sort to phone directory well, the chaotic problem of ordering that avoid that Chinese and English confuses, the phrase of identical phonetic and homophone causes makes the user to find required associated person information quickly and easily according to name.
More than telephone book ordering method and cell phone apparatus that the embodiment of the invention provided are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1, a kind of telephone book ordering method is characterized in that, comprising:
When the Unicode of character is judged described character and is Chinese in according to name, described character is generated the data that comprise two zones, wherein: the first area comprises at least 6 bytes, is used to represent the ASCII ASCII of the English alphabet of described character Chinese spelling; Second area comprises at least 2 bytes, is used to represent the Unicode of described character; First area and second area are according to the sequence arrangement from a high position to the low level;
The data that each character generated in each name are arranged in order according to character sequence;
The data that each name generated in the phone directory are compared ordering.
2, telephone book ordering method as claimed in claim 1 is characterized in that, further comprises:
When the valid data of the Unicode of character in the name are byte, described character is generated the ascii data of described character;
When the character that gets access to is the double-byte characters of non-Chinese, keep the Unicode of described character constant;
Described Chinese character generates the data that generated and also comprises the 3rd zone, and the 3rd zone comprises the fixed data of at least one byte, is positioned at before the first area, is used for distinguishing Chinese and English.
3, telephone book ordering method as claimed in claim 2 is characterized in that, described the 3rd zone is the fixed data of 1 byte, represents to be specially 0 x 7F or 0 x 20 with 16 systems.
4, as claim 2 or 3 described telephone book ordering methods, it is characterized in that, when described first area is the data of 6 bytes, 6 bytes of described first area less than use the fixed data polishing at the end.
5, a kind of cell phone apparatus is characterized in that, comprising: judging unit, first data generating unit and first sequencing unit and second sequencing unit, wherein:
Judging unit is used for judging according to the Unicode of name character the type of described character, and when described character is Chinese, triggers first data generating unit;
First data generating unit is used for Chinese character is generated the data comprise two zones, and wherein: the first area comprises at least 6 bytes, is used to represent the ASCII ASCII of the English alphabet of described character Chinese spelling; Second area comprises at least 2 bytes, is used to represent the Unicode of described character; First area and second area are according to the sequence arrangement from a high position to the low level;
First sequencing unit is used for the data that each each character of name is generated are arranged in order according to character sequence;
Second sequencing unit is used for each name data after the ordering of first sequencing unit is compared ordering.
6, cell phone apparatus as claimed in claim 5, it is characterized in that, also comprise: second data generating unit and the 3rd data generating unit, described judging unit also are used for triggering second data generating unit when the valid data of the Unicode of name character are byte; Also be used for when the character of name is the double-byte characters of non-Chinese, triggering the 3rd data generating unit;
Second data generating unit, being used for valid data is the ascii data that the character of byte generates described character;
The 3rd data generating unit is used to keep the Unicode of double-byte characters of non-Chinese constant;
The data that described first data generating unit is generated also comprise the 3rd zone, and described the 3rd zone comprises the fixed data of at least one byte, are positioned at before the first area, are used for distinguishing Chinese and English.
7, cell phone apparatus as claimed in claim 6 is characterized in that, described the 3rd zone is the fixed data of 1 byte, represents to be specially 0x7F or 0x20 with 16 systems.
As claim 6 or 7 described cell phone apparatus, it is characterized in that 8, when described first area was the data of 6 bytes, described data generating unit also was used for when 6 bytes of data deficiencies of first area using at the end fixed data polishing.
CNA2009100015078A 2009-01-05 2009-01-05 Telephone book ordering method and mobile phone equipment Pending CN101459712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009100015078A CN101459712A (en) 2009-01-05 2009-01-05 Telephone book ordering method and mobile phone equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009100015078A CN101459712A (en) 2009-01-05 2009-01-05 Telephone book ordering method and mobile phone equipment

Publications (1)

Publication Number Publication Date
CN101459712A true CN101459712A (en) 2009-06-17

Family

ID=40770330

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009100015078A Pending CN101459712A (en) 2009-01-05 2009-01-05 Telephone book ordering method and mobile phone equipment

Country Status (1)

Country Link
CN (1) CN101459712A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894127A (en) * 2010-05-26 2010-11-24 洪朝彬 Intelligent arranging and searching method for mobile phone contact
CN102281345A (en) * 2011-06-10 2011-12-14 深圳桑菲消费通信有限公司 Method for ranking contacts in phonebook of mobile phone
CN102622359A (en) * 2011-01-27 2012-08-01 联想移动通信科技有限公司 Method and device for searching character strings in database
CN103309860A (en) * 2012-03-06 2013-09-18 毛新华 Method for searching multiple targets and related devices
CN103514160A (en) * 2012-06-15 2014-01-15 华为终端有限公司 Sorting method and mobile equipment
CN105227773A (en) * 2015-10-14 2016-01-06 深圳市金立通信设备有限公司 The display packing of a kind of contact person and terminal
CN105721391A (en) * 2014-12-02 2016-06-29 国家电网公司 Telecontrol information transmission method and telecontrol information transmission device
WO2017128101A1 (en) * 2016-01-27 2017-08-03 阿里巴巴集团控股有限公司 Method for displaying and processing name list, client, and server
CN110086922A (en) * 2019-04-19 2019-08-02 上海掌门科技有限公司 A kind of address book ordering method, equipment and storage medium
CN110287147A (en) * 2019-06-27 2019-09-27 北京奇艺世纪科技有限公司 A kind of character string sorting method and device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894127A (en) * 2010-05-26 2010-11-24 洪朝彬 Intelligent arranging and searching method for mobile phone contact
CN102622359A (en) * 2011-01-27 2012-08-01 联想移动通信科技有限公司 Method and device for searching character strings in database
CN102622359B (en) * 2011-01-27 2014-01-08 联想移动通信科技有限公司 Method and device for searching character strings in database
CN102281345A (en) * 2011-06-10 2011-12-14 深圳桑菲消费通信有限公司 Method for ranking contacts in phonebook of mobile phone
CN103309860A (en) * 2012-03-06 2013-09-18 毛新华 Method for searching multiple targets and related devices
CN103514160B (en) * 2012-06-15 2017-04-12 华为终端有限公司 Sorting method and mobile equipment
CN103514160A (en) * 2012-06-15 2014-01-15 华为终端有限公司 Sorting method and mobile equipment
CN105721391A (en) * 2014-12-02 2016-06-29 国家电网公司 Telecontrol information transmission method and telecontrol information transmission device
CN105227773A (en) * 2015-10-14 2016-01-06 深圳市金立通信设备有限公司 The display packing of a kind of contact person and terminal
WO2017128101A1 (en) * 2016-01-27 2017-08-03 阿里巴巴集团控股有限公司 Method for displaying and processing name list, client, and server
CN108702407A (en) * 2016-01-27 2018-10-23 阿里巴巴集团控股有限公司 Name list displaying, processing method and client, server
CN110086922A (en) * 2019-04-19 2019-08-02 上海掌门科技有限公司 A kind of address book ordering method, equipment and storage medium
CN110086922B (en) * 2019-04-19 2022-11-11 上海掌门科技有限公司 Address book ordering method, equipment and storage medium
CN110287147A (en) * 2019-06-27 2019-09-27 北京奇艺世纪科技有限公司 A kind of character string sorting method and device
CN110287147B (en) * 2019-06-27 2022-08-19 北京奇艺世纪科技有限公司 Character string sorting method and device

Similar Documents

Publication Publication Date Title
CN101459712A (en) Telephone book ordering method and mobile phone equipment
FI112978B (en) Entering Symbols
CN100361052C (en) Method and device for entering words in a user interface of an electronic device
CN101256462B (en) Hand-written input method and apparatus based on complete mixing association storeroom
US7512533B2 (en) Method and system of creating and using chinese language data and user-corrected data
US8159371B2 (en) Systems and methods for semi-automatic dialing from a mixed entry sequence having numeric and non-numeric data
JP6122800B2 (en) Electronic device, character string display method, and character string display program
CN101315639A (en) Search system and method
KR20100046043A (en) Disambiguation of keypad text entry
CN101369209B (en) Hand-written input device and method for complete mixing input
US20100149190A1 (en) Method, apparatus and computer program product for providing an input order independent character input mechanism
CN101546226A (en) English input method and system
CN103167087A (en) Method and system of searching cell phone contact persons
JP2007042146A (en) Method and system of creating and using chinese data and user-corrected data
CN100550929C (en) The sort method of the phone directory of handheld device and lookup method
WO2007083936A1 (en) Information processing method and apparatus
KR100765224B1 (en) Apparatus and method for input of ideographic korean syllables from reduced keyboard
KR101050400B1 (en) Index database device for initial search, string search system and method using same
KR101365855B1 (en) Dynamically generated keypad for predictively displaying characters
CN105807949A (en) Tibetan input method and system
KR20050048978A (en) Apparatus and method for changing character arrangement of software keyboard in device with touch screen
CN1404289A (en) Name and number searching method for cellphone
CN1900884A (en) Data searching method and relative device
KR20070071160A (en) Method for managing braille information of mobile communication terminal
CN101241398A (en) Simple text input method and input device using the method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090617