CN102739985A - Method for grouping and sequencing character string in user interface - Google Patents

Method for grouping and sequencing character string in user interface Download PDF

Info

Publication number
CN102739985A
CN102739985A CN2011101164429A CN201110116442A CN102739985A CN 102739985 A CN102739985 A CN 102739985A CN 2011101164429 A CN2011101164429 A CN 2011101164429A CN 201110116442 A CN201110116442 A CN 201110116442A CN 102739985 A CN102739985 A CN 102739985A
Authority
CN
China
Prior art keywords
character string
ordering
user interface
character
packet sequencing
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
CN2011101164429A
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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN2011101164429A priority Critical patent/CN102739985A/en
Publication of CN102739985A publication Critical patent/CN102739985A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a method for grouping and sequencing a character string in a user interface. The method comprises the steps of: sorting a character string set according the type of a character material, wherein the character string set are sorted into four subsets in terms of numbers, English alphabets, character strings beginning from Chinese number words, and other character strings; subsequently sequencing the divided four subsets for the first time respectively; further sequencing each subset for the second time on the basis of the result of the sequencing for the first time; and finally integrating the four subsets after the sequencing for the second time so as to accomplish the grouping and sequencing of the whole character string. With the adoption of the method, the characters can be sequenced in accordance with the selection and the requirements of a user when the Chinese characters begin from a number, and can be display in reasonable interface required by the user; the user experience is enhanced greatly; and the user can check and operate conveniently.

Description

