CN105183725A - Method for translating word on web page and electronic device - Google Patents

Method for translating word on web page and electronic device Download PDF

Info

Publication number
CN105183725A
CN105183725A CN201510640698.8A CN201510640698A CN105183725A CN 105183725 A CN105183725 A CN 105183725A CN 201510640698 A CN201510640698 A CN 201510640698A CN 105183725 A CN105183725 A CN 105183725A
Authority
CN
China
Prior art keywords
word
webpage
window
translation
set button
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510640698.8A
Other languages
Chinese (zh)
Inventor
陈耀攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510640698.8A priority Critical patent/CN105183725A/en
Publication of CN105183725A publication Critical patent/CN105183725A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for translating a word on a web page. The method comprises that a word selected by a user is determined on the first web page according to selection operation conducted on a first web page by the user. a first window is output near the word to detect whether there is first trigger operation for triggering a first pre-setting button on the first window, if the first trigger operation is detected, translation of the word is output, and the word and the address of the first web page are stored in a pre-setting file. The technical effect that the users can obtain the translation of a foreign language conveniently and quickly when meet unacquainted foreign languages during web browsing is achieved. Furthermore, the users can check the foreign language conveniently through the pre-setting file in the future, access the first web page through the address and find the foreign language in the first web page, so that the users can review the context and application contexts in the foreign languages. The invention further discloses an electronic device.

Description

