CN108595445A - Interpretation method, device and terminal - Google Patents

Interpretation method, device and terminal Download PDF

Info

Publication number
CN108595445A
CN108595445A CN201810368350.1A CN201810368350A CN108595445A CN 108595445 A CN108595445 A CN 108595445A CN 201810368350 A CN201810368350 A CN 201810368350A CN 108595445 A CN108595445 A CN 108595445A
Authority
CN
China
Prior art keywords
translation
phrases
language
control
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810368350.1A
Other languages
Chinese (zh)
Inventor
陈崇勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810368350.1A priority Critical patent/CN108595445A/en
Publication of CN108595445A publication Critical patent/CN108595445A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Abstract

The embodiment of the present application provides a kind of interpretation method, device and terminal.This method includes:Show the content page of third party application;When receiving the selection signal corresponding to the target words and phrases in content page, the page callback interface of call operation system is to show translation control;When receiving the first trigger signal corresponding to translation control, the translation result of target words and phrases is obtained;Show translation result.In the embodiment of the present application, by to third party application open page callback interface, and the translation control that simultaneously display operation system provides is obtained by the interface, if when user's reading page content, there are translation demands, it can be by breathing out above-mentioned translation control to the certain trigger operation of words and phrases to be translated, subsequent user, which triggers the operational controls, can obtain the translation result of words and phrases to be translated, translation is realized due to being not necessarily to switch between two application programs, operation when therefore can save translation needed for user promotes translation efficiency.

Description