The method of character string packet sequencing in a kind of user interface
Technical field
The present invention relates to the captions manufacture technology field in broadcasting and TV field, relate in particular to character string packet sequencing method in a kind of user interface.
Background technology
People are that user interface (UI) through software is carried out man-machine interaction to Software Operation, in the UI operating process, run into the demand of literal ordering through regular meeting.
Generally adopt the method for shining upon for the ordering of the literal among the UI in the prior art, a character is changed into integer sequence, adopt sort algorithm then, these integer ordered series of numbers are sorted, be mapped in the character again.For Chinese character, generally adopt phonetic and stroke dual mode.Generally in the general requirements of character string ordering, can satisfy the demands according to existing method.But under some specific demands, this common sortord of only simple employing can not satisfy the demands fully.For example: in the UI of captions software filter menu, the ordering of the name character string of each filter just has specific demand.The title of filter possibly comprise English alphabet, numeral, Chinese character.Especially in the ordering of Chinese character, relate to title, like triangle with the Chinese-character digital beginning; Quadrangles etc. possibly more need sort this type title separately on the angle that is user-friendly to, use existing sort method like this; No matter be, all can't satisfy the demands according to phonetic and stroke mode.And no matter other character strings be with phonetic or stroke directly after the ordering, and the possibility of result after its ordering does not all have practical significance because see from user's use angle, in fact who preceding who after all do not have too big relation.For example: " net ", the front and back of " glass " these two filters do not have any difference in proper order user's visual sense, if a kind of mode can be provided, make the result of ordering visually more rationally more meaningful, with having outstanding effect.
The inventor finds that there is following technical problem in prior art in the process of embodiment of the present invention:
(1) can't satisfy when Chinese character with numeral at the first bruss, the user hopes they demands according to certain rule compositor
(2) common ranking results possibly have little significance concerning the user, is that more rational demand can't satisfy on the interface display on the contrary.
Summary of the invention
In order to solve the shortcoming of above-mentioned prior art; The method that main purpose of the present invention provides character string packet sequencing in a kind of user interface with solve can't satisfy in the prior art when Chinese character with numeral at the first bruss, the user hopes them according to irrational technical problem on the demand of certain rule compositor and the interface display.
In order to achieve the above object, the invention provides the method for character string packet sequencing in a kind of user interface, specifically comprise:
According to the textual materials kind string assemble is classified, according to numeral, English alphabet, the character string and other character strings that start with Chinese-character digital are divided into four sub-set;
Four sub-set of said division are carried out the ordering first time respectively;
Each subclass is carried out the secondary ordering on the result of ordering for the first time;
Four sub-set behind said two minor sorts are integrated the packet sequencing of accomplishing whole character string.
The method of character string packet sequencing is through the numeral that comprises to obtaining in a kind of user interface of the present invention; English alphabet, the string assemble of Chinese character etc. be according to numeral, English alphabet; Character string and other character strings with the Chinese-character digital beginning are divided into four sub-set; Then four sub-set are carried out first time ordering respectively, carry out the secondary ordering for the first time on the result of ordering, the mode that four sub-set after will sort are at last integrated can realize that the reasonable ordering of character string satisfies the specific demand that starts character string with digital Chinese character containing; Can make simultaneously whole ranking results visually more reasonable, be user-friendly to.
Description of drawings
Technical scheme for the clearer explanation embodiment of the invention; The accompanying drawing of required use is done simple the introduction in will describing embodiment below; Conspicuous, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the block diagram of the method for character string packet sequencing in a kind of user interface of the embodiment of the invention;
Fig. 2 is the preferential by length of the embodiment of the invention, carries out the four sub-set integration back string assemble sortord that two minor sorts are accomplished again.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, complete description; Obvious described embodiment only is a part of embodiment of the present invention, is not whole embodiment, based on the embodiment among the present invention; Those of ordinary skills are not paying the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides the method for character string packet sequencing in a kind of user interface on the one hand; The practical implementation process is as shown in Figure 1; Possibly comprise numeral behind the string assemble that obtains to sort; English alphabet and Chinese character etc., sorting according to method provided by the invention may further comprise the steps:
Step S1: the string assemble that gets access to is classified according to the textual materials kind, be divided into numeral, English alphabet is with character string and other character strings four sub-set of Chinese-character digital beginning.
Step S2: select a kind of mode of priority to carry out the ordering first time respectively to the textual materials of sorted four sub-set.
Digital subset can be according to length and the ordering of big or small dual mode; English alphabet then can be according to lexicographic order and the ordering of length dual mode; Chinese character string with the numeral beginning can be according to beginning numeral size and the ordering of string length dual mode; Other Chinese character strings then sort according to pinyin order and string length.Sortord can select that another kind of sortord preferentially carries out in preferential or each subclass of string length.
Step S3: each subclass is carried out carry out two minor sorts according to another kind of sortord on the result of ordering for the first time.For example, it is preferential that alphabetic character subset selects to press the character length ordering, after ordering finishes, the result carried out the lexicographic order ordering again.
Step S4: four sub-set behind above-mentioned completion two minor sorts are integrated the completion ordering.Can be according to numeral, letter, with Chinese-character digital beginning Chinese character string, the order of other Chinese character strings is integrated each subclass, accomplishes ordering.
The method of character string packet sequencing is through the numeral that comprises to obtaining in a kind of user interface of the present invention; English alphabet, the string assemble of Chinese character etc. be according to numeral, English alphabet; Character string and other character strings with the Chinese-character digital beginning are divided into four sub-set; Then four sub-set are carried out first time ordering respectively, carry out the secondary ordering for the first time on the result of ordering, the mode that four sub-set after will sort are at last integrated can realize that the reasonable ordering of character string satisfies the specific demand that starts character string with digital Chinese character containing; Can make simultaneously whole ranking results visually more reasonable, be user-friendly to.
Embodiments of the invention two will combine concrete practical application that the method for character string packet sequencing in the user interface of embodiment one is described in more details, and will be specific as follows:
Step S1: take with embodiment one identical method said character set to be divided into four sub-set after getting access to character set, each subclass all has two kinds of effective sortords, with identical among the embodiment one, repeats no more at this.
Step S2: the two kinds of effective sortords of each subclass to four subset after dividing select wherein a kind of mode preferentially to sort.
The embodiment of the invention is that example is illustrated with the Chinese character string subclass of numeral beginning, adopts earlier according to the length priority ordering and sorts according to the mode that digital size is carried out two minor sorts.In the Chinese character string subclass with the numeral beginning " both sides " are arranged, " triangle ", " quadrangle ", " QISEHUA is capable " four character strings then can obtain following result according to the length priority ordering:
" both sides " length 2
" quadrangle " length 3
" triangle " length 3
" QISEHUA is capable " length 4
Step S3: on the result of the ordering first time, adopt another kind of effectively sortord to carry out in the two minor sort embodiment of the invention Chinese character string subclass that starts with numeral being carried out two minor sorts according to digital size again, it is following to obtain the result:
" both sides " invariant position
" triangle " these two length are identical, but vary in size, and according to ordering rule, four greater than three row back
" quadrangle "
" QISEHUA is capable " invariant position
Sortord for the ordering code fo practice of the sortord of other subclass and above-mentioned Chinese character string subclass with the numeral beginning is similar, repeats no more at this.
Step S4: to four sub-set of above-mentioned completion two minor sorts according to numeral, letter, with Chinese-character digital beginning Chinese character string, the order of other Chinese character strings is integrated each subclass, accomplishes ordering.Be illustrated in figure 2 as by length preferentially, carry out four sub-set that two minor sorts accomplish again and integrate back string assemble sortord.
Through the embodiment of the invention with character set according to numeral; Letter; Chinese-character digital beginning character string; Common character string is divided into four sub-set; Select then a kind of mode of priority carry out ordering for the first time and then to the result in another way the mode finally four sub-set behind all two minor sorts integrated of two minor sorts can realize sorting according to user's selection and demand at the first bruss with numeral when Chinese character, with the rational interface display of user's request, increased user experience greatly and make things convenient for the user to check and operate.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through software, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; Be merely a best specific embodiment of the present invention, but characteristic of the present invention is not limited thereto, any people who is familiar with this technology is in field of the present invention; The variation that can expect easily or modification all should be encompassed in the following claim of the present invention.

Claims (10)