The method of word and electronic equipment on a kind of translating web page
Technical field
The present invention relates to Internet technical field, particularly relate to method and the electronic equipment of word on a kind of translating web page.
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 method and the electronic equipment that overcome word on the problems referred to above or the translating web page that solves the problem at least in part.
One aspect of the present invention, provides the method for word on a kind of translating web page, 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;
The address of described word and described first webpage is kept in a default file.
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 described translation by Second Window, described Second Window is different from described first window; Or
Export described translation by the second webpage, described second webpage is different from described first webpage.
Preferably, the described address by described word and described first webpage is kept in a default file, comprising:
Detect the second trigger action whether having triggering second pre-set button, described second pre-set button is arranged on the predeterminated position on browser interface, and shows for representing the mark be kept at by described word in described default file in described second pre-set button;
If described second trigger action detected, the address of described word and described first webpage is kept in a default file.
Preferably, the described address by described word and described first webpage also comprises after being kept in a default file:
Detect the opening operation whether had for opening described default file;
If described opening operation detected, then open described default file, and show described word in described default file.
Preferably, described in described default file, show described word after, also comprise:
Detect the 3rd trigger action whether had for word described in described default file;
When described 3rd trigger action being detected, if described first webpage is closed, then described first webpage is opened in the address based on described first webpage;
The whole words identical with described word in described first webpage are highlighted with predetermined manner with one.
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;
First 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;
Preserve module, for being kept in a default file address of described word and described first webpage.
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 first 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 described translation by Second Window, described Second Window is different from described first window; Or
Export described translation by the second webpage, described second webpage is different from described first webpage.
Preferably, described preservation module, specifically for:
Detect the second trigger action whether having triggering second pre-set button, described second pre-set button is arranged on the predeterminated position on browser interface, and shows for representing the mark be kept at by described word in described default file in described second pre-set button; If described second trigger action detected, the address of described word and described first webpage is kept in a default file.
Preferably, described electronic equipment, also comprises:
Second detection module, after being kept in a default file, detects the opening operation whether had for opening described default file for the described address by described word and described first webpage;
First opens module, if for described opening operation being detected, then open described default file, and shows described word in described default file.
Preferably, described electronic equipment, also comprises:
3rd detection module, for described in described default file, show described word after, detect and whether have the 3rd trigger action for word described in described default file;
Second opens module, and for when described 3rd trigger action being detected, if described first webpage is closed, then described first webpage is opened in the address based on described first webpage;
Highlight module, for being highlighted with predetermined manner with one by whole words identical with described word in described first webpage.
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, the address of this word and the first webpage is kept in a default file.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.Simultaneously, after exporting translation corresponding to this word, also the address of first webpage at this foreign language and this foreign language place is kept in a default file (new word this), make user in the future can by this default file, check this foreign language easily, and access the first webpage by this address, in the first webpage, find this foreign language, thus look back linguistic context and the application scenarios at this foreign language place, thus 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 the process flow diagram of the method for word on a kind of according to an embodiment of the invention translating web page;
Fig. 2 shows a kind of according to an embodiment of the invention structural representation 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 method and the electronic equipment of word on a kind of translating web page, 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 the method for word on a kind of translating web page, be applied in electronic equipment, this electronic equipment can be desktop computer, notebook computer, panel computer, smart mobile phone etc., and 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 of word on a kind of translating web page 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 the method for word on a kind of translating web page, as shown in Figure 1, 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) 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 the first 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: the mouse pointer time rested in the first pre-set button is greater than a preset time value to 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: the address of this word and the first webpage is kept in a default file.Wherein, this default file can be new word basis.
As a kind of optional embodiment, in step S105, the address of word and the first webpage is kept in a default file, comprises:
Detect and whether have the second trigger action of triggering second pre-set button, the second pre-set button is arranged on the predeterminated position on browser interface, and shows for representing the mark be kept at by word in default file in the second pre-set button;
If the second trigger action detected, the address of word and the first webpage is kept in a default file.
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 the address of this new word and this new word place webpage is saved in new word basis.
As a kind of optional embodiment, in step S105, the address of word and the first webpage is kept in a default file, comprises:
After execution step S104 (if the first trigger action detected, then exporting the translation that this word is corresponding), the word that can automatically user be chosen and the address of the first webpage are kept in a default file, do not need user to carry out any operation.
As a kind of optional embodiment, after step S105, also comprise:
Detect the opening operation whether had for opening default file;
If opening operation detected, then open default file, and show word in default file.
For example, 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, when the opening operation for opening new word basis being detected, then open new word basis and the whole new words wherein preserved are displayed.
As a kind of optional embodiment, show word in default file after, also comprise:
Detect the 3rd trigger action whether had for word in default file;
When the 3rd trigger action being detected, if the first webpage is closed, then the first webpage is opened in the address based on the first webpage;
The whole words identical with word in first webpage are highlighted with predetermined manner with one.
For example, a lot of new word is preserved in new word basis, with the address of each new word place webpage at that time, when certain new word that user clicks wherein being detected, then obtain the address of this new word place webpage, and the webpage at this new word place is at that time opened based on this address, search for this new word in the web page, wherein, multiple word the same with this new word may be had in the web page, then these words are all highlighted with predetermined manner with one, make user can see these new words fast, and then look back linguistic context and the application scenarios at this new word place, be conducive to user to review this new word.
For example, describedly to highlight with a predetermined manner, comprise: add underscore, improve the brightness of word, change the color of word, change the background colour of word region, change the font of word, change the font size of word, to word overstriking, word tilted etc., herein, for this predetermined manner specifically which kind of mode, the present embodiment does not do concrete restriction.
Based on method and the electronic equipment of word on above-mentioned translating web page, 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;
First 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;
Preserve module 205, for being kept in a default file address of word and the first webpage.
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, first 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: export translation by Second Window, Second Window is different from first window; Or exporting translation by the second webpage, the second webpage is different from the first webpage.
As a kind of optional embodiment, preserve module 205, specifically for: detect the second trigger action whether having triggering second pre-set button, second pre-set button is arranged on the predeterminated position on browser interface, and shows for representing the mark be kept at by word in default file in the second pre-set button; If the second trigger action detected, the address of word and the first webpage is kept in a default file.
As a kind of optional embodiment, electronic equipment, also comprises: the second detection module, after being kept in a default file by the address of word and the first webpage, detects the opening operation whether had for opening default file; First opens module, if for opening operation being detected, then open default file, and shows word in default file.
As a kind of optional embodiment, electronic equipment, also comprises: the 3rd detection module, for show word in default file after, detects the 3rd trigger action whether had for word in default file; Second opens module, and for when the 3rd trigger action being detected, if the first webpage is closed, then the first webpage is opened in the address based on the first webpage; Highlight module, for being highlighted with predetermined manner with one by whole words identical with word in the first webpage.
The device that the electronic equipment introduced due to the present embodiment adopts for the method implementing word on translating web page in the embodiment of the present application, so based on the method for word on the translating web page 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 the method at this how this electronic equipment being realized to word on the translating web page in the embodiment of the present application is introduced no longer in detail.As long as those skilled in the art implement the device that in the embodiment of the present application, on translating web page, the method for word 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, the address of this word and the first webpage is kept in a default file.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.Simultaneously, after exporting translation corresponding to this word, also the address of first webpage at this foreign language and this foreign language place is kept in a default file (new word this), make user in the future can by this default file, check this foreign language easily, and access the first webpage by this address, in the first webpage, find this foreign language, thus look back linguistic context and the application scenarios at this foreign language place, thus 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, a kind of method of word on A1, translating web page, 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;
The address of described word and described first webpage is kept in a default file.
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, as arbitrary in A1 ~ A5 as described in method, it is characterized in that the translation that the described word of described output is corresponding comprises:
Export described translation by Second Window, described Second Window is different from described first window; Or
Export described translation by the second webpage, described second webpage is different from described first webpage.
A7, method as described in A1, it is characterized in that, the described address by described word and described first webpage is kept in a default file, comprising:
Detect the second trigger action whether having triggering second pre-set button, described second pre-set button is arranged on the predeterminated position on browser interface, and shows for representing the mark be kept at by described word in described default file in described second pre-set button;
If described second trigger action detected, the address of described word and described first webpage is kept in a default file.
A8, method as described in 1 or A7, is characterized in that, the described address by described word and described first webpage also comprises after being kept in a default file:
Detect the opening operation whether had for opening described default file;
If described opening operation detected, then open described default file, and show described word in described default file.
A9, method as described in A8, is characterized in that, described in described default file, show described word after, also comprise:
Detect the 3rd trigger action whether had for word described in described default file;
When described 3rd trigger action being detected, if described first webpage is closed, then described first webpage is opened in the address based on described first webpage;
The whole words identical with described word in described first webpage are highlighted with predetermined manner with one.
B10, 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;
First 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;
Preserve module, for being kept in a default file address of described word and described first webpage.
B11, method as described in B10, 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.
B12, electronic equipment as described in B11, 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.
B13, electronic equipment as described in B12, is characterized in that, described first 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.
B14, electronic equipment as described in B13, 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.
B15, as arbitrary in B10 ~ B14 as described in electronic equipment, it is characterized in that, described second output module, specifically for:
Export described translation by Second Window, described Second Window is different from described first window; Or
Export described translation by the second webpage, described second webpage is different from described first webpage.
B16, electronic equipment as described in B10, is characterized in that, described preservation module, specifically for:
Detect the second trigger action whether having triggering second pre-set button, described second pre-set button is arranged on the predeterminated position on browser interface, and shows for representing the mark be kept at by described word in described default file in described second pre-set button; If described second trigger action detected, the address of described word and described first webpage is kept in a default file.
B17, electronic equipment as described in B10 or B16, it is characterized in that, described electronic equipment, also comprises:
Second detection module, after being kept in a default file, detects the opening operation whether had for opening described default file for the described address by described word and described first webpage;
First opens module, if for described opening operation being detected, then open described default file, and shows described word in described default file.
B18, electronic equipment as described in B17, it is characterized in that, described electronic equipment, also comprises:
3rd detection module, for described in described default file, show described word after, detect and whether have the 3rd trigger action for word described in described default file;
Second opens module, and for when described 3rd trigger action being detected, if described first webpage is closed, then described first webpage is opened in the address based on described first webpage;
Highlight module, for being highlighted with predetermined manner with one by whole words identical with described word in described first webpage.

