CN105242849A - Text translation method and electronic device - Google Patents

Text translation method and electronic device Download PDF

Info

Publication number
CN105242849A
CN105242849A CN201510639805.5A CN201510639805A CN105242849A CN 105242849 A CN105242849 A CN 105242849A CN 201510639805 A CN201510639805 A CN 201510639805A CN 105242849 A CN105242849 A CN 105242849A
Authority
CN
China
Prior art keywords
word
webpage
translation
window
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
CN201510639805.5A
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 CN201510639805.5A priority Critical patent/CN105242849A/en
Publication of CN105242849A publication Critical patent/CN105242849A/en
Pending legal-status Critical Current

Links

Abstract

The present invention discloses a text translation method. 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; detecting whether a first trigger operation for triggering a first preset button in the first window exists; and if yes, outputting a translation of the texts, and storing the texts, an address of the first web page and position information of the texts in the first web page in a preset file. The text translation method provided by the present invention achieves a technical effect that when encountering unknown foreign language text in the process of browsing a web page, the user can obtain the translation of the foreign language text in a convenient and quick way. In addition, the user can conveniently view the foreign language text by using the preset file later, visit the first web page by using the address, and quickly find the foreign language text in the first web page based on position information of the foreign language text in the first web page, thereby reviewing the context and application scenario of the foreign language text. Meanwhile, the present invention also discloses an electronic device.

Description