1. the method for character string packet sequencing in the user interface is characterized in that, comprising:
According to the textual materials kind string assemble is classified, according to numeral, English alphabet, the character string and other character strings that start with Chinese-character digital are divided into four sub-set;
Four sub-set of said division are carried out the ordering first time respectively;
Carry out the secondary ordering on the result that each subclass is carried out sorting for the first time;
Four sub-set behind said two minor sorts are integrated the packet sequencing of accomplishing whole character string.
2. the method for character string packet sequencing is characterized in that in the user interface as claimed in claim 1, and said string assemble comprises numeral, English alphabet and Chinese character.
3. the method for character string packet sequencing is characterized in that in the user interface as claimed in claim 1, and the digital subset sortord comprises: sort according to the length ordering with according to size.
4. the method for character string packet sequencing is characterized in that in the user interface as claimed in claim 1, and English alphabet subclass sortord comprises: sort according to the lexicographic order ordering with according to length.
5. the method for character string packet sequencing is characterized in that in the user interface as claimed in claim 1, and the Chinese character string subclass sortord that starts with numeral comprises: sort according to the size ordering of beginning numeral with according to string length.
6. the method for character string packet sequencing is characterized in that in the user interface as claimed in claim 1, and the sortord of other Chinese character string subclass comprises: sort according to the pinyin order ordering with according to string length.
7. the method for character string packet sequencing is characterized in that in the user interface as claimed in claim 1, and said first time, sortord was to carry out the ordering first time with a kind of preferred mode of sortord in each subclass.
8. the method for character string packet sequencing is characterized in that in the user interface as claimed in claim 1, said secondary sortord be with each subclass in for the first time the different another kind of mode of preference ordering mode carry out two minor sorts.
9. like the method for character string packet sequencing in claim 7 or the 8 described user interfaces, it is characterized in that the sortord of the said ordering first time or two minor sorts is that the user can be provided with.
10. the method for character string packet sequencing in the user interface as claimed in claim 1; It is characterized in that said four sub-set are integrated is according to said numeral, letter; With Chinese-character digital beginning Chinese character string, the order of other Chinese character strings is integrated.
CN2011101164429A 2011-05-06 2011-05-06 Method for grouping and sequencing character string in user interface Pending CN102739985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101164429A CN102739985A (en) 2011-05-06 2011-05-06 Method for grouping and sequencing character string in user interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101164429A CN102739985A (en) 2011-05-06 2011-05-06 Method for grouping and sequencing character string in user interface

Publications (1)

Publication Number Publication Date
CN102739985A true CN102739985A (en) 2012-10-17

Family

ID=46994685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101164429A Pending CN102739985A (en) 2011-05-06 2011-05-06 Method for grouping and sequencing character string in user interface

Country Status (1)

Country Link
CN (1) CN102739985A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020272A (en) * 2012-12-27 2013-04-03 广东佳和通信技术有限公司 Sequencing method of character strings
CN112508633A (en) * 2020-08-31 2021-03-16 中国南方电网有限责任公司 Method and system for displaying clearing details of electric power spot market unit
CN113066498A (en) * 2021-03-23 2021-07-02 上海掌门科技有限公司 Information processing method, apparatus and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020272A (en) * 2012-12-27 2013-04-03 广东佳和通信技术有限公司 Sequencing method of character strings
CN112508633A (en) * 2020-08-31 2021-03-16 中国南方电网有限责任公司 Method and system for displaying clearing details of electric power spot market unit
CN113066498A (en) * 2021-03-23 2021-07-02 上海掌门科技有限公司 Information processing method, apparatus and medium

Similar Documents

Publication Publication Date Title
CN1258132C (en) Small keyboard layout for inputting letters
CN104536995B (en) The method and system of searching for based on terminal interface touch control operation
US9766778B2 (en) Method and apparatus for rapid access to a contact in a contact list
CN1501670A (en) Alphanumeric data input system and method
CN1151053A (en) Data storage apparatus and data retrieval method in said apparatus
CN102891911A (en) Contact sorting method and apparatus for terminal
CN1023038C (en) Chinese-character code based on order of pronunciations and shapes
CN102739985A (en) Method for grouping and sequencing character string in user interface
CN1140282A (en) Information processing method and apparatus
CN1434365A (en) Chinese Character graphic form input device and method
CN103098003A (en) Method, software and apparatus for displaying data objects
CN1284101C (en) Method and appts. for displaying information
CN102937858A (en) Character inputting method and electronic equipment
CN105227738B (en) Terminal contact display methods and system
CN103026319A (en) Method and device for inputting characters based on direction keys
WO2008038993A1 (en) Database system and its handling method for ideogram
CN101211347A (en) Search engine and method for quickly establishing key phrase search relationship
CN1786892A (en) Inputing Chinese character and switching window by finger screen keyboard on hand touching screen of cell phone
EP3364312A1 (en) Searching keyword suggesting device
KR102263607B1 (en) Apparatus and method for inputting chinese characters
CN104571705B (en) Chinese input system for touch panel device
CN104156491A (en) Mobile terminal and list information retrieval method thereof
CN1297872C (en) Method of inputting character
CN105988977A (en) Character code identification result display method and apparatus
CN103108065A (en) Method and device capable of enabling address book to arrange contact persons in order of city

Legal Events

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

Application publication date: 20121017