Summary of the invention
The technical matters that the present invention will solve provides a kind of method, device and mobile device that obtains the text query result, facilitates for looking into speech, can improve the efficient that the user obtains the text query result, reduces the inquiry error rate.
For solving the problems of the technologies described above, embodiments of the invention provide a kind of method that obtains the text query result, comprising:
Obtain the desire query text through the suspension window;
According to said desire query text, obtain the Query Result of said desire query text;
Said Query Result is showed that through one showing interface is to the user.
Wherein, saidly obtain the step of desiring query text through the suspension window and comprise:
After detecting pointer said suspension window being carried out a query manipulation,, obtain said desire query text according to said query manipulation.
Wherein, said detect pointer said suspension window carried out a query manipulation after, according to said query manipulation, the step of obtaining said desire query text comprises:
Duplicate said desire query text at said pointer, after the operation that said suspension window is clicked, obtain the said desire query text of duplicating in the clipbook; Perhaps
After detecting pointer and clicking the load button on the said suspension window, obtain the said desire query text of in the input frame of said suspension window, importing; Perhaps
The predetermined position information content that said suspension window is dragged to detects, obtain instruction that said suspension window clicked after, obtain the said desire query text in the row that said predetermined position shows.
Wherein, the said step of obtaining the said desire query text in the row that said predetermined position shows comprises:
Obtain the text in the said suspension window coverage or further expand to that said text extends to the left and right and all texts when running into terminal, as said desire query text.
Wherein, said according to said desire query text, the step of obtaining the Query Result of said desire query text comprises:
According to said desire query text, from the local data base of the corresponding dictionary software of said suspension window or from network, obtain the Query Result of said desire query text.
Wherein, according to said desire query text, the step that from network, obtains the Query Result of said desire query text comprises:
Said desire query text is sent to the webserver; Make the said webserver carry out participle to said desire Query Result; And according to word segmentation result; Obtain the corresponding Query Result of each participle, perhaps further obtain sentence or the corresponding Query Result of phrase that said each participle is formed;
Obtain said Query Result from the said webserver.
Wherein, said displaying interface is: newly eject preset displaying interface in interface that a display frames defined or the said suspension window.
Wherein, said method also comprises:
After said Query Result is showed a Preset Time section or after obtaining the instruction at the said displaying of closing of user interface, close said displaying interface.
Wherein, said method also comprises:
To desire at needs to start said suspension window in the application of Query Result of query text.
Wherein, said suspension window is movable transparent or translucent suspension window, and said Query Result comprises the translation result of desiring the corresponding scheduled instruction of query text, basic lexical or textual analysis and/or network lexical or textual analysis.
Embodiments of the invention also provide a kind of device that obtains the text query result, comprising:
First acquisition module is used for obtaining the desire query text through the suspension window;
Second acquisition module is used for obtaining the Query Result of said desire query text according to said desire query text;
Display module is used for said Query Result is showed that through one showing interface is to the user.
Wherein, said first acquisition module specifically is used for: after detecting pointer said suspension window being carried out a query manipulation, according to said query manipulation, obtain said desire query text.
Wherein, said first acquisition module comprises:
First obtains submodule, is used for duplicating said desire query text at said pointer, after the operation that said suspension window is clicked, obtains the said desire query text of duplicating in the clipbook; Perhaps
Second obtains submodule, after being used to detect pointer and clicking the load button on the said suspension window, obtains the said desire query text of in the input frame of said suspension window, importing; Perhaps
The 3rd obtains submodule, is used for the predetermined position information content that said suspension window is dragged to is detected, obtain instruction that said suspension window clicked after, obtain the said desire query text in the row that said predetermined position shows.
Wherein, The said the 3rd obtains submodule specifically is used for: when the predetermined position information content that said suspension window is dragged to detects; After obtaining instruction that said suspension window clicked; Obtain the text in the said suspension window coverage or further expand to that said text extends to the left and right and all texts when running into terminal, as said desire query text.
Wherein, said second acquisition module comprises:
The 4th obtains submodule, is used for according to said desire query text, from the local data base of the corresponding dictionary software of said suspension window, obtains the Query Result of said desire query text; Perhaps
The 5th obtains submodule, is used for according to said desire query text, from network, obtains the Query Result of said desire query text.
Wherein, The said the 5th obtains submodule specifically is used for: said desire query text is sent to the webserver; Make the said webserver carry out participle to said desire Query Result; And, obtain the corresponding Query Result of each participle according to word segmentation result, perhaps further obtain sentence or the corresponding Query Result of phrase that said each participle is formed; Obtain said Query Result from the said webserver.
Wherein, said displaying interface is: newly eject preset displaying interface in interface that a display frames defined or the said suspension window.
Wherein, said apparatus also comprises:
First control module after being used for after said Query Result is showed a Preset Time section, perhaps obtaining the instruction at the said displaying of closing of user interface, is closed said displaying interface.
Wherein, said apparatus also comprises:
Second control module is used on needs to be desired the application of Query Result of query text, starting said suspension window.
Embodiments of the invention also provide a kind of mobile device, comprising: aforesaid acquisition text query result's device.
The beneficial effect of technique scheme of the present invention is following:
In the such scheme; Through a suspension window that obtains at needs to start in the application of desire query text; When the user runs into unacquainted speech, phrase or sentence etc. and desires query text; Dictionary software obtains the desire query text automatically through the suspension window, and will obtain the Query Result of desiring query text automatically and show the user; The user no longer need switch to dictionary software or Web-Based Dictionary from current application software; Query text is desired in input in the query frame of the query frame of dictionary software or Web-Based Dictionary; Under the situation of leaving user's current active interface alone, convenient for the user provides the translation explanation function, assisted user is to the reading and the understanding of interface literal or pictorial information; Greatly improve the user and obtained text query result's efficient, and reduced the error rate of Query Result.
Embodiment
For technical problem, technical scheme and advantage that the present invention will be solved is clearer, be described in detail below in conjunction with accompanying drawing and specific embodiment.
As shown in Figure 1, be acquisition text query result's of the present invention method overview flow chart, this method comprises:
Step 11 is obtained the desire query text through the suspension window;
Step 12 according to said desire query text, is obtained the Query Result of said desire query text;
Step 13 shows that through one showing interface is to the user with said Query Result.
Among this embodiment of the present invention; Through a suspension window that obtains at needs to start in the application of desire query text; When the user runs into unacquainted speech, phrase or sentence etc. and desires query text; Automatically obtain the desire query text through the suspension window, and obtain the Query Result of desiring query text automatically, give the user through showing showing interface; The user no longer need switch to dictionary software or Web-Based Dictionary from current application software; Query text is desired in input in the query frame of the query frame of dictionary software or Web-Based Dictionary; Make things convenient for user inquiring; Greatly improve the user and obtained text query result's efficient, and reduced the error rate of Query Result.
As one embodiment of the present of invention, desire query text and comprise Chinese text, English words, various countries' literal, picture, video interception information etc.The Query Result correspondence that obtains comprises: Chinese explanation, English lexical or textual analysis, translation literal, picture extend information, video interception expansion reading information etc.For example, the user finds the retail shop that shows on certain pictures, can inquire about this picture, and dictionary enquiry software feeds back to address, company, the various places of this retail shop of user and divides information such as shop, greatly makes things convenient for the user to obtain more information.
This technical scheme is equally applicable to big screen intelligent equipment, for the user facilitates.In another embodiment of the present invention, comprise that on the basis of above-mentioned steps 11-13, step 11 can comprise:
Step 111 after detecting pointer said suspension window being carried out a query manipulation, according to said query manipulation, is obtained said desire query text.
Wherein, Pointer can be the positioning pointer of smart machine; This positioning pointer can be the positioning action on the touch-screen of mobile device, and user's finger drags all functions that this positioning pointer can realize similar mouse pointer, like clicking operation, replicate run, drag operation etc.; This positioning pointer also can be the mouse pointer like smart machines such as computing machine, notebook computers, can realize the replicate run of text, also can realize the clicking operation of an object (like the suspension window) or drag operation etc.; Among this embodiment, through the query manipulation that pointer is carried out said suspension window, can be directly according to this query manipulation; Obtain said desire query text; No longer need the user to switch to dictionary software or Web-Based Dictionary from current application software, query text is desired in input in the query frame of the query frame of dictionary software or Web-Based Dictionary, makes things convenient for user inquiring; Greatly improve the user and obtained text query result's efficient, and reduced the error rate of Query Result.As one embodiment of the present of invention, desiring query text can be literal, picture or video data.
Wherein, above-mentioned steps 111 can specifically realize through following mode:
Step 1111 is duplicated said desire query text at said pointer, after the operation that said suspension window is clicked, obtains the said desire query text of duplicating in the clipbook; Perhaps
Step 1112 after detecting pointer and clicking the load button on the said suspension window, is obtained the said desire query text of in the input frame of said suspension window, importing; Perhaps
Step 1113, the predetermined position information content that said suspension window is dragged to detects, obtain instruction that said suspension window clicked after, obtain the said desire query text in the row that said predetermined position shows.
In above-mentioned steps 1111; Through state, after the user has selected certain speech, phrase or sentence etc. to desire query text, and utilize pointer to carry out replicate run to monitoring suspension window; And clicked the suspension window again; This suspension window will call the data on the clipbook automatically, and according to the data on the clipbook, obtains the Query Result of said desire query text; As one embodiment of the present of invention, the data in the shear plate can be pictures.
In above-mentioned steps 1112; If the user does not duplicate, but after having clicked the load button on the suspension window, the suspension window will eject an input frame; Supply the user to import the desire query text; And obtain the desire query text in this input frame automatically, and desire query text based on this, obtain the Query Result of said desire query text;
In above-mentioned steps 1113; If the user had not both utilized pointer to carry out replicate run; Also do not click load button, desire the display position place of query text but drag the suspension window to certain word that need inquire about, phrase or sentence etc., if this moment is after detecting the operation that the user clicks the suspension window; Query text desired in word, phrase or the sentence etc. that will obtain automatically in the uppermost row of current covering place of this suspension window; The word that perhaps further expands to this current covering is expert at and is extended to all texts at a terminal place to the left and right, and obtains this all texts, thereby obtains the Query Result of the desire query text of this current covering; Perhaps further obtain from the be expert at Query Result of all texts of extending to a terminal to the left and right of the word that the word of current covering expands to this current covering; Wherein, this terminal can comprise: the punctuation mark of space, non-letter or other special symbol etc.The word of this current covering is expert at and can be shown complete row for knowing in the said suspension window institute coverage; Show that complete row has multirow if can know; With top line as default row; If all can not know to show complete row, then send prompting to the user, drag the suspension window and change the position of suspension window so that should can clearly cover word, phrase or the sentence of desiring in the query text by the suspension window.As an alternative embodiment of the invention, whether the video data that can detect suspension window place is picture or video, if picture or video then obtain this picture or video interception.
Among this embodiment; Directly obtain the desire query text that the user duplicates through the suspension window equally; Thereby obtain the Query Result of this desire query text, thereby make the user no longer need switch to dictionary software or Web-Based Dictionary from current application software, query text is desired in input in the query frame of the query frame of dictionary software or Web-Based Dictionary; Greatly improve the user and obtained text query result's efficient, and reduced the error rate of Query Result; Perhaps through the direct desire query text of in the suspension window, importing; Do not need the user to switch to dictionary software or Web-Based Dictionary from current application software yet; Query text is desired in input in the query frame of the query frame of dictionary software or Web-Based Dictionary; Greatly improve the user and obtained text query result's efficient, and reduced the error rate of Query Result; Perhaps directly the suspension window is dragged to and desire the query text place; Obtain the Query Result of this desire query text, also do not need the user to switch to dictionary software or Web-Based Dictionary from current application software, query text is desired in input in the query frame of the query frame of dictionary software or Web-Based Dictionary; Do not influence user's current operation; The switching of also not carrying out each interface causes the user to operate confusion, has greatly improved the user and has obtained text query result's efficient, and reduced the error rate of Query Result.
In this bright another embodiment, comprise on the basis of above-mentioned steps 11-13, comprise further that perhaps step 12 comprises on the basis of various concrete performing steps of above-mentioned steps 11:
Step 121 according to said desire query text, obtains the Query Result of said desire query text from the local data base of the corresponding dictionary software of said suspension window; Perhaps
Step 122 according to said desire query text, obtains the Query Result of said desire query text from network.
Wherein, This said Query Result comprises the translation result of desiring the corresponding scheduled instruction of query text; If it is Chinese desiring query text; Query Result can be the translator of English of this desire query text and/or the translation of other languages, also can be basic lexical or textual analysis and/or network lexical or textual analysis of this desire query text etc.;
Preferably, in the above-mentioned steps 121, the dictionary software of suspension window correspondence is like the PowerWord software etc. of can being correlated with, and the local data base of this dictionary software is exactly the database of this relevant PowerWord software;
Preferably, in the above-mentioned steps 122, can specifically comprise:
Step 1221; Said desire query text is sent to the webserver; Make the said webserver carry out participle to said desire Query Result; And, obtain the corresponding Query Result of each participle according to word segmentation result, perhaps further obtain sentence or the corresponding Query Result of phrase that said each participle is formed; Concrete, obtain the translation result of the corresponding scheduled instruction of each participle, basic lexical or textual analysis and/or network lexical or textual analysis; The translation result that perhaps sentence of each participle composition or phrase are corresponding, basic lexical or textual analysis and/or network lexical or textual analysis;
Step 1222 obtains said Query Result from the said webserver.
Certainly; The mode that obtains the Query Result of desire query text from network is not limited to the mode described in the foregoing description; Alternate manner can also be arranged; As connecting earlier, and obtain the Query Result of said desire query text, all should belong to embodiments of the invention institute covering scope through browser through browser and network.
In above-mentioned all embodiment of the present invention, the displaying interface in the step 13 is as being the new preset displaying interface in interface that a display frames defined or the said suspension window of ejecting.As one embodiment of the present of invention, show that the interface can be transparent, translucent, also can be provided with and adjust color according to user preferences; The Query Result of showing showing interface can be the form that both pictures and texts are excellent.
In another embodiment of the present invention, comprise on the basis of above-mentioned steps 11-13, perhaps further comprise on the basis of embodiment of all concrete implementation procedures of above-mentioned steps 11 and 12, after the step 13, also comprise:
Step 14 after said Query Result is showed a Preset Time section or after obtaining the instruction at the said displaying of closing of user interface, is closed said displaying interface; So that promote user's experience.
In another embodiment of the present invention, comprise can also comprising on the basis of above-mentioned each step:
To desire at needs to start said suspension window in the application of Query Result of query text; During concrete the realization; Can show that should being used for of weighing judges whether to start said suspension window by obtaining current screen; As obtain current screen and show that being applied as of power needs to obtain to desire the application of the Query Result of query text; Comprise: all kinds of document class are used, like notepad, board, MS Word, Ms Exel, MS PPT, WPS, UltraEdit, EditPlus; Also can be that web page class is used, like the page of IE browser, FireFox browser page, MS outlook etc.; Can also be: the text in the standard dialog box, like common Windows control (comprising: Static, Text Box, Button, CheckBox, Edit, Menu etc.); Can also be: QQ chat software, MSN chat window etc.; Obtain current screen and show that being applied as of power need not obtain to desire the application of the Query Result of query text; Can comprise: recreation, player, reading class are used and (are comprised that qq reads; BBC news etc.), this type application does not need translation, therefore; Can, these not present said suspension window on using, to reduce interference to user's experience; Wherein, detect the method that current screen shows power can be whether this current application is full screen display, if, think that then current screen shows that power returns this current application, otherwise, this current application do not returned; Certainly can also realize whether this application need start said suspension window through process.
In addition, said suspension window is movable transparent or translucent suspension window, can see the desire query text that covers below the suspension window like this; Make things convenient for user inquiring, and can be according to user's oneself demand, the size of hack suspension window; For example, choose the suspension window after, whether monitoring has the action (expansion of two fingers or contractive action) that window is zoomed in or out of conventional touch screen; If have; According to user's the action said suspension window that zooms in or out arbitrarily, certainly, should not surpass the size of the full screen of its corresponding device when this suspension window is maximum; In addition, the transparency of suspension window also can be changed according to user's needs, for example, choose the suspension window after, the transparency of clicking on the suspension window is provided with bar, can drag transparency the transparency that bar changes the suspension window is set.
Like Fig. 2, Fig. 3 and shown in Figure 4,, in the present embodiment, be that example describes with the Query Result of inquiring about a word below in conjunction with the concrete implementation procedure of concrete application interface and application flow explanation the foregoing description:
1) user has selected the desire query text on the touch screen 32 of mobile device 31, as on current read interface, having selected a unacquainted word, this word is copied to Clipboard;
2) user clicks suspension window 33, and the expression user need begin to obtain Query Result;
3) call clipbook, judge whether there is the word that duplicates in the step 1) on the clipbook;
4) if having, then from clipbook, obtain the said word that duplicates;
5) if do not have, then eject an input frame, receive the word of user's input;
6) based on the word that obtains; Call and look into the Query Result that speech module (as shown in Figure 4 look into the corresponding functional module of speech button) is carried out said word, said Query Result includes but not limited to it is translation result, basic lexical or textual analysis and/or the network lexical or textual analysis of a certain language of this word;
7), and show the user through the display frames 34 of new ejection as shown in Figure 4 from looking into the Query Result that the speech module obtains said word;
8) through back, Preset Time interval or after the instruction of closing said display frames that receives the user; Display frames disappears; Wherein, the instruction of closing this display frames can be the instruction that the zone of user outside display frames clicked or operation such as slip produces, and the shape of this display frames is not limited to the shape shown in the figure; Can also be Else Rule or irregularly shaped, and the size of display frames also can be dwindled or amplify according to screen size or concrete displaying situation; Finish.
As shown in Figure 4, embodiments of the invention also provide a kind of device that obtains the text query result, comprising:
First acquisition module 41 is used for obtaining the desire query text through the suspension window;
Second acquisition module 42 is used for obtaining the Query Result of said desire query text according to said desire query text; Wherein, this second acquisition module is equivalent to look into the speech module in the above-mentioned method shown in Figure 2;
Display module 43 is used for said Query Result through showing the user on the displaying interface.
Wherein, said first acquisition module 41 specifically is used for: after detecting pointer said suspension window being carried out a query manipulation, according to said query manipulation, obtain said desire query text.
Wherein, said first acquisition module 41 comprises:
First obtains submodule, is used for duplicating said desire query text at said pointer, after the operation that said suspension window is clicked, obtains the said desire query text of duplicating in the clipbook; Perhaps
Second obtains submodule, after being used to detect pointer and clicking the load button on the said suspension window, obtains the said desire query text of in the input frame of said suspension window, importing; Perhaps
The 3rd obtains submodule, is used for the predetermined position information content that said suspension window is dragged to is detected, obtain instruction that said suspension window clicked after, obtain the said desire query text in the row that said predetermined position shows.
Wherein, The said the 3rd obtains submodule specifically is used for: the predetermined position information content that said suspension window is dragged to detects; After obtaining instruction that said suspension window clicked; Obtain the text in the said suspension window coverage or further expand to that said text extends to the left and right and all texts when running into terminal, as said desire query text.
Wherein, said second acquisition module 42 comprises:
The 4th obtains submodule, is used for according to said desire query text, from the local data base of the corresponding dictionary software of said suspension window, obtains the Query Result of said desire query text; Perhaps
The 5th obtains submodule, is used for according to said desire query text, from network, obtains the Query Result of said desire query text.
Wherein, The said the 5th obtains submodule specifically is used for: said desire query text is sent to the webserver; Make the said webserver carry out participle to said desire Query Result; And, obtain the corresponding Query Result of each participle according to word segmentation result, perhaps further obtain sentence or the corresponding Query Result of phrase that said each participle is formed; Obtain said Query Result from the said webserver.
Wherein, said displaying interface is preset displaying interface in a new interface that display frames defined of ejecting or the said suspension window.
Wherein, said apparatus also comprises:
First control module after being used for after said Query Result is showed a Preset Time section, perhaps obtaining the instruction at the said displaying of closing of user interface, is closed said displaying interface.
Wherein, said apparatus also comprises:
Second control module is used on needs to be desired the application of Query Result of query text, starting said suspension window.
Wherein, Said Query Result comprises the translation result of desiring the corresponding scheduled instruction of query text; If it is Chinese desiring query text; Query Result can be the translator of English of this desire query text and/or the translation of other languages, also can be basic lexical or textual analysis and/or network lexical or textual analysis of this desire query text etc.;
Said suspension window is movable transparent or translucent suspension window, can see the desire query text that covers below the suspension window like this, makes things convenient for user inquiring; And can be according to user's oneself demand, the size of hack suspension window, for example; After choosing the suspension window; Whether monitoring has the action (expansion of two fingers or contractive action) that window is zoomed in or out of conventional touch screen, if having, according to user's the action said suspension window that zooms in or out arbitrarily; The size that should not surpass the full screen of its corresponding device when certainly, this suspension window is maximum; In addition, the transparency of suspension window also can be changed according to user's needs, for example, choose the suspension window after, the transparency of clicking on the suspension window is provided with bar, can drag transparency the transparency that bar changes the suspension window is set.
Need to prove: this device embodiment is and the corresponding device embodiment of said method embodiment that all implementations all are applicable among this device embodiment in the said method, also can reach identical technique effect, repeat no more at this.
Embodiments of the invention also provide a kind of mobile device, comprising: aforesaid acquisition text query result's device.This mobile device can further include: as can smart mobile phone, the smart machine of the small screen such as panel computer, wherein, said screen can be a touch-screen, can also be the smart machine of giant-screens such as computing machine, notebook computer.
The above is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from principle according to the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.