A kind of character translation method and electronic equipment
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of character translation method 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 character translation method solved the problem at least in part and electronic equipment.
One aspect of the present invention, provides a kind of character translation method, 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, described first webpage and described word are kept in a default file in the positional information of described first webpage.
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, described the address of described word, described first webpage and described word to be kept in a default file in the positional information of described first webpage, to comprise:
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, described first webpage and described word are kept in a default file in the positional information of described first webpage.
Preferably, described by the address of described word, described first webpage and described word after the positional information of described first webpage is kept in a default file, also comprise:
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;
Based on the positional information of described word at described first webpage, in described first webpage, find described word;
Described word in described first webpage is 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 in the positional information of described first webpage in the address of described word, described first webpage and described word.
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, described first webpage and described word are kept in a default file in the positional information of described first webpage.
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;
Search module, for based on the positional information of described word at described first webpage, in described first webpage, find described word;
Highlight module, for being highlighted with predetermined manner with one by the 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, the first pre-set button is shown in first window, detect 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, and the address of this word, the first webpage and this word are kept in a default file in the positional information of the first webpage.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 described word, also by this foreign language, and the address of first webpage at this foreign language place, and this foreign language is kept in a default file (new word originally) in the positional information of first page, make user can by this default file, check the unacquainted foreign language in the past run into easily, can also based on address fast access first webpage of the first webpage, and based on the positional information of this foreign language at the first webpage, this foreign language is found fast in the first webpage, 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 a kind of according to an embodiment of the invention process flow diagram of character translation method;
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 a kind of character translation method 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 character translation method, 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 character translation method 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 character translation method, 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 export translation corresponding to the word chosen.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 the translation choosing word corresponding, and export the translation choosing word 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 choosing word corresponding, then export the translation choosing word 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, " Korean-English ", and " Russian-Chinese " is translated, etc.
As the optional embodiment of one, when the translation that output character is corresponding, can export by the second webpage the translation choosing word corresponding, 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 exporting the translation choosing word corresponding, the translation choosing word corresponding can be exported by Second Window, wherein, Second Window is different from first window, Second Window near first window (such as: Second Window below first window or above).
For example, Second Window can be created near first window, and export translation by Second Window.And after exported the translation choosing word corresponding by Second Window, user clicks the region beyond Second Window if detect, then nullify first window and Second Window, first window and Second Window are no longer shown.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, the first webpage and this word are kept in a default file in the positional information of the first webpage.Wherein, this default file can be new word basis.
As a kind of optional embodiment, in step S105, the address of this word, the first webpage, this word are kept in a default file in the positional information of the first webpage, comprise:
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 in the second pre-set button and will word be chosen to be kept at mark in default file (such as: " add to new word this ") for representing;
If the second trigger action detected, will the address of word, the first webpage be chosen, choose word to be kept in a default file (new word originally) in the positional information of the first webpage.
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 the word that user chooses 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, will the address of word, the first webpage be chosen, choose word to be kept in a default file in the positional information of the first webpage, comprising:
At execution step S104 (if the first trigger action detected, then export the translation that this word is corresponding) after, the word that can automatically user be chosen, the address of the first webpage, choose word to be kept in a default file in the positional information of the first webpage, 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 in default file, show this word be kept in this 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, after described this word that display is kept in this default file in default file, also comprise:
Detect the 3rd trigger action whether had for this 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;
Based on the positional information (such as: which section, which row) of this word at the first webpage, in the first webpage, find this word;
This word in first webpage is highlighted with predetermined manner with one.
For example, a lot of new word, each new word address of place webpage and the positional information of each new word at that time in webpage at that time preserved in this in new word.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, based on the positional information of this new word place webpage at that time, find this new word in the web page, this new word in this webpage is highlighted with predetermined manner with one, makes user can see this new word fast, so look back this new word place linguistic context and application scenarios, be conducive to user this new word reviewed.
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 above-mentioned character translation method and electronic equipment, 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 this 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 export the translation that this word is corresponding;
Preserve module 205, for being kept in a default file in the positional information of the first webpage in the address of this word, the first webpage and this word.
As a kind of optional embodiment, the first output module 202, specifically for: export first window in the upper left corner of this 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 this 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 this word as key word, obtain translation corresponding to this word by search engine, and export translation corresponding to this word; Or from local dictionary, obtain translation corresponding to this word, and export translation corresponding to this word.
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 this word in default file in the second pre-set button; If the second trigger action detected, the address of this word, the first webpage and this word are kept in a default file in the positional information of the first webpage.
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 this 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 in default file, shows this word.
As a kind of optional embodiment, electronic equipment, also comprises: the 3rd detection module, for show this word in default file after, detects the 3rd trigger action whether had for this 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; Search module, for based on the positional information of this word at the first webpage, in the first webpage, find this word; Highlight module, for being highlighted with predetermined manner with one by this word in the first webpage.
The electronic equipment introduced due to the present embodiment is for implementing the device that in the embodiment of the present application, word interpretation method adopts, so based on the character translation method 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 introduce no longer in detail in this character translation method how realized in the embodiment of the present application for this electronic equipment.As long as those skilled in the art implement the device that in the embodiment of the present application, word interpretation method 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, the first pre-set button is shown in first window, detect 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, and the address of this word, the first webpage and this word are kept in a default file in the positional information of the first webpage.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 described word, also by this foreign language, and the address of first webpage at this foreign language place, and this foreign language is kept in a default file (new word originally) in the positional information of first page, make user can by this default file, check the unacquainted foreign language in the past run into easily, can also based on address fast access first webpage of the first webpage, and based on the positional information of this foreign language at the first webpage, this foreign language is found fast in the first webpage, 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, A1, a kind of character translation method, 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, described first webpage and described word are kept in a default file in the positional information of described first webpage.
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, is characterized in that, is describedly kept in a default file in the positional information of described first webpage in the address of described word, described first webpage and described word, 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, described first webpage and described word are kept in a default file in the positional information of described first webpage.
A8, method as described in A1 or A7, is characterized in that, described by the address of described word, described first webpage and described word after the positional information of described first webpage is kept in a default file, also comprise:
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;
Based on the positional information of described word at described first webpage, in described first webpage, find described word;
Described word in described first webpage is 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 in the positional information of described first webpage in the address of described word, described first webpage and described word.
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, described first webpage and described word are kept in a default file in the positional information of described first webpage.
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;
Search module, for based on the positional information of described word at described first webpage, in described first webpage, find described word;
Highlight module, for being highlighted with predetermined manner with one by the described word in described first webpage.

