CN105138519A - Lexical translation method and device - Google Patents

Lexical translation method and device Download PDF

Info

Publication number
CN105138519A
CN105138519A CN201510463420.8A CN201510463420A CN105138519A CN 105138519 A CN105138519 A CN 105138519A CN 201510463420 A CN201510463420 A CN 201510463420A CN 105138519 A CN105138519 A CN 105138519A
Authority
CN
China
Prior art keywords
word
storehouse
browsing
current
user
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.)
Granted
Application number
CN201510463420.8A
Other languages
Chinese (zh)
Other versions
CN105138519B (en
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 Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510463420.8A priority Critical patent/CN105138519B/en
Publication of CN105138519A publication Critical patent/CN105138519A/en
Application granted granted Critical
Publication of CN105138519B publication Critical patent/CN105138519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Machine Translation (AREA)

Abstract

The disclosure relates to a lexical translation method and device, belonging to the technical field of a terminal. The method comprises the following steps of: determining a lexical base matched with a current browse user when a foreign document is displayed on a screen, wherein the lexical base comprises a plurality of terms queried by the current browse user; judging whether the term is contained in the lexical base or not with regards to each term contained in designated word information, wherein the designated word information indicates information displayed on the current screen; acquiring translation information of the term and a display position of the term on the current screen if the term is contained in the lexical base; and displaying the translation information of the term based on the display position of the term on the current screen. Since the document can be automatically translated and marked according to the lexical data for storing unfamiliar terms when the user is reading the foreign document, the user is unnecessary to repeatedly query the term before remembering the translation information of the term, and time and labor are saved.

Description

Lexical translation method and apparatus
Technical field
The disclosure relates to field of terminal technology, particularly a kind of lexical translation method and apparatus.
Background technology
Along with the development of society and the continuous lifting of business demand, the chance that people contact foreign language literature in routine work with life gets more and more.Wherein, foreign language literature includes but not limited to the paper, periodical, newspaper, books, magazine etc. write with foreign language.Because foreign language literature is not write with mother tongue, and usually can comprise in document in a large number for word not familiar user, therefore when reading foreign language document, translation software is essential.Because terminal can be supported to install various types of translation software at present, the translation of foreign language literature therefore just can be carried out by terminal.
Such as, user, when by the foreign language literature of terminal reading electronic edition, encounters the word of not knowing implication, and so user can carry out word and selectes, software detection of serving as interpreter to word is selected operate after, provide the translation information of selected word; If translation software detects that cursor leaves this selected word position after a period of time, then stop its translation information of display.Further part or next time that user is reading this foreign language literature run into again this word when reading other foreign language literature, if having forgotten the translation information of this word, then need again to perform aforesaid operations step, again to provide the translation information of this word.
Summary of the invention
In order to solve in correlation technique user when reading foreign language document, for the word repeatedly run into, before not remembering the translation information of this word, the problem of inquiry need be repeated to this word, disclosure embodiment provides a kind of lexical translation method and apparatus, and described technical scheme is as follows:
According to the first aspect of disclosure embodiment, provide a kind of lexical translation method, described method comprises:
When foreign language literature is presented on screen, determine the word storehouse matched with the current user of browsing, in described word storehouse, include multiple words that the described current user of browsing inquired about;
For specifying each word comprised in Word message, judge whether comprise described word in described word storehouse, described appointment Word message refers to the information be presented on current screen;
If described word storehouse comprises described word, then obtain translation information and the display position of described word on current screen of described word;
Based on the display position of described word on current screen, show the translation information of described word.
Alternatively, the described word storehouse determining to match with the current user of browsing, comprising:
Obtain the described current face information browsing user, described face information is carried out recognition of face by camera to the described current user of browsing and is obtained;
Judge whether comprise the described current face information browsing user in the face information stored;
If comprise described face information in the face information stored, then obtain the word storehouse that described face information is corresponding, word storehouse corresponding for described face information is defined as the word storehouse matched with the described current user of browsing.
Alternatively, the described word storehouse determining to match with the current user of browsing, comprising:
If account register detected, then judge whether the log-on message of current input mates with the log-on message pre-set;
If the log-on message of current input is mated with the log-on message pre-set, then judge whether the word storehouse of mating with current login account belongs to same user;
If the word storehouse of mating with current login account belongs to same user, then described word storehouse is defined as the word storehouse matched with the described current user of browsing.
Alternatively, described method also comprises:
When the selected operation of arbitrary word in described foreign language literature being detected, obtain translation information, the display position of described selected word on current screen of selected word;
Based on the display position of described selected word on current screen, show the translation information of described selected word;
Described selected word being added in the first word storehouse of mating with the described current user of browsing, in described first word storehouse, including the word that the described current user of browsing inquired about when reading described foreign language literature.
Alternatively, after the translation information of the described selected word of described display, described method also comprises:
Described selected word is added in the second word storehouse of mating with the described current user of browsing, in described second word storehouse, include the whole words inquired about when the described current user of browsing reads multiple foreign language literature;
For each word in described second word storehouse, judge whether the number of times that described word is queried exceedes default value;
If the number of times that described word is queried exceedes described default value, then in described second word storehouse, remove described word.
Alternatively, describedly judge whether comprise described word in described word storehouse, comprising:
In the first word storehouse, carrying out traversal search, judge whether comprise described word in described first word storehouse, in described first word storehouse, including the word that the described current user of browsing inquired about when reading described foreign language literature; If described first word storehouse comprises described word, then determine that described word storehouse comprises described word;
In the second word storehouse, carry out traversal search, judge whether comprise described word in described second word storehouse, in described second word storehouse, include the whole words inquired about when the described current user of browsing reads multiple foreign language literature; If described second word storehouse comprises described word, then determine that described word storehouse comprises described word.
Alternatively, the translation information of the described word of described display, comprising:
The pre-configured orientation of described display position shows the translation information of described word; Or,
The pre-configured orientation of described display position showing the label information of described translation information, when the clicking operation of described label information being detected, described pre-configured orientation showing described translation information.
Alternatively, described method also comprises:
For each word comprised in described Word message, obtain the number of times that described word is translated information flag;
If the number of times that described word is translated information flag is greater than default value, then do not show the translation information of described word.
According to the second aspect of disclosure embodiment, provide a kind of lexical translation device, described device comprises:
Matching module, for when foreign language literature is presented on screen, determines the word storehouse matched with the current user of browsing, and includes multiple words that the described current user of browsing inquired about in described word storehouse;
Word judge module, for for specifying in Word message each word comprised, judge whether comprise described word in described word storehouse, described appointment Word message refers to the information be presented on current screen;
Acquisition module, if comprise described word for described word storehouse, then obtains translation information and the display position of described word on current screen of described word;
Display module, for based on the display position of described word on current screen, shows the translation information of described word.
Alternatively, described matching module, for obtaining the described current face information browsing user, described face information is carried out recognition of face by camera to the described current user of browsing and is obtained; Judge whether comprise the described current face information browsing user in the face information stored; If comprise described face information in the face information stored, then obtain the word storehouse that described face information is corresponding, word storehouse corresponding for described face information is defined as the word storehouse matched with the described current user of browsing.
Alternatively, described matching module, if for account register being detected, then judges whether the log-on message of current input mates with the log-on message pre-set; If the log-on message of current input is mated with the log-on message pre-set, then judge whether the word storehouse of mating with current login account belongs to same user; If the word storehouse of mating with current login account belongs to same user, then described word storehouse is defined as the word storehouse matched with the described current user of browsing.
Alternatively, described device also comprises:
Described acquisition module, for when the selected operation of arbitrary word in described foreign language literature being detected, obtains translation information, the display position of described selected word on current screen of selected word;
Described display module, for based on the display position of described selected word on current screen, shows the translation information of described selected word;
Adding module, for being added to by described selected word in the first word storehouse of mate with the described current user of browsing, in described first word storehouse, including the word that the described current user of browsing inquired about when the described foreign language literature of reading.
Alternatively, described device also comprises:
Described interpolation module, also for being added to by described selected word in the second word storehouse of mating with the described current user of browsing, includes the whole words inquired about when the described current user of browsing reads multiple foreign language literature in described second word storehouse;
Inquiry times judge module, for for each word in described second word storehouse, judges whether the number of times that described word is queried exceedes default value;
Remove module, if the number of times be queried for described word exceedes described default value, then in described second word storehouse, remove described word.
Alternatively, described word judge module, searching for carrying out traversal in the first word storehouse, judging whether comprise described word in described first word storehouse, in described first word storehouse, including the word that the described current user of browsing inquired about when reading described foreign language literature; If described first word storehouse comprises described word, then determine that described word storehouse comprises described word; In the second word storehouse, carry out traversal search, judge whether comprise described word in described second word storehouse, in described second word storehouse, include the whole words inquired about when the described current user of browsing reads multiple foreign language literature; If described second word storehouse comprises described word, then determine that described word storehouse comprises described word.
Alternatively, described display module, shows the translation information of described word on the pre-configured orientation at described display position; Or, the pre-configured orientation of described display position showing the label information of described translation information, when the clicking operation of described label information being detected, described pre-configured orientation showing described translation information.
Alternatively, described device also comprises:
Mark number of times acquisition module, for for each word comprised in described Word message, obtains the number of times that described word is translated information flag;
Described display module, if the number of times being translated information flag for described word is greater than default value, does not then show the translation information of described word.
According to the third aspect of disclosure embodiment, a kind of lexical translation device is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to: when foreign language literature is presented on screen, determines the word storehouse matched with the current user of browsing, and includes multiple words that the described current user of browsing inquired about in described word storehouse; For specifying each word comprised in Word message, judge whether comprise described word in described word storehouse, described appointment Word message refers to the information be presented on current screen; If described word storehouse comprises described word, then obtain translation information and the display position of described word on current screen of described word; Based on the display position of described word on current screen, show the translation information of described word.
The technical scheme that disclosure embodiment provides can comprise following beneficial effect:
When foreign language literature is presented on screen, determine the word storehouse matched with the current user of browsing, in this word storehouse, include multiple words that the current user of browsing inquired about; For specifying each word comprised in Word message, if word storehouse comprises this word, then obtain translation information and the display position of this word on current screen of this word; Based on the display position of this word on current screen, show the translation information of this word, due to when user's reading foreign language document, automatically translation mark can be carried out according to the word storehouse storing not familiar word to document, so repeated to inquire about this word before not remembering the translation information of this word without the need to user, time saving and energy saving, comparatively intelligence is with easy.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of a kind of lexical translation method according to an exemplary embodiment.
Fig. 2 is the process flow diagram of a kind of lexical translation method according to an exemplary embodiment.
Fig. 3 is the block diagram of the first the lexical translation device according to an exemplary embodiment.
Fig. 4 is the block diagram of the second lexical translation device according to an exemplary embodiment.
Fig. 5 is the block diagram of the third lexical translation device according to an exemplary embodiment.
Fig. 6 is the block diagram of the 4th kind of lexical translation device according to an exemplary embodiment.
Fig. 7 is the block diagram of a kind of lexical translation device according to an exemplary embodiment.
By above-mentioned accompanying drawing, illustrate the embodiment that the disclosure is clear and definite more detailed description will be had hereinafter.These accompanying drawings and text description be not in order to limited by any mode the disclosure design scope, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the process flow diagram of a kind of lexical translation method according to an exemplary embodiment, and as shown in Figure 1, lexical translation method is used for, in terminal, comprising the following steps.
In a step 101, when foreign language literature is presented on screen, determine the word storehouse matched with the current user of browsing.
Wherein, multiple words that the current user of browsing inquired about are included in word storehouse.
In a step 102, for specifying each word comprised in Word message, in grammatical term for the character repertorie, this word whether is comprised; If word storehouse comprises this word, then perform following step 103.
Wherein, Word message is specified to refer to the information be presented on current screen.
In step 103, if word storehouse comprises this word, then obtain translation information and the display position of this word on current screen of this word.
At step 104, based on the display position of this word on current screen, the translation information of display word.
The method that disclosure embodiment provides, when foreign language literature is presented on screen, determines the word storehouse matched with the current user of browsing, includes multiple words that the current user of browsing inquired about in this word storehouse; For specifying each word comprised in Word message, if word storehouse comprises this word, then obtain translation information and the display position of this word on current screen of this word; Based on the display position of this word on current screen, show the translation information of this word, due to when user's reading foreign language document, automatically translation mark can be carried out according to the word storehouse storing not familiar word to document, so repeated to inquire about this word before not remembering the translation information of this word without the need to user, time saving and energy saving, comparatively intelligence is with easy.
Alternatively, determine the word storehouse matched with the current user of browsing, comprising:
Obtain the current face information browsing user, face information is carried out recognition of face by camera to the current user of browsing and is obtained;
Judge whether comprise the current face information browsing user in the face information stored;
If comprise face information in the face information stored, then obtain word storehouse corresponding to face information, word storehouse corresponding for face information is defined as the word storehouse matched with the current user of browsing.
Alternatively, determine the word storehouse matched with the current user of browsing, comprising:
If account register detected, then judge whether the log-on message of current input mates with the log-on message pre-set;
If the log-on message of current input is mated with the log-on message pre-set, then judge whether the word storehouse of mating with current login account belongs to same user;
If the word storehouse of mating with current login account belongs to same user, then this word storehouse is defined as the word storehouse matched with the current user of browsing.
Alternatively, the method also comprises:
When the selected operation of arbitrary word in foreign language literature being detected, obtain the translation information of selected word, the selected display position of word on current screen;
Based on the display position of selected word on current screen, the translation information of the selected word of display;
Selected word is added in the first word storehouse of mating with the current user of browsing, wherein, in the first word storehouse, include the word that the current user of browsing inquired about when reading foreign language document.
Alternatively, after the translation information of the selected word of display, the method also comprises:
Selected word is added in the second word storehouse of mating with the current user of browsing, wherein, in the second word storehouse, include the whole words inquired about when the current user of browsing reads multiple foreign language literature;
For each word in the second word storehouse, judge whether the number of times that this word is queried exceedes default value;
If the number of times that this word is queried exceedes default value, then in the second word storehouse, remove this word.
Alternatively, whether comprise this word in grammatical term for the character repertorie, comprising:
In the first word storehouse, carry out traversal search, judge whether comprise this word in the first word storehouse, wherein, in the first word storehouse, include the word that the current user of browsing inquired about when reading foreign language document; If the first word storehouse comprises this word, then determine that word storehouse comprises this word;
In the second word storehouse, carry out traversal search, judge whether comprise this word in the second word storehouse, wherein, in the second word storehouse, include the whole words inquired about when the current user of browsing reads multiple foreign language literature; If the second word storehouse comprises this word, then determine that word storehouse comprises this word.
Alternatively, show the translation information of this word, comprising:
The pre-configured orientation of display position shows the translation information of this word; Or,
The pre-configured orientation of display position showing the label information of translation information, when the clicking operation of label information being detected, pre-configured orientation showing translation information.
Alternatively, the method also comprises:
For each word comprised in Word message, obtain the number of times that this word is translated information flag;
If the number of times that this word is translated information flag is greater than default value, then do not show the translation information of this word.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation embodiment of the present disclosure, this is no longer going to repeat them.
Fig. 2 is the process flow diagram of a kind of lexical translation method according to an exemplary embodiment.As shown in Figure 2, this lexical translation method is applied in terminal, comprises the following steps.
In step 201, when foreign language literature is presented on screen, authentication is carried out to the current user of browsing, determine the word storehouse matched with the current user of browsing.
In the disclosed embodiments, terminal can be installed the document reading software with interpretative function, such as translation software can be used as a plug-in unit, such document reading software not merely can provide document Presentation Function, also can provide lexical translation function.By arranging translation switch on the display page of document reading software, user can select neatly by translation information display or shielding.User just can open foreign language literature by the document ocr software, makes the content of this foreign language literature be presented on the screen of this terminal, facilitates user to read.Also, namely, when foreign language literature is presented on screen, characterizing consumer is now reading this foreign language literature.Wherein, user can open foreign language literature by various types of terminal, such as smart mobile phone, notebook, panel computer etc., and disclosure embodiment does not specifically limit this, only needs to ensure that various types of terminal is all provided with the document ocr software.
Wherein, word storehouse with artificial dimension, each user at least one first word storehouse corresponding and a second word storehouse.Wherein, the first word storehouse includes the word that the current user of browsing inquired about when reading this foreign language literature.Browse user if current in the process of reading this foreign language literature, encounter not familiar word, by getting word or drawing the modes such as word, this not familiar word can be inquired about, and this word is added in the first word storehouse.Currently browse user to should the first word storehouse of foreign language literature if do not store, namely this user inquires about the word in this foreign language literature first time, then for this user foundation is to should the first word storehouse of foreign language literature.The whole words inquired about when reading multiple foreign language literature before including the current user of browsing in second word storehouse.The current user of browsing is when carrying out word inquiry, can directly input word by the document ocr software to inquire about, or inquire about by getting word to the foreign language document of current reading or drawing word operation, and the word of inquiry is added in the second word storehouse.
If browse user current by authentication, then terminal just can be determined the word storehouse that matches with this user to include multiple word information that this user inquired about in this word storehouse.Such as, comprise the word itself inquired about and translation information corresponding to word, certainly, also can not comprise translation information corresponding to word, disclosure embodiment does not specifically limit this.Wherein, the word in word storehouse can be that the user such as word, phrase inquired about and obtain the content of corresponding translation information.
Wherein, terminal by following two kinds of modes, can be carried out authentication to the current user of browsing, determines the word storehouse matched with the current user of browsing:
First kind of way, obtains the current face information browsing user; Judge whether comprise the current face information browsing user in the face information stored; If comprise this face information in the face information stored, then obtain the word storehouse that this face information is corresponding, word storehouse corresponding for this face information is defined as the word storehouse matched with the current user of browsing.
For conventional translation software, be generally all provided with login account, and then verified by the login name of setting and codon pair user identity, to determine whether that other people use this account information to log in for user or subscriber authorisation.For first kind of way, if terminal does not detect account register, then recognition of face mode is taked to carry out authentication to user.If terminal detects account register, and this account is used by multiple people, so still takes recognition of face mode to carry out authentication to user.
Because multiple user can use same account to log in, so same account just may correspond to the word storehouse of one or more user.When terminal detects account register, may be know log-on message arbitrary individual (having different face information) by this account reading foreign language document.And in order to differentiate the word storehouse of each user, terminal can set up corresponding word storehouse for different face information.Even if multiple like this user uses same account to log in, so owing to storing the corresponding relation in face information and word storehouse, also can determine according to face information the word storehouse that matches with the current user of browsing.
Wherein, face information is carried out recognition of face by camera to the current user of browsing and is obtained.In order to guarantee to find the word storehouse of mating with this user accurately, to show the lexical translation information that this user once inquired about in this foreign language literature.Current browse user's reading foreign language document time, terminal obtains the current face information browsing user by recognition of face, if this face information first time occurs, then this face information is stored, meanwhile, sets up the word storehouse corresponding with this face information.If this face information is not occur first time, then this face information and the face information stored before are compared by terminal; If there is identical face information to exist, then thinks and comprise this face information in the face information that stores, and word storehouse corresponding for this identical face information is defined as the word storehouse that matches with the current user of browsing.
The second way, if account register detected, then judges whether the log-on message of current input mates with the log-on message pre-set; If the log-on message of current input is mated with the log-on message pre-set, then judge whether the word storehouse of mating with current login account belongs to same user; If the word storehouse of mating with current login account belongs to same user, then word storehouse is defined as the word storehouse matched with the current user of browsing.
Wherein, the log-on message pre-set refers to the log-on message such as the name on account that user is arranged when register account number and account number cipher, and this log-on message can be stored.When user carries out account register time, current for the user log-on message of input and the log-on message of storage can be compared by terminal; If comparison success, then the log-on message determining current input is mated with the log-on message pre-set, and allows user to log in.
If an account is used by same person always, then this account just corresponding face information, and then also only a corresponding first word storehouse and a second word storehouse, if so detect and only to comprise the first word storehouse corresponding to face information and a second word storehouse with the word storehouse that current login account mates, so determine that the word storehouse of mating with current login account belongs to same user, without the need to carrying out recognition of face again, directly this word storehouse is defined as the word storehouse matched with the current user of browsing.
In step 202., for specifying each word comprised in Word message, judge whether comprise this word in this word storehouse; If this word storehouse comprises this word, then perform following step 203.
Wherein, specify Word message to refer to the information be presented on current screen, can be one page content in this foreign language literature.In the disclosed embodiments, terminal can be recorded the not familiar word inquired about before user and store by the document ocr software, forms word storehouse.Like this before user is familiar with not familiar word, whenever detect user by the document ocr software carry out foreign language literature read time, all whether can comprise the word in word storehouse in this foreign language literature of automatic decision; If this foreign language literature comprises the word in word storehouse, then automatically the translation information of these words is marked in subsequent process, facilitate user to read, without the need to the translation information of the same word of the repeated multiple times manual queries of user.And As time goes on, the continuous increase of user's reading content, word in each user's equivalent repertorie will certainly constantly expand, and such user can be more and more convenient in reading foreign language literature procedure, and the operation that user manually carries out getting word or drawing word can decrease.Wherein, terminal can judge whether comprise the word of specifying in Word message in this word storehouse by following two aspects:
First aspect, carries out traversal and searches in the first word storehouse, judges whether comprise this word in the first word storehouse; If the first word storehouse comprises this word, then determine that word storehouse comprises this word.
Wherein, the word that the current user of browsing inquired about when reading this foreign language literature is included in the first word storehouse.Certainly, except taking to travel through the mode of searching, also can take the modes such as conditional search, disclosure embodiment does not specifically limit this.
Second aspect, carries out traversal and searches in the second word storehouse, judges whether comprise this word in the second word storehouse, if the second word storehouse comprises this word, then determines that word storehouse comprises this word.
The whole words inquired about when the current user of browsing reads multiple foreign language literature are included in second word storehouse.Wherein, the whole words inquired about, both can refer to user by getting word or drawing the selected word of word operation, also can refer to the word that user is inputted by translation box, disclosure embodiment does not specifically limit this.
In step 203, if comprise this word in this word storehouse, then obtain translation information and the display position of this word on current screen of this word.
Wherein, translation information refers to the information by this word of another language performance meaning.Translation information specifically determines by the demand of which kind of language performance by user.Such as, the interpretative system that user needs is english translation, and namely when user reads one section of english literature, wish that obtaining Chinese explains, this translation information is exactly the Chinese implication of English word.Wherein, interpretative system can be preset by user.
After the translation information getting word, in order to enable user better see the translation information that this word is corresponding, need to show its translation information at the peripheral position place of this word.And obtain the display position of this word on current screen, the display position of the translation information of this word can be located accurately.Wherein, the document ocr software conveniently user is read, one page content of general all complete this foreign language literature of display on current screen, the display position of this word on current screen just refers to the display position of this word in foreign language literature on the corresponding page like this.Wherein, display position can adopt coordinated manner to mark.Such as, with the upper left corner of terminal screen or the upper right corner for true origin, document reading software locates the positional information of each word on current screen one by one according to this true origin, and saves, and disclosure embodiment does not specifically limit this.It should be noted that, if current screen does not intactly show the content of complete one page in this foreign language literature, such as the content of two adjacent page all shows a part, so needs to obtain the display position of this word on corresponding display page.
In step 204, according to the display position of this word on current screen, the translation information of this word is shown.
After determining the display position of this word on current screen, the translation information of this word can be shown by following two kinds of modes:
First kind of way, the pre-configured orientation of this display position shows the translation information of this word.
In the word that the current user of browsing inquired about, may comprise the word that the meaning of a word is fairly simple, the content of the corresponding translation information of this simple word can seldom, and such as " cat ", the Chinese implication that " dog " etc. are corresponding is " cat ", " dog ".In that case, on the pre-configured orientation of this display position, directly can show the translation information of this word, and do not affect the reading of this user to this other content of foreign language literature.
The second way, the pre-configured orientation of this display position shows the label information of translation information, when the clicking operation of label information being detected, pre-configured orientation shows the translation information of this word.
The translation information of the word if desired shown is very complicated, the translation information of such as this word comprises the different implication of this word in each field and example sentence etc. corresponding to corresponding meaning, then the translation information showing this word on pre-configured orientation will affect the reading of this user to this other content of foreign language literature.Now, the label information of this translation information can just be shown.Wherein, label information can be a summary info of this translation information, and such as this translation information, in a kind of implication in a field, also can be only one and represent that this word has the mark of translation information.When user clicks this label information, show the translation information of this word.
Wherein, pre-configured orientation can be preset by user, can be above this display position, below, the position such as upper right side, disclosure embodiment does not specifically limit this.
After the translation information showing this word, terminal can record the number of times that this word is translated information flag; If the number of times that this word is translated information flag is greater than default value, then do not show the translation information of this word.Wherein, default value can be that terminal presets, and also can be arranged by user.Such as, preset times can be 20 or 30 etc., and disclosure embodiment does not specifically limit this.
It should be noted that, this foreign language literature is carried out outside preliminary word mark in the word storehouse corresponding according to the current user of browsing, also may can comprise other in this foreign language literature and not familiar word is also said to user, and these words just need user manually to select, the translation plug-in of then being installed by the document ocr software provides corresponding translation information, and shown by the document ocr software, detailed process is see following step 205 and step 206.
In step 205, when the selected operation of arbitrary word in foreign language literature being detected, selected word is added in the word storehouse of mating with the current user of browsing.
Wherein, selected operation refers to that user chooses the not familiar word be not labeled that current screen shows, can be undertaken getting word operation or drawing word operation etc. by mouse or touch action, specifically choose mode disclosure embodiment and this is not specifically limited.
Wherein, time in the word storehouse of this selected word being added to coupling, it need be added to respectively in the first word storehouse and the second word storehouse.For the first word storehouse, contain whole words that this user crosses by carrying out selected action queries to this foreign language literature.Wherein, the word comprised in first word storehouse only works to this foreign language literature, when judging to specify in Word message each word comprised, when whether being included in word storehouse, only this user to searching in the first word storehouse of foreign language literature and the second word storehouse.If user repeatedly reads this foreign language literature, and the word in this foreign language literature is all known do not need to translate, then can point out to user, automatically delete after message is deleted in the confirmation receiving user, or user manually operates this first word storehouse of deletion; Or, after the regular period is set up in this first word storehouse, automatically delete this first word storehouse.Wherein, the regular period can be preset by user, and such as 1 month or 2 months etc., disclosure embodiment does not specifically limit this.If this user detected not to should the first word storehouse of foreign language literature, namely selected operation was not carried out to this foreign language literature before this user, then created this user to should the first word storehouse of foreign language literature.It should be noted that, in the disclosed embodiments, why for each foreign language literature sets up a first word storehouse, if be because user needs repeatedly to read one section of foreign language literature, so without the need to searching in the second word storehouse comprising the not familiar word of magnanimity, can directly carry out searching and marking targetedly in the first word storehouse corresponding with this section of foreign language literature, to save time and laborsaving.
For the second word storehouse, the word inquired about of user each time, no matter inputted by translation box, or it is selected by getting word or drawing word operation, all need to be added into the second word storehouse, so just constantly can expand the vocabulary in the second word storehouse, thus make user more laborsaving in the process of reading foreign language document, without the need to carrying out manual queries repeatedly.In addition, also can record the number of times that in the second word storehouse, each word is queried in the disclosed embodiments, and judge whether the number of times that this word is queried exceedes default value; If the number of times that this word is queried exceedes default value, then in the second word storehouse, remove this word.The number of times that this word is queried is more, illustrates that the marked number of times of this word is more, concerning more familiar user.When the number of times be queried exceedes default value, show that user has known this word, it is deleted in the second word storehouse.Wherein, default value can be preset by user, such as 10 or 20 etc., disclosure embodiment does not specifically limit this.
In step 206, translation information and the display position of this selected word on current screen of this selected word is obtained; Based on the display position of this selected word on current screen, show the translation information of this selected word.
This step is consistent with the implementation showing translation information step 204 in disclosure embodiment Suo Shi, repeats no more herein.
After the translation information showing this word, terminal can record the number of times that this word is translated information flag; If the number of times that this word is translated information flag is greater than default value, then follow-uply will no longer show the translation information of this word.Such as, same word repeats repeatedly in this foreign language literature, so after this word occurrence number reaches default value, has known this word with regard to default user, no longer carries out translation mark to it.Wherein, default value can be that terminal presets, and also can be arranged by user.Such as, preset times can be 20 or 30 etc., and disclosure embodiment does not specifically limit this.
The method that disclosure embodiment provides, when foreign language literature is presented on screen, determines the word storehouse matched with the current user of browsing, includes multiple words that the current user of browsing inquired about in this word storehouse; For specifying each word comprised in Word message, if word storehouse comprises this word, then obtain translation information and the display position of this word on current screen of this word; Based on the display position of this word on current screen, show the translation information of this word, due to when user's reading foreign language document, automatically translation mark can be carried out according to the word storehouse storing not familiar word to document, so repeated to inquire about this word before not remembering the translation information of this word without the need to user, time saving and energy saving, comparatively intelligence is with easy.
Fig. 3 is the block diagram of a kind of lexical translation device according to an exemplary embodiment.With reference to Fig. 3, this device comprises matching module 301, word judge module 302, acquisition module 303, display module 304.
Wherein, matching module 301 is connected with word judge module 302, for when foreign language literature is presented on screen, determines the word storehouse matched with the current user of browsing, includes multiple words that the current user of browsing inquired about in word storehouse; Word judge module 302 is connected with acquisition module 303, for for specifying each word comprised in Word message, whether comprises word in grammatical term for the character repertorie, specifies Word message to refer to the information be presented on current screen; Acquisition module 303 is connected with display module 304, if comprise word for word storehouse, then obtains translation information and the display position of word on current screen of word; Display module 304, for based on the display position of word on current screen, shows the translation information of word.
Alternatively, matching module, for obtaining the current face information browsing user, face information is carried out recognition of face by camera to the current user of browsing and is obtained; Judge whether comprise the current face information browsing user in the face information stored; If comprise face information in the face information stored, then obtain word storehouse corresponding to face information, word storehouse corresponding for face information is defined as the word storehouse matched with the current user of browsing.
Alternatively, matching module, if for account register being detected, then judges whether the log-on message of current input mates with the log-on message pre-set; If the log-on message of current input is mated with the log-on message pre-set, then judge whether the word storehouse of mating with current login account belongs to same user; If the word storehouse of mating with current login account belongs to same user, then word storehouse is defined as the word storehouse matched with the current user of browsing.
See Fig. 4, this device also comprises:
Acquisition module, for when the selected operation of arbitrary word in foreign language literature being detected, obtains the translation information of selected word, the selected display position of word on current screen;
Display module, for based on the display position of selected word on current screen, shows the translation information of selected word;
Adding module 305, for being added to by selected word in the first word storehouse of mating with the current user of browsing, in the first word storehouse, including the word that the current user of browsing inquired about when reading foreign language document.
See Fig. 5, this device also comprises:
Adding module, also for being added to by selected word in the second word storehouse of mating with the current user of browsing, in the second word storehouse, including the whole words inquired about when the current user of browsing reads multiple foreign language literature;
Inquiry times judge module 306, for for each word in the second word storehouse, judges whether the number of times that word is queried exceedes default value;
Remove module 307, if the number of times be queried for word exceedes default value, then in the second word storehouse, remove word.
Alternatively, word judge module, searches for carrying out traversal in the first word storehouse, judges whether comprise word in the first word storehouse, includes the word that the current user of browsing inquired about when reading foreign language document in the first word storehouse; If the first word storehouse comprises word, then determine that word storehouse comprises word; In the second word storehouse, carry out traversal search, judge whether comprise word in the second word storehouse, in the second word storehouse, include the whole words inquired about when the current user of browsing reads multiple foreign language literature; If the second word storehouse comprises word, then determine that word storehouse comprises word.
Alternatively, display module, for showing the translation information of word on the pre-configured orientation of display position; Or, the pre-configured orientation of display position showing the label information of translation information, when the clicking operation of label information being detected, pre-configured orientation showing translation information.
See Fig. 6, this device also comprises:
Mark number of times acquisition module 308, for for each word comprised in Word message, obtains the number of times that word is translated information flag;
Display module, if the number of times being translated information flag for word is greater than default value, does not then show the translation information of word.
The device that disclosure embodiment provides, when foreign language literature is presented on screen, determines the word storehouse matched with the current user of browsing, includes multiple words that the current user of browsing inquired about in this word storehouse; For specifying each word comprised in Word message, if word storehouse comprises this word, then obtain translation information and the display position of this word on current screen of this word; Based on the display position of this word on current screen, show the translation information of this word, due to when user's reading foreign language document, automatically translation mark can be carried out according to the word storehouse storing not familiar word to document, so repeated to inquire about this word before not remembering the translation information of this word without the need to user, time saving and energy saving, comparatively intelligence is with easy.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 7 is the block diagram of a kind of lexical translation device 700 according to an exemplary embodiment.Such as, device 700 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 7, device 700 can comprise following one or more assembly: processing components 702, storer 704, power supply module 706, multimedia groupware 708, audio-frequency assembly 710, I/O (Input/Output, I/O) interface 712, sensor module 714, and communications component 716.
The integrated operation of the usual control device 700 of processing components 702, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 702 can comprise one or more processor 720 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 702 can comprise one or more module, and what be convenient between processing components 702 and other assemblies is mutual.Such as, processing components 702 can comprise multi-media module, mutual with what facilitate between multimedia groupware 708 and processing components 702.
Storer 704 is configured to store various types of data to be supported in the operation of device 700.The example of these data comprises for any application program of operation on device 700 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 704 can be realized by the volatibility of any type or non-volatile memory device or their combination, as SRAM (StaticRandomAccessMemory, static RAM), EEPROM (Electrically-ErasableProgrammableRead-OnlyMemory, Electrically Erasable Read Only Memory), EPROM (ErasableProgrammableReadOnlyMemory, Erasable Programmable Read Only Memory EPROM), PROM (ProgrammableRead-OnlyMemory, programmable read only memory), ROM (Read-OnlyMemory, ROM (read-only memory)), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 706 is device 700 provide electric power.Power supply module 706 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 700 and be associated.
Multimedia groupware 708 is included in the screen providing an output interface between described device 700 and user.In certain embodiments, screen can comprise LCD (LiquidCrystalDisplay, liquid crystal display) and TP (TouchPanel, touch panel).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 708 comprises a front-facing camera and/or post-positioned pick-up head.When device 700 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 710 is configured to export and/or input audio signal.Such as, audio-frequency assembly 710 comprises a MIC (Microphone, microphone), and when device 700 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 704 further or be sent via communications component 716.In certain embodiments, audio-frequency assembly 710 also comprises a loudspeaker, for output audio signal.
I/O interface 712 is for providing interface between processing components 702 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 714 comprises one or more sensor, for providing the state estimation of various aspects for device 700.Such as, sensor module 714 can detect the opening/closing state of equipment 700, the relative positioning of assembly, such as assembly is display and the keypad of device 700, the position of all right pick-up unit 700 of sensor module 714 or device 700 1 assemblies changes, the presence or absence that user contacts with device 700, the temperature variation of device 700 orientation or acceleration/deceleration and device 700.Sensor module 714 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 714 can also comprise optical sensor, as CMOS (ComplementaryMetalOxideSemiconductor, CMOS (Complementary Metal Oxide Semiconductor)) or CCD (Charge-coupledDevice, charge coupled cell) imageing sensor, for using in imaging applications.In certain embodiments, this sensor module 714 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 716 is configured to the communication being convenient to wired or wireless mode between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 716 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 716 also comprises NFC (NearFieldCommunication, near-field communication) module, to promote junction service.Such as, can based on RFID (RadioFrequencyIdentification in NFC module, radio-frequency (RF) identification) technology, IrDA (Infra-redDataAssociation, Infrared Data Association) technology, UWB (UltraWideband, ultra broadband) technology, BT (Bluetooth, bluetooth) technology and other technologies realize.
In the exemplary embodiment, device 700 can by one or more ASIC (ApplicationSpecificIntegratedCircuit, application specific integrated circuit), DSP (DigitalsignalProcessor, digital signal processor), DSPD (DigitalsignalProcessorDevice, digital signal processing appts), PLD (ProgrammableLogicDevice, programmable logic device (PLD)), FPGA) (FieldProgrammableGateArray, field programmable gate array), controller, microcontroller, microprocessor or other electronic components realize, for performing said method.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 704 of instruction, above-mentioned instruction can perform said method by the processor 720 of device 700.Such as, described non-transitory computer-readable recording medium can be ROM, RAM (RandomAccessMemory, random access memory), CD-ROM (CompactDiscRead-OnlyMemory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of lexical translation method, described method comprises:
When foreign language literature is presented on screen, determine the word storehouse matched with the current user of browsing, in word storehouse, include multiple words that the current user of browsing inquired about;
For specifying each word comprised in Word message, in grammatical term for the character repertorie, whether comprising this word, specifying Word message to refer to the information be presented on current screen;
If word storehouse comprises this word, then obtain translation information and the display position of this word on current screen of this word;
Based on the display position of this word on current screen, the translation information of display word.
Alternatively, determine the word storehouse matched with the current user of browsing, comprising:
Obtain the current face information browsing user, face information is carried out recognition of face by camera to the current user of browsing and is obtained;
Judge whether comprise the current face information browsing user in the face information stored;
If comprise face information in the face information stored, then obtain word storehouse corresponding to face information, word storehouse corresponding for face information is defined as the word storehouse matched with the current user of browsing.
Alternatively, determine the word storehouse matched with the current user of browsing, comprising:
If account register detected, then judge whether the log-on message of current input mates with the log-on message pre-set;
If the log-on message of current input is mated with the log-on message pre-set, then judge whether the word storehouse of mating with current login account belongs to same user;
If the word storehouse of mating with current login account belongs to same user, then word storehouse is defined as the word storehouse matched with the current user of browsing.
Alternatively, the method also comprises:
When the selected operation of arbitrary word in foreign language literature being detected, obtain the translation information of selected word, the selected display position of word on current screen;
Based on the display position of selected word on current screen, the translation information of the selected word of display;
Selected word is added in the first word storehouse of mating with the current user of browsing, in the first word storehouse, include the word that the current user of browsing inquired about when reading foreign language document.
Alternatively, after the translation information of the selected word of display, the method also comprises:
Selected word is added in the second word storehouse of mating with the current user of browsing, in the second word storehouse, include the whole words inquired about when the current user of browsing reads multiple foreign language literature;
For each word in the second word storehouse, judge whether the number of times that word is queried exceedes default value;
If the number of times that word is queried exceedes default value, then in the second word storehouse, remove word.
Alternatively, whether comprise word in grammatical term for the character repertorie, comprising:
In the first word storehouse, carry out traversal search, judge whether comprise word in the first word storehouse, in the first word storehouse, include the word that the current user of browsing inquired about when reading foreign language document; If the first word storehouse comprises word, then determine that word storehouse comprises word;
In the second word storehouse, carry out traversal search, judge whether comprise word in the second word storehouse, in the second word storehouse, include the whole words inquired about when the current user of browsing reads multiple foreign language literature; If the second word storehouse comprises word, then determine that word storehouse comprises word.
Alternatively, the translation information of display word, comprising:
The pre-configured orientation of display position shows the translation information of word; Or,
The pre-configured orientation of display position showing the label information of translation information, when the clicking operation of label information being detected, pre-configured orientation showing translation information.
Alternatively, the method also comprises:
For each word comprised in Word message, obtain the number of times that word is translated information flag;
If the number of times that word is translated information flag is greater than default value, then do not show the translation information of word.
The non-transitory computer-readable recording medium that disclosure embodiment provides, when foreign language literature is presented on screen, determines the word storehouse matched with the current user of browsing, includes multiple words that the current user of browsing inquired about in this word storehouse; For specifying each word comprised in Word message, if word storehouse comprises this word, then obtain translation information and the display position of this word on current screen of this word; Based on the display position of this word on current screen, show the translation information of this word, due to when user's reading foreign language document, automatically translation mark can be carried out according to the word storehouse storing not familiar word to document, so repeated to inquire about this word before not remembering the translation information of this word without the need to user, time saving and energy saving, comparatively intelligence is with easy.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (17)

1. a lexical translation method, is characterized in that, described method comprises:
When foreign language literature is presented on screen, determine the word storehouse matched with the current user of browsing, in described word storehouse, include multiple words that the described current user of browsing inquired about;
For specifying each word comprised in Word message, judge whether comprise described word in described word storehouse, described appointment Word message refers to the information be presented on current screen;
If described word storehouse comprises described word, then obtain translation information and the display position of described word on current screen of described word;
Based on the display position of described word on current screen, show the translation information of described word.
2. method according to claim 1, is characterized in that, the described word storehouse determining to match with the current user of browsing, comprising:
Obtain the described current face information browsing user, described face information is carried out recognition of face by camera to the described current user of browsing and is obtained;
Judge whether comprise the described current face information browsing user in the face information stored;
If comprise described face information in the face information stored, then obtain the word storehouse that described face information is corresponding, word storehouse corresponding for described face information is defined as the word storehouse matched with the described current user of browsing.
3. method according to claim 1, is characterized in that, the described word storehouse determining to match with the current user of browsing, comprising:
If account register detected, then judge whether the log-on message of current input mates with the log-on message pre-set;
If the log-on message of current input is mated with the log-on message pre-set, then judge whether the word storehouse of mating with current login account belongs to same user;
If the word storehouse of mating with current login account belongs to same user, then described word storehouse is defined as the word storehouse matched with the described current user of browsing.
4. method according to claim 1, is characterized in that, described method also comprises:
When the selected operation of arbitrary word in described foreign language literature being detected, obtain translation information, the display position of described selected word on current screen of selected word;
Based on the display position of described selected word on current screen, show the translation information of described selected word;
Described selected word being added in the first word storehouse of mating with the described current user of browsing, in described first word storehouse, including the word that the described current user of browsing inquired about when reading described foreign language literature.
5. method according to claim 4, is characterized in that, after the translation information of the described selected word of described display, described method also comprises:
Described selected word is added in the second word storehouse of mating with the described current user of browsing, in described second word storehouse, include the whole words inquired about when the described current user of browsing reads multiple foreign language literature;
For each word in described second word storehouse, judge whether the number of times that described word is queried exceedes default value;
If the number of times that described word is queried exceedes described default value, then in described second word storehouse, remove described word.
6. method according to claim 1, is characterized in that, describedly judges whether comprise described word in described word storehouse, comprising:
In the first word storehouse, carrying out traversal search, judge whether comprise described word in described first word storehouse, in described first word storehouse, including the word that the described current user of browsing inquired about when reading described foreign language literature; If described first word storehouse comprises described word, then determine that described word storehouse comprises described word;
In the second word storehouse, carry out traversal search, judge whether comprise described word in described second word storehouse, in described second word storehouse, include the whole words inquired about when the described current user of browsing reads multiple foreign language literature; If described second word storehouse comprises described word, then determine that described word storehouse comprises described word.
7. method according to claim 1, is characterized in that, the translation information of the described word of described display, comprising:
The pre-configured orientation of described display position shows the translation information of described word; Or,
The pre-configured orientation of described display position showing the label information of described translation information, when the clicking operation of described label information being detected, described pre-configured orientation showing described translation information.
8. method according to claim 1, is characterized in that, described method also comprises:
For each word comprised in described Word message, obtain the number of times that described word is translated information flag;
If the number of times that described word is translated information flag is greater than default value, then do not show the translation information of described word.
9. a lexical translation device, is characterized in that, described device comprises:
Matching module, for when foreign language literature is presented on screen, determines the word storehouse matched with the current user of browsing, and includes multiple words that the described current user of browsing inquired about in described word storehouse;
Word judge module, for for specifying in Word message each word comprised, judge whether comprise described word in described word storehouse, described appointment Word message refers to the information be presented on current screen;
Acquisition module, if comprise described word for described word storehouse, then obtains translation information and the display position of described word on current screen of described word;
Display module, for based on the display position of described word on current screen, shows the translation information of described word.
10. device according to claim 9, is characterized in that, described matching module, and for obtaining the described current face information browsing user, described face information is carried out recognition of face by camera to the described current user of browsing and obtained; Judge whether comprise the described current face information browsing user in the face information stored; If comprise described face information in the face information stored, then obtain the word storehouse that described face information is corresponding, word storehouse corresponding for described face information is defined as the word storehouse matched with the described current user of browsing.
11. devices according to claim 9, is characterized in that, described matching module, if for account register being detected, then judge whether the log-on message of current input mates with the log-on message pre-set; If the log-on message of current input is mated with the log-on message pre-set, then judge whether the word storehouse of mating with current login account belongs to same user; If the word storehouse of mating with current login account belongs to same user, then described word storehouse is defined as the word storehouse matched with the described current user of browsing.
12. devices according to claim 9, is characterized in that, described device also comprises:
Described acquisition module, for when the selected operation of arbitrary word in described foreign language literature being detected, obtains translation information, the display position of described selected word on current screen of selected word;
Described display module, for based on the display position of described selected word on current screen, shows the translation information of described selected word;
Adding module, for being added to by described selected word in the first word storehouse of mate with the described current user of browsing, in described first word storehouse, including the word that the described current user of browsing inquired about when the described foreign language literature of reading.
13. devices according to claim 12, is characterized in that, described device also comprises:
Described interpolation module, also for being added to by described selected word in the second word storehouse of mating with the described current user of browsing, includes the whole words inquired about when the described current user of browsing reads multiple foreign language literature in described second word storehouse;
Inquiry times judge module, for for each word in described second word storehouse, judges whether the number of times that described word is queried exceedes default value;
Remove module, if the number of times be queried for described word exceedes described default value, then in described second word storehouse, remove described word.
14. devices according to claim 9, it is characterized in that, described word judge module, search for carrying out traversal in the first word storehouse, judging whether comprise described word in described first word storehouse, in described first word storehouse, including the word that the described current user of browsing inquired about when reading described foreign language literature; If described first word storehouse comprises described word, then determine that described word storehouse comprises described word; In the second word storehouse, carry out traversal search, judge whether comprise described word in described second word storehouse, in described second word storehouse, include the whole words inquired about when the described current user of browsing reads multiple foreign language literature; If described second word storehouse comprises described word, then determine that described word storehouse comprises described word.
15. devices according to claim 9, is characterized in that, described display module shows the translation information of described word on the pre-configured orientation at described display position; Or, the pre-configured orientation of described display position showing the label information of described translation information, when the clicking operation of described label information being detected, described pre-configured orientation showing described translation information.
16. devices according to claim 9, is characterized in that, described device also comprises:
Mark number of times acquisition module, for for each word comprised in described Word message, obtains the number of times that described word is translated information flag;
Described display module, if the number of times being translated information flag for described word is greater than default value, does not then show the translation information of described word.
17. 1 kinds of lexical translation devices, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to: when foreign language literature is presented on screen, determines the word storehouse matched with the current user of browsing, and includes multiple words that the described current user of browsing inquired about in described word storehouse; For specifying each word comprised in Word message, judge whether comprise described word in described word storehouse, described appointment Word message refers to the information be presented on current screen; If described word storehouse comprises described word, then obtain translation information and the display position of described word on current screen of described word; Based on the display position of described word on current screen, show the translation information of described word.
CN201510463420.8A 2015-07-31 2015-07-31 Lexical translation method and apparatus Active CN105138519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510463420.8A CN105138519B (en) 2015-07-31 2015-07-31 Lexical translation method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510463420.8A CN105138519B (en) 2015-07-31 2015-07-31 Lexical translation method and apparatus

Publications (2)

Publication Number Publication Date
CN105138519A true CN105138519A (en) 2015-12-09
CN105138519B CN105138519B (en) 2018-04-06

Family

ID=54723870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510463420.8A Active CN105138519B (en) 2015-07-31 2015-07-31 Lexical translation method and apparatus

Country Status (1)

Country Link
CN (1) CN105138519B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018018332A1 (en) * 2016-07-24 2018-02-01 张鹏华 Information prompt method in word lookup and reading system
WO2018018333A1 (en) * 2016-07-24 2018-02-01 张鹏华 Word lookup method when reading english and reading system
CN107765949A (en) * 2017-10-30 2018-03-06 广东小天才科技有限公司 A kind of display methods and electronic equipment of word lexical or textual analysis frame
CN108334526A (en) * 2017-01-20 2018-07-27 北京搜狗科技发展有限公司 The methods of exhibiting and device of search result items
CN108614831A (en) * 2016-12-12 2018-10-02 北京搜狗科技发展有限公司 Semantic primitive display methods and device, the device shown for semantic primitive
CN109885820A (en) * 2019-02-25 2019-06-14 山东大学 Embedded Chinese idiom annotation and interpretation method
CN110471599A (en) * 2019-08-14 2019-11-19 广东小天才科技有限公司 Screen word-selecting searching method, device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963959A (en) * 2009-07-24 2011-02-02 英业达股份有限公司 Mark retrieval translation system and method
CN102073630A (en) * 2009-11-25 2011-05-25 英业达股份有限公司 Translation inquiring system and method for hiding input interface
US20130067307A1 (en) * 2011-09-09 2013-03-14 Google Inc. User interface for translation webpage
CN104572635A (en) * 2015-01-20 2015-04-29 郑州市中业科技有限公司 Wearable translating device and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963959A (en) * 2009-07-24 2011-02-02 英业达股份有限公司 Mark retrieval translation system and method
CN102073630A (en) * 2009-11-25 2011-05-25 英业达股份有限公司 Translation inquiring system and method for hiding input interface
US20130067307A1 (en) * 2011-09-09 2013-03-14 Google Inc. User interface for translation webpage
CN104572635A (en) * 2015-01-20 2015-04-29 郑州市中业科技有限公司 Wearable translating device and control method thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018018332A1 (en) * 2016-07-24 2018-02-01 张鹏华 Information prompt method in word lookup and reading system
WO2018018333A1 (en) * 2016-07-24 2018-02-01 张鹏华 Word lookup method when reading english and reading system
CN108614831A (en) * 2016-12-12 2018-10-02 北京搜狗科技发展有限公司 Semantic primitive display methods and device, the device shown for semantic primitive
CN108334526A (en) * 2017-01-20 2018-07-27 北京搜狗科技发展有限公司 The methods of exhibiting and device of search result items
CN107765949A (en) * 2017-10-30 2018-03-06 广东小天才科技有限公司 A kind of display methods and electronic equipment of word lexical or textual analysis frame
CN107765949B (en) * 2017-10-30 2019-08-30 广东小天才科技有限公司 A kind of display methods and electronic equipment of word paraphrase frame
CN109885820A (en) * 2019-02-25 2019-06-14 山东大学 Embedded Chinese idiom annotation and interpretation method
CN110471599A (en) * 2019-08-14 2019-11-19 广东小天才科技有限公司 Screen word-selecting searching method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105138519B (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN105138519A (en) Lexical translation method and device
CN104184870A (en) Call log marking method and device and electronic equipment
CN105426086A (en) Display processing method and device of searching functional block in page
CN104636326A (en) Text message translation method and device
CN103914148A (en) Function interface display method and device and terminal equipment
CN106202223A (en) Content collection method, device and for collecting the device of content in application program
CN105550643A (en) Medical term recognition method and device
CN104268129A (en) Message reply method and message reply device
CN105068976A (en) Ticket information exhibition method and device
CN105447109A (en) Key word searching method and apparatus
CN105550235A (en) Information acquisition method and information acquisition apparatuses
CN106126632A (en) Recommend method and device
CN103995841A (en) Method and device for locating pictures
CN105517189A (en) Method and apparatus for realizing WIFI connection
CN104391878A (en) Book search method and book search device
CN104270498A (en) Method and device for inputting communication number into communication interface
CN104462296A (en) File managing method and device and terminal
CN104461348A (en) Method and device for selecting information
CN104503690A (en) Arrangement method and device for application icons
CN105389113A (en) Gesture-based application control method and apparatus and terminal
CN105511777A (en) Session display method and device of touch display screen
CN105094357A (en) Input method and device as well as electronic equipment
CN105630749A (en) Extraction method and device of digital information
CN105488829A (en) Method and device for generating head portrait
CN104182473A (en) Setting option display method and 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
GR01 Patent grant
GR01 Patent grant