CN105138519B - Lexical translation method and apparatus - Google Patents
Lexical translation method and apparatus Download PDFInfo
- Publication number
- CN105138519B CN105138519B CN201510463420.8A CN201510463420A CN105138519B CN 105138519 B CN105138519 B CN 105138519B CN 201510463420 A CN201510463420 A CN 201510463420A CN 105138519 B CN105138519 B CN 105138519B
- Authority
- CN
- China
- Prior art keywords
- word
- storehouse
- information
- user
- currently
- 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.)
- Active
Links
Landscapes
- Machine Translation (AREA)
Abstract
The disclosure is directed to a kind of lexical translation method and apparatus, belong to field of terminal technology.Methods described includes:When foreign language literature is shown on screen, it is determined that the word storehouse to match with currently browsing user, includes in the word storehouse and described currently browse multiple words that user inquired about;For each word included in specified word information, judge whether include the word in the word storehouse, the specified word information refers to the information on currently displayed screen;If the word storehouse includes the word, the display location of the translation information and the word of the word on current screen is obtained;Display location based on the word on current screen, show the translation information of the word, due in user's reading foreign language document, translation mark can be carried out to document automatically according to the word storehouse for storing not familiar word, so repeat to inquire about the word before the translation information of the word is not remembered without user, it is time saving and energy saving.
Description
Technical field
This disclosure relates to field of terminal technology, more particularly to a kind of lexical translation method and apparatus.
Background technology
With the continuous development of society and the continuous lifting of business demand, people contact foreign language in routine work and life
The chance of document is more and more.Wherein, foreign language literature include but is not limited to write with foreign language paper, periodical, newspaper, books,
Magazine etc..It would generally include because foreign language literature is not write with mother tongue, and in document a large amount of not familiar for a user
Word, therefore translation software is essential in reading foreign language document.Because terminal can be supported to install various types of turn at present
Software is translated, therefore the translation of foreign language literature can be carried out by terminal.
For example user encounters the word for not knowing implication when by the foreign language literature of terminal reading electronic edition, then
User can carry out word and select, and after software detection of serving as interpreter to the selected operation of word, provide the translation information of selected word;If one
Translation software detects that cursor leaves the selected word position after the section time, then stops showing its translation information.User exists
The further part or next time for reading the foreign language literature run into the word again when reading other foreign language literatures, if having had forgotten about this
The translation information of word, then need to perform aforesaid operations step again, to provide the translation information of the word again.
The content of the invention
In order to solve user in correlation technique, in reading foreign language document, for the word repeatedly run into, this is not being remembered
Before the translation information of word, the problem of need to carrying out repeating to inquire about to the word, the embodiment of the present disclosure provides a kind of word
Language interpretation method and device, the technical scheme are as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of lexical translation method, methods described include:
When foreign language literature is shown on screen, it is determined that the word storehouse to match with currently browsing user, the word storehouse
In include and described currently browse multiple words that user inquired about;
For each word included in specified word information, judge whether include the word in the word storehouse,
The specified word information refers to the information on currently displayed screen;
If the word storehouse includes the word, the translation information and the word that obtain the word shield currently
Display location on curtain;
Display location based on the word on current screen, show the translation information of the word.
Alternatively, it is described to determine and currently browse the word storehouse that user matches, including:
The current face information for browsing user is obtained, the face information currently browses use by camera to described
Family carries out recognition of face and obtained;
Whether judge in the face information of storage comprising the current face information for browsing user;
If including the face information in the face information of storage, word storehouse corresponding to the face information is obtained, will
Word storehouse corresponding to the face information is defined as and the current word storehouse for browsing user and matching.
Alternatively, it is described to determine and currently browse the word storehouse that user matches, including:
If detecting account register, the log-on message for judging currently to input whether with the log-on message that pre-sets
Matching;
If the log-on message currently inputted matches with the log-on message pre-set, judgement matches with current login account
Word storehouse whether belong to same user;
If the word storehouse matched with current login account belongs to same user, by the word storehouse be defined as with it is described
Currently browse the word storehouse that user matches.
Alternatively, methods described also includes:
When the selected operation of any word in detecting to the foreign language literature, the translation information of the selected word of acquisition,
Display location of the selected word on current screen;
Display location based on the selected word on current screen, show the translation information of the selected word;
The selected word is added to and currently browsed with described in the first word storehouse that user matches, first word
Include in storehouse and described currently browse the word that user inquired about when reading the foreign language literature.
Alternatively, after the translation information of the display selected word, methods described also includes:
The selected word is added to and currently browsed with described in the second word storehouse that user matches, second word
Include the whole words for currently browsing and being inquired about during user's multiple foreign language literatures of reading in storehouse;
For each word in the second word storehouse, it is default to judge whether number that the word is queried exceedes
Numerical value;
If the number that the word is queried exceedes the default value, institute's predicate is removed in the second word storehouse
Language.
Alternatively, it is described to judge whether include the word in the word storehouse, including:
Traversal lookup is carried out in the first word storehouse, judges whether include the word in the first word storehouse, it is described
Include in first word storehouse and described currently browse the word that user inquired about when reading the foreign language literature;If described first
Word storehouse includes the word, it is determined that the word storehouse includes the word;
Traversal lookup is carried out in the second word storehouse, judges whether include the word in the second word storehouse, it is described
Include the whole words for currently browsing and being inquired about during user's multiple foreign language literatures of reading in second word storehouse;If described
Two word storehouses include the word, it is determined that the word storehouse includes the word.
Alternatively, the translation information of the display word, including:
The translation information of the word is shown on the pre-configured orientation of the display location;Or,
The label information of the translation information is shown on the pre-configured orientation of the display location, when detecting the mark
During the clicking operation of information, the translation information is shown on the pre-configured orientation.
Alternatively, methods described also includes:
For each word included in the text information, time that the word is translated information flag is obtained
Number;
If the number that the word is translated information flag is more than default value, the translation letter of the word is not shown
Breath.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of lexical translation device, described device include:
Matching module, for when foreign language literature is shown on screen, it is determined that the word to match with currently browsing user
Storehouse, include in the word storehouse and described currently browse multiple words that user inquired about;
Word judge module, for each word for being included in specified word information, judge in the word storehouse
Whether the word is included, and the specified word information refers to the information on currently displayed screen;
Acquisition module, if including the word for the word storehouse, obtain translation information and the institute of the word
Display location of the predicate language on current screen;
Display module, for the display location based on the word on current screen, show that the translation of the word is believed
Breath.
Alternatively, the matching module, for obtaining the current face information for browsing user, the face information is led to
Cross camera to it is described it is current browse user and carry out recognition of face obtain;Judge whether work as in the face information of storage comprising described
Before browse the face information of user;If including the face information in the face information of storage, the face information pair is obtained
The word storehouse answered, word storehouse corresponding to the face information is defined as and the current word storehouse for browsing user and matching.
Alternatively, the matching module, if for detecting account register, the log-on message currently inputted is judged
Whether matched with the log-on message pre-set;If the log-on message currently inputted matches with the log-on message pre-set,
Whether the word storehouse for judging to match with current login account belongs to same user;If the word storehouse matched with current login account
Same user is belonged to, then is defined as in the word storehouse and the current word storehouse for browsing user and matching.
Alternatively, described device also includes:
The acquisition module, for when the selected operation of any word in detecting to the foreign language literature, obtaining choosing
Determine the display location of the translation information, the selected word of word on current screen;
The display module, for the display location based on the selected word on current screen, show described selected
The translation information of word;
Add module, for the selected word to be added to and the current first word storehouse for browsing user and matching
In, include in the first word storehouse and described currently browse the word that user inquired about when reading the foreign language literature.
Alternatively, described device also includes:
The add module, it is additionally operable to the selected word being added to and current second word for browsing user and matching
In repertorie, the whole words for currently browsing and being inquired about during user's multiple foreign language literatures of reading are included in the second word storehouse
Language;
Inquiry times judge module, for for each word in the second word storehouse, judging the word quilt
Whether the number of inquiry exceedes default value;
Module is removed, if exceeding the default value for the number that the word is queried, in second word
The word is removed in storehouse.
Alternatively, the word judge module, for carrying out traversal lookup in the first word storehouse, first word is judged
Whether include the word in repertorie, include in the first word storehouse and described current browse user and reading the foreign language text
The word inquired about when offering;If the first word storehouse includes the word, it is determined that the word storehouse includes institute's predicate
Language;Traversal lookup is carried out in the second word storehouse, judges whether include the word, second word in the second word storehouse
Include the whole words for currently browsing and being inquired about during user's multiple foreign language literatures of reading in repertorie;If second word
Storehouse includes the word, it is determined that the word storehouse includes the word.
Alternatively, the display module, for showing the translation of the word on the pre-configured orientation of the display location
Information;Or, the label information of the translation information is shown on the pre-configured orientation of the display location, when detecting the mark
During the clicking operation of information, the translation information is shown on the pre-configured orientation.
Alternatively, described device also includes:
Number acquisition module is marked, for for each word included in the text information, obtaining institute's predicate
Language is translated the number of information flag;
The display module, if the number that information flag is translated for the word is more than default value, do not show
The translation information of the word.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of lexical translation device, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:When foreign language literature is shown on screen, it is determined that with currently browsing user's phase
The word storehouse of matching, include in the word storehouse and described currently browse multiple words that user inquired about;For specified word
Each word included in information, judge whether include the word in the word storehouse, the specified word information refers to
Information on currently displayed screen;If the word storehouse includes the word, obtain the word translation information and
Display location of the word on current screen;Display location based on the word on current screen, display institute predicate
The translation information of language.
The technical scheme that the embodiment of the present disclosure provides can include the following benefits:
When foreign language literature is shown on screen, it is determined that the word storehouse to match with currently browsing user, in the word storehouse
Include and currently browse multiple words that user inquired about;For each word included in specified word information, if word
Storehouse includes the word, then obtains translation information and display location of the word on current screen of the word;Based on the word
Display location of the language on current screen, the translation information of the word is shown, can be automatic due in user's reading foreign language document
Word storehouse according to not familiar word is stored carries out translation mark to document, so believing without user in the translation for not remembering the word
Repeat to inquire about the word before breath, it is time saving and energy saving, it is more intelligent and easy.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of lexical translation method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of lexical translation method according to an exemplary embodiment.
Fig. 3 is the block diagram of the first lexical translation device according to an exemplary embodiment.
Fig. 4 is the block diagram of second of 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 a kind of block diagram of lexical translation device according to an exemplary embodiment.
Pass through above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings
It is not intended to limit the scope of disclosure design by any mode with word description, but is by reference to specific embodiment
Those skilled in the art illustrate the concept of the disclosure.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of lexical translation method according to an exemplary embodiment, as shown in figure 1, word
Interpretation method is used in terminal, comprises the following steps.
In a step 101, when foreign language literature is shown on screen, it is determined that the word to match with currently browsing user
Storehouse.
Wherein, include in word storehouse and currently browse multiple words that user inquired about.
In a step 102, whether for each word included in specified word information, including in grammatical term for the character repertorie should
Word;If word storehouse includes the word, following step 103 is performed.
Wherein, specified word information refers to the information on currently displayed screen.
In step 103, if word storehouse includes the word, obtain the word translation information and the word current
Display location on screen.
At step 104, the display location based on the word on current screen, the translation information of word is shown.
The method that the embodiment of the present disclosure provides, when foreign language literature is shown on screen, it is determined that with currently browsing user's phase
The word storehouse of matching, include in the word storehouse and currently browse multiple words that user inquired about;For in specified word information
Comprising each word, if word storehouse includes the word, the translation information and the word that obtain the word shield currently
Display location on curtain;Display location based on the word on current screen, show the translation information of the word, due to
During the reading foreign language document of family, translation mark can be carried out to document automatically according to the word storehouse for storing not familiar word, so need not use
Family repeats to inquire about the word before the translation information of the word is not remembered, time saving and energy saving, more intelligence and simplicity.
Optionally it is determined that the word storehouse to match with currently browsing user, including:
The current face information for browsing user is obtained, face information browses user's progress face knowledge by camera to current
Do not obtain;
Whether judge in the face information of storage comprising the face information for currently browsing user;
If including face information in the face information of storage, word storehouse corresponding to face information is obtained, by face information
Corresponding word storehouse is defined as and currently browses the word storehouse that user matches.
Optionally it is determined that the word storehouse to match with currently browsing user, including:
If detecting account register, the log-on message for judging currently to input whether with the log-on message that pre-sets
Matching;
If the log-on message currently inputted matches with the log-on message pre-set, judgement matches with current login account
Word storehouse whether belong to same user;
If the word storehouse matched with current login account belongs to same user, by the word storehouse be defined as with it is current clear
The word storehouse that the user that lookes at matches.
Alternatively, this method also includes:
When the selected operation of any word in detecting to foreign language literature, obtain the translation information of selected word, select
Display location of the word on current screen;
Display location based on selected word on current screen, show the translation information of selected word;
Selected word is added in the first word storehouse matched with currently browsing user, wherein, the first word storehouse Zhong Bao
Include and currently browsed the word that user inquired about in reading foreign language document.
Alternatively, after the translation information for showing selected word, this method also includes:
Selected word is added in the second word storehouse matched with currently browsing user, wherein, the second word storehouse Zhong Bao
The current whole words for browsing and being inquired about during user's multiple foreign language literatures of reading are included;
For each word in the second word storehouse, judge whether the number that the word is queried exceedes default value;
If the number that the word is queried exceedes default value, the word is removed in the second word storehouse.
Alternatively, the word whether is included in grammatical term for the character repertorie, including:
Traversal lookup is carried out in the first word storehouse, judges whether include the word in the first word storehouse, wherein, the first word
Include in repertorie and currently browse the word that user inquired about in reading foreign language document;If the first word storehouse includes the word
Language, it is determined that word storehouse includes the word;
Traversal lookup is carried out in the second word storehouse, judges whether include the word in the second word storehouse, wherein, the second word
Include the current whole words for browsing and being inquired about during user's multiple foreign language literatures of reading in repertorie;If the second word storehouse includes
The word, it is determined that word storehouse includes the word.
Alternatively, the translation information of the word is shown, including:
The translation information of the word is shown on the pre-configured orientation of display location;Or,
The label information of translation information is shown on the pre-configured orientation of display location, when the click for detecting label information is grasped
When making, translation information is shown on pre-configured orientation.
Alternatively, this method also includes:
For each word included in text information, the number that the word is translated information flag is obtained;
If the number that the word is translated information flag is more than default value, the translation information of the word is not shown.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the disclosure, herein no longer
Repeat one by one.
Fig. 2 is a kind of flow chart of lexical translation method according to an exemplary embodiment.As shown in Fig. 2 the word
Language interpretation method is applied in terminal, comprises the following steps.
In step 201, when foreign language literature is shown on screen, user's progress authentication is browsed to current, it is determined that
The word storehouse to match with currently browsing user.
In the disclosed embodiments, the document reading software with interpretative function can be installed in terminal, for example will can be translated
Software uses as a plug-in unit, and such document reading software can not merely provide document display function, may also provide word and turns over
Translate function.By setting translation switch on the display page of document reading software, user can be neatly selected translation information
Display or shielding.User can open foreign language literature by the document ocr software so that the content of the foreign language literature is shown in
On the screen of the terminal, user is facilitated to be read.That is, when foreign language literature is shown on screen, user is being characterized now just
Reading the foreign language literature.Wherein, user can open foreign language literature, such as smart mobile phone, pen by various types of terminals
Remember sheet, tablet personal computer etc., the embodiment of the present disclosure is limited without specific this, it is only necessary to ensures that various types of terminals are mounted on
The document ocr software.
Wherein, word storehouse is taking human as dimension, and each user corresponds at least one first word storehouse and second word
Repertorie.Wherein, the first word storehouse, which includes, currently browses the word that user inquired about when reading the foreign language literature.It is if current clear
User is look at during the foreign language literature is read, encounters not familiar word, can be right by taking word or drawing the modes such as word
The not familiar word is inquired about, and the word is added in the first word storehouse.If not storing current user is browsed to should be outer
First word storehouse of document, the i.e. user word inquired about in the foreign language literature for the first time, then established for the user to should
First word storehouse of foreign language literature.Include in second word storehouse and looked into before currently browsing user when reading multiple foreign language literatures
The whole words ask.Currently user is browsed when word inquiry is carried out, can be directly defeated by the document ocr software
Enter word to be inquired about, or by carrying out taking word to the foreign language document currently read or drawing word operation to inquire about, and will inquiry
Word be added in the second word storehouse.
If currently browsing user by authentication, terminal will determine the word storehouse to match with the user, the word
Include multiple word information that the user inquired about in repertorie.Such as comprising the word inquired about in itself and word is corresponding
Translation information, certainly, also may not include translation information corresponding to word, the embodiment of the present disclosure is limited without specific this.
Wherein, the word in word storehouse can be that the users such as word, phrase inquired about and obtain the content of corresponding translation information.
Wherein, terminal can be browsed user and carry out authentication by following two ways to current, it is determined that with it is current clear
The word storehouse that the user that lookes at matches:
First way, obtain the current face information for browsing user;Judge whether to include in the face information of storage and work as
Before browse the face information of user;If including the face information in the face information of storage, obtain corresponding to the face information
Word storehouse, the word storehouse that word storehouse corresponding to the face information is defined as matching with currently browsing user.
For conventional translation software, generally there is provided login account, and then pass through the login name of setting and close
Code is verified to user identity, to determine whether to authorize other people to log in using the account information for user or user.Pin
To first way, if terminal is not detected by account register, recognition of face mode is taken to carry out authentication to user.
If terminal detects account register, and the account is by more personal uses, then still takes recognition of face mode to user
Carry out authentication.
Because same account can be used to be logged in for multiple users, then same account can correspond to one or more
The word storehouse of user.When terminal detects account register, it may be possible to know that any individual of log-on message (possesses difference
Face information) pass through the account reading foreign language document.And in order to differentiate the word storehouse of each user, terminal can be directed to different
Face information establishes corresponding word storehouse.Even if so multiple users are logged in using same account, then due to storage
Face information and the corresponding relation in word storehouse, the word that match with currently browsing user can be also determined according to face information
Storehouse.
Wherein, face information is obtained by camera to currently browsing user's progress recognition of face.In order to guarantee standard
True finds the word storehouse matched with the user, to show lexical translation that the user once inquired about in the foreign language literature
Information.When currently browsing user's reading foreign language document, terminal obtains the current face information for browsing user by recognition of face,
If the face information occurs for the first time, the face information is stored, meanwhile, establish word corresponding with the face information
Storehouse.If the face information is not to occur for the first time, the face information is compared terminal with the face information stored before;
If with the presence of identical face information, then it is assumed that the face information is included in the face information of storage, and the identical face is believed
Word storehouse corresponding to breath is defined as and currently browses the word storehouse that user matches.
The second way, if detecting account register, whether the log-on message for judging currently to input with setting in advance
The log-on message matching put;If the log-on message currently inputted matches with the log-on message pre-set, judge with currently stepping on
Whether the word storehouse of record account matching belongs to same user;If the word storehouse matched with current login account belongs to same use
Family, then word storehouse is defined as to the word storehouse to match with currently browsing user.
Wherein, the log-on message pre-set refers to the note such as the name on account that user sets in register account number and account number cipher
Volume information, the log-on message can be stored.When user carries out account register, terminal can be currently defeated by user
The log-on message entered is compared with the log-on message stored;If compare successfully, it is determined that the log-on message that currently inputs with it is pre-
The log-on message matching first set, it is allowed to which user logs in.
If an account is used by same person always, the account just corresponds to a face information, and then also only corresponding
One the first word storehouse and a second word storehouse, if so detecting that the word storehouse matched with current login account only includes one
First word storehouse corresponding to individual face information and a second word storehouse, then it is determined that the word storehouse matched with current login account
Same user is belonged to, without carrying out recognition of face again, directly the word storehouse is defined as with currently browsing what user matched
Word storehouse.
In step 202, for each word included in specified word information, judge whether include in the word storehouse
The word;If the word storehouse includes the word, following step 203 is performed.
Wherein, specified word information refers to the information on currently displayed screen, can be in one page in the foreign language literature
Hold.In the disclosed embodiments, terminal can be remembered by the document ocr software to the not familiar word inquired about before user
Record and storage, form word storehouse.So in user to not familiar word familiar with preceding, whenever detecting that user read by the document
When software carries out foreign language literature reading, the word in word storehouse whether can be included in the automatic decision foreign language literature;If this is outer
Document includes the word in word storehouse, then the translation information of these words is marked automatically in subsequent process, side
Just user reads, the translation information without the same word of the repeated multiple times manual queries of user.And over time, user reads
Being continuously increased for content is read, the word in each user's equivalent repertorie will certainly constantly expand, and such user is outside reading
Can increasingly it facilitate in literary literature procedure, user manually carries out taking word or the operation of stroke word to decrease.Wherein, terminal
It can judge the word in specified word information whether is included in the word storehouse by following two aspects:
In a first aspect, carrying out traversal lookup in the first word storehouse, judge whether include the word in the first word storehouse;If
First word storehouse includes the word, it is determined that word storehouse includes the word.
Wherein, include in the first word storehouse and currently browse the word that user inquired about when reading the foreign language literature.When
So, in addition to taking the mode that traversal is searched, the modes such as conditional search can be also taken, the embodiment of the present disclosure is to this without specific
Limit.
Second aspect, traversal lookup is carried out in the second word storehouse, judge whether include the word in the second word storehouse, if
Second word storehouse includes the word, it is determined that word storehouse includes the word.
Include the current whole words for browsing and being inquired about during user's multiple foreign language literatures of reading in second word storehouse.Its
In, whole words for inquiring about, user had both been may refer to by taking word or drawing the selected word of word operation, user has been can also refer to and passes through
The word of translation box input, the embodiment of the present disclosure are limited without specific this.
In step 203, if including the word in the word storehouse, the translation information and the word that obtain the word are being worked as
Display location on forth screen.
Wherein, translation information refers to the information with another language performance word meaning.Which translation information specifically uses
Kind language performance is determined by the demand of user.For example the interpretative system that user needs is english translation, i.e., when user reads an English
During document, it is desirable to obtain Chinese explanation, the translation information is exactly the Chinese implication of English word.Wherein, interpretative system can be by
User presets.
After the translation information of word is got, in order that user is it can be better seen that translation letter corresponding to the word
Breath at the peripheral position of the word, it is necessary to show its translation information.And display location of the word on current screen is obtained,
The display location of the translation information of the word can accurately be positioned.Wherein, the document ocr software is carried out in order to facilitate user
Read, the one page of content of the foreign language literature is generally completely shown on current screen, so the word is on current screen
Display location just refers to display location of the word in foreign language literature in corresponding page.Wherein, display location can use coordinate
Mode is labeled.For example using the upper left corner of terminal screen or the upper right corner as the origin of coordinates, document reading software is according to the coordinate
Origin positions the positional information of each word on current screen one by one, and saves, the embodiment of the present disclosure to this without
It is specific to limit.If it should be noted that do not show the content of complete page in the foreign language literature on current screen intactly, than
Content such as two adjacent pages shows a part, then need to obtain the word in the corresponding display location shown on the page.
In step 204, the display location according to the word on current screen, the translation information of the word is shown.
After display location of the word on current screen is determined, this can be shown by following two ways
The translation information of word:
First way, the translation information of the word is shown on the pre-configured orientation of the display location.
In the word that user inquired about currently is browsed, the fairly simple word of the meaning of a word, the simple word pair may be included
Answer the content of translation information can be seldom, for example Chinese corresponding to " cat ", " dog " etc. is meant that " cat ", " dog ".In this kind of situation
Under, the translation information of the word can be directly displayed on the pre-configured orientation of the display location, it is outer to this without influenceing the user
The reading of the other contents of document.
The second way, the label information of translation information is shown on the pre-configured orientation of the display location, marked when detecting
When remembering the clicking operation of information, the translation information of the word is shown on pre-configured orientation.
If desired the translation information of the word shown is very complicated, for example the translation information of the word includes the word each
Example sentence etc. corresponding to the different implications and corresponding meaning in field, then show that the translation information of the word will on pre-configured orientation
Influence reading of the user to the other contents of the foreign language literature.Now, it is possible to show the label information of the translation information.Its
In, label information can be a summary info of the translation information, for example the translation information is in a kind of implication in a field,
It can also be only one and represent that the word has the mark of translation information.When user clicks on the label information, the word is shown
Translation information.
Wherein, pre-configured orientation can be preset by user, can be display location top, lower section, the upper right side equipotential
Put, the embodiment of the present disclosure is limited without specific this.
After the translation information of the word is shown, terminal can record the number that the word is translated information flag;If
The number that the word is translated information flag is more than default value, then does not show the translation information of the word.Wherein, default value
It can be that terminal is preset, can also be set by user.For example preset times can be 20 or 30 etc., the embodiment of the present disclosure
This is limited without specific.
It should be noted that in the word preliminary to foreign language literature progress according to word storehouse corresponding to user is currently browsed
Mark is outer, also not familiar word can may be also said to user comprising other in the foreign language literature, and these words just need user
Selected manually, the translation plug-in then installed by the document ocr software provides corresponding translation information, and passes through this article
Shelves ocr software is shown that detailed process is referring to following step 205 and step 206.
In step 205, when the selected operation of any word in detecting to foreign language literature, selected word is added to
In the word storehouse matched with currently browsing user.
Wherein, selected operation refers to that user chooses to the not labeled not familiar word shown on current screen, can
To be to carry out taking word to operate or draw word operation etc. by mouse or touch action, the specific mode embodiment of the present disclosure of choosing is to this
Limited without specific.
Wherein, when this is selected into word be added in the word storehouse of matching, the first word storehouse need to be respectively added to
In the second word storehouse.For the first word storehouse, the user is contained by carrying out selected action queries mistake to the foreign language literature
Whole words.Wherein, the word included in the first word storehouse only works to the foreign language literature, when judging specified word information
In each word for including, if during included in word storehouse, only the user to should foreign language literature the first word storehouse
Searched with the second word storehouse.If user repeatedly reads the foreign language literature, and all known to the word in the foreign language literature
It to that need not be translated, then can be prompted to user, be deleted automatically after message is deleted in the confirmation for receiving user,
Or user manually operates and deletes the first word storehouse;Or, after in the first word storehouse establishing the regular period, it is automatically deleted this
First word storehouse.Wherein, the regular period can be preset by user, such as 1 month or 2 months etc., the embodiment of the present disclosure pair
This is limited without specific.If detect the user not to should foreign language literature the first word storehouse, i.e., before the user not
Operation is selected excessively to the foreign language literature, then create the user to should foreign language literature the first word storehouse.Need what is illustrated
It is in the disclosed embodiments, why for each foreign language literature to establish a first word storehouse, if being because user's needs
Repeatedly read a foreign language literature, then, can be direct without being searched in the second word storehouse including the not familiar word of magnanimity
Targetedly searched and marked in the first word storehouse corresponding with this foreign language literature, it is time saving and laborsaving.
For the second word storehouse, the word that user inquired about each time, either inputted by translation box, still passed through
Take word or draw what word operation was selected, be both needed to be added to the second word storehouse, the vocabulary that so just can constantly expand in the second word storehouse
Amount, so that user is more laborsaving during reading foreign language document, without carrying out multiple manual queries.In addition,
The number that each word is queried in the second word storehouse can be also recorded in the embodiment of the present disclosure, and judges that the word is queried
Number whether exceed default value;If the number that the word is queried exceedes default value, removed in the second word storehouse
The word.The number that the word is queried is more, illustrates that the marked number of the word is more, more familiar for user.
When the number being queried exceedes default value, show user known to the word, it is deleted in the second word storehouse.Its
In, default value can be preset by user, such as 10 or 20 etc., the embodiment of the present disclosure is limited without specific this.
In step 206, translation information and the selected display of the word on current screen of the selected word are obtained
Position;Display location of the word on current screen is selected based on this, shows the translation information of the selected word.
The step is with showing that the implementation of translation information is consistent step 204 in the embodiment of the present disclosure Suo Shi, herein no longer
Repeat.
After the translation information of the word is shown, terminal can record the number that the word is translated information flag;If
The number that the word is translated information flag is more than default value, then subsequently will no longer be shown the translation information of the word.Such as
Same word repeats repeatedly in the foreign language literature, then after the word occurrence number reaches default value, just gives tacit consent to
User has been well known the word, no longer carries out translation mark to it.Wherein, default value can be that terminal is preset, and also may be used
To be set by user.For example preset times can be 20 or 30 etc., the embodiment of the present disclosure is limited without specific this.
The method that the embodiment of the present disclosure provides, when foreign language literature is shown on screen, it is determined that with currently browsing user's phase
The word storehouse of matching, include in the word storehouse and currently browse multiple words that user inquired about;For in specified word information
Comprising each word, if word storehouse includes the word, the translation information and the word that obtain the word shield currently
Display location on curtain;Display location based on the word on current screen, show the translation information of the word, due to
During the reading foreign language document of family, translation mark can be carried out to document automatically according to the word storehouse for storing not familiar word, so need not use
Family repeats to inquire about the word before the translation information of the word is not remembered, time saving and energy saving, more intelligence and simplicity.
Fig. 3 is a kind of block diagram of lexical translation device according to an exemplary embodiment.Reference picture 3, the device bag
Include 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 shown on screen, really
Determine and currently browse the word storehouse that user matches, include in word storehouse and currently browse multiple words that user inquired about;Word
Language judge module 302 is connected with acquisition module 303, for each word for being included in specified word information, grammatical term for the character
Whether word is included in repertorie, and specified word information refers to the information on currently displayed screen;Acquisition module 303 and display mould
Block 304 connects, if including word for word storehouse, obtains the display of the translation information and word of word on current screen
Position;Display module 304, for the display location based on word on current screen, show the translation information of word.
Alternatively, matching module, for obtaining the current face information for browsing user, face information is by camera to working as
Before browse user carry out recognition of face obtain;Whether judge in the face information of storage comprising the face letter for currently browsing user
Breath;If including face information in the face information of storage, word storehouse corresponding to face information is obtained, by corresponding to face information
Word storehouse is defined as and currently browses the word storehouse that user matches.
Alternatively, matching module, if for detecting account register, judge whether is the log-on message that currently inputs
Matched with the log-on message pre-set;If the log-on message currently inputted matches with the log-on message pre-set, judge
Whether the word storehouse matched with current login account belongs to same user;If the word storehouse ownership matched with current login account
In same user, then word storehouse is defined as to the word storehouse to match with currently browsing user.
Referring to Fig. 4, the device also includes:
Acquisition module, for when the selected operation of any word in detecting to foreign language literature, obtaining selected word
Translation information, selected display location of the word on current screen;
Display module, for the display location based on selected word on current screen, show that the translation of selected word is believed
Breath;
Add module 305, for selected word to be added in the first word storehouse matched with currently browsing user, first
Include in word storehouse and currently browse the word that user inquired about in reading foreign language document.
Referring to Fig. 5, the device also includes:
Add module, it is additionally operable to selected word being added in the second word storehouse matched with currently browsing user, second
Include the current whole words for browsing and being inquired about during user's multiple foreign language literatures of reading in word storehouse;
Inquiry times judge module 306, for for each word in the second word storehouse, judging what word was queried
Whether number exceedes default value;
Module 307 is removed, if exceeding default value for the number that word is queried, word is removed in the second word storehouse
Language.
Alternatively, word judge module, for carrying out traversal lookup in the first word storehouse, judge be in the first word storehouse
It is no including word, include in the first word storehouse and currently browse the word that user inquired about in reading foreign language document;If first
Word storehouse includes word, it is determined that word storehouse includes word;Traversal lookup is carried out in the second word storehouse, judges the second word
Whether include word in repertorie, include in the second word storehouse it is current browse inquired about when user reads multiple foreign language literatures it is complete
Portion's word;If the second word storehouse includes word, it is determined that word storehouse includes word.
Alternatively, display module, for showing the translation information of word on the pre-configured orientation of display location;Or, aobvious
Show the label information that translation information is shown on the pre-configured orientation of position, when detecting the clicking operation of label information, default
Translation information is shown in orientation.
Referring to Fig. 6, the device also includes:
Number acquisition module 308 is marked, for for each word included in text information, obtaining word and being turned over
Translate the number of information flag;
Display module, if the number that information flag is translated for word is more than default value, turning over for word is not shown
Translate information.
The device that the embodiment of the present disclosure provides, when foreign language literature is shown on screen, it is determined that with currently browsing user's phase
The word storehouse of matching, include in the word storehouse and currently browse multiple words that user inquired about;For in specified word information
Comprising each word, if word storehouse includes the word, the translation information and the word that obtain the word shield currently
Display location on curtain;Display location based on the word on current screen, show the translation information of the word, due to
During the reading foreign language document of family, translation mark can be carried out to document automatically according to the word storehouse for storing not familiar word, so need not use
Family repeats to inquire about the word before the translation information of the word is not remembered, time saving and energy saving, more intelligence and simplicity.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 7 is a kind of block diagram of lexical translation device 700 according to an exemplary embodiment.For example, device 700 can
To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, it is good for
Body equipment, personal digital assistant etc..
Reference picture 7, device 700 can include following one or more assemblies:Processing component 702, memory 704, power supply
Component 706, multimedia groupware 708, audio-frequency assembly 710, I/O (Input/Output, input/output) interface 712, sensor
Component 714, and communication component 716.
The integrated operation of the usual control device 700 of processing component 702, such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Processing component 702 can refer to including one or more processors 720 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing component 702 can include one or more modules, just
Interaction between processing component 702 and other assemblies.For example, processing component 702 can include multi-media module, it is more to facilitate
Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in device 700.These data are shown
Example includes the instruction of any application program or method for being operated on device 700, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as SRAM (Static Random Access Memory, static RAM), EEPROM
(Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable
Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM
(Programmable Read-Only Memory, programmable read only memory), and ROM (Read-Only Memory, it is read-only to deposit
Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 700.
Multimedia groupware 708 is included in the screen of one output interface of offer between described device 700 and user.One
In a little embodiments, screen can include LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch
Panel, touch panel).If screen includes touch panel, screen may be implemented as touch-screen, to receive from user's
Input signal.Touch panel includes one or more touch sensors with the gesture on sensing touch, slip and touch panel.Institute
Stating touch sensor can the not only border of sensing touch or sliding action, but also detect and the touch or slide phase
The duration and pressure of pass.In certain embodiments, multimedia groupware 708 includes a front camera and/or rearmounted taken the photograph
As head.When device 700 is in operator scheme, during such as screening-mode or video mode, front camera and/or rear camera can
With the multi-medium data outside reception.Each front camera and rear camera can be a fixed optical lens systems
Or there is focusing and optical zoom capabilities.
Audio-frequency assembly 710 is configured as output and/or input audio signal.For example, audio-frequency assembly 710 includes a MIC
(Microphone, microphone), when device 700 is in operator scheme, such as call model, logging mode and speech recognition mode
When, microphone is configured as receiving external audio signal.The audio signal received can be further stored in memory 704
Or sent via communication component 716.In certain embodiments, audio-frequency assembly 710 also includes a loudspeaker, for exporting audio
Signal.
I/O interfaces 712 provide interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented
Estimate.For example, sensor cluster 714 can detect opening/closed mode of equipment 700, the relative positioning of component, such as component
For the display and keypad of device 700, sensor cluster 714 can be with the position of 700 1 components of detection means 700 or device
Put change, the existence or non-existence that user contacts with device 700, the orientation of device 700 or acceleration/deceleration and the temperature of device 700
Change.Sensor cluster 714 can include proximity transducer, be configured in no any physical contact near detection
The presence of object.Sensor cluster 714 can also include optical sensor, such as CMOS (Complementary Metal Oxide
Semiconductor, CMOS) or CCD (Charge-coupled Device, charge coupled cell) image biography
Sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 714 can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device
700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, also including NFC, (Near Field Communication, near field leads to the communication component 716
Letter) module, to promote junction service.For example, RFID (Radio Frequency can be based in NFC module
Identification, radio frequency identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) skill
Art, UWB (Ultra Wideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technologies and other technologies are realized.
In the exemplary embodiment, device 700 can be by one or more ASIC (Application Specific
Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, at data signal
Manage device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable
Logic Device, PLD), FPGA) (Field Programmable Gate Array, field programmable gate
Array), controller, microcontroller, microprocessor or other electronic components realize, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 704 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 720 of device 700.For example,
The non-transitorycomputer readable storage medium can be ROM, RAM (Random Access Memory, random access memory
Device), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and light data deposit
Store up equipment etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device performs so that mobile terminal is able to carry out a kind of lexical translation method, and methods described includes:
When foreign language literature is shown on screen, it is determined that the word storehouse to match with currently browsing user, word storehouse Zhong Bao
Include and currently browsed multiple words that user inquired about;
For each word included in specified word information, whether include the word in grammatical term for the character repertorie, specify text
Word information refers to the information on currently displayed screen;
If word storehouse includes the word, translation information and display of the word on current screen of the word are obtained
Position;
Display location based on the word on current screen, show the translation information of word.
Optionally it is determined that the word storehouse to match with currently browsing user, including:
The current face information for browsing user is obtained, face information browses user's progress face knowledge by camera to current
Do not obtain;
Whether judge in the face information of storage comprising the face information for currently browsing user;
If including face information in the face information of storage, word storehouse corresponding to face information is obtained, by face information
Corresponding word storehouse is defined as and currently browses the word storehouse that user matches.
Optionally it is determined that the word storehouse to match with currently browsing user, including:
If detecting account register, the log-on message for judging currently to input whether with the log-on message that pre-sets
Matching;
If the log-on message currently inputted matches with the log-on message pre-set, judgement matches with current login account
Word storehouse whether belong to same user;
If the word storehouse matched with current login account belongs to same user, word storehouse is defined as with currently browsing
The word storehouse that user matches.
Alternatively, this method also includes:
When the selected operation of any word in detecting to foreign language literature, obtain the translation information of selected word, select
Display location of the word on current screen;
Display location based on selected word on current screen, show the translation information of selected word;
Selected word is added in the first word storehouse matched with currently browsing user, includes in the first word storehouse and works as
Before browse the word that user inquired about in reading foreign language document.
Alternatively, after the translation information for showing selected word, this method also includes:
Selected word is added in the second word storehouse matched with currently browsing user, includes in the second word storehouse and works as
Before browse whole words for inquiring about when user reads multiple foreign language literatures;
For each word in the second word storehouse, judge whether the number that word is queried exceedes default value;
If the number that word is queried exceedes default value, word is removed in the second word storehouse.
Alternatively, word whether is included in grammatical term for the character repertorie, including:
Traversal lookup is carried out in the first word storehouse, judges whether include word in the first word storehouse, in the first word storehouse
Include and currently browse the word that user inquired about in reading foreign language document;If the first word storehouse includes word, it is determined that
Word storehouse includes word;
Traversal lookup is carried out in the second word storehouse, judges whether include word in the second word storehouse, in the second word storehouse
Include the current whole words for browsing and being inquired about during user's multiple foreign language literatures of reading;If the second word storehouse includes word,
Then determine that word storehouse includes word.
Alternatively, the translation information of word is shown, including:
The translation information of word is shown on the pre-configured orientation of display location;Or,
The label information of translation information is shown on the pre-configured orientation of display location, when the click for detecting label information is grasped
When making, translation information is shown on pre-configured orientation.
Alternatively, this method also includes:
For each word included in text information, the number that word is translated information flag is obtained;
If the number that word is translated information flag is more than default value, the translation information of word is not shown.
The non-transitorycomputer readable storage medium that the embodiment of the present disclosure provides, when foreign language literature is shown on screen
When, it is determined that the word storehouse to match with currently browsing user, include in the word storehouse it is current browse user inquired about it is multiple
Word;For each word included in specified word information, if word storehouse includes the word, turning over for the word is obtained
Translate information and display location of the word on current screen;Display location based on the word on current screen, display should
The translation information of word, can be automatically according to storing the word storehouse of not familiar word to document due in user's reading foreign language document
Translation mark is carried out, so repeating to inquire about the word before the translation information of the word is not remembered without user, is saved
Shi Shengli, more intelligence and simplicity.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (18)
- A kind of 1. lexical translation method, it is characterised in that methods described includes:When foreign language literature is shown on screen, it is determined that the word storehouse to match with currently browsing user, the word storehouse Zhong Bao Include and described currently browsed multiple words that user inquired about;For each word included in specified word information, judge whether include the word in the word storehouse, it is described Specified word information refers to the information on currently displayed screen;If the word storehouse includes the word, obtain the word translation information and the word on current screen Display location;Display location based on the word on current screen, show the translation information of the word.
- 2. according to the method for claim 1, it is characterised in that the determination is with currently browsing the word that user matches Storehouse, including:Obtain the current face information for browsing user, the face information current browsed user and entered by camera to described Row recognition of face obtains;Whether judge in the face information of storage comprising the current face information for browsing user;If including the face information in the face information of storage, word storehouse corresponding to the face information is obtained, by described in Word storehouse corresponding to face information is defined as and the current word storehouse for browsing user and matching.
- 3. according to the method for claim 1, it is characterised in that the determination is with currently browsing the word that user matches Storehouse, including:If detecting account register, the log-on message for judging currently to input whether with the log-on message that pre-sets Match somebody with somebody;If the log-on message currently inputted matches with the log-on message pre-set, the word matched with current login account is judged Whether repertorie belongs to same user;If the word storehouse matched with current login account belongs to same user, by the word storehouse be defined as with it is described current Browse the word storehouse that user matches.
- 4. according to the method for claim 1, it is characterised in that methods described also includes:When the selected operation of any word in detecting to the foreign language literature, the translation information, described of selected word is obtained Selected display location of the word on current screen;Display location based on the selected word on current screen, show the translation information of the selected word;The selected word is added to and currently browsed with described in the first word storehouse that user matches, in the first word storehouse Include and described currently browse the word that user inquired about when reading the foreign language literature.
- 5. method according to claim 4, it is characterised in that described after the translation information of the display selected word Method also includes:The selected word is added to and currently browsed with described in the second word storehouse that user matches, in the second word storehouse Include the whole words for currently browsing and being inquired about during user's multiple foreign language literatures of reading;For each word in the second word storehouse, judge whether the number that the word is queried exceedes present count Value;If the number that the word is queried exceedes the default value, the word is removed in the second word storehouse.
- 6. according to the method for claim 1, it is characterised in that described to judge whether include institute's predicate in the word storehouse Language, including:Traversal lookup is carried out in the first word storehouse, judges whether include the word in the first word storehouse, described first Include in word storehouse and described currently browse the word that user inquired about when reading the foreign language literature;If first word Storehouse includes the word, it is determined that the word storehouse includes the word;Traversal lookup is carried out in the second word storehouse, judges whether include the word in the second word storehouse, described second Include the whole words for currently browsing and being inquired about during user's multiple foreign language literatures of reading in word storehouse;If second word Repertorie includes the word, it is determined that the word storehouse includes the word.
- 7. according to the method for claim 1, it is characterised in that the translation information of the display word, including:The translation information of the word is shown on the pre-configured orientation of the display location;Or,The label information of the translation information is shown on the pre-configured orientation of the display location, when detecting the label information Clicking operation when, the translation information is shown on the pre-configured orientation.
- 8. according to the method for claim 1, it is characterised in that methods described also includes:For each word included in the text information, the number that the word is translated information flag is obtained;If the number that the word is translated information flag is more than default value, the translation information of the word is not shown.
- 9. a kind of lexical translation device, it is characterised in that described device includes:Matching module, for when foreign language literature is shown on screen, it is determined that the word storehouse to match with currently browsing user, institute Include in predicate repertorie and described currently browse multiple words that user inquired about;Word judge module, for each word for being included in specified word information, judge in the word storehouse whether Including the word, the specified word information refers to the information on currently displayed screen;Acquisition module, if including the word for the word storehouse, obtain the translation information and institute's predicate of the word Display location of the language on current screen;Display module, for the display location based on the word on current screen, show the translation information of the word.
- 10. device according to claim 9, it is characterised in that the matching module, described currently use is browsed for obtaining The face information at family, the face information by camera to it is described it is current browse user and carry out recognition of face obtain;Judgement is deposited Whether the current face information for browsing user is included in the face information of storage;If include the people in the face information of storage Face information, then obtain word storehouse corresponding to the face information, by word storehouse corresponding to the face information be defined as with it is described Currently browse the word storehouse that user matches.
- 11. device according to claim 9, it is characterised in that the matching module, if for detecting that account logs in behaviour Make, then whether the log-on message for judging currently to input matches with the log-on message pre-set;If the log-on message currently inputted Matched with the log-on message pre-set, then judge whether the word storehouse matched with current login account belongs to same user; If the word storehouse matched with current login account belongs to same user, the word storehouse is defined as currently browsing with described The word storehouse that user matches.
- 12. device according to claim 9, it is characterised in that described device also includes:The acquisition module, for when the selected operation of any word in detecting to the foreign language literature, obtaining selected word The display location of the translation information of language, the selected word on current screen;The display module, for the display location based on the selected word on current screen, show the selected word Translation information;Add module, currently browsed for the selected word to be added to described in the first word storehouse that user matches, institute State to include in the first word storehouse and described currently browse the word that user inquired about when reading the foreign language literature.
- 13. device according to claim 12, it is characterised in that described device also includes:The add module, it is additionally operable to the selected word being added to and the current second word storehouse for browsing user and matching In, the whole words for currently browsing and being inquired about during user's multiple foreign language literatures of reading are included in the second word storehouse;Inquiry times judge module, for for each word in the second word storehouse, judging that the word is queried Number whether exceed default value;Module is removed, if exceeding the default value for the number that the word is queried, in the second word storehouse Remove the word.
- 14. device according to claim 9, it is characterised in that the word judge module, in the first word storehouse Traversal lookup is carried out, judges whether include the word in the first word storehouse, is included in the first word storehouse described Currently browse the word that user inquired about when reading the foreign language literature;If the first word storehouse includes the word, Then determine that the word storehouse includes the word;Traversal lookup is carried out in the second word storehouse, judges the second word storehouse In whether include the word, current browse when user reads multiple foreign language literatures is included in the second word storehouse and is looked into The whole words ask;If the second word storehouse includes the word, it is determined that the word storehouse includes the word.
- 15. device according to claim 9, it is characterised in that the display module, in the pre- of the display location If the translation information of the word is shown in orientation;Or, the translation information is shown on the pre-configured orientation of the display location Label information, when detecting the clicking operation of the label information, the translation information is shown on the pre-configured orientation.
- 16. device according to claim 9, it is characterised in that described device also includes:Number acquisition module is marked, for for each word included in the text information, obtaining the word quilt The number of translation information mark;The display module, if the number that information flag is translated for the word is more than default value, do not show described The translation information of word.
- A kind of 17. lexical translation device, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Wherein, the processor is configured as:When foreign language literature is shown on screen, it is determined that matching with currently browsing user Word storehouse, include in the word storehouse and described currently browse multiple words that user inquired about;For specified word information In each word for including, judge whether include the word in the word storehouse, the specified word information refers to display Information on current screen;If the word storehouse includes the word, the translation information of the word and described is obtained Display location of the word on current screen;Display location based on the word on current screen, show the word Translation information.
- 18. a kind of computer-readable recording medium, instruction is stored with the computer-readable recording medium, it is characterised in that The step of instruction realizes any one method described in claim 1-8 when being executed by processor.
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 CN105138519A (en) | 2015-12-09 |
CN105138519B true 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) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018018333A1 (en) * | 2016-07-24 | 2018-02-01 | 张鹏华 | Word lookup method when reading english and reading system |
WO2018018332A1 (en) * | 2016-07-24 | 2018-02-01 | 张鹏华 | Information prompt method in word lookup 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 |
CN107765949B (en) * | 2017-10-30 | 2019-08-30 | 广东小天才科技有限公司 | Display method of word paraphrasing frame and electronic equipment |
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 (3)
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 |
CN104572635A (en) * | 2015-01-20 | 2015-04-29 | 郑州市中业科技有限公司 | Wearable translating device and control method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2774053A4 (en) * | 2011-09-09 | 2015-11-18 | Google Inc | User interface for translation webpage |
-
2015
- 2015-07-31 CN CN201510463420.8A patent/CN105138519B/en active Active
Patent Citations (3)
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 |
CN104572635A (en) * | 2015-01-20 | 2015-04-29 | 郑州市中业科技有限公司 | Wearable translating device and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN105138519A (en) | 2015-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105138519B (en) | Lexical translation method and apparatus | |
CN104735243B (en) | Contact list displaying method and device | |
CN106020784A (en) | Method and device for displaying application message, and terminal | |
CN106599070B (en) | Method and device for acquiring information in first application program and terminal equipment | |
CN106648575A (en) | Language setting method and apparatus | |
CN106202223A (en) | Content collection method, device and for collecting the device of content in application program | |
CN104238912A (en) | Application control method and application control device | |
CN104571709B (en) | The processing method of mobile terminal and virtual key | |
CN106126632A (en) | Recommend method and device | |
WO2022022566A1 (en) | Graphic code identification method and apparatus and electronic device | |
CN107562268A (en) | Operation performs method, apparatus and storage medium | |
CN105447109A (en) | Key word searching method and apparatus | |
CN104602275B (en) | Client identification module SIM card switching method and device | |
CN105550643A (en) | Medical term recognition method and device | |
CN104391878A (en) | Book search method and book search device | |
CN105786944A (en) | Method and device for automatically turning pages of browser | |
CN105094357A (en) | Input method and device as well as electronic equipment | |
CN106980409A (en) | Input control method and device | |
CN105630749A (en) | Extraction method and device of digital information | |
CN106130873A (en) | Information processing method and device | |
CN107861637A (en) | Character input method, device and computer-readable recording medium | |
CN107590137A (en) | Interpretation method, device and computer-readable recording medium | |
CN107402767A (en) | The method and apparatus for showing PUSH message | |
CN105117115B (en) | A kind of method and apparatus for showing electronic document | |
CN106339160A (en) | Browsing interactive processing 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 |