Claims (10)

1. a character translation method, 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, described first webpage and described word are kept in a default file in the positional information of described first webpage.
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, is describedly kept in a default file in the positional information of described first webpage in the address of described word, described first webpage and described word, 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, described first webpage and described word are kept in a default file in the positional information of described first webpage.
8. the method as described in claim 1 or 7, is characterized in that, described by the address of described word, described first webpage and described word after the positional information of described first webpage is kept in a default file, also comprise:
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;
Based on the positional information of described word at described first webpage, in described first webpage, find described word;
Described word in described first webpage is 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 in the positional information of described first webpage in the address of described word, described first webpage and described word.
CN201510639805.5A 2015-09-30 2015-09-30 Text translation method and electronic device Pending CN105242849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510639805.5A CN105242849A (en) 2015-09-30 2015-09-30 Text translation method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510639805.5A CN105242849A (en) 2015-09-30 2015-09-30 Text translation method and electronic device

Publications (1)

Publication Number Publication Date
CN105242849A true CN105242849A (en) 2016-01-13

Family

ID=55040516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510639805.5A Pending CN105242849A (en) 2015-09-30 2015-09-30 Text translation method and electronic device

Country Status (1)

Country Link
CN (1) CN105242849A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250374A (en) * 2016-08-05 2016-12-21 Tcl集团股份有限公司 One takes word interpretation method and system
CN106407167A (en) * 2016-08-29 2017-02-15 桂林力拓信息科技有限公司 Word merging method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN101739394A (en) * 2008-11-07 2010-06-16 英业达股份有限公司 Network translation inquiry system embedded in webpage and method thereof
CN102314412A (en) * 2010-06-30 2012-01-11 汉王科技股份有限公司 Method and system for recording contextual information and tracing new word context
CN102446204A (en) * 2010-10-11 2012-05-09 英业达股份有限公司 Translation inquiry system and method for recording self-defined translation explanation for secondary display

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739394A (en) * 2008-11-07 2010-06-16 英业达股份有限公司 Network translation inquiry system embedded in webpage and method thereof
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
CN102446204A (en) * 2010-10-11 2012-05-09 英业达股份有限公司 Translation inquiry system and method for recording self-defined translation explanation for secondary display

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250374A (en) * 2016-08-05 2016-12-21 Tcl集团股份有限公司 One takes word interpretation method and system
CN106407167A (en) * 2016-08-29 2017-02-15 桂林力拓信息科技有限公司 Word merging method and system

Similar Documents

Publication Publication Date Title
KR101681281B1 (en) Extension framework for input method editor
CN105183724A (en) Translation method and electronic device
Hyvönen et al. Semantic autocompletion
US20070244691A1 (en) Translation of user interface text strings
US20110289407A1 (en) Font recommendation engine
US20140089772A1 (en) Automatically Creating Tables of Content for Web Pages
CN101661498A (en) Information search method and device
CN105095378A (en) Method and device for loading web page pop-up comments
CN105095441A (en) Information acquisition 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
CN103440107A (en) Method and device for processing touch operation of 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
CN104504058A (en) Web page presentation method and browser device
CN105138273A (en) Marking method and electronic equipment
CN105279245A (en) Method for collecting contents on webpage and electronic device
CN105243057A (en) Method for translating web page contents and electronic device.
CN105354187A (en) Method for translating webpage contents and electronic device
Pandita et al. Tmap: Discovering relevant api methods through text mining of api documentation
EP3084636A1 (en) Identifying semantically-meaningful text selections
JP6292190B2 (en) Document association apparatus, document association system, and program
CN105242849A (en) Text translation method and electronic device
KR20080047094A (en) Multiple searching method based on tab-browsing
CN105320751A (en) Method for making mark on webpage and electronic device

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