Claims (10)

1. the method for word on translating web page, 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;
The address of described word and described first webpage is kept in a default file.
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 as described in as arbitrary in Claims 1 to 5, is characterized in that the translation that the described word of described output is corresponding comprises:
Export described translation by Second Window, described Second Window is different from described first window; Or
Export described translation by the second webpage, described second webpage is different from described first webpage.
7. the method for claim 1, is characterized in that, the described address by described word and described first webpage is kept in a default file, comprising:
Detect the second trigger action whether having triggering second pre-set button, described second pre-set button is arranged on the predeterminated position on browser interface, and shows for representing the mark be kept at by described word in described default file in described second pre-set button;
If described second trigger action detected, the address of described word and described first webpage is kept in a default file.
8. the method as described in claim 1 or 7, is characterized in that, the described address by described word and described first webpage also comprises after being kept in a default file:
Detect the opening operation whether had for opening described default file;
If described opening operation detected, then open described default file, and show described word in described default file.
9. method as claimed in claim 8, is characterized in that, described in described default file, show described word after, also comprise:
Detect the 3rd trigger action whether had for word described in described default file;
When described 3rd trigger action being detected, if described first webpage is closed, then described first webpage is opened in the address based on described first webpage;
The whole words identical with described word in described first webpage are highlighted with predetermined manner with one.
10. 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;
First 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;
Preserve module, for being kept in a default file address of described word and described first webpage.
CN201510640698.8A 2015-09-30 2015-09-30 Method for translating word on web page and electronic device Pending CN105183725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510640698.8A CN105183725A (en) 2015-09-30 2015-09-30 Method for translating word on web page and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510640698.8A CN105183725A (en) 2015-09-30 2015-09-30 Method for translating word on web page and electronic device

Publications (1)

Publication Number Publication Date
CN105183725A true CN105183725A (en) 2015-12-23

Family