Interpretation method, device and terminal
Technical field
The invention relates to field of terminal technology, more particularly to a kind of interpretation method, device and terminal.
Background technology
Currently, user's reading and browsing device, when reading the content in class application program or information class application program, it will usually In the presence of translation demand.
In the related art, it when there are translation demand, is selected from the read interface of some application program by user Words and phrases to be translated, and above-mentioned words and phrases to be translated are replicated;Terminal is answered under the triggering of user in front stage operation translation later With program, the words and phrases of duplication are affixed to above-mentioned translation application by user, and trigger interpretive order;Translation application according to The interpretive order obtains the corresponding translation result of above-mentioned words and phrases, and shows the translation result.
Since translation needs to switch in different application programs, the process is relatively complicated.
Invention content
A kind of interpretation method of the embodiment of the present application offer, device and terminal.The technical solution is as follows:
On the one hand, the embodiment of the present application provides a kind of interpretation method, the method includes:
It shows the content page of third party application, includes the word content for reading in the content page;
When receiving the selection signal corresponding to the target words and phrases in the content page, the page of call operation system Callback interface is to show translation control;
When receiving the first trigger signal corresponding to the translation control, the translation knot of the target words and phrases is obtained Fruit;
Show the translation result.
On the other hand, the embodiment of the present application provides a kind of translating equipment, and described device includes:
Page display module, the content page for showing third party application, comprising for readding in the content page The word content look at;
Control display module, for when receiving the selection signal corresponding to the target words and phrases in the content page, The page callback interface of call operation system is to show translation control;
As a result acquisition module, for when receiving the first trigger signal corresponding to the translation control, described in acquisition The translation result of target words and phrases;
As a result display module, for showing the translation result.
In another aspect, the embodiment of the present application provides a kind of terminal, the terminal includes processor and memory, the storage Device is stored with computer program, and the computer program is loaded by the processor and executed to realize turning over described in above-mentioned aspect Translate method.
Another aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, the computer program is loaded by processor and executed to realize the translation described in above-mentioned aspect Method.
The advantageous effect that technical solution provided by the embodiments of the present application is brought includes at least:
By being carried to third party application open page callback interface, and by interface acquisition and display operation system The translation control of confession can be by touching the specific of words and phrases to be translated if there are translation demands when user's reading page content Hair operation breathes out above-mentioned translation control, and subsequent user, which triggers the operational controls, can obtain the translation result of words and phrases to be translated, Translation, behaviour when can save translation needed for user are realized due to being not necessarily to switch between two application programs Make, promotes translation efficiency.
Description of the drawings
Fig. 1 is the flow chart for the interpretation method that the application one embodiment provides;
Fig. 2 is the interface schematic diagram that embodiment illustrated in fig. 1 is related to;
Fig. 3 is the flow chart of interpretation method that the application another implementation exemplifies;
Fig. 4 is the flow chart for the interpretation method that embodiment illustrated in fig. 3 is related to;
Fig. 5 is the flow chart of interpretation method that the application another implementation exemplifies;
Fig. 6 is the interface schematic diagram of the setting second language shown in the application one embodiment;
Fig. 7 is the flow chart of interpretation method that the application another implementation exemplifies;
Fig. 8 is the block diagram of the translating equipment shown in the application one embodiment;
Fig. 9 is the block diagram of the terminal shown in the application one embodiment.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
Technical solution provided by the embodiments of the present application by third party application open page callback interface, and is led to The translation control that the interface obtains and display operation system provides is crossed, if there are translation demand when user's reading page content, it can With by breathing out above-mentioned translation control to the certain trigger operation of words and phrases to be translated, subsequent user triggers the operational controls The translation result for obtaining words and phrases to be translated realizes translation due to being not necessarily to switch between two application programs, Operation when can save translation needed for user promotes translation efficiency.
The executive agent of method provided by the embodiments of the present application, each step is terminal, and above-mentioned terminal can be mobile phone, tablet The electronic equipments such as computer, E-book reader, multimedia play equipment, wearable device, pocket computer on knee.
Terminal is equipped with operating system, and operating system can be that operating system can be Android system, can also be IOS systems System or other operating systems, the embodiment of the present application are not construed as limiting this.Optionally, operating system is provided with page readjustment and connects Mouthful.
Referring to FIG. 1, the flow chart of the interpretation method provided it illustrates the application one embodiment.This method can wrap Include the following steps.
Step 101, the content page of third party application is shown.
Third party application can be any one application program installed in terminal, can be that operating system is included Native applications program, such as e-book application program, browser application etc.;Can also be that third party developer is developed Third party application, such as information class application program, which can be " XX news ", and the application is implemented Example is not construed as limiting this.Include the word content for reading in the content page of third party application.
When terminal receives mark (such as the title of third party application, the icon corresponding to third party application Deng) trigger signal after, show the content page of third party application.
Step 102, when receiving the selection signal corresponding to the target words and phrases in content page, third party application The page callback interface of call operation system is to show translation control.
Target words and phrases can be the arbitrary words and phrases that user selects in above-mentioned content of pages.Selection signal can click letter Number, double-click signal, any one in long-press signal.The embodiment of the present application is that long-press signal explains with selection signal It is bright.
Page callback interface is the native interface in operating system, for being called so that third for third party application Square application program can realize a certain function that operating system has.Translation control translates target words and phrases for triggering, Translation control may be displayed on the side of target words and phrases, to make translation control not cause to block to target words and phrases.In this Shen In some embodiments please, page callback interface is called for third party application so that third party application can realize behaviour Make the menu display function that system has.Optionally, step 102 may include following sub-step:
Step 102a, invoking page callback interface obtain the menu display function in operating system;
Step 102b executes menu display function with function menu.
Menu display function is used for triggering terminal function menu.Function menu is for showing some function choosing-items, example Such as copy control shares control, and the embodiment of the present application is not construed as limiting this.Copy control is for replicating the mesh that user chooses Mark words and phrases;Share control for sharing the target words and phrases that user chooses to other users.In the embodiment of the present application, function dish List includes translation control.
In addition, the developer of operating system is implanted into the triggering sent out to user in an operating system by way of burying a little The function that signal is monitored.In one possible implementation, when third party application, which starts, to be run, operating system The function is executed to monitor the trigger signal received.In alternatively possible mode, when display third party application When content of pages, operating system executes the function to monitor the trigger signal received.
In the embodiment of the present application, when user it is expected to translate some words and phrases, can be existed with the long-press words and phrases, terminal After receiving the long-press signal corresponding to the words and phrases, display includes translating the function menu of control.In conjunction with reference to figure 2, show The interface schematic diagram that embodiment illustrated in fig. 1 is related to.Words and phrases 111 of the terminal in the content of pages 11 for receiving " XX news " The long-press signal of " translation ", function menu 12, function menu 12 include translation control 121, share control 122 and replicate Control 123.
Step 103, when receiving the first trigger signal corresponding to translation control, the translation knot of target words and phrases is obtained Fruit.
The first trigger signal corresponding to translation control can be clicked signal, double-click signal, is in long-press signal arbitrary It is a kind of.The embodiment of the present application is to click signal to be explained with the first trigger signal.The translation result of target words and phrases is to adopt The target words and phrases indicated with target language type.Target language type is used language form when being translated to target words and phrases, It can also be arranged by operating system default setting by User Defined.
The translation result of target words and phrases may include the translation result of textual form and/or the translation result of speech form. In some possible embodiments, the translation result of target words and phrases can also include the translation result of graphic form, in order to Family understands.
In some embodiments of the present application, terminal is searched in the dictionary being locally stored to be indicated using target language type Target words and phrases, the translation result as target words and phrases.Since terminal is from the local translation knot for directly acquiring words and phrases to be translated Fruit, therefore the effective acquisition of translation result may be implemented.
Step 104, translation result is shown.
Terminal shows the translation result when getting the translation result of target words and phrases, so that user checks.In addition, right The exhibition method used by various forms of translation results, terminal simultaneously differs.
In the first possible implementation, the translation result of target words and phrases includes the translation result of textual form.Then Step 104 can be implemented as:The first dialog box is shown on the upper layer of content page, includes turning over for textual form in the first dialog box Translate result.
First dialog box can be shown in the side of target words and phrases, avoid causing to block to target words and phrases.Optionally, first The display location of dialog box can change, and when user executes drag operation to first dialog box, terminal will receive The end position of dragging signal shows first dialog box.In addition, user can be cancelled with triggering terminal shows first dialog box. In one possible implementation, the side (such as upper right corner) of the first dialog box shows deletion control, when terminal receives When to corresponding to the trigger signal for deleting control, cancels and show the first dialog box.In the mode of another possibility, terminal connects When receiving the trigger signal outside the first dialog box, cancels and show the first dialog box.
In second of possible realization method, the translation result of target words and phrases includes the translation result of speech form.Then Step 104 can be implemented as:The second dialog box is shown on the upper layer of content page, includes play control in the second dialog box;When When receiving the trigger signal corresponding to play control, the translation result of speech form is played.
Second dialog box can be shown in the side of target words and phrases, avoid causing to block to target words and phrases.Optionally, second The display location of dialog box can change, and when user executes drag operation to second dialog box, terminal will receive The end position of dragging signal shows second dialog box.In addition, user can be cancelled with triggering terminal shows second dialog box. In one possible implementation, the side (such as upper right corner) of the second dialog box shows deletion control, when terminal receives When to corresponding to the trigger signal for deleting control, cancels and show the second dialog box.In the mode of another possibility, terminal connects When receiving the trigger signal outside the second dialog box, cancels and show the second dialog box.Second dialog box can be with the first dialog box Same dialog box can also be different dialog box.
Play control plays the translation result of speech form for triggering terminal.It can corresponding to the trigger signal of play control To be any one clicked in signal, double-click signal, long-press signal.The embodiment of the present application is with the triggering corresponding to play control Signal is to click signal to be explained.When the user clicks when play control, terminal calls loudspeaker assembly to be played to play The translation result of speech form.
In the third possible realization method, the translation result of target words and phrases includes the translation result and text of speech form The translation result of this form.Step 104 is implemented as:Third dialog box, third dialog box are shown on the upper layer of content page In include the translation result and play control of textual form;When receiving the trigger signal corresponding to play control, language is played The translation result of sound form.In conjunction with reference to figure 2, after translating control 121 when the user clicks, terminal is on the upper layer of content page 11 Show third dialog box 13, third dialog box 13 includes the translation result 131 and play control 132 of textual form.
In the 4th kind of possible realization method, if terminal fails to obtain the translation result of target words and phrases, in content pages The upper layer in face shows the 4th dialog box, includes prompt message in the 4th dialog box, the prompt message is for prompting translation failure.Knot It closes with reference to figure 2, after translating control 121 when the user clicks, terminal shows the 4th dialog box 14 on the upper layer of content page 11, the Three dialog boxes 14 include prompt message 141.
Technical solution provided by the embodiments of the present application by third party application open page callback interface, and is led to The translation control that the interface obtains and display operation system provides is crossed, if there are translation demand when user's reading page content, it can With by breathing out above-mentioned translation control to the certain trigger operation of words and phrases to be translated, subsequent user triggers the operational controls The translation result for obtaining words and phrases to be translated realizes translation due to being not necessarily to switch between two application programs, Operation when can save translation needed for user promotes translation efficiency.
In addition, the translation knot also by providing a user the diversified forms such as speech form, textual form or even graphic form Fruit enables users to the translation result that words and phrases to be translated are understood from multiple dimensions.
Before being translated to target words and phrases, it usually needs determine that target words and phrases translate object language extremely.In the following, The first realization method for translating object language extremely to determining target words and phrases is explained.
In the alternative embodiment provided based on embodiment illustrated in fig. 1, referring to FIG. 3, this method may include walking as follows Suddenly:
Step 301, the content page of third party application is shown.
Include the word content for reading in content page.
Step 302, when receiving the selection signal corresponding to the target words and phrases in content page, call operation system Page callback interface is to show translation control.
Step 303, when receiving the first trigger signal corresponding to translation control, first language selective listing is shown.
First language selective listing includes at least one candidate language type.Candidate language type can be target words and phrases Any one language form except currently employed language form.For example, when the currently employed language form of target words and phrases is When Chinese, candidate language type can be English, Japanese, German, Chinese etc..
In addition, can be ranked up to candidate language type according to preset order in first language selective listing.Optionally, Terminal is ranked up candidate language type according to the selected frequency of candidate language type.If candidate language type is selected The frequency is higher, then the candidate language type putting in order in first language selective listing is more forward;If candidate language type The selected frequency is lower, then candidate language type the putting in order more rearward in first language selective listing.Optionally, Terminal is ranked up candidate language type according to the candidate language type selected time.If candidate language type is selected Time interval current time is closer, then the candidate language type putting in order in first language selective listing is more forward;If waiting Select the selected time interval current time of language form remoter, then row of the candidate language type in first language selective listing Row sequence is more rearward.
By the above-mentioned means, the historical record for selecting user target language type in candidate language type is united Meter analysis, and accordingly adjust candidate language type in speech selection list and put in order, it enables users to quickly select target Language form promotes efficiency of selection.
Step 304, the selection instruction for corresponding to the first language type in first language selective listing is received.
First language type is the language that user selects at least one of above-mentioned candidate language type.Selection instruction by User triggers, and can correspond to the trigger signal of first language type.It can corresponding to the trigger signal of first language type To be any one clicked in signal, double-click signal, long-press signal.The embodiment of the present application is with corresponding to first language type Trigger signal is to click signal to be explained.In addition, when it is expected selection including user in first language selective listing When language form, the above-mentioned language form for it is expected selection can also be inputted by user.
Step 305, first language type is determined as target language type.
Target language type is that target words and phrases translate language form extremely.Optionally, the side of speech selection list is also aobvious It is shown with the first completion control, when user receives the trigger signal corresponding to the first completion control, by first language type It is determined as target language type, and the step of executing the follow-up translation result for obtaining target words and phrases.
Step 306, the translation result of target words and phrases is obtained.
Step 307, translation result is shown.
In conjunction with reference to figure 4, it illustrates the interface schematic diagrams that embodiment illustrated in fig. 3 is related to." XX is new receiving for terminal The long-press signal of words and phrases 111 " translation " in the content of pages 11 of news ", function menu 12, function menu 12 includes turning over It translates control 121, share control 122 and copy control 123;After translating control 121 when the user clicks, terminal shows first language Control 42 is completed in selective listing 41 and first, and first language selective listing includes at least one candidate language type, works as user First language type 411 is selected at least one of above-mentioned candidate language type, and after click the second completion control 42, terminal Show that third dialog box 13, third dialog box 13 include the translation result 131 of textual form and broadcast on the upper layer of content page 11 Put control 132.
Technical solution provided by the embodiments of the present application provides a variety of candidate languages after triggering translation control in user Speech is selected for user, and the language that subsequent terminal is selected according to user translates words and phrases to be translated, can meet Diversified demand of the user to language used by translation words and phrases.
In the following, second of realization method for translating object language extremely to determining target words and phrases is explained.Based on In the alternative embodiment that embodiment illustrated in fig. 1 provides, referring to FIG. 5, this method comprises the following steps:
Step 501, the content page of third party application is shown.
Include the word content for reading in content page.
Step 502, when receiving the selection signal corresponding to the target words and phrases in content page, call operation system Page callback interface is to show translation control.
Step 503, pre-set language form is determined as target language type.
In the embodiment of the present application, target language type can be pre-set, and subsequent terminal executes provided by the present application turn over When translating method, it is not necessarily to each selection target language form of user, reduces user's operation required when translation, promotes translation efficiency. In the following, by the setting up procedure of the language form of default setting is introduced.The setting up procedure may include steps of:
1, when receiving the second trigger signal corresponding to translation control, speech selection list is shown.
Second trigger signal is differed with the first trigger signal.When the first trigger signal is to click signal, the second triggering Signal can double-click signal or long-press signal.In the embodiment of the present application, it is only carried out by long-press signal of the second trigger signal It illustrates.
Second language selective listing includes at least one candidate language type.For Jie of second language selective listing It continues, introduction of the step to first language selective listing can be referred to, be not repeated herein.
2, the selection instruction for corresponding to the second language type in second language selective listing is received;
Second language type is the language that user selects at least one of above-mentioned candidate language type.Selection instruction by User triggers, and can correspond to the trigger signal of second language type.It can corresponding to the trigger signal of second language type To be any one clicked in signal, double-click signal, long-press signal.The embodiment of the present application is with corresponding to second language type Trigger signal is to click signal to be explained.In addition, when it is expected selection including user in second language selective listing When language form, the above-mentioned language form for it is expected selection can also be inputted by user.
3, setting second language type is pre-set language form.
Optionally, the side of speech selection list also shows the second completion control, when user receive corresponding to this Two when completing the trigger signal of controls, and second language is determined as target words and phrases and translates object language extremely.In conjunction with reference to figure 6, It illustrates the interface schematic diagrams of setting second language.The long-press of some words and phrases of the terminal in receiving content of pages 11 is believed Number, function menu 12, function menu 12 includes translation control 121, shares control 122 and copy control 123;Work as user After long-press translates control 121, terminal shows second language selective listing 61 and second completes control 62, second language selection List 61 includes at least one candidate language type, when user selects second language at least one of above-mentioned candidate language type Type 611, and after click the second completion control 62, complete the setting up procedure to pre-set language form.
Step 504, the translation result of target words and phrases is obtained.
Step 505, translation result is shown.
Technical solution provided by the embodiments of the present application, when by the way that the language of default setting being determined as translating words and phrases Used language, after user pre-sets language, subsequent terminal reselects when translating without user every time, reduces translation The user's operation of Shi Suoxu promotes translation efficiency.
It is described in foregoing embodiments by terminal from the local translation result for obtaining target words and phrases, terminal can also be from clothes It is engaged in obtaining the translation result of target words and phrases in device.The side of the translation result of target words and phrases will be obtained from server to terminal below Formula is explained.
In the alternative embodiment based on Fig. 1 or Fig. 3 or embodiment illustrated in fig. 5 offer, referring to FIG. 7, this method includes Following steps:
Step 701, the content page of third party application is shown.
Include the word content for reading in content page.
Step 702, when receiving the selection signal corresponding to the target words and phrases in content page, call operation system Page callback interface is to show translation control.
Step 703, the selection destination server compatible with current translation demand from least two servers.
At least two servers can be the server that manufacturer terminal is set up, which has interpretative function.In this Shen Please be in embodiment, which can translate into target words and phrases one or more language.
Optionally, current translation demand that is to say that target words and phrases translate the demand of language form extremely.Optionally, terminal is protected There is the correspondence between different language type and different server, terminal determines that target words and phrases translate object language class extremely After type, server corresponding with target language type is searched in above-mentioned correspondence as compatible with current translation demand Destination server.
Step 704, translation request is sent to destination server.
Target words and phrases are carried in translation request.Optionally, the mark of target language type and terminal is also carried in translation request Know.Destination server searches the target words and phrases indicated using target language type according to translation request in the database, as mesh The translation result of words and phrases is marked, and above-mentioned translation result is returned to terminal.
Step 705, the translation result that destination server is sent is received.
Step 706, translation result is shown.
In the other embodiments of the application, server has the function that target words and phrases are translated into all language forms, The server that terminal is not needed to determine with currently translation demand is adapted at this time, and can translation request directly be sent to server, and Receive the translation result that server is returned according to translation request.
In conclusion method provided by the embodiments of the present application, by the translation knot for obtaining words and phrases to be translated by server Fruit, to make to save the EMS memory occupation of terminal without the dictionary for storing multilingual in terminal.
Following is the application device embodiment, can be used for executing the application embodiment of the method.It is real for the application device Undisclosed details in example is applied, the application embodiment of the method is please referred to.
Referring to FIG. 8, the block diagram of the identity information display device provided it illustrates the application one embodiment.With reality The exemplary function of the existing above method, the function can also be executed corresponding software realization by hardware realization by hardware.It should Device may include:Page display module 801, control display module 802, result acquisition module 803 and result display module 804。
Page display module 801, the content page for showing third party application, comprising supplying in the content page The word content of reading.
Control display module 802, for working as the selection signal received corresponding to the target words and phrases in the content page When, the page callback interface of call operation system is to show translation control.
As a result acquisition module 803, for when receiving the first trigger signal corresponding to the translation control, obtaining institute State the translation result of target words and phrases.
As a result display module 804, for showing the translation result.
Technical solution provided by the embodiments of the present application by third party application open page callback interface, and is led to The translation control that the interface obtains and display operation system provides is crossed, if there are translation demand when user's reading page content, it can With by breathing out above-mentioned translation control to the certain trigger operation of words and phrases to be translated, subsequent user triggers the operational controls The translation result for obtaining words and phrases to be translated realizes translation due to being not necessarily to switch between two application programs, Operation when can save translation needed for user promotes translation efficiency.
In the alternative embodiment provided based on embodiment illustrated in fig. 8, the control display module 802 is used for:
The page callback interface is called to obtain the menu display function in the operating system;
The menu display function is executed with function menu, the function menu includes the translation control.
In another alternative embodiment provided based on embodiment illustrated in fig. 8, the result acquisition module 803 is used for The first dialog box is shown on the upper layer of the content page, and the translation knot of textual form is included in first dialog box Fruit.
In another alternative embodiment provided based on embodiment illustrated in fig. 8, the result acquisition module 803 is used for:
The second dialog box is shown on the upper layer of the content page, includes play control in second dialog box;
When receiving the trigger signal corresponding to the play control, the translation result of speech form is played.
In another alternative embodiment provided based on embodiment illustrated in fig. 8, described device further includes:List display mould Block, instruction receiving module and the first determining module (not shown)
List display module, for when receiving the first trigger signal corresponding to the translation control, showing first Speech selection list, the speech selection list include at least one candidate language type.
Indicate receiving module, the selection for receiving the first language type corresponded in the first language selective listing refers to Show.
First determining module, for the first language type to be determined as target language type, the object language class Type is that the target words and phrases translate language form extremely.
In another alternative embodiment provided based on embodiment illustrated in fig. 8, described device further includes:Second determines mould Block (not shown).
Second determining module, for pre-set language form to be determined as target language type, the object language Type is that the target words and phrases translate language form extremely.
Optionally, second determining module, is additionally operable to:
When receiving the second trigger signal corresponding to the translation control, second language selective listing is shown, it is described Second language selective listing includes at least one candidate language type;
Receive the selection instruction for corresponding to the second language type in the second language selective listing;
It is the pre-set language form that the second language type, which is arranged,.
In another alternative embodiment provided based on embodiment illustrated in fig. 8, the result acquisition module 804 is used for:
The selection destination server compatible with current translation demand from least two servers;
Translation request is sent to the destination server, the target words and phrases are carried in the translation request;
Receive the translation result that the destination server is sent.
It should be noted that above-described embodiment provide device when realizing its function, only with above-mentioned each function module It divides and for example, in practical application, can be completed as needed and by above-mentioned function distribution by different function modules, The internal structure of equipment is divided into different function modules, to complete all or part of the functions described above.In addition, The apparatus and method embodiment that above-described embodiment provides belongs to same design, and specific implementation process refers to embodiment of the method, this In repeat no more.
With reference to figure 9, it illustrates the block diagrams for the terminal that one exemplary embodiment of the application provides.In the application Terminal may include one or more such as lower component:Processor 910 and memory 920.
Processor 910 may include one or more processing core.Processor 910 utilizes various interfaces and connection Various pieces in entire terminal, by running or executing the instruction being stored in memory 920, program, code set or instruction Collection, and the data being stored in memory 920 are called, execute the various functions and processing data of terminal.Optionally, processor 910 may be used Digital Signal Processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 910 can integrating central processor (Central Processing Unit, CPU) and one or more of modem etc. combination.Wherein, the main processing operation systems of CPU System and application program etc.;Modem is wirelessly communicated for handling.It is understood that above-mentioned modem can not also It is integrated into processor 910, is realized separately through chip piece.
Optionally, above-mentioned each embodiment of the method carries under being realized when processor 910 executes the program instruction in memory 920 The interpretation method of confession.
Memory 920 may include random access memory (Random Access Memory, RAM), can also include read-only Memory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non- transitory computer-readable storage medium).Memory 920 can be used for store instruction, program, generation Code, code set or instruction set.Memory 920 may include storing program area and storage data field, wherein storing program area can store Instruction for realizing operating system, the instruction at least one function, for realizing the finger of above-mentioned each embodiment of the method Enable etc.;Storage data field can be stored uses created data etc. according to terminal.
The structure of above-mentioned terminal is only illustrative, and in actual implementation, terminal may include more or fewer components, Such as:Display screen etc., the present embodiment is not construed as limiting this.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 900 of structure shown in Fig. 9, can wrap It includes than illustrating more or fewer components, either combine certain components or is arranged using different components.
In the exemplary embodiment, a kind of computer readable storage medium, the computer-readable storage medium are additionally provided Computer program is stored in matter, the computer program is loaded by the processor of terminal and executed to realize that the above method is implemented Each step in example.
In the exemplary embodiment, a kind of computer program product is additionally provided, when the computer program product is performed When, for realizing the function of each step in above method embodiment.
It should be understood that referenced herein " multiple " refer to two or more."and/or", description association The incidence relation of object indicates may exist three kinds of relationships, for example, A and/or B, can indicate:Individualism A, exists simultaneously A And B, individualism B these three situations.It is a kind of relationship of "or" that character "/", which typicallys represent forward-backward correlation object,.
Above-mentioned the embodiment of the present application serial number is for illustration only, can not represent the quality of embodiment.
The foregoing is merely the exemplary embodiments of the application, all in spirit herein not to limit the application Within principle, any modification, equivalent replacement, improvement and so on should be included within the protection domain of the application.

