Summary of the invention
The technical problem to be solved in the present invention is for search during video file in set-top box in prior art, can't input fast corresponding term and cause search procedure defective slowly, a kind of method and set-top box thereof that can find rapidly the set-top box video file name input of the video file title of wanting from the corresponding dictionary of specific input method is provided.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of method of set-top box video file name input is provided, comprises the following steps:
S101, enter the initial input method according to user's selection;
The initial of S102, reception user input video file name;
S103, filter out qualified video file title and show name list from the initial dictionary according to user's input, described initial dictionary is the dictionary of described initial input method, be that each initial sequence according to the video file title generates, in the video file title, the combination of each initial is to should the video file title;
The video file that S104, reception user select according to described name list.
In method of the present invention, also comprise step:
When starting input method, if server detected, new initial dictionary is arranged, the described initial dictionary of down loading updating.
The present invention solves another technical scheme that its technical matters adopts:
A kind of method of set-top box video file name input is provided, comprises the following steps:
S201, enter spelling input method, stroke input method or phonetic input method according to user's selection;
S202, receive the user according to the first character of selected input method input video file;
S203, the word of inputting according to the user filter out all the video file titles headed by the word of being inputted with the user from word library; Described word library is the dictionary of corresponding input method, is to generate according to the Pinyin sorting of each word of video file title, and in the video file title, the combination of the phonetic of each word is to should the video file title;
S204, show in all video file titles that filter out the next one not the pre-word selection list of input word select for the user, and receive user's selection;
S205, judge whether the user chooses desired video file title according to described pre-word selection list, if finish to search; If not, return to step S203.
In method of the present invention, also comprise step:
When starting input method, if server detected, new word library is arranged, the described word library of down loading updating.
In method of the present invention, described word library comprises simplified word library and traditional font word library;
Described spelling input method and stroke input method are simplified input method, its corresponding described simplified word library, and described phonetic input method is the traditional font input method, its corresponding described traditional font word library.
The present invention solves the 3rd technical scheme that its technical matters adopts:
A kind of set-top box is provided, comprises:
Initial dictionary storage unit, be used for storage initial dictionary, the dictionary of letter input method headed by described initial dictionary is that each initial sequence according to the video file title generates, and in the video file title, the combination of each initial is to should the video file title;
Initial input receiving element is used for entering described initial input method according to user's selection, receives the initial of user's input video file name;
Search the unit, be used for filtering out qualified video file title according to user's input from the initial dictionary;
List cell be used for to be showed through described and is searched the qualified video file name list that the unit filters out;
Video file title selective reception unit is used for receiving the video file title that the user selects according to described name list.
In set-top box of the present invention, this set-top box also comprises the down loading updating unit, and being used for has new initial dictionary if server detected when starting input method, the initial dictionary stored of the described initial dictionary of down loading updating storage unit.
The present invention solves the 4th technical scheme that its technical matters adopts:
A kind of set-top box is provided, comprises:
The word library storage unit is used for the storage word library, and described word library is the dictionary of corresponding input method, is that the Pinyin sorting according to each word of video file title generates, and in the video file title, the combination of the phonetic of each word is to should the video file title;
The input receiving element is used for entering spelling input method, stroke input method or phonetic input method according to user's selection, and receives the user according to the first character of selected input method input video file;
Search the unit, be used for filtering out all video file titles headed by the word of being inputted with the user from word library;
The preliminary election word selection unit, be used for to show all through the described next one of searching the video file title that the unit filters out not the pre-word selection list of input word select for the user, and receive user's selection;
Judging unit is used for judging whether the user chooses desired video file title according to described pre-word selection list, if finish to search; If not, changing the described unit of searching over to carries out.
In set-top box of the present invention, also comprise the down loading updating unit, be used for if server detected, new word library being arranged when starting input method, the described word library storage unit of the down loading updating word library of storing.
In set-top box of the present invention, described word library comprises simplified word library and traditional font word library;
Described spelling input method and stroke input method are simplified input method, its corresponding described simplified word library, and described phonetic input method is the traditional font input method, its corresponding described traditional font word library.
The beneficial effect that the present invention produces is: in technical scheme of the present invention, provide the initial dictionary about video file title corresponding with the initial input method, as long as want the initial of the video file title of searching just can find fast the video file title of wanting by initial input method input; In another technical scheme of the present invention, the word library about video file title corresponding with a plurality of input methods is provided, want the first character of the video file title of searching by the input of corresponding input method after, input method filters out all with the video file title of this word beginning by certain algorithm, the pre-word selection list that shows second word of all video file titles is selected for the user, the user has selected second word, and input method filters out all with the video file title of these two word beginnings and provides triliteral pre-word selection list to select for the user by certain algorithm again.By that analogy, the user can select the 3rd, the 4th word, until the user selects the video of oneself wanting.The user as long as word of input just can select basically a word by a word backward, has saved the loaded down with trivial details of a word input of word of user like this, has greatly improved input efficiency.
Further, word library comprises simplified word library and traditional font word library two cover dictionaries, use traditional font or simplified use can select according to personal habits the input method of needs per family, support complicated and simple different input form, realize that simplified and traditional input freely switches, be very easy to user's input and selection.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
As shown in Figure 1, the method for embodiment of the present invention set-top box video file name input mainly finds by the initial of initial input method input video file name the video file of wanting fast, comprises the following steps:
S101, enter the initial input method according to user's selection.After the user opens the input method of set-top box, can select to enter the distinctive initial input method of this set-top box.
After S102, user open the initial input method, corresponding input frame can occur, the user can input the initial of wanting each word of video file title of searching in this input frame, and set-top box receives the initial of user's input video file name;
S103, filter out qualified video file title and show name list from the initial dictionary according to user's input, the initial of the video file title in name list is corresponding with the initial that the user inputs, and perhaps the initial of the word of the beginning part of these video file titles is corresponding with the initial that the user inputs.The dictionary of letter input method headed by the initial dictionary is that each initial sequence according to the video file title generates, and in the video file title, the combination of each initial is to should the video file title.
The dedicated video file-related information that set-top-box server will be collected from the internet arranges filtration according to certain rule, generating specialized video file title initial dictionary, wherein server can be according to N name before volumes of searches, the program request frequency is higher or other regularly filter collected information.In the present embodiment, can first generate the initial corresponding with the video file title, then sort according to each initial of video file title, take initial as key, the video file name is called value, generates the initial dictionary.Set-top box obtains up-to-date video file title initial dictionary and is loaded into the set-top box internal memory standby by default update mechanism from server, as predeterminable time cycle renewal initial dictionary, perhaps when the user starts the initial input method, if server detected, new initial dictionary, down loading updating initial dictionary are arranged.
When the initial of user's input video file name, the initial input method can be carried out fast finding according to certain algorithm according to the initial of user's input in the initial dictionary, filter out the video file title that is complementary and show with the form of name list, selecting for the user.
The video file title that S104, reception user select according to name list.Can find very soon corresponding video file according to this video file title user.Because the video file that initial is identical can be not a lot, usually as long as the user is two to four letters of input, just can be very fast find the video file title of oneself wanting, thereby make user's input efficiency improve dozens or even hundreds of times, greatly improved user's input and experienced.
As shown in Figure 2, the set-top box of the embodiment of the present invention mainly comprises initial dictionary storage unit 10, initial input receiving element 20, searches unit 30, list cell 40 and video file title selective reception unit 50, wherein:
Initial dictionary storage unit 10, be used for storage initial dictionary, the dictionary of letter input method headed by the initial dictionary is that each initial sequence according to the video file title generates, and in the video file title, the combination of each initial is to should the video file title; This initial dictionary can be downloaded from set-top-box server, and regularly upgrades, to guarantee that the user can find up-to-date video file title.The process how server generates the initial dictionary is above having a detailed description, does not repeat them here.
Initial input receiving element 20 is used for entering the initial input method according to user's selection, receives the initial of user's input video file name; The user needs to input successively the initial of each word of video file title of wanting.
Search unit 30, be used for filtering out qualified video file title according to user's input from the initial dictionary; Due to the combination (according to sequential combination from front to back) of the initial of each word of video file title in the initial dictionary corresponding video file title all, so as long as corresponding initial of each word of user's input video file name, search unit 30 and just can filter according to certain algorithm, find qualified one or more video file title.
List cell 40 is used for showing qualified all the video file name list that filter out through searching unit 30; Just can easily find the video file title of wanting according to the name list user of initial input method.Because the video file that initial is identical can be not a lot, usually as long as the user is two to four letters of input, just can be very fast find the video file title of oneself wanting, thereby make user's input efficiency improve dozens or even hundreds of times, greatly improved user's input and experienced.
Video file title selective reception unit 50 is used for receiving the video file that the user selects according to name list, can find very soon corresponding video file title according to this video file title user.
The set-top box of the embodiment of the present invention also comprises down loading updating unit 60, and being used for has new initial dictionary if server detected, the initial dictionary of storing in down loading updating initial dictionary storage unit 10 when starting input method.Certainly but also regular update initial dictionary of this down loading updating unit 60, be not limited to this.
In the method for another embodiment of the present invention set-top box video file name input, the first character of the video file title of mainly wanting by the input of the input methods such as spelling input method, stroke input method or phonetic input method, select one by one not other words of the video file title of input according to the prompting list of input method again, until select the video file title of wanting.As shown in Figure 3, the method mainly comprises the following steps:
S201, enter spelling input method, stroke input method or phonetic input method according to user's selection; Wherein phonetic input method is mainly to carry out the prompting of corresponding phonetic in user's input Pinyin, the user is found quickly want the correct phonetic of input word.
S202, receive the user according to the first character of selected input method input video file;
S203, filter out all the video file titles headed by the word of being inputted with the user from word library; Word library is the dictionary of corresponding input method, is to generate according to the Pinyin sorting of each word of video file title, and in the video file title, the combination of the phonetic of each word (sequential combination) is to should the video file title.
This word library can be downloaded from set-top-box server, at server end, the dedicated video file-related information of collecting is arranged filtration, generate dedicated video file name word library, the video file title in this word library is the Pinyin sorting generation according to each word of video file title.Set-top box obtains up-to-date video file title word library and is loaded into the set-top box internal memory standby by update mechanism from server.
The word library of downloading from server in one embodiment of the present of invention comprises simplified word library and traditional font word library two cover dictionaries; Spelling input method and stroke input method are simplified input method, its corresponding simplified word library, and phonetic input method is the traditional font input method, its corresponding traditional font word library.Use traditional font or simplified use can select the input method of needs according to personal habits per family, support complicated and simple different input form, realize that simplified and traditional input freely switches.
S204, show that all filter out comprise the user the next one in the video file title of input word not the pre-word selection list of input word select for the user, and receive user's selection; Namely after the user inputs first character, input method filters out all with the video file title of this word beginning by certain algorithm, the pre-word selection list that shows second word of all video file titles is selected for the user, the user has selected second word, and input method filters out all with the file name of these two word beginnings and provides triliteral pre-word selection list to select for the user by certain algorithm again.By that analogy, the user can select the 3rd, the 4th word, until the user selects the video of oneself wanting.The user as long as word of input just can select basically a word by a word backward, has saved the loaded down with trivial details of a word input of word of user like this, can improve the efficient of several times so at least.
S205, judge that whether the user chooses desired video file title according to pre-word selection list, if finish to search; If not, return to step S203, continuing to filter out qualified video file title, and show next not pre-word selection lists of input word according to all video file titles that filter out, the user carries out the selection of next word from this pre-word selection list.
Further, when the renewal of word library can occur in the user and starts input method, if set-top box detects server, new word library is arranged, down loading updating word library, the user just can find by corresponding input method the video file title of wanting fast in new word library.
As shown in Figure 4, the set-top box of another embodiment of the present invention mainly comprises word library storage unit 21, input receiving element 22, searches unit 23, preliminary election word selection unit 24 and judging unit 25, wherein:
Word library storage unit 21, be used for the storage word library, word library is the corresponding input method dictionary of (comprising spelling input method, stroke input method and phonetic input method), be to generate according to the Pinyin sorting of each word of video file title, in the video file title, the combination of the phonetic of each word is to should the video file title; This word library can be downloaded from set-top-box server, and the process that server generates this word library is above having a detailed description, does not repeat them here.
The word library of downloading from server in one embodiment of the present of invention comprises simplified word library and traditional font word library two cover dictionaries; Spelling input method and stroke input method are simplified input method, its corresponding simplified word library, and phonetic input method is the traditional font input method, its corresponding traditional font word library.Use traditional font or simplified use can select the input method of needs according to personal habits per family, support complicated and simple different input form, realize that simplified and traditional input freely switches.
Input receiving element 22 is used for entering spelling input method, stroke input method or phonetic input method according to user's selection, and receives the user according to the first character of selected input method input video file;
Search unit 23, be used for filtering out all video file titles headed by the word of being inputted with the user from word library;
Preliminary election word selection unit 24, be used for to show all through the described next one of searching the video file title that unit 23 filters out not the pre-word selection list of input word select for the user, and receive user's selection; Namely after the user inputs first character, search unit 23 and filter out all with the video file title of this word beginning by certain algorithm, preliminary election word selection unit 24 shows that the pre-word selection list of second word of all video file titles supplies the user to select, the user has selected second word, search unit 23 and filter out all with the file name of these two word beginnings by certain algorithm again, preliminary election word selection unit 24 provides triliteral pre-word selection list to select for the user.By that analogy, the user can select the 3rd, the 4th word, until the user selects the video of oneself wanting.The user as long as word of input just can select basically a word by a word backward, has saved the loaded down with trivial details of a word input of word of user like this, can improve the efficient of several times so at least.
Judging unit 25 is used for judging whether the user chooses desired video file title according to pre-word selection list, if finish to search; If not, change the described unit of searching over to and carry out corresponding operating, and continue to carry out the selection of next word for the user from the pre-word selection of showing by preliminary election word selection unit 24.
The set-top box of the embodiment of the present invention also comprises down loading updating unit 26, be used for when 22 startups of set-top box input receiving element enter corresponding input method, if server detected, new word library is arranged, down loading updating word library storage unit 21 word library of storing.Certainly down loading updating unit 26 also can regularly detect the renewal whether new word library is arranged on server, if having renewal immediately, but the time of renewal word library is not limited to this.
The present invention utilizes peculiar input method and the dictionary about video file title corresponding with peculiar input method in set-top box, can help fast the user to search to want the video file title retrieved, has improved user's input and has searched experience.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and all these improve and conversion all should belong to the protection domain of claims of the present invention.