ID=54905814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510640698.8A Pending CN105183725A (en) 2015-09-30 2015-09-30 Method for translating word on web page and electronic device

Country Status (1)

Country Link
CN (1) CN105183725A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020248849A1 (en) * 2019-06-14 2020-12-17 平安科技(深圳)有限公司 Webpage language switching method and apparatus, and terminal device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002189744A (en) * 2000-10-11 2002-07-05 Mieko Tsuyusaki Web page retrieval system
CN102314412A (en) * 2010-06-30 2012-01-11 汉王科技股份有限公司 Method and system for recording contextual information and tracing new word context
CN102402432A (en) * 2010-09-16 2012-04-04 正文科技股份有限公司 Method for creating a multi-lingual web page
EP2527969A1 (en) * 2006-09-06 2012-11-28 Apple Inc. Video Manager for Portable Multifunction Device
CN102841746A (en) * 2012-07-11 2012-12-26 广东欧珀移动通信有限公司 Mobile phone webpage interaction method
CN102929924A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Method and device for generating word selecting searching result based on browsing content
CN102982148A (en) * 2012-11-26 2013-03-20 华为技术有限公司 Positioning method and device
CN103136285A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 Translation query and operation system used for handheld device and method thereof
CN103744857A (en) * 2013-12-10 2014-04-23 厦门亿联网络技术股份有限公司 Method for searching instant messaging chatting records for keywords
CN104025079A (en) * 2011-09-09 2014-09-03 谷歌公司 User interface for translation webpage

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002189744A (en) * 2000-10-11 2002-07-05 Mieko Tsuyusaki Web page retrieval system
EP2527969A1 (en) * 2006-09-06 2012-11-28 Apple Inc. Video Manager for Portable Multifunction Device
CN102314412A (en) * 2010-06-30 2012-01-11 汉王科技股份有限公司 Method and system for recording contextual information and tracing new word context
CN102402432A (en) * 2010-09-16 2012-04-04 正文科技股份有限公司 Method for creating a multi-lingual web page
CN104025079A (en) * 2011-09-09 2014-09-03 谷歌公司 User interface for translation webpage
CN103136285A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 Translation query and operation system used for handheld device and method thereof
CN102841746A (en) * 2012-07-11 2012-12-26 广东欧珀移动通信有限公司 Mobile phone webpage interaction method
CN102929924A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Method and device for generating word selecting searching result based on browsing content
CN102982148A (en) * 2012-11-26 2013-03-20 华为技术有限公司 Positioning method and device
CN103744857A (en) * 2013-12-10 2014-04-23 厦门亿联网络技术股份有限公司 Method for searching instant messaging chatting records for keywords

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LKYTAL: "选中文字弹出快捷翻译/搜索", 《网址:HTTP://TIEBA.BAIDU.COM/P/2785863341》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020248849A1 (en) * 2019-06-14 2020-12-17 平安科技(深圳)有限公司 Webpage language switching method and apparatus, and terminal device

Similar Documents

Publication Publication Date Title
US11188709B2 (en) Cascading menus for remote popping
KR101681281B1 (en) Extension framework for input method editor
CN105183724A (en) Translation method and electronic device
US10228850B2 (en) Preview window including a storage context view of one or more computer resources
US8433719B1 (en) Accelerating find in page queries within a web browser
US20140089772A1 (en) Automatically Creating Tables of Content for Web Pages
CN105224175A (en) The method of content and electronic equipment on a kind of marking of web pages
CN105095378A (en) Method and device for loading web page pop-up comments
CN105095441A (en) Information acquisition method and device
CN103440107A (en) Method and device for processing touch operation of electronic device
CN104133815B (en) The method and system of input and search
CN105260433A (en) Webpage content collecting method and electronic device
CN105242848A (en) Method for translating texts on web page and electronic device
CN104424205A (en) Context menu implementing method and device of page-embedded client
CN105138273A (en) Marking method and electronic equipment
CN104504058A (en) Web page presentation method and browser device
CN105354187A (en) Method for translating webpage contents and electronic device
CN105279245A (en) Method for collecting contents on webpage and electronic device
CN107220377B (en) Search method, electronic device, and computer storage medium
CN113032273A (en) Application program debugging method and device, computer equipment and storage medium
CN105243057A (en) Method for translating web page contents and electronic device.
US20150178289A1 (en) Identifying Semantically-Meaningful Text Selections
CN105242849A (en) Text translation method and electronic device
JP2017033361A (en) Document associating device, document associating system, and program
KR20080047094A (en) Multiple searching method based on tab-browsing

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: 20151223

RJ01 Rejection of invention patent application after publication