Claims (11)

1. a kind of interpretation method, which is characterized in that the method includes:
It shows the content page of third party application, includes the word content for reading in the content page;
When receiving the selection signal corresponding to the target words and phrases in the content page, the page readjustment of call operation system Interface is to show translation control;
When receiving the first trigger signal corresponding to the translation control, the translation result of the target words and phrases is obtained;
Show the translation result.
2. according to the method described in claim 1, it is characterized in that, the page callback interface of the call operation system is to show Control is translated, including:
The page callback interface is called to obtain the menu display function in the operating system;
The menu display function is executed with function menu, the function menu includes the translation control.
3. according to the method described in claim 1, it is characterized in that, the displaying translation result, including:
The first dialog box is shown on the upper layer of the content page, and the translation of textual form is included in first dialog box As a result.
4. according to the method described in claim 1, it is characterized in that, the displaying translation result, including:
The second dialog box is shown on the upper layer of the content page, includes play control in second dialog box;
When receiving the trigger signal corresponding to the play control, the translation result of speech form is played.
5. method according to any one of claims 1 to 4, which is characterized in that the translation for obtaining the target words and phrases As a result before, further include:
When receiving the first trigger signal corresponding to the translation control, display first language selective listing, described first Speech selection list includes at least one candidate language type;
Receive the selection instruction for corresponding to the first language type in the first language selective listing;
The first language type is determined as target language type, the target language type be the target words and phrases translate to Language form.
6. method according to any one of claims 1 to 4, which is characterized in that the translation for obtaining the target words and phrases As a result before, further include:
Pre-set language form is determined as target language type, the target language type is the target words and phrases translation Language form extremely.
7. according to the method described in claim 6, it is characterized in that, described be determined as mesh by pre-set second language type Before marking language form, further include:
When receiving the second trigger signal corresponding to the translation control, display second language selective listing, described second Speech selection list includes at least one candidate language type;
Receive the selection instruction for corresponding to the second language type in the second language selective listing;
It is the pre-set language form that the second language type, which is arranged,.
8. method according to any one of claims 1 to 4, which is characterized in that the translation for obtaining the target words and phrases As a result, including:
The selection destination server compatible with current translation demand from least two servers;
Translation request is sent to the destination server, the target words and phrases are carried in the translation request;
Receive the translation result that the destination server is sent.
9. a kind of translating equipment, which is characterized in that described device includes:
Page display module, the content page for showing third party application, comprising for reading in the content page Word content;
Control display module, for when receiving the selection signal corresponding to the target words and phrases in the content page, calling The page callback interface of operating system is to show translation control;
As a result acquisition module, for when receiving the first trigger signal corresponding to the translation control, obtaining the target The translation result of words and phrases;
As a result display module, for showing the translation result.
10. a kind of terminal, which is characterized in that the terminal includes processor and memory, and the memory is stored with computer Program, the computer program are loaded by the processor and are executed to realize that claim 1 to 8 any one of them such as is translated Method.
11. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program, the computer program are loaded by processor and are executed to realize such as claim 1 to 8 any one of them translation side Method.
CN201810368350.1A 2018-04-23 2018-04-23 Interpretation method, device and terminal Pending CN108595445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810368350.1A CN108595445A (en) 2018-04-23 2018-04-23 Interpretation method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810368350.1A CN108595445A (en) 2018-04-23 2018-04-23 Interpretation method, device and terminal

