CN105242848A - Method for translating texts on web page and electronic device - Google Patents
Method for translating texts on web page and electronic device Download PDFInfo
- Publication number
- CN105242848A CN105242848A CN201510639803.6A CN201510639803A CN105242848A CN 105242848 A CN105242848 A CN 105242848A CN 201510639803 A CN201510639803 A CN 201510639803A CN 105242848 A CN105242848 A CN 105242848A
- Authority
- CN
- China
- Prior art keywords
- word
- window
- translation
- set button
- webpage
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The present invention discloses a method for translating texts on a web page. The method comprises: based on a marking and selecting operation performed by a user on a first web page, determining texts selected by the user on the first web page; outputting a first window near the texts; displaying a first preset button in the first window; detecting whether a first trigger operation for triggering the first preset button exists; and if detecting the first trigger operation, outputting a translation corresponding to the texts and adding the texts to a vocabulary note. The method for translating the texts on the web page and the electronic device, which are provided by the present invention, achieve the technical effects that when encountering unknown foreign language texts in the process of browsing a web page, the user can obtain the translation corresponding to the foreign language texts in a convenient and quick way; and the foreign language texts are added to the vocabulary note for storage, so that the user can conveniently view the foreign language texts later.
Description
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of method that word on webpage is translated and electronic equipment.
Background technology
Along with the development of science and technology, computing machine is extensively popularized, and brings many facilities to the work of people and life.People can use computer disposal document, surf the web, play games, listen to the music, control commercial production etc.
People browse in webpage process at use computing machine, often can run into unacquainted foreign language word (such as: English word, phrase, sentence etc.).At present, the common solution of people is: choose this part foreign language word, copy this part foreign language word, open searched page or local dictionary, the foreign language word copied pasted in searched page or local dictionary, click search button or inquire button, thus obtain Chinese translation corresponding to this foreign language word.But in this process, user needs to carry out choosing, copies, opens multiple operation steps such as searched page or local dictionary, stickup, click search or inquire button, could obtain translation, complex operation, very inconvenient.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the method translated word on webpage solved the problem at least in part and electronic equipment.
One aspect of the present invention, provides a kind of method translated word on webpage, comprising:
That carries out on the first webpage based on user draws selection operation, and described first webpage is determined the word that described user chooses;
Near described word, export first window, in described first window, show the first pre-set button;
Detect the first trigger action whether had for triggering described first pre-set button;
If described first trigger action detected, then export the translation that described word is corresponding;
Described word is added in new word basis.
Preferably, describedly near described word, export first window, comprising:
Described first window is exported in the upper left corner of described word or the upper right corner.
Preferably, in described first window, show multiple button, described first pre-set button belongs to described multiple button, and shows for representing the mark translated described word in described first pre-set button.
Preferably, whether described detection has the first trigger action for triggering described first pre-set button, comprising:
Detect and whether have the clicking operation clicking described first pre-set button; Or
Detect and whether have the hover operation of mouse pointer in described first pre-set button.
Preferably, the translation that the described word of described output is corresponding, comprising:
Using described word as key word, obtain translation corresponding to described word by search engine, and export translation corresponding to described word; Or
From local dictionary, obtain translation corresponding to described word, and export translation corresponding to described word.
Preferably, the translation that the described word of described output is corresponding, comprising:
Export translation literary composition corresponding to described word by Second Window, described Second Window is different from described first window; Or
Export translation corresponding to described word by the second webpage, described second webpage is different from described first webpage.
Preferably, the described new word that added to by described word in this, comprising:
Detect the second trigger action whether having triggering second pre-set button, described second pre-set button is presented at the predeterminated position on browser interface;
If described second trigger action detected, then added to by described word in new word basis and preserve, wherein, user can open described new word and originally check described word.
Another aspect of the present invention, provides a kind of electronic equipment, comprising:
Determination module, draws selection operation for what carry out on the first webpage based on user, described first webpage is determined the word that described user chooses;
First output module, for exporting first window near described word, shows the first pre-set button in described first window;
Detection module, for detecting the first trigger action whether had for triggering described first pre-set button;
Second output module, if for described first trigger action being detected, then export the translation that described word is corresponding;
Add module, for being added to by described word in new word basis.
Preferably, described first output module, specifically for:
Described first window is exported in the upper left corner of described word or the upper right corner.
Preferably, in described first window, show multiple button, described first pre-set button belongs to described multiple button, and shows for representing the mark translated described word in described first pre-set button.
Preferably, described detection module, specifically for:
Detect and whether have the clicking operation clicking described first pre-set button; Or
Detect and whether have the hover operation of mouse pointer in described first pre-set button.
Preferably, described second output module, specifically for:
Using described word as key word, obtain translation corresponding to described word by search engine, and export translation corresponding to described word; Or
From local dictionary, obtain translation corresponding to described word, and export translation corresponding to described word.
Preferably, described second output module, specifically for:
Export translation literary composition corresponding to described word by Second Window, described Second Window is different from described first window; Or
Export translation corresponding to described word by the second webpage, described second webpage is different from described first webpage.
Preferably, described interpolation module, specifically for:
Detect the second trigger action whether having triggering second pre-set button, described second pre-set button is presented at the predeterminated position on browser interface;
If described second trigger action detected, then added to by described word in new word basis and preserve, wherein, user can open described new word and originally check described word.
The technical scheme provided in the embodiment of the present application, at least has following technique effect or advantage:
In the embodiment of the present application, that carries out on the first webpage based on user draws selection operation, first webpage is determined the word that user chooses, first window is exported near this word, showing the first pre-set button in first window, detecting the first trigger action whether had for triggering the first pre-set button, if the first trigger action detected, then export the translation that this word is corresponding, this word is added in new word basis.Visible, user is when browsing webpage and running into unacquainted foreign language, only need to choose this foreign language by drawing selection operation, a pre-set button (" translation " button) two steps are triggered again by trigger action, the translation of this foreign language can be obtained, so, efficiently solve in prior art user browse webpage run into unacquainted foreign language time, need the operation of multiple step could obtain translation corresponding to this foreign language, the technical matters of complex operation.Achieve user browse webpage run into unacquainted foreign language time, the technique effect of translation corresponding to this foreign language can be obtained quickly and easily.Meanwhile, after exporting translation corresponding to this foreign language, also this foreign language is added in new word basis and collect, thus enable user by new word originally, check the unacquainted foreign language in the past run into easily, meet the demand of the higher level of user.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of according to an embodiment of the invention process flow diagram to the method that word on webpage is translated;
Fig. 2 shows a kind of according to an embodiment of the invention structural drawing of electronic equipment.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiments provide a kind of method that word on webpage is translated and electronic equipment, in order to overcome or solve at least in part in prior art user browse webpage run into unacquainted foreign language time, need the operation of multiple step could obtain translation corresponding to this foreign language, the technical matters of complex operation.
Present embodiments provide a kind of method that word on webpage is translated, be applied in electronic equipment, this electronic equipment can be desktop computer, notebook computer, panel computer, smart mobile phone etc., for this electronic equipment specifically which kind of electronic equipment, the present embodiment is not specifically limited.This electronic equipment comprises a display, and for displays image information, wherein, for desktop computer and notebook computer, this display can not have touch controllable function, and user can carry out man-machine interaction by mouse, keyboard; For panel computer and smart mobile phone, this display should have touch controllable function, and user can carry out man-machine interaction by the display (that is: touch-screen) with touch controllable function.Be provided with a browser in this electronic equipment, user can be surfed the Net by this browser.
The method translated word on webpage introduced in the present embodiment, its executive agent is above-mentioned electronic equipment, is specifically as follows the browser be arranged in electronic equipment.
As shown in Figure 1, present embodiments provide a kind of method that word on webpage is translated, comprising:
Step S101: that carries out on the first webpage based on user draws selection operation, and the first webpage is determined the word (such as: foreign language word, foreign language phrase, foreign language sentence) that user chooses.
As the optional embodiment of one, before step S101, also comprise: obtain stroke selection operation of user on the first webpage.
For example, user use desktop computer (or notebook computer) browse the first webpage run into unacquainted foreign language word time, user can by clicking the mouse left button paddling mouse pointer, to be chosen by unacquainted foreign language word.Accordingly, desktop computer (or notebook computer) can acquire user by mouse and draw selection operation, particularly, the change of the left click event of mouse the position of combined mouse pointer can be detected, determine that user carries out drawing the word chosen of selection operation on the first webpage.
For example, when user uses smart mobile phone (or panel computer) to browse webpage, user directly can carry out drawing selection operation on the touchscreen and choose unacquainted foreign language word on the first webpage.Accordingly, smart mobile phone (or panel computer) can obtain user and carry out on the touchscreen drawing the position of selection operation by detecting, and based on the position of this stroke of selection operation determine user-selected in foreign language word.
Step S102: export first window near this word, shows the first pre-set button in first window.
As the optional embodiment of one, after determining the word that user chooses, create first window, and the upper left corner of the word chosen user or this first window of upper right corner output display, this first window can be native window.
As the optional embodiment of one, multiple button is shown in this first window, these buttons are for realizing different functions, these buttons comprise one for realizing the first pre-set button of interpretative function, and show in the first pre-set button for representing the mark translated word.
For example, the Copy button, " search " button, " translation " button is shown in first window, wherein, the Copy button is used for copying the word that user chooses, " search " button is searched for the word chosen for utilizing search engine, " translation " button is used for translating the word that user chooses, and should be the first pre-set button by " translation " button.
Step S103: detect the first trigger action whether had for triggering the first pre-set button.
As the optional embodiment of one, the first trigger action can be the clicking operation that user performs.
For example, when user uses desktop computer (or notebook computer) to browse webpage, user can click the first pre-set button by the mouse be connected with desktop computer (or notebook computer), to trigger the first pre-set button.Accordingly, desktop computer (or notebook computer) can detect user and whether click the first pre-set button by mouse, if detect, user clicks the first pre-set button, be then considered as the first trigger action detected for triggering the first pre-set button.
For example, when user browses webpage by smart mobile phone (or panel computer), user can click the first pre-set button by the touch-screen of smart mobile phone (or panel computer), to trigger the first pre-set button.Accordingly, smart mobile phone (or panel computer) can obtain the position that user clicks, judge whether the position that user clicks belongs in the viewing area of the first pre-set button, if belong to, then determine that user clicks the first pre-set button, be then considered as the first trigger action detected for triggering the first pre-set button.
As the optional embodiment of one, the first trigger action can also be the hover operation of user's mouse beacon pointer in pre-set button.
For example, when user uses desktop computer (or notebook computer) to browse webpage, the mouse pointer that user can use mouse control to show over the display hovers, to trigger the first pre-set button in the first pre-set button.Now, if electronic equipment detects that (that is: mouse pointer rests on this first time on button of establishing and is greater than a preset time value this hover operation, such as stop more than 1 second), then can be considered as the first trigger action detected for triggering the first pre-set button.
Step S104: if the first trigger action detected, then export the translation that this word is corresponding.
As the optional embodiment of one, if the first trigger action detected, then the word chosen using user, as key word, is searched for by search engine, obtains the translation choosing word corresponding, and exports corresponding translation.Such as: can be searched for by " searching well " search engine or " bing " search engine, obtain the translation that word that user chooses is corresponding, then the translation that output character is corresponding.Herein, for described search engine specifically which kind of search engine, the present embodiment is not specifically limited.
As the optional embodiment of one, if the first trigger action detected, then from local dictionary, obtain translation corresponding to word, and the translation that output character is corresponding.Such as: installation local dictionary in the electronic device (such as: have dictionary, Kingsoft Powerword etc.) can be utilized to carry out query translation, obtain the translation that word is corresponding, then the translation that output character is corresponding.Herein, for described local dictionary specifically which kind of dictionary, the present embodiment is not specifically limited.
As the optional embodiment of one, when obtaining the translation choosing word corresponding, the translation rule can preset based on is translated.
Citing is incited somebody to action, and arbitrary foreign language word (that is: being different from the word of Chinese) all can be translated into Chinese, wherein, comprise " English-Chinese " translation, " Japanese-Chinese " translate, " Korean-Chinese " translation ", " Russian-Chinese " translate, etc.Also arbitrary foreign language word (that is: being different from English word) all can be translated into English, wherein, comprise " Chinese-English " translation, " Japanese-English " is translated, and " Korean-English ", " Russian-Chinese " are translated, etc.
As the optional embodiment of one, when the translation that output character is corresponding, can pass through translation corresponding to the second webpage output character, the second webpage is different from the first webpage, such as: can newly create the second webpage, and export translation on the second webpage.
As the optional embodiment of one, when the translation that output character is corresponding, can pass through translation corresponding to Second Window output character, wherein, Second Window is different from first window.
For example, Second Window can be created near first window, and export translation by Second Window.And after the translation corresponding by Second Window output character, if detect, user clicks the region beyond Second Window, then nullify first window and Second Window, make first window and Second Window no longer show.Like this, after user sees translation, can, by clicking the region beyond Second Window, first window and Second Window be disappeared.
Step S105: this word is added in new word basis.
As a kind of optional embodiment, in step S105, word is added in new word basis, comprising:
Detect the second trigger action whether having triggering second pre-set button, the second pre-set button is presented at the predeterminated position on browser interface;
If the second trigger action detected, then added to by word in new word basis and preserve, wherein, user can open the translation that this word and correspondence originally checked in new word.
For example, second pre-set button may be displayed on the predeterminated position on browser interface, such as, may be displayed on the lower left corner in Second Window or the lower right corner, or be presented at the web page display area (such as: be presented on the first webpage) of browser, or be presented in the sidebar of browser.And show for representing the mark (such as: " adding new word to originally ") of this word being added to new word basis in the second pre-set button, when user clicks the second pre-set button, then this word is defined as the unfamiliar new word of user, and this new word is added to new word in this and preserve.And, a predeterminated position on browser interface (comprise: in Second Window or in first page or the sidebar of browser) can show one for open new word this open button, detecting that user clicks after this opens button, then open new word this and the whole new words wherein preserved are displayed.Detect user click wherein arbitrary new word time, the translation of this new word can also be shown in this at new word, or the translation of newly-built this new word of web displaying.
As a kind of optional embodiment, in step S105, word is added in new word basis, comprising:
After execution step S104 (if the first trigger action detected, then exporting the translation that this word is corresponding), automatically this word is added in new word basis, do not need user to carry out any operation.
Based on the above-mentioned method translated word on webpage, present invention also offers a kind of electronic equipment, as shown in Figure 2, comprising:
Determination module 201, draws selection operation for what carry out on the first webpage based on user, the first webpage is determined the word that user chooses;
First output module 202, for exporting first window near word, shows the first pre-set button in first window;
Detection module 203, for detecting the first trigger action whether had for triggering the first pre-set button;
Second output module 204, if for the first trigger action being detected, then the translation that output character is corresponding;
Add module 205, for being added to by word in new word basis.
As a kind of optional embodiment, the first output module 202, specifically for: export first window in the upper left corner of word or the upper right corner.
As a kind of optional embodiment, show multiple button in first window, the first pre-set button belongs to multiple button, and shows in the first pre-set button for representing the mark translated word.
As a kind of optional embodiment, detection module 203, specifically for: detect the clicking operation whether having click first pre-set button; Or detect whether there be the hover operation of mouse pointer in the first pre-set button.
As a kind of optional embodiment, the second output module 204, specifically for: using word as key word, obtain translation corresponding to word by search engine, and the translation that output character is corresponding; Or obtain translation corresponding to word from local dictionary, and the translation that output character is corresponding.
As a kind of optional embodiment, the second output module 204, specifically for: by the translation literary composition that Second Window output character is corresponding, Second Window is different from first window; Or passing through translation corresponding to the second webpage output character, the second webpage is different from the first webpage.
As a kind of optional embodiment, add module 205, specifically for: detect the second trigger action whether having triggering second pre-set button, the second pre-set button is presented at the predeterminated position on browser interface; If the second trigger action detected, then added to by word in new word basis and preserve, wherein, user can open new word and originally check word.
The device that the electronic equipment introduced due to the present embodiment adopts for the method implementing to translate word on webpage in the embodiment of the present application, so based on the method translated word on webpage introduced in the embodiment of the present application, those skilled in the art can understand embodiment and its various version of the electronic equipment of the present embodiment, so how to realize introducing no longer in detail the method that word on webpage is translated in the embodiment of the present application at this for this electronic equipment.As long as the device that the method that those skilled in the art implement to translate word on webpage in the embodiment of the present application adopts, all belong to the application for protection scope.
The technical scheme provided in the embodiment of the present application, at least has following technique effect or advantage:
In the embodiment of the present application, that carries out on the first webpage based on user draws selection operation, first webpage is determined the word that user chooses, first window is exported near this word, showing the first pre-set button in first window, detecting the first trigger action whether had for triggering the first pre-set button, if the first trigger action detected, then export the translation that this word is corresponding, this word is added in new word basis.Visible, user is when browsing webpage and running into unacquainted foreign language, only need to choose this foreign language by drawing selection operation, a pre-set button (" translation " button) two steps are triggered again by trigger action, the translation of this foreign language can be obtained, so, efficiently solve in prior art user browse webpage run into unacquainted foreign language time, need the operation of multiple step could obtain translation corresponding to this foreign language, the technical matters of complex operation.Achieve user browse webpage run into unacquainted foreign language time, the technique effect of translation corresponding to this foreign language can be obtained quickly and easily.Meanwhile, after exporting translation corresponding to this foreign language, also this foreign language is added in new word basis and collect, thus enable user by new word originally, check the unacquainted foreign language in the past run into easily, meet the demand of the higher level of user.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although to comprise in other embodiment some included feature instead of further feature in this some embodiments, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in gateway according to the embodiment of the present invention, proxy server, system.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses, A1, a kind of method translated word on webpage, is characterized in that, comprising:
That carries out on the first webpage based on user draws selection operation, and described first webpage is determined the word that described user chooses;
Near described word, export first window, in described first window, show the first pre-set button;
Detect the first trigger action whether had for triggering described first pre-set button;
If described first trigger action detected, then export the translation that described word is corresponding;
Described word is added in new word basis.
A2, method as described in A1, is characterized in that, describedly near described word, exports first window, comprising:
Described first window is exported in the upper left corner of described word or the upper right corner.
A3, method as described in A1, it is characterized in that, in described first window, show multiple button, described first pre-set button belongs to described multiple button, and shows for representing the mark translated described word in described first pre-set button.
A4, method as described in A1, it is characterized in that, whether described detection has the first trigger action for triggering described first pre-set button, comprising:
Detect and whether have the clicking operation clicking described first pre-set button; Or
Detect and whether have the hover operation of mouse pointer in described first pre-set button.
A5, method as described in A1, is characterized in that the translation that the described word of described output is corresponding comprises:
Using described word as key word, obtain translation corresponding to described word by search engine, and export translation corresponding to described word; Or
From local dictionary, obtain translation corresponding to described word, and export translation corresponding to described word.
A6, method as described in A1, is characterized in that the translation that the described word of described output is corresponding comprises:
Export translation literary composition corresponding to described word by Second Window, described Second Window is different from described first window; Or
Export translation corresponding to described word by the second webpage, described second webpage is different from described first webpage.
A7, as arbitrary in A1 ~ A6 as described in method, it is characterized in that, the described new word that added to by described word in this, comprising:
Detect the second trigger action whether having triggering second pre-set button, described second pre-set button is presented at the predeterminated position on browser interface;
If described second trigger action detected, then added to by described word in new word basis and preserve, wherein, user can open described new word and originally check described word.
B8, a kind of electronic equipment, is characterized in that, comprising:
Determination module, draws selection operation for what carry out on the first webpage based on user, described first webpage is determined the word that described user chooses;
First output module, for exporting first window near described word, shows the first pre-set button in described first window;
Detection module, for detecting the first trigger action whether had for triggering described first pre-set button;
Second output module, if for described first trigger action being detected, then export the translation that described word is corresponding;
Add module, for being added to by described word in new word basis.
B9, electronic equipment as described in B8, is characterized in that, described first output module, specifically for:
Described first window is exported in the upper left corner of described word or the upper right corner.
B10, electronic equipment as described in B8, it is characterized in that, in described first window, show multiple button, described first pre-set button belongs to described multiple button, and shows for representing the mark translated described word in described first pre-set button.
B11, electronic equipment as described in B8, is characterized in that, described detection module, specifically for:
Detect and whether have the clicking operation clicking described first pre-set button; Or
Detect and whether have the hover operation of mouse pointer in described first pre-set button.
B12, electronic equipment as described in B8, is characterized in that, described second output module, specifically for:
Using described word as key word, obtain translation corresponding to described word by search engine, and export translation corresponding to described word; Or
From local dictionary, obtain translation corresponding to described word, and export translation corresponding to described word.
B13, electronic equipment as described in B8, is characterized in that, described second output module, specifically for:
Export translation literary composition corresponding to described word by Second Window, described Second Window is different from described first window; Or
Export translation corresponding to described word by the second webpage, described second webpage is different from described first webpage.
B14, as arbitrary in B8 ~ B13 as described in electronic equipment, it is characterized in that, described interpolation module, specifically for:
Detect the second trigger action whether having triggering second pre-set button, described second pre-set button is presented at the predeterminated position on browser interface;
If described second trigger action detected, then added to by described word in new word basis and preserve, wherein, user can open described new word and originally check described word.
Claims (10)
1. to the method that word on webpage is translated, it is characterized in that, comprising:
That carries out on the first webpage based on user draws selection operation, and described first webpage is determined the word that described user chooses;
Near described word, export first window, in described first window, show the first pre-set button;
Detect the first trigger action whether had for triggering described first pre-set button;
If described first trigger action detected, then export the translation that described word is corresponding;
Described word is added in new word basis.
2. the method for claim 1, is characterized in that, describedly near described word, exports first window, comprising:
Described first window is exported in the upper left corner of described word or the upper right corner.
3. the method for claim 1, it is characterized in that, in described first window, show multiple button, described first pre-set button belongs to described multiple button, and shows for representing the mark translated described word in described first pre-set button.
4. the method for claim 1, is characterized in that, whether described detection has the first trigger action for triggering described first pre-set button, comprising:
Detect and whether have the clicking operation clicking described first pre-set button; Or
Detect and whether have the hover operation of mouse pointer in described first pre-set button.
5. the method for claim 1, is characterized in that, the translation that the described word of described output is corresponding, comprising:
Using described word as key word, obtain translation corresponding to described word by search engine, and export translation corresponding to described word; Or
From local dictionary, obtain translation corresponding to described word, and export translation corresponding to described word.
6. the method for claim 1, is characterized in that, the translation that the described word of described output is corresponding, comprising:
Export translation literary composition corresponding to described word by Second Window, described Second Window is different from described first window; Or
Export translation corresponding to described word by the second webpage, described second webpage is different from described first webpage.
7. the method as described in as arbitrary in claim 1 ~ 6, is characterized in that, the described new word that added to by described word in this, comprising:
Detect the second trigger action whether having triggering second pre-set button, described second pre-set button is presented at the predeterminated position on browser interface;
If described second trigger action detected, then added to by described word in new word basis and preserve, wherein, user can open described new word and originally check described word.
8. an electronic equipment, is characterized in that, comprising:
Determination module, draws selection operation for what carry out on the first webpage based on user, described first webpage is determined the word that described user chooses;
First output module, for exporting first window near described word, shows the first pre-set button in described first window;
Detection module, for detecting the first trigger action whether had for triggering described first pre-set button;
Second output module, if for described first trigger action being detected, then export the translation that described word is corresponding;
Add module, for being added to by described word in new word basis.
9. electronic equipment as claimed in claim 8, is characterized in that, described first output module, specifically for:
Described first window is exported in the upper left corner of described word or the upper right corner.
10. electronic equipment as claimed in claim 8, it is characterized in that, in described first window, show multiple button, described first pre-set button belongs to described multiple button, and shows for representing the mark translated described word in described first pre-set button.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510639803.6A CN105242848A (en) | 2015-09-30 | 2015-09-30 | Method for translating texts on web page and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510639803.6A CN105242848A (en) | 2015-09-30 | 2015-09-30 | Method for translating texts on web page and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105242848A true CN105242848A (en) | 2016-01-13 |
Family
ID=55040515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510639803.6A Pending CN105242848A (en) | 2015-09-30 | 2015-09-30 | Method for translating texts on web page and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105242848A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106095225A (en) * | 2016-06-01 | 2016-11-09 | 律世刚 | The demenstration method of the logical relation of sentence structure and paragraph chapter and device |
CN108475286A (en) * | 2016-01-27 | 2018-08-31 | 三星电子株式会社 | Device and method for managing the historical information in electronic device |
CN108846082A (en) * | 2018-06-11 | 2018-11-20 | 掌阅科技股份有限公司 | Words and phrases library generating method, device and the calculating equipment of E-book reader |
CN110929531A (en) * | 2018-08-30 | 2020-03-27 | 广州金山移动科技有限公司 | Information obtaining method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110071A (en) * | 2006-07-17 | 2008-01-23 | 英业达股份有限公司 | Vocabulary instantaneous translation system and method |
CN101526949A (en) * | 2009-03-31 | 2009-09-09 | 魏新成 | Operating method of desktop selected column after selecting text string by dragging and dropping left key of mouse |
CN102314412A (en) * | 2010-06-30 | 2012-01-11 | 汉王科技股份有限公司 | Method and system for recording contextual information and tracing new word context |
CN103136285A (en) * | 2011-12-05 | 2013-06-05 | 英顺源(上海)科技有限公司 | Translation query and operation system used for handheld device and method thereof |
-
2015
- 2015-09-30 CN CN201510639803.6A patent/CN105242848A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110071A (en) * | 2006-07-17 | 2008-01-23 | 英业达股份有限公司 | Vocabulary instantaneous translation system and method |
CN101526949A (en) * | 2009-03-31 | 2009-09-09 | 魏新成 | Operating method of desktop selected column after selecting text string by dragging and dropping left key of mouse |
CN102314412A (en) * | 2010-06-30 | 2012-01-11 | 汉王科技股份有限公司 | Method and system for recording contextual information and tracing new word context |
CN103136285A (en) * | 2011-12-05 | 2013-06-05 | 英顺源(上海)科技有限公司 | Translation query and operation system used for handheld device and method thereof |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108475286A (en) * | 2016-01-27 | 2018-08-31 | 三星电子株式会社 | Device and method for managing the historical information in electronic device |
CN106095225A (en) * | 2016-06-01 | 2016-11-09 | 律世刚 | The demenstration method of the logical relation of sentence structure and paragraph chapter and device |
CN108846082A (en) * | 2018-06-11 | 2018-11-20 | 掌阅科技股份有限公司 | Words and phrases library generating method, device and the calculating equipment of E-book reader |
CN110929531A (en) * | 2018-08-30 | 2020-03-27 | 广州金山移动科技有限公司 | Information obtaining method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Hyvönen et al. | Semantic autocompletion | |
US8375356B2 (en) | Tabular completion lists | |
CN105183724A (en) | Translation method and electronic device | |
US20090150826A1 (en) | Switching search providers within a browser search box | |
US20110270876A1 (en) | Method and system for filtering information | |
CN105095441A (en) | Information acquisition method and device | |
CN103080873A (en) | Extension framework for input method editor | |
US20140089772A1 (en) | Automatically Creating Tables of Content for Web Pages | |
CN104765809A (en) | Preview method and device of search pictures of mobile terminal | |
KR20110099225A (en) | Previewing search results for suggested refinement terms and vertical searches | |
CN101661498A (en) | Information search method and device | |
CN105224175A (en) | The method of content and electronic equipment on a kind of marking of web pages | |
CN105260433A (en) | Webpage content collecting method and electronic device | |
CN105095378A (en) | Method and device for loading web page pop-up comments | |
CN103440107A (en) | Method and device for processing touch operation of electronic device | |
CN105242848A (en) | Method for translating texts on web page and electronic device | |
CN104504058A (en) | Web page presentation method and browser device | |
CN104537051A (en) | Terminal and searching method based on touch operation | |
CN105279245A (en) | Method for collecting contents on webpage and electronic device | |
CN105354187A (en) | Method for translating webpage contents and electronic device | |
CN105243057A (en) | Method for translating web page contents and electronic device. | |
CN105138273A (en) | Marking method and electronic equipment | |
EP3084636A1 (en) | Identifying semantically-meaningful text selections | |
WO2017087344A1 (en) | Displaying graphical representations of query suggestions | |
Swearngin et al. | Genie: Input Retargeting on the Web through Command Reverse Engineering |
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 |
Application publication date: 20160113 |
|
RJ01 | Rejection of invention patent application after publication |