Summary of the invention
In order to solve the problem of correlation technique, the embodiment of the invention provides a kind of SMS processing, device and terminal equipment.Described technical scheme is as follows:
The embodiment of the invention provides a kind of SMS processing, and described method comprises:
According to default keyword, detect short message;
When comprising described default keyword in the described short message, the described default keyword in the described short message is highlighted;
Receive the keyword selection instruction of user's input;
According to described keyword selection instruction, obtain the classification of selected default keyword;
Classification according to described default keyword is searched for described default keyword, and display of search results.
Classification according to described default keyword is searched for described default keyword, and display of search results comprises:
When described default keyword correspondence at least two kind, prompting user is selected at least in described two kinds;
Receive the classification selection instruction of user's input;
Search for according to the page corresponding to classification that described classification selection instruction is opened described user selection, and display of search results.
Search for according to the page corresponding to classification that described classification selection instruction is opened described user selection, and display of search results comprises:
When the classification of described user selection is first category, open the page corresponding to first category and search for, and display of search results;
And/or,
When the classification of described user selection is the second classification, open the page corresponding to the second classification and search for, and display of search results.
According to default keyword, detect before the short message, described method also comprises:
Receive the user manually keyword of input and the classification of keyword, preserve the corresponding relation between the classification of described keyword and keyword;
Or, receive the manually keyword of input of user, set up and preserve the corresponding relation between the classification that described keyword and user select from the classification of having preserved;
Or, receive the classification of user's selected keyword and user's input from short message, preserve the corresponding relation between the classification that selected keyword and user input;
Or, obtain user's selected keyword from short message, set up and preserve the corresponding relation between the classification of selecting in the classification that selected keyword and user preserved from database.
Described highlighting as highlighted demonstration, overstriking demonstration, italic show, underscore shows or variable color shows.
The embodiment of the invention also provides a kind of short message processing apparatus, and described device comprises:
Detection module is used for detecting short message according to default keyword;
Display module is used for when described short message comprises described default keyword the described default keyword in the described short message being highlighted;
Receiver module is used for receiving the keyword selection instruction that the user inputs;
Acquisition module is used for according to described keyword selection instruction, obtains the classification of selected default keyword;
Search module is used for according to the classification of described default keyword described default keyword being searched for, and display of search results.
Described search module also comprises:
Tip element is used at least when described default keyword correspondence two kind, and prompting user is selected at least in described two kinds;
Classification command reception unit is used for receiving the classification selection instruction that the user inputs;
Page search unit is used for searching for according to the page corresponding to classification that described classification selection instruction is opened described user selection, and display of search results.
Described page search unit also is used for opening the page corresponding to first category and searching for when the classification of described user selection is first category, and display of search results;
And/or,
Described page search unit also is used for opening the page corresponding to the second classification and searching for when the classification of described user selection is the second classification, and display of search results.
Described device also comprises:
Default keyword arranges module, be used for to receive the user manually keyword of input and the classification of keyword, preserves the corresponding relation between the classification of described keyword and keyword;
Described default keyword arranges module and also be used for to receive the manually keyword of input of user, sets up and preserve the corresponding relation between the classification that described keyword and user select from the classification of having preserved;
Described default keyword arranges module and also be used for to receive the user from the classification of the selected keyword of short message and user's input, preserves the corresponding relation between the classification that selected keyword and user input;
Described default keyword arranges module and also is used for obtaining the user from the selected keyword of short message, sets up and preserve the corresponding relation between the classification of selecting in the classification that selected keyword and user preserved from database.
Described highlighting as highlighted demonstration, overstriking demonstration, italic show, underscore shows or variable color shows.
The embodiment of the invention also provides a kind of terminal equipment, and described terminal equipment comprises: transceiver, memory and processor,
Described transceiver is used for the transmitting-receiving short message;
Described memory be used for storage short message, default keyword with and corresponding classification;
Described processor is used for detecting short message according to default keyword; Described processor also is used for when described short message comprises described default keyword the described default keyword in the described short message being highlighted; Described processor also is used for according to described default keyword, obtains the classification of described default keyword; Described processor also is used for according to the classification of described default keyword described default keyword being searched for, and display of search results.
A kind of SMS processing, device and terminal equipment that the embodiment of the invention provides by according to default keyword, detect short message; When comprising described default keyword in the described short message, the described default keyword in the described short message is highlighted; Described processor also is used for receiving the keyword selection instruction of user's input; According to described keyword selection instruction, obtain the classification of selected default keyword; Classification according to described default keyword is searched for described default keyword, and display of search results.Adopt technical scheme provided by the invention, by when showing short message, to preset keyword highlights, classification according to described default keyword and default keyword is searched for, when display effect is provided intuitively, avoided copying the complicated processes such as stickup in the search of correlation technique, simple to operate, improved user's experience.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Fig. 1 is the flow chart of a kind of SMS processing of providing of the embodiment of the invention.The executive agent of this embodiment is the terminal equipment with transmitting-receiving message function, this terminal equipment can be fixed terminal or portable terminal, this portable terminal can be smart mobile phone, panel computer, MP3(Moving Picture Experts GroupAudio Layer III, dynamic image expert compression standard audio frequency aspect 3), PDA(Personal DigitalAssistant, personal digital assistant) etc.Referring to Fig. 1, this embodiment comprises:
101: according to default keyword, detect short message;
Wherein, default keyword refers to the keyword that comprises in the Local Data storehouse.
102: when comprising described default keyword in the described short message, the described default keyword in the described short message is highlighted;
Preferably, when showing short message, if include the default keyword of preserving in the Local Data storehouse in the described short message, the default keyword in the described short message is highlighted.
Further, when not comprising the default keyword of preserving in the Local Data storehouse in the described short message, described short message normally shows.
103, receive the keyword selection instruction that the user inputs;
Preferably, after portable terminal highlighted the default keyword in the short message, the user can select this default keyword, and portable terminal receives the keyword selection instruction of user's input at this moment.
104: according to described keyword selection instruction, obtain the classification of selected default keyword;
Preferably, preserve the corresponding relation between the classification of described default keyword and described default keyword in the Local Data storehouse, according to described keyword selection instruction, from the Local Data storehouse, obtain the classification of described default keyword.
105: the classification according to described default keyword is searched for described default keyword, and display of search results.
Preferably, according to the classification of described default keyword, open corresponding searched page, described default keyword is searched for, and display of search results.
The method that the embodiment of the invention provides by according to default keyword, detects short message; When comprising described default keyword in the described short message, the described default keyword in the described short message is highlighted; According to described default keyword, obtain the classification of described default keyword; Classification according to described default keyword is searched for described default keyword, and display of search results.Adopt technical scheme provided by the invention, by when showing short message, to preset keyword highlights, classification according to described default keyword and default keyword is searched for, when display effect is provided intuitively, avoided copying the complicated processes such as stickup in the search of correlation technique, simple to operate, improved user's experience.
Fig. 2 a is a kind of SMS processing flow chart that the embodiment of the invention provides.Referring to Fig. 2 a, this embodiment comprises:
201: obtain short message;
Preferably, this obtains and can refer to be sent by Correspondent Node, and is received by local terminal, can also refer to obtain from the short message of local terminal storage, and the embodiment of the invention is not construed as limiting this.
202: according to default keyword, detect short message;
Preferably, from the Local Data storehouse, obtain default keyword, and according to this default keyword, detect in the current short message that obtains whether include default keyword.
Default keyword in the Local Data storehouse can obtain by following steps: receive the user manually keyword of input and the classification of keyword, preserve the corresponding relation between the classification of described keyword and keyword;
Or, receive the manually keyword of input of user, set up and preserve the corresponding relation between the classification that described keyword and user select from the classification of having preserved.
As, the user can manually input classification " commodity " that " birthday " reaches " birthday " correspondence, or the user can manually input " birthday ", and selects " commodity " from the various classifications of database, preserves the corresponding relation between " birthday " and " commodity ".
203: when comprising described default keyword in the described short message, the described default keyword in the described short message is highlighted;
When comprising described default keyword in the described short message, font to the described default keyword in the described short message is adjusted, according to the font after adjusting the described default keyword in the described short message is highlighted, the default setting of the content beyond the default keyword described in the short message according to terminal equipment shown;
Wherein, highlight and include but not limited to that highlighted demonstration, overstriking demonstration, italic show, underscore shows or variable color shows, as long as this highlights different from the acquiescence display mode of short message, and the embodiment of the invention is not specifically limited.
For the above-mentioned variety of way that highlights, the parameter that need adjust when showing is different, its highlight mode can by the technical staff arrange when the exploitation or by the user according to browsing custom setting, preferably, highlight mode for each, this step 203 can comprise following arbitrary step:
(1) for highlighted demonstration, when comprising described default keyword in the described short message, be the acquiescence brightness that is higher than described short message with the brightness adjustment of the described default keyword in the described short message,, with the highlighted demonstration of described default keyword in the described short message default setting of the content beyond the default keyword described in the short message according to terminal equipment shown according to the brightness after adjusting;
(2) show for overstriking, when comprising described default keyword in the described short message, the font of the described default keyword in the described short message is adjusted into overstriking, according to the font after adjusting the described default keyword overstriking in the described short message is shown, the default setting of the content beyond the default keyword described in the short message according to terminal equipment shown;
(3) show for italic, when comprising described default keyword in the described short message, the font of the described default keyword in the described short message is adjusted into italic, according to the font after adjusting the described default keyword italic in the described short message is shown, the default setting of the content beyond the default keyword described in the short message according to terminal equipment shown;
(4) show for underscore, when comprising described default keyword in the described short message, the font of the described default keyword in the described short message is adjusted into the underscore font, according to the font after adjusting the described default keyword underscore in the described short message is shown, the default setting of the content beyond the default keyword described in the short message according to terminal equipment shown;
(5) show for variable color, when comprising described default keyword in the described short message, the font look of the described default keyword in the described short message number is adjusted into the font look number that is different from described short message, number the described default keyword variable color in the described short message is shown according to the font look after adjusting, will the content beyond the default keyword described in the short message show according to the default setting of terminal equipment.
Further, when not including the default keyword of preserving in the Local Data storehouse in the described short message, the default setting of described short message according to terminal equipment shown.
As, described short message is " the millet mobile phone is given birth to for fever ", when described default keyword is " millet mobile phone ", preserve default keyword " millet mobile phone " in the Local Data storehouse, therefore, when showing described short message " the millet mobile phone is given birth to for fever ", with the highlighted demonstration of the default keyword in the described short message " millet mobile phone ".
204, receive the keyword selection instruction that the user inputs;
Preferably, after portable terminal highlighted the default keyword in the short message, the user can select this default keyword, and portable terminal receives the keyword selection instruction of user's input at this moment.
205: according to described keyword selection instruction, obtain the classification of selected default keyword;
Preferably, preserve the corresponding relation between the classification of described default keyword and described default keyword in the Local Data storehouse, according to described keyword selection instruction, from the Local Data storehouse, obtain the classification of described default keyword.
206, when the corresponding kind of this default keyword, the described classification of prompting user, execution in step 208;
In database, to same default keyword can be corresponding one or more classification, in step 206 and 207, respectively the processing when default keyword correspondence one kind and default keyword correspondence at least two kind is described.
As, the classification corresponding with default keyword " millet mobile phone " is " site search ", preserve the corresponding relation between default keyword " millet mobile phone " and " site search " in the Local Data storehouse, according to " millet mobile phone ", from the Local Data storehouse, obtain the classification " site search " corresponding with " millet mobile phone ".
In this step 206, this prompting can be for ejecting classification corresponding to this default keyword on this default keyword next door, when the user clicks this classification, trigger search, or, when the click that receives default keyword, eject classification corresponding to this default keyword, when the user clicks this classification, trigger search.
207, when described default keyword correspondence at least two kind, prompting user is selected at least in described two kinds, execution in step 208;
Preferably, this prompting can be for ejecting at least two kinds corresponding to this default keyword on this default keyword next door, when the user clicks in this two kind any at least, trigger search, or, when the click that receives default keyword, eject at least two kinds corresponding to this default keyword, when the user clicks in this two kind any at least, trigger search.
Need to prove that the user can select a kind, can also select plurality of classes.
As, in the Local Data storehouse, the corresponding plurality of classes of default keyword " Startbuck " in the described short message " we meet in Startbuck ", comprise " place name ", " dining room ", " commodity ", when the user clicks " Startbuck ", eject its corresponding classification " place name ", " dining room ", " commodity ", prompting user is selected in described three kinds, the user can select a kind wherein, also can select plurality of classes, shown in Fig. 2 b, in addition, need to prove that the display mode of classification can be bubble form or tabular form etc., the embodiment of the invention is not specifically limited.
208, receive the classification selection instruction of user's input;
Preferably, terminal receives the user to the classification selection instruction of described default keyword.
209, the page corresponding to classification of opening described user selection according to described classification selection instruction searched for, and display of search results.
Preferably, according to the classification of described default keyword, open corresponding searched page, described default keyword is searched for, and display of search results.
Wherein, when the classification of described user selection is first category, opens the page corresponding to first category and search for, and display of search results; When the classification of described user selection is the second classification, open the page corresponding to the second classification and search for, and display of search results; When described user selects first category, the second classification simultaneously, open simultaneously the page corresponding to first category, the page corresponding to the second classification searched for, and display of search results;
For different classifications the different pages can be set, the corresponding relation of this classification and its page can be arranged when developing by the technical staff, can also be by the user according to the use habit setting.
Only selected for the user under the scene of a kind, opening the page corresponding to classification of described user selection searches for, and display of search results, as, when described classification is " place name ", obtain website corresponding to this " place name ", such as the map class website, the class website of then can spreading out the map is searched for, and display of search results;
When described classification is " dining room ", obtain website corresponding to this " dining room ", such as cuisines comment website, then can open cuisines comment website and search for, and display of search results;
When described classification is " commodity ", obtain website corresponding to these " commodity ", such as shopping website, then can open shopping website search, and display of search results.
As, when described short message is " the millet mobile phone is given birth to for fever ", described default keyword is " millet mobile phone ", the corresponding classification of described keyword " millet mobile phone " is " site search ", opens the corresponding page according to described " site search " and enters millet mobile phone official website " millet mobile phone " searched for.
And for user selection under the scene of at least two kinds, opening respectively the page corresponding to classification of described user selection searches for, and display of search results, as, the classification that default keyword " Startbuck " in the described short message " we meet in Startbuck " is corresponding is " place name ", " dining room ", " commodity ", when the user selection classification is " place name ", " dining room ", obtain respectively website corresponding to this " place name " and " dining room ", open respectively search dog map and cuisines comment website " Startbuck " searched for, and display of search results.
Further, want to be set to the phrase of default keyword if comprise the user in the current short message, then the method is further comprising the steps of: receive the classification of user's selected keyword and user's input from short message, preserve the corresponding relation between the classification that selected keyword and user input; Or, obtain user's selected keyword from short message, set up and preserve the corresponding relation between the classification of selecting in the classification that selected keyword and user preserved from database.
The user can by interested keyword in the short message is arranged, reach the purpose of convenient subsequent searches process.
The method that the embodiment of the invention provides by according to default keyword, detects short message; When comprising described default keyword in the described short message, the described default keyword in the described short message is highlighted; According to described default keyword, obtain the classification of described default keyword; Classification according to described default keyword is searched for described default keyword, and display of search results.Adopt technical scheme provided by the invention, by when showing short message, to preset keyword highlights, classification according to described default keyword and default keyword is searched for, when display effect is provided intuitively, avoided copying the complicated processes such as stickup in the search of correlation technique, simple to operate, improved user's experience.Further, the method that the embodiment of the invention provides has been broken the limitation that only can carry out according to keyword picture searching, has expanded the scope of search.
Fig. 3 is the structural representation of a kind of short message processing apparatus of providing of the embodiment of the invention, and referring to Fig. 3, this device comprises:
Detection module 301 is used for detecting short message according to default keyword;
Display module 302 is used for when described short message comprises described default keyword the described default keyword in the described short message being highlighted;
Receiver module 303 is used for receiving the keyword selection instruction that the user inputs;
Acquisition module 304 is used for according to described keyword selection instruction, obtains the classification of selected default keyword;
Search module 305 is used for according to the classification of described default keyword described default keyword being searched for, and display of search results.
Alternatively, described search module 305 comprises:
Tip element is used at least when described default keyword correspondence two kind, and prompting user is selected at least in described two kinds;
Classification command reception unit is used for receiving the classification selection instruction that the user inputs;
Page search unit is used for searching for according to the page corresponding to classification that described classification selection instruction is opened described user selection, and display of search results.
Alternatively, described page search unit is used for opening the page corresponding to first category and searching for when the classification of described user selection is first category, and display of search results;
And/or,
Described page search unit is used for opening the page corresponding to the second classification and searching for when the classification of described user selection is the second classification, and display of search results.
Alternatively, described device also comprises:
Default keyword arranges module 306, be used for to receive the user manually keyword of input and the classification of keyword, preserves the corresponding relation between the classification of described keyword and keyword;
Should default keyword module 306 be set and also be used for receiving the manually keyword of input of user, set up and preserved the corresponding relation between the classification that described keyword and user select from the classification of having preserved;
Should default keyword module 306 be set and also be used for receiving the user from the classification of the selected keyword of short message and user's input, preserve the corresponding relation between the classification that selected keyword and user input;
Should default keyword module 306 be set and also be used for obtaining the user from the selected keyword of short message, set up and preserved the corresponding relation between the classification of selecting in the classification that selected keyword and user preserved from database.
Alternatively, described highlighting as highlighted demonstration, overstriking demonstration, italic show, underscore shows or variable color shows.
Need to prove: the device that the short message that above-described embodiment provides is processed is when short message is processed, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the internal structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.In addition, the embodiment of the method that the device that the short message that above-described embodiment provides is processed and short message are processed belongs to same design, and its specific implementation process sees embodiment of the method for details, repeats no more here.
The embodiment of the invention also provides a kind of terminal equipment, and described terminal equipment comprises: transceiver, memory and processor,
Described transceiver is used for the transmitting-receiving short message;
Described memory be used for storage short message, default keyword with and corresponding classification;
Described processor is used for detecting short message according to default keyword; Described processor also is used for when described short message comprises described default keyword the described default keyword in the described short message being highlighted; Described processor also is used for receiving the keyword selection instruction of user's input; Described processor also is used for according to described keyword selection instruction, obtains the classification of selected default keyword; Described processor also is used for according to the classification of described default keyword described default keyword being searched for, and display of search results.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can come the relevant hardware of instruction to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.