Publications (1)

Publication Number Publication Date
CN108595445A true CN108595445A (en) 2018-09-28

Family

ID=63614103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810368350.1A Pending CN108595445A (en) 2018-04-23 2018-04-23 Interpretation method, device and terminal

Country Status (1)

Country Link
CN (1) CN108595445A (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897470A (en) * 2018-06-19 2018-11-27 维沃移动通信有限公司 A kind of translation display methods and mobile terminal
CN109582981A (en) * 2018-11-30 2019-04-05 努比亚技术有限公司 Interpretation method, mobile terminal and readable storage medium storing program for executing based on mobile terminal
CN110691028A (en) * 2019-09-16 2020-01-14 腾讯科技(深圳)有限公司 Message processing method, device, terminal and storage medium
CN110717340A (en) * 2019-09-29 2020-01-21 百度在线网络技术(北京)有限公司 Recommendation method and device, electronic equipment and storage medium
CN111147346A (en) * 2018-10-16 2020-05-12 阿里巴巴集团控股有限公司 Communication method, device, equipment and system
CN111401323A (en) * 2020-04-20 2020-07-10 Oppo广东移动通信有限公司 Character translation method, device, storage medium and electronic equipment
CN111580918A (en) * 2020-05-14 2020-08-25 中国银行股份有限公司 Interface display method, client and server
CN111680521A (en) * 2020-05-19 2020-09-18 北京搜狗科技发展有限公司 Translation processing method and device and translation processing device
CN111680522A (en) * 2020-05-29 2020-09-18 刘于平 Method and system for realizing translation control based on electronic terminal and electronic equipment
CN111708959A (en) * 2020-06-16 2020-09-25 Oppo广东移动通信有限公司 Page display method and device, storage medium and electronic equipment
CN112069439A (en) * 2020-09-15 2020-12-11 成都知道创宇信息技术有限公司 Document request processing method and device, document providing server and storage medium
CN112988255A (en) * 2019-12-02 2021-06-18 腾讯科技(深圳)有限公司 Data processing method, device and computer readable storage medium
CN113625919A (en) * 2021-08-11 2021-11-09 掌阅科技股份有限公司 Method for translating book contents, computing device and computer storage medium
CN113723119A (en) * 2021-08-26 2021-11-30 腾讯科技(深圳)有限公司 Page translation method and device, storage medium and electronic equipment
CN113885973A (en) * 2020-07-02 2022-01-04 华为技术有限公司 Translation result display method and device and electronic equipment
CN114997187A (en) * 2021-12-01 2022-09-02 荣耀终端有限公司 Method and electronic device for recommending translation service
CN114997186A (en) * 2021-09-02 2022-09-02 荣耀终端有限公司 Control method of translation control and electronic equipment
CN115545049A (en) * 2022-04-12 2022-12-30 荣耀终端有限公司 Translation method, readable storage medium and electronic device
EP4170476A4 (en) * 2021-09-02 2024-01-24 Honor Device Co Ltd Translation method and electronic device
CN111680522B (en) * 2020-05-29 2024-04-23 刘于平 Method and system for realizing translation control based on electronic terminal and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196874A (en) * 2007-12-28 2008-06-11 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for machine aid reading
CN102945229A (en) * 2012-10-15 2013-02-27 福建榕基软件股份有限公司 Method and system for achieving fetching word to translate in rich text editor
CN104462074A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for conducting webpage data translation and browser client side
CN106250374A (en) * 2016-08-05 2016-12-21 Tcl集团股份有限公司 One takes word interpretation method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196874A (en) * 2007-12-28 2008-06-11 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for machine aid reading
CN102945229A (en) * 2012-10-15 2013-02-27 福建榕基软件股份有限公司 Method and system for achieving fetching word to translate in rich text editor
CN104462074A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for conducting webpage data translation and browser client side
CN106250374A (en) * 2016-08-05 2016-12-21 Tcl集团股份有限公司 One takes word interpretation method and system

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897470A (en) * 2018-06-19 2018-11-27 维沃移动通信有限公司 A kind of translation display methods and mobile terminal
CN111147346A (en) * 2018-10-16 2020-05-12 阿里巴巴集团控股有限公司 Communication method, device, equipment and system
CN109582981B (en) * 2018-11-30 2023-12-01 努比亚技术有限公司 Translation method based on mobile terminal, mobile terminal and readable storage medium
CN109582981A (en) * 2018-11-30 2019-04-05 努比亚技术有限公司 Interpretation method, mobile terminal and readable storage medium storing program for executing based on mobile terminal
CN110691028A (en) * 2019-09-16 2020-01-14 腾讯科技(深圳)有限公司 Message processing method, device, terminal and storage medium
CN110717340A (en) * 2019-09-29 2020-01-21 百度在线网络技术(北京)有限公司 Recommendation method and device, electronic equipment and storage medium
CN110717340B (en) * 2019-09-29 2023-11-21 百度在线网络技术(北京)有限公司 Recommendation method, recommendation device, electronic equipment and storage medium
CN112988255A (en) * 2019-12-02 2021-06-18 腾讯科技(深圳)有限公司 Data processing method, device and computer readable storage medium
CN111401323A (en) * 2020-04-20 2020-07-10 Oppo广东移动通信有限公司 Character translation method, device, storage medium and electronic equipment
CN111580918A (en) * 2020-05-14 2020-08-25 中国银行股份有限公司 Interface display method, client and server
CN111680521A (en) * 2020-05-19 2020-09-18 北京搜狗科技发展有限公司 Translation processing method and device and translation processing device
CN111680522A (en) * 2020-05-29 2020-09-18 刘于平 Method and system for realizing translation control based on electronic terminal and electronic equipment
CN111680522B (en) * 2020-05-29 2024-04-23 刘于平 Method and system for realizing translation control based on electronic terminal and electronic equipment
CN111708959A (en) * 2020-06-16 2020-09-25 Oppo广东移动通信有限公司 Page display method and device, storage medium and electronic equipment
CN113885973A (en) * 2020-07-02 2022-01-04 华为技术有限公司 Translation result display method and device and electronic equipment
WO2022002213A1 (en) * 2020-07-02 2022-01-06 华为技术有限公司 Translation result display method and apparatus, and electronic device
CN112069439A (en) * 2020-09-15 2020-12-11 成都知道创宇信息技术有限公司 Document request processing method and device, document providing server and storage medium
CN112069439B (en) * 2020-09-15 2023-10-13 成都知道创宇信息技术有限公司 Document request processing method and device, document providing server and storage medium
CN113625919A (en) * 2021-08-11 2021-11-09 掌阅科技股份有限公司 Method for translating book contents, computing device and computer storage medium
CN113723119B (en) * 2021-08-26 2023-07-14 腾讯科技(深圳)有限公司 Page translation method and device, storage medium and electronic equipment
CN113723119A (en) * 2021-08-26 2021-11-30 腾讯科技(深圳)有限公司 Page translation method and device, storage medium and electronic equipment
CN114997186A (en) * 2021-09-02 2022-09-02 荣耀终端有限公司 Control method of translation control and electronic equipment
EP4170476A4 (en) * 2021-09-02 2024-01-24 Honor Device Co Ltd Translation method and electronic device
CN114997187A (en) * 2021-12-01 2022-09-02 荣耀终端有限公司 Method and electronic device for recommending translation service
CN115545049A (en) * 2022-04-12 2022-12-30 荣耀终端有限公司 Translation method, readable storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN108595445A (en) Interpretation method, device and terminal
US11782581B2 (en) Display control method and device, electronic device and storage medium
CN104020991B (en) The multi-language switching method and device of application program
US9043300B2 (en) Input method editor integration
US10088980B2 (en) Method and system for providing menu data for mobile applications
JP7138804B2 (en) INTERFACE DISPLAY METHOD AND DEVICE, TERMINAL AND COMPUTER PROGRAM
US20060150125A1 (en) Methods and systems for interface management
US20120017161A1 (en) System and method for user interface
CN107066188B (en) A kind of method and terminal sending screenshot picture
CN108829686B (en) Translation information display method, device, equipment and storage medium
CN104537051B (en) Terminal and searching method based on touch operation
US20110126087A1 (en) Graphical user interface for non mouse-based activation of links
US20230117213A1 (en) Page display method and electronic device
CN108958731B (en) Application program interface generation method, device, equipment and storage medium
CN115098098A (en) Page generation method, page display method and device
CN113076499A (en) Page interaction method, device, equipment, medium and program product
CN112527434A (en) Page display method, terminal, server, system and electronic equipment
CN111401323A (en) Character translation method, device, storage medium and electronic equipment
US20200394059A1 (en) Real-time localization
US11853685B2 (en) Transformation of resource files using mapped keys for tracking content location
CN106886364A (en) A kind of text handling method and terminal based on speech recognition
CN109992580A (en) Processing method and processing device, storage medium, the computer equipment of table data
CN108052212A (en) A kind of method, terminal and computer-readable medium for inputting word
CN112163432A (en) Translation method, translation device and electronic equipment
CN112328140B (en) Image input method, device, equipment and medium thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180928