CN107153541A - Browse interaction processing method and device - Google Patents

Browse interaction processing method and device Download PDF

Info

Publication number
CN107153541A
CN107153541A CN201710262699.2A CN201710262699A CN107153541A CN 107153541 A CN107153541 A CN 107153541A CN 201710262699 A CN201710262699 A CN 201710262699A CN 107153541 A CN107153541 A CN 107153541A
Authority
CN
China
Prior art keywords
content
text
display interface
suspension
translation
Prior art date
Application number
CN201710262699.2A
Other languages
Chinese (zh)
Inventor
骆艳飞
张亮
刘健全
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to CN201710262699.2A priority Critical patent/CN107153541A/en
Publication of CN107153541A publication Critical patent/CN107153541A/en

Links

Classifications

    • G06F40/56
    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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 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 interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Abstract

The disclosure discloses one kind and browses interaction processing method and device, belongs to field of computer technology.The interaction processing method that browses includes:In the trigger action of the suspension mark for the display that suspended in detecting the display interface to electronic equipment, the corresponding suspension menu of mark that suspends is shown, the suspension menu includes translation menu item;When detecting the trigger action to the translation menu item, the first content of text being selected in the display interface is obtained;First content of text is translated into the content of text of object language.The disclosure solves in correlation technique user by foreign languages translation into the cumbersome technical problem of user during appointed language;Reached simplified user by foreign languages translation into the operation of appointed language effect.

Description

Browse interaction processing method and device

Technical field

This disclosure relates to which field of computer technology, more particularly to one kind browse interaction processing method and device.

Background technology

At present, during user is read using electronic equipment, foreign language can usually be run into.It is outer in order to be better understood from Content expressed by text, user on an electronic device can be read foreign languages translation into appointed language, and appointed language can be Language known to user, for example, mother tongue.

At present, user is when by foreign languages translation into appointed language, it usually needs choose foreign language text, by the foreign language chosen text Originally clipbook is copied to, then translation software is found out in the mounted application program of electronic equipment, the translation software is opened, will Foreign language text in clipbook is affixed to be translated in the translation software, and user's is cumbersome.

The content of the invention

The disclosure provides one kind and browses interaction processing method and device.The technical scheme is as follows:

Interaction processing method is browsed there is provided one kind according to the first aspect of the embodiment of the present disclosure, methods described includes:In inspection When measuring the trigger action of suspension mark for the display that suspended in the display interface to electronic equipment, the mark correspondence that suspends is shown Suspension menu, the suspension menu include translation menu item;When detecting the trigger action to the translation menu item, obtain Take the first content of text being selected in the display interface;First content of text is translated into the text of object language Hold.

Suspended and identified by the display that suspended in the display interface of electronic equipment, detecting the triggering to suspension mark During operation, display includes translating the suspension menu of menu item;When detecting the trigger action to the translation menu item, it will show The first content of text being selected in interface translates into the content of text of object language;So that electronic equipment is being needed in text When appearance is translated, it is no longer necessary to which user finds and opened on an electronic device the software for possessing interpretative function, it is only necessary to right The display that suspended in display interface, which suspends, identifies trigger action at execution, then performs the trigger action to translating menu item, and electronics is set It is standby the content of text selected in display interface just to be translated, make user translated after content of text;Solve phase In the technology of pass user by foreign languages translation into the cumbersome technical problem of user during appointed language;Reach simplified user by foreign language Translate into the effect of the operation of appointed language.

Optionally, the first content of text being selected in the acquisition display interface, including:Obtain display circle Whole content of text is used as first content of text in face;Or, obtain the text that user selectes in the display interface This content is used as first content of text.

Optionally, it is described first content of text translated into the content of text of object language after, methods described Also include:Suspended in the display interface and show the first suspension windows and the second suspension windows;In first suspension windows Middle display first content of text;The content of text of the object language is shown in second suspension windows.

Optionally, webpage or document are being shown in the display interface, is translating first content of text described Into after the content of text of object language, methods described also includes:Detect that content is in the display interface every scheduled duration It is no to change;When content changes in detecting the display interface, the text newly increased in the display interface is obtained This content is used as the second content of text;Second content of text is translated into the content of text of object language.

Optionally, it is described to detect whether content changes in the display interface every scheduled duration, including:Every pre- Long the first scope for obtaining content corresponding coordinate value in the webpage or the document in the display interface of timing; When first scope is different from the second scope, judge that content changes in the display interface, second scope be The scope of the last coordinate value obtained before obtaining the first scope.

Optionally, the content of text newly increased in the display interface that obtains is as the second content of text, including:Really The 3rd scope in fixed first scope not with second overlapping ranges;Coordinate value is obtained in the display interface described Content of text in the range of 3rd, obtains second content of text.

Optionally, the content of text that first content of text is translated into object language, including:Running background institute The application program installed on electronic equipment is stated, the application program provides interpretative function;Using the application program by described One content of text translates into the content of text of object language.

Optionally, the content of text that first content of text is translated into object language, including:Sent out to server The translation for the mark for carrying first content of text and the object language is sent to ask;Receive what the server was sent Translation result, the translation result is translated including the server according to the object language to first content of text Obtained content of text.

Interaction process device is browsed there is provided one kind according to the second aspect of the embodiment of the present disclosure, described device includes:First Display module, be configured as suspending in the display interface to electronic equipment is detected the trigger action identified that suspends shown When, the corresponding suspension menu of mark that suspends is shown, the suspension menu includes translation menu item;First acquisition module, quilt It is configured to, when detecting the trigger action for the translation menu item for showing first display module, obtain the display interface In be selected the first content of text;First translation module, is configured as the first text for getting first acquisition module Content of text of this content translation into object language.

Optionally, first acquisition module, including:First acquisition submodule, is configured as obtaining the display interface Middle whole content of text is used as first content of text;Or, the second acquisition submodule is configured as obtaining user in institute The content of text selected in display interface is stated as first content of text.

Optionally, described device also includes:Second display module, is configured as in the display interface display that suspends One suspension windows and the second suspension windows;3rd display module, be configured as showing in second display module first is hanged First content of text is shown in floating window mouthful;4th display module, is configured as shown in second display module The content of text of the object language is shown in two suspension windows.

Optionally, webpage or document are being shown in the display interface, described device also includes:Detection module, by with It is set to and detects whether content changes in the display interface every scheduled duration;Second acquisition module, is configured as in institute When stating detection module and detecting that content changes in the display interface, obtain in the text newly increased in the display interface Appearance is used as the second content of text;Second translation module, is configured as in the second text for getting second acquisition module Hold the content of text for translating into object language.

Optionally, the detection module, including:3rd acquisition submodule, is configured as obtaining described every scheduled duration First scope of content corresponding coordinate value in the webpage or the document in display interface;Decision sub-module, by with It is set to when the first scope that the 3rd acquisition submodule is got is different from the second scope, judges in the display interface Appearance changes, and second scope is the scope of the last coordinate value obtained before the first scope is obtained.

Optionally, second acquisition module, including:Determination sub-module, is configured to determine that in first scope not With the 3rd scope of second overlapping ranges;4th acquisition submodule, is configured as obtaining coordinate value in the display interface Content of text in the range of the described 3rd, obtains second content of text.

Optionally, first translation module, including:Submodule is translated, electronic equipment described in running background is configured as The application program of upper installation, the application program provides interpretative function;Using the application program by first content of text Translate into the content of text of object language.

Optionally, first translation module, including:Sending submodule, is configured as having sent carrying to server State the translation request of the mark of the first content of text and the object language;Receiving submodule, is configured as receiving the clothes The translation result that business device is sent, the translation result includes the server according to the object language in first text Hold the content of text for translate and obtaining.

Interaction process device is browsed there is provided one kind according to the third aspect of the embodiment of the present disclosure, described device includes:Processing Device;Memory for storing the processor-executable instruction;Wherein, the processor is configured as:Detecting to electricity During the trigger action for the suspension mark shown that suspended in the display interface of sub- equipment, show that described suspend identifies corresponding suspension dish Single, the suspension menu includes translation menu item;When detecting the trigger action to the translation menu item, obtain described aobvious Show the first content of text being selected in interface;First content of text is translated into the content of text of object language.

It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary, this can not be limited It is open.

Brief description of the drawings

Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and be used in specification to explain the principle of the disclosure together.

Fig. 1 is a kind of flow chart for browsing interaction processing method according to an exemplary embodiment;

Fig. 2 is the schematic diagram that suspension menu is added to menu item is translated according to an exemplary embodiment;

Fig. 3 is the schematic diagram of the display interface of the suspension display suspension ball according to an exemplary embodiment;

Fig. 4 is a kind of flow chart for browsing interaction processing method according to another exemplary embodiment;

Fig. 5 is that the first content of text of a kind of display according to another exemplary embodiment is translated into after object language Content of text schematic diagram;

Fig. 6 A are a kind of block diagrams for browsing interaction process device according to an exemplary embodiment;

Fig. 6 B are a kind of block diagrams for browsing interaction process device according to another exemplary embodiment;

Fig. 7 is a kind of block diagram for being used to browse the device of interaction process according to an exemplary embodiment.

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.

" electronic equipment " said in text can include smart mobile phone, tablet personal computer, intelligent television, E-book reader, (the English of dynamic image expert's compression standard audio aspect 3:moving picture experts group audio layer III, referred to as:MP3 player), dynamic image expert's compression standard audio aspect 4 (English:moving picture experts Group audio layer IV, referred to as:MP4) player, pocket computer on knee and desktop computer etc..

Fig. 1 is a kind of flow chart for browsing interaction processing method according to an exemplary embodiment, and this browses interaction Processing method can be applied in electronic equipment.This, which browses interaction processing method, can include following several steps.

In a step 101, the triggering behaviour that the suspension of display that suspended in the display interface to electronic equipment is detected is identified When making, show that the suspension identifies corresponding suspension menu, the suspension menu includes translation menu item.

Here the suspension mark said can be icon or button, and the face shaping for the mark that suspends can be thought as spherical, fire Arrow-like or other shapes, the mark that suspends, which can suspend, to be shown in the display interface of electronic equipment.No matter that is, the electronics Which application program equipment front stage operation is, suspension mark can be displayed in the interface that the application program foreground is shown.

Electronic equipment shows that the suspension identifies corresponding suspension dish when detecting the trigger action identified to the suspension It is single.Wherein, the operation for the mark that suspends can be clicked on for user to the trigger action for the mark that suspends, or user's long-press suspends The operation of mark, the present embodiment is not especially limited to this.

Here the suspension said identifies corresponding suspension menu and is made up of at least one menu item, at least one menu Item includes translating menu item.The translation menu item can be electronic equipment in suspension menu is arranged on before dispatching from the factory, can also It is that the translation menu item is added in suspension menu by electronic equipment under the triggering of user after dispatching from the factory, can also be to electronics Electronic equipment suspension menu is directly upgraded into the suspension dish including translating menu item when suspension menu in equipment is upgraded It is single.

In general, electronic equipment is when dispatching from the factory, and suspension menu may include some initial menus, such as initial menu Screen locking menu item, screen printing image menu can be included, menu item, desktop display menu item and translation menu item etc. is returned Deng, i.e., the translation menu item be in electronic equipment in suspension menu is just already provided at before dispatching from the factory.

In addition, electronic equipment can also provide a user some candidate's menu items, for example, candidate's menu item may include translation Menu item, user may select from translating menu item, and electronic equipment obtains the translation menu item of user's selection, by the translation menu Item is added in the suspension menu, i.e., the translation menu item is added in suspension menu by electronic equipment under the triggering of user.

Come using the face shaping for the mark that suspends as spherical (the present embodiment claims suspension ball) for example, as Fig. 2 (1) is shown, User can open suspension ball in the system of electronic equipment is set, and suspension ball is shown in the display interface of electronic equipment.Such as Shown in Fig. 2 (2), electronic equipment lists candidate's menu item in the region indicated by icon 21, and candidate's menu item includes translation Menu item and clean up process menu item.Button indicated by icon 22 is used to indicate that suspension menu does not include translation menu item, uses Family can be by clicking on the button indicated by icon 22, and the translation menu item is added in suspension menu by triggering electronic equipment;Figure The button that mark 23 is indicated is used to indicate that suspension menu includes clean up process menu item, and user can be by clicking on indicated by icon 23 Button, triggering electronic equipment deletes clean up process menu item from suspension menu.

For example bright step 101 again, as shown in Fig. 3 (1), suspension ball 31, which suspends, is shown in the display interface of electronic equipment In, user clicks on suspension ball 31, such as shown in Fig. 3 (2), and electronic equipment shows at least one corresponding menu item of suspension ball, and this is extremely A few menu item includes being used to return to the return menu item 32 of main interface, the screen locking menu item for locking electronic equipment screen 33 and the translation menu item 34 for cypher text content.

In a step 102, when detecting the trigger action to the translation menu item, obtain in the display interface and be selected The first content of text.

In step 103, first content of text is translated into the content of text of object language.

In summary, what is provided in the embodiment of the present disclosure browses interaction processing method, passes through display circle in electronic equipment The display that suspended in face, which suspends, to be identified, when detecting the trigger action identified to the suspension, and display includes translating the outstanding of menu item Floating menu;When detecting the trigger action to the translation menu item, the first content of text being selected in display interface is turned over It is translated into the content of text of object language;So that electronic equipment is when needing to translate content of text, it is no longer necessary to Yong Hu The software for possessing interpretative function is found and opened on electronic equipment, it is only necessary to show that suspension mark is held to being suspended in display interface Trigger action at row, then the trigger action to translating menu item is performed, electronic equipment just can be to text selected in display interface Content is translated, make user translated after content of text;User is solved in correlation technique by foreign languages translation into specifying User's cumbersome technical problem during language;Reached simplified user by foreign languages translation into the operation of appointed language effect.

Fig. 4 is a kind of flow chart for browsing interaction processing method according to another exemplary embodiment, and this browses friendship Mutual processing method can be applied in electronic equipment.This, which browses interaction processing method, can include following several steps.

In step 401, the triggering behaviour that the suspension of display that suspended in the display interface to electronic equipment is detected is identified When making, show that the suspension identifies corresponding suspension menu, the suspension menu includes translation menu item.

The realization of this step can be found in step 101.

In addition, the trigger action to the mark that suspends said here can click on the operation for the mark that suspends for user.Specifically , when user is clicked on using finger suspends mark, the display screen of electronic equipment can be received in the position for showing the mark that suspends To a touch signal, now electronic equipment detects trigger action of the user to the mark that suspends.

In general, user is before the mark that suspends is clicked on, so that it may in the text that its desired translation is chosen from display interface Hold, then click on suspend mark triggering electronic equipment display translation menu item, click on translation menu item triggering electronic equipment by its The text chosen translates into object language.If user wants to translate the full text content in display interface, user Full text in display interface can not be chosen, click directly on suspension mark and click on translation menu item again, set electronics It is standby that the full text content in display interface is translated automatically.Implement, refer to step 402.

In step 402, when detecting the trigger action to the translation menu item, obtain in the display interface and be selected The first content of text.

Here the trigger action to translating menu item said can click on the operation of translation option for user, or The operation of user's long-press translation option, the present embodiment is not specifically limited to the trigger action for translating menu.

For example, when user clicks on translation menu item using finger, the display screen of electronic equipment can translate menu in display The position of item receives a touch signal, and now electronic equipment detects trigger action of the user to translation menu item.

For another example when user utilizes finger long-press translation option, the display screen of electronic equipment can translate menu in display The position of item receives a lasting touch signal, if the duration of the touch signal reaches preset duration, electronics Equipment detects trigger action of the user to the translation menu item.

In this step, the first content of text being selected in the display interface is obtained, can be realized by following two modes:

The first, obtains user's content of text selected in display interface and is used as the first content of text.

Electronic equipment includes word selector.When user needs to choose content of text from display interface, Yong Huke To show the position of text in long-press display screen, triggering electronic equipment shows word selector.Word selector includes starting light Mark and termination cursor, user can choose content of text by originating cursor and terminating cursor, between starting cursor and termination cursor Content of text be the content of text chosen of user.

The then realization of this step can be:Electronic equipment was obtained in display interface by the starting cursor of word selector and end Only the content of text between cursor, regard the text content got as the first content of text.

For example, as shown in Fig. 3 (1), user can by electronic equipment display screen, triggering electronic equipment shows word choosing Device 35 is selected, text is chosen in display interface using word selector 35, then trigger action is performed to suspension ball 31, then electronic equipment Show shown in the corresponding suspension menu such as Fig. 3 (2) of suspension ball 31, user performs trigger action to translation menu item 34 again.Now, Electronic equipment obtains the text chosen in display interface by word selector as the first selected content of text.

Second, obtain content of text whole in display interface and be used as the first content of text.

Optionally, electronic equipment obtains quilt when detecting the trigger action to the translation menu item from display interface The content of text that user chooses, if not getting the content of text chosen by user, default user needs to choose display interface In full text content, now electronic equipment obtain content of text whole in display interface automatically as in the first text Hold.

In step 403, the first content of text is translated into the content of text of object language.

Object language can the user's language that selects temporarily either electronic equipment before this step is performed give tacit consent to Language.

Object language be user in the case of the language that selects before performing this step temporarily, performing this step Before 403, when performing step 402, electronic equipment may also display corresponding at least one language menu of the translation menu item, Each language menu corresponds to a kind of language form;The language menu chosen by user is obtained, by the selected language The corresponding language form of menu item is defined as object language, then performs this step 403.

Wherein, translation menu item corresponding at least one language menu can be set by system developer, also can be by User Defined.

The language of electronic equipment acquiescence can be set for the system of electronic equipment in default language, or user is prior Selected language.

The system of electronic equipment may include language menu in setting, and the language menu includes at least one language menu. User can be by the language menu selected target language or default language, detailed implementation:User can be set in system Middle opening language menu, therefrom selects the language menu admired, sets the attribute of the language menu, the attribute can include Default language and object language.In general, attribute is unique for the language menu of object language, and attribute is default language Language menu be also unique.

If the attribute of the language menu includes default language, the native language of electronic equipment is right for the language menu The language answered.If the attribute of the language menu includes object language, first text of the electronic equipment in display interface When content is translated, the first content of text is translated into the corresponding language of the language menu.

This step can be realized by following two modes:

The first, the application program of its installation of electronic equipment running background, the application program provides interpretative function;Utilize this Application program translates into the first content of text the content of text of object language.

The realization of this step can be:Electronic equipment obtains the information of its mounted each application program, according to each application The information of program therefrom determines the application program for possessing interpretative function, therefrom selects an application program in running background, profit The first content of text is translated into the content of text of object language with the application program of selection.

Electronic equipment therefrom determines that the realization for the application program for possessing interpretative function can according to the information of each application program In the following manner:1st, the application program that title includes " translation " two words is obtained;2nd, electronic equipment stored record possesses translation The list of multiple application programs of function, if detecting the list includes its mounted a certain application program, then it is assumed that should Application program possesses interpretative function.The present embodiment is not especially limited to this.

Second, electronic equipment sends to server and carries turning over for the first content of text and the mark of the object language Translate request;The translation result that the reception server is sent, translation result includes server according to object language to the first content of text Translate obtained content of text.

Wherein, the server can be the background server for providing interpretative function, for example, the server can turn over for some Translate the background server of software.Electronic equipment is communicated using the predetermined interface with the server.

Electronic equipment is sent to server using predetermined interface and carries the first content of text and the mark of the object language The translation request of knowledge;Server determines object language according to the mark, and the first content of text is translated into the text of object language Content;Server sends the content of text for carrying the object language to electronic equipment.

In step 404, the content of text of the object language is shown.

The realization of this step can pass through following two implementations:

The first, a suspension windows are shown at the first content of text, the object language is shown in the suspension windows Content of text.

Optionally, electronic equipment suspends around the first content of text shows the suspension windows.Specifically, electronic equipment The suspension windows can be suspended is included above or below the first content of text, between the first content of text and the suspension windows Distance be less than preset distance.Include for example, electronic equipment suspends the suspension windows 1 centimetre directly over the first content of text Place.

The suspension windows, which are suspended, with electronic equipment includes coming below the first content of text coming for example, illustrating Say, referring still to Fig. 3 (1), electronic equipment is rear in the content of text for getting the corresponding object language of the first content of text, The suspension windows (not shown in the suspension windows figure) are shown below the first content of text that word selector 35 is chosen, it is outstanding at this The content of text of the object language is shown in floating window mouthful.

Optionally, user is finished watching after the word content of translation, can be in display interface in addition to suspension windows other Region performs the trigger actions such as click, slip or long-press, and triggering electronic equipment stops showing suspension windows.User is to continue to browse Other guide in the display interface.

For example, referring still to Fig. 3 (1), when user clicks on label 36 or position indicated by label 37, electronic equipment Stop showing the suspension windows.

Specifically, when electronic equipment detects the trigger action to display interface, electronic equipment stops showing the suspension Window.Optionally, now electronic equipment also stops showing suspension menu, and display, which suspends, to be identified.

Second, suspended in display interface and show the first suspension windows and the second suspension windows;In first suspended window The first content of text is shown in mouthful;Show that the first content of text is translated into the second suspension windows corresponding after object language Content of text.

Electronic equipment has two kinds of display modes when showing the first suspension windows and the second suspension windows

The first, in order to allow users to while checking the content of text of the first content of text and the object language, first Suspension windows are not completely overlapping with the second suspension windows.For example, as shown in Fig. 5 (1), the first suspension windows 51 and second are outstanding Floating window mouthful 52 is not completely overlapping.

Second, in order to allow users to the full content of the content of text of direct reading first or the target of direct reading The full content of the content of text of language, the part of the first suspension windows partly overlaps with the second suspension windows.For example, As shown in Fig. 5 (2), the part of the first suspension windows 51 partly overlaps with the second suspension windows 52.

So that user is when needing to read the first content of text, the first suspension windows are clicked on, electronic equipment are triggered by first Suspension windows suspend and are shown on the second suspension windows, allow users to read in the first text in the first suspension windows Hold;User clicks on the second suspension windows when needing to read the content of text of the object language, and triggering electronic equipment hangs second Floating window mouthful, which suspends, is shown in the top of the first suspension windows, allows users to read the object language in the second suspension windows Content of text.

Specifically, when electronic equipment detects user to the trigger actions of the first suspension windows, such as detecting user The operation of the first suspension windows is clicked on, electronic equipment, which suspends the first suspension windows, to be included above the second suspension windows;Work as electricity When sub- equipment detects user to the trigger actions of the second suspension windows, for example, detect the behaviour that user clicks on the second suspension windows Make, electronic equipment, which suspends the second suspension windows, to be included above the first suspension windows.

Optionally, when electronic equipment detects the trigger action to display interface, stop show the first suspension windows with And second suspension windows.Optionally, now electronic equipment also stops showing suspension menu, and display, which suspends, to be identified.

Trigger action of the electronic equipment detection user to the first suspension windows, the trigger action to the second suspension windows can join Trigger action of the electronic equipment detection user to the mark that suspends is examined, here is omitted.

First way realization in step 402 use step 402 in the present embodiment, also, in display interface In the case of showing webpage or document, the present embodiment is after step 404 is performed, in order to perform triggering translation menu item in user Operation, electronic equipment translates into the full text in display interface the content of text of object language, and user also read the quilt After the content of text for translating into object language, when user reads the other guide of the webpage or the document, it is no longer necessary to Yong Huzai The secondary operation for performing triggering translation menu item, and is translated to the other guide automatically by electronic equipment, and the present embodiment can be with Including step 405 to step 408, wherein:

In step 405, after the content of text of the object language is stopped, being obtained every scheduled duration in display interface First scope of content corresponding coordinate value in webpage or document.

The corresponding coordinate value of each character indicates display location of the character in the webpage or the document in display interface, The content that first scope of the corresponding coordinate value of content in display interface is used to indicate in display interface is in the webpage or this article Display location in shelves.

In a step 406, when first scope is different from the second scope, judge that content changes in display interface, Second scope is the scope of the last coordinate value obtained before first scope is obtained.

When the content that electronic equipment is determined in display interface changes, it is necessary to obtain what is newly increased in display interface Content of text, specifically refers to step 407 and step 408.

In step 407, the 3rd scope not with the second overlapping ranges in the first scope is determined, obtains in display interface and sits Content of text of the scale value in the range of the 3rd, obtains the second content of text.

The realization of this step can be;The common factor of the first scope and the second scope is determined, the first scope is removed into the common factor Scope in addition is defined as the 3rd scope, obtains content of text of the coordinate value in the range of the 3rd in display interface, obtains second Content of text.

Because coordinate value is located in the text of the corresponding object language of content of text of the first scope by electronic equipment Appearance is supplied to user by suspension windows, and user has also read and finished.It can be seen that, coordinate value is located in the text of the common factor The implication user of appearance has known that electronic equipment is now needed to the text in display interface in addition to the content of text positioned at the common factor This content (that is, the content of text of coordinate value in the range of the 3rd) is translated, namely performs step 408.

In a step 408, the second content of text is translated into the content of text of object language, the second content of text quilt is shown Translate into corresponding content of text after object language.

Wherein, electronic equipment can be found in the content of text that the second content of text translates into object language, electric in step 403 Sub- equipment translates into the first content of text the content of text of object language, and electronic equipment shows the corresponding mesh of the second content of text Content of text mode after poster speech be can be found in, and electronic equipment is shown in the text of the corresponding object language of the first content of text Hold, here is omitted.

It should be noted is that, when the present embodiment includes step 405 to step 408, electronic equipment is closing first After suspension windows and the second suspension windows, can suspend display suspension menu still in display interface.If electronic equipment is examined again The trigger action to the mark that suspends is measured, then stops showing the suspension menu, only shows that the suspension is identified, and stop performing step Rapid 405.

In summary, what is provided in the embodiment of the present disclosure browses interaction processing method, passes through display circle in electronic equipment The display that suspended in face, which suspends, to be identified, when detecting the trigger action identified to the suspension, and display includes translating the outstanding of menu item Floating menu;When detecting the trigger action to the translation menu item, the first content of text being selected in display interface is turned over It is translated into the content of text of object language;So that electronic equipment is when needing to translate content of text, it is no longer necessary to Yong Hu The software for possessing interpretative function is found and opened on electronic equipment, it is only necessary to show that suspension mark is held to being suspended in display interface Trigger action at row, then the trigger action to translating menu item is performed, electronic equipment just can be to text selected in display interface Content is translated, make user translated after content of text;User is solved in correlation technique by foreign languages translation into specifying User's cumbersome technical problem during language;Reached simplified user by foreign languages translation into the operation of appointed language effect.

Following is disclosure device embodiment, can be used for performing method of disclosure embodiment.It is real for disclosure device The details not disclosed in example is applied, method of disclosure embodiment is refer to.

Fig. 6 A are a kind of block diagrams for browsing interaction process device according to an exemplary embodiment, and this browses interactive place Reason device can by software, hardware or both be implemented in combination with it is some or all of as electronic equipment.This browses friendship Mutual processing unit can include:First display module 610, the first acquisition module 620 and the first translation module 630.

First display module 610, the suspension for the display that is configured as suspending in the display interface to electronic equipment is detected During the trigger action of mark, show that the suspension identifies corresponding suspension menu, the suspension menu includes translation menu item;

First acquisition module 620, is configured as detecting touching to the translation menu item of the first display module 610 display During hair operation, the first content of text being selected in display interface is obtained;

First translation module 630, is configured as the first content of text that the first acquisition module 620 is got translating into mesh The content of text of poster speech.

Optionally, it is that one kind according to another exemplary embodiment browses interaction process dress to refer to Fig. 6 B, Fig. 6 B The block diagram put, the first acquisition module 620, including:First acquisition submodule 621 and/or the second acquisition submodule 622.

First acquisition submodule 621, is configured as obtaining content of text whole in display interface as in the first text Hold;

Second acquisition submodule 622, is configured as obtaining user's content of text selected in display interface as first Content of text.

Optionally, referring still to Fig. 6 B, this browses interaction process device, in addition to:Second display module the 640, the 3rd shows Show the display module 660 of module 650 and the 4th.

Second display module 640, being configured as suspending in display interface shows the first suspension windows and the second suspended window Mouthful;

3rd display module 650, is configured as showing first in the first suspension windows that the second display module 640 is shown Content of text;

4th display module 660, is configured as in the second suspension windows that second display module 640 is shown in display State the content of text of object language.

Optionally, webpage or document are being shown in the display interface of the electronic equipment, referring still to Fig. 6 B, this is browsed Interaction process device, in addition to:Detection module 670, the second acquisition module 680 and the second translation module 690.

Whether detection module 670, be configured as changing every content in scheduled duration detection display interface;

Second acquisition module 680, is configured as when content changes during detection module 670 detects display interface, The content of text newly increased in display interface is obtained as the second content of text;

Second translation module 690, is configured as the second content of text that the second acquisition module 680 is got translating into mesh The content of text of poster speech.

Optionally, referring still to Fig. 6 B, detection module 670, including:3rd acquisition submodule 671 and decision sub-module 672。

3rd acquisition submodule 671, be configured as every scheduled duration obtain content in display interface in the webpage or First scope of corresponding coordinate value in the document;

Decision sub-module 672, is configured as the first scope and the second scope that are got in the 3rd acquisition submodule 671 not Meanwhile, judge that content changes in display interface, the second scope is the last seat obtained before the first scope is obtained The scope of scale value.

Optionally, referring still to Fig. 6 B, the second acquisition module 680, including:Determination sub-module 681 and the 4th obtains submodule Block 682.

Determination sub-module 681, is configured to determine that the 3rd scope not with the second overlapping ranges in the first scope;

4th acquisition submodule 682, is configured as obtaining content of text of the coordinate value in the range of the 3rd in display interface, Obtain the second content of text.

Optionally, referring still to Fig. 6 B, the first translation module 630, including:Translate submodule 631.

Submodule 631 is translated, the application program installed on running background electronic equipment is configured as, the application program is provided Interpretative function;First content of text is translated into the content of text of object language using the application program.

Optionally, referring still to Fig. 6 B, the first translation module 630, including:Sending submodule 632 and receiving submodule 633。

Sending submodule 632, is configured as sending to server and carries the first content of text and the object language The translation request of mark;

Receiving submodule 633, is configured as the translation result of the reception server transmission, and the translation result includes the server First content of text is carried out according to object language to translate obtained content of text.

In summary, what is provided in the embodiment of the present disclosure browses interaction process device, passes through display circle in electronic equipment The display that suspended in face, which suspends, to be identified, when detecting the trigger action identified to the suspension, and display includes translating the outstanding of menu item Floating menu;When detecting the trigger action to the translation menu item, the first content of text being selected in display interface is turned over It is translated into the content of text of object language;So that electronic equipment is when needing to translate content of text, it is no longer necessary to Yong Hu The software for possessing interpretative function is found and opened on electronic equipment, it is only necessary to show that suspension mark is held to being suspended in display interface Trigger action at row, then the trigger action to translating menu item is performed, electronic equipment just can be to text selected in display interface Content is translated, make user translated after content of text;User is solved in correlation technique by foreign languages translation into specifying User's cumbersome technical problem during language;Reached simplified user by foreign languages translation into the operation of appointed language effect.

The exemplary embodiment of the disclosure one browses interaction process device there is provided one kind, can realize that the disclosure is provided clear Look at interaction processing method, this, which browses interaction process device, includes:Processor, the storage for storing processor-executable instruction Device;

Wherein, processor is configured as:

In the trigger action of the suspension mark for the display that suspended in detecting the display interface to electronic equipment, show that this hangs Buoy knows corresponding suspension menu, and the suspension menu includes translation menu item;

When detecting the trigger action to the translation menu item, obtain in the first text being selected in display interface Hold;

First content of text is translated into the content of text of object language.

It should be noted is that, the device that above-described embodiment is provided is when realizing the function that it browses interaction process, only , can be according to actual needs and by above-mentioned functions with the division progress of each above-mentioned functional module for example, in practical application Distribute and completed by different functional module, i.e., the content structure of electronic equipment is divided into different functional modules, with complete with The all or part of function of upper description.

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 for being used to browse the device 700 of interaction process according to an exemplary embodiment.Example Such as, device 700 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game console, flat board is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..

Reference picture 7, device 700 can include following one or more assemblies:Processing assembly 702, memory 704, power supply Component 706, multimedia groupware 708, audio-frequency assembly 710, the interface 712 of input/output (I/O), sensor cluster 714, and Communication component 716.

The integrated operation of the usual control device 700 of processing assembly 702, such as with display, call, data communication, phase Machine operates the operation associated with record operation.Processing assembly 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 assembly 702 can include one or more modules, just Interaction between processing assembly 702 and other assemblies.For example, processing assembly 702 can include multi-media module, it is many to facilitate Interaction between media component 708 and processing assembly 702.

Memory 704 is configured as storing various types of data supporting 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, and 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 static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, 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 liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detection touches or slide related duration and pressure with described.In certain embodiments, many matchmakers Body component 708 includes a front camera and/or rear camera.When device 700 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and Rear camera can be a fixed optical lens system or with 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 Mike Wind (MIC), when device 700 be in operator scheme, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 704 or via communication set Part 716 is sent.In certain embodiments, audio-frequency assembly 710 also includes a loudspeaker, for exports audio signal.

I/O interfaces 712 is provide interface between processing assembly 702 and peripheral interface module, 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 device 700, the relative positioning of component is for example described Component is the display and keypad of device 700, and sensor cluster 714 can be with 700 1 components of detection means 700 or device Position change, the existence or non-existence that user contacts with device 700, the orientation of device 700 or acceleration/deceleration and device 700 Temperature change.Sensor cluster 714 can include proximity transducer, be configured to detect in not any physical contact The presence of neighbouring object.Sensor cluster 714 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 714 can also include acceleration transducer, gyro sensors Device, 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, the communication component 716 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.

In the exemplary embodiment, device 700 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, 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, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..

A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 700 When device is performed so that device 700 is able to carry out each step shown in Fig. 1 and Fig. 4.

Those skilled in the art will readily occur to its of the disclosure 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 knowledge 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 (11)

1. one kind browses interaction processing method, it is characterised in that methods described includes:
In the trigger action of the suspension mark for the display that suspended in detecting the display interface to electronic equipment, described suspend is shown Corresponding suspension menu is identified, the suspension menu includes translation menu item;
When detecting the trigger action to the translation menu item, obtain in the first text being selected in the display interface Hold;
First content of text is translated into the content of text of object language.
2. according to the method described in claim 1, it is characterised in that described to obtain the first text being selected in the display interface This content, including:
Content of text whole in the display interface are obtained as first content of text;
Or,
Obtain user's content of text selected in the display interface and be used as first content of text.
3. according to the method described in claim 1, it is characterised in that webpage or document are being shown in the display interface, exist It is described first content of text is translated into the content of text of object language after, methods described also includes:
Detect whether content changes in the display interface every scheduled duration;
When content changes in detecting the display interface, obtain the content of text newly increased in the display interface and make For the second content of text;
Second content of text is translated into the content of text of object language.
4. method according to claim 3, it is characterised in that described to be detected every scheduled duration in the display interface Whether appearance changes, including:
Content in the display interface corresponding coordinate value in the webpage or the document is obtained every scheduled duration First scope;
When first scope is different from the second scope, judge that content changes in the display interface, second model Enclose be the last coordinate value obtained before the first scope is obtained scope.
5. method according to claim 4, it is characterised in that in the text newly increased in the acquisition display interface Hold as the second content of text, including:
Determine the 3rd scope not with second overlapping ranges in first scope;
Content of text of the coordinate value in the range of the described 3rd in the display interface is obtained, second content of text is obtained.
6. one kind browses interaction process device, it is characterised in that described device includes:
Display module, be configured as suspending in the display interface to electronic equipment is detected the triggering behaviour identified that suspends shown When making, the corresponding suspension menu of mark that suspends is shown, the suspension menu includes translation menu item;
First acquisition module, is configured as when detecting the trigger action of the translation menu item shown to the display module, Obtain the first content of text being selected in the display interface;
First translation module, is configured as the first content of text that first acquisition module is got translating into object language Content of text.
7. device according to claim 6, it is characterised in that first acquisition module, including:
First acquisition submodule, is configured as obtaining content of text whole in the display interface as in first text Hold;
Or,
Second acquisition submodule, is configured as obtaining user's content of text selected in the display interface as described first Content of text.
8. device according to claim 6, it is characterised in that webpage or document, institute are being shown in the display interface Stating device also includes:
Detection module, is configured as detecting whether content changes in the display interface every scheduled duration;
Second acquisition module, is configured as, when content changes during the detection module detects the display interface, obtaining The content of text newly increased in the display interface is taken as the second content of text;
Second translation module, is configured as the second content of text that second acquisition module is got translating into object language Content of text.
9. device according to claim 8, it is characterised in that the detection module, including:
3rd acquisition submodule, is configured as every the content in the scheduled duration acquisition display interface in the webpage or institute State the first scope of corresponding coordinate value in document;
Decision sub-module, is configured as when the first scope that the 3rd acquisition submodule is got is different from the second scope, Judge that content changes in the display interface, second scope is the last before the first scope is obtained obtains The scope of coordinate value.
10. device according to claim 9, it is characterised in that second acquisition module, including:
Determination sub-module, is configured to determine that the 3rd scope not with second overlapping ranges in first scope;
4th acquisition submodule, is configured as obtaining coordinate value in the display interface in the text in the range of the described 3rd Hold, obtain second content of text.
11. one kind browses interaction process device, it is characterised in that described device includes:
Processor;
Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
In the trigger action of the suspension mark for the display that suspended in detecting the display interface to electronic equipment, described suspend is shown Corresponding suspension menu is identified, the suspension menu includes translation menu item;
When detecting the trigger action to the translation menu item, obtain in the first text being selected in the display interface Hold;
First content of text is translated into the content of text of object language.
CN201710262699.2A 2017-04-20 2017-04-20 Browse interaction processing method and device CN107153541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710262699.2A CN107153541A (en) 2017-04-20 2017-04-20 Browse interaction processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710262699.2A CN107153541A (en) 2017-04-20 2017-04-20 Browse interaction processing method and device

Publications (1)

Publication Number Publication Date
CN107153541A true CN107153541A (en) 2017-09-12

Family

ID=59794012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710262699.2A CN107153541A (en) 2017-04-20 2017-04-20 Browse interaction processing method and device

Country Status (1)

Country Link
CN (1) CN107153541A (en)

Cited By (2)

* 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
CN109388810A (en) * 2018-08-31 2019-02-26 北京搜狗科技发展有限公司 A kind of data processing method, device and the device for data processing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230640A1 (en) * 2003-02-07 2004-11-18 Brown Michael K. Method and system for processing a message in a mobile computer device
CN101782912A (en) * 2009-06-23 2010-07-21 北京搜狗科技发展有限公司 Method and system for information prompt
CN105243057A (en) * 2015-09-30 2016-01-13 北京奇虎科技有限公司 Method for translating web page contents and electronic device.
CN105243058A (en) * 2015-09-30 2016-01-13 北京奇虎科技有限公司 Webpage content translation method and electronic apparatus
CN105930147A (en) * 2016-04-13 2016-09-07 北京小米移动软件有限公司 Application function starting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230640A1 (en) * 2003-02-07 2004-11-18 Brown Michael K. Method and system for processing a message in a mobile computer device
CN101782912A (en) * 2009-06-23 2010-07-21 北京搜狗科技发展有限公司 Method and system for information prompt
CN105243057A (en) * 2015-09-30 2016-01-13 北京奇虎科技有限公司 Method for translating web page contents and electronic device.
CN105243058A (en) * 2015-09-30 2016-01-13 北京奇虎科技有限公司 Webpage content translation method and electronic apparatus
CN105930147A (en) * 2016-04-13 2016-09-07 北京小米移动软件有限公司 Application function starting method and device

Cited By (2)

* 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
CN109388810A (en) * 2018-08-31 2019-02-26 北京搜狗科技发展有限公司 A kind of data processing method, device and the device for data processing

Similar Documents

Publication Publication Date Title
KR101260770B1 (en) Mobile device and method for controlling play of contents in mobile device
CN102667701B (en) The method revising order in touch screen user interface
US9727225B2 (en) Method and apparatus for controlling content using graphical object
TWI616801B (en) Continuity
US20110041102A1 (en) Mobile terminal and method for controlling the same
CN103995724B (en) Portable multifunction device with interface reconfiguration mode
EP2264989A1 (en) Mobile terminal and method of controlling operation of the mobile terminal
US20120289290A1 (en) Transferring objects between application windows displayed on mobile terminal
ES2643176T3 (en) Method and apparatus for providing independent view activity reports that respond to a tactile gesture
KR20140091633A (en) Method for providing recommended items based on conext awareness and the mobile terminal therefor
EP2809055A2 (en) Method and apparatus for controlling screen display using environmental information
US9443272B2 (en) Methods and apparatus for providing improved access to applications
US20140237378A1 (en) Systems and method for implementing multiple personas on mobile technology platforms
CN105144071B (en) Method and electronic equipment for managing user interface
CN104081345B (en) Mobile device and its method for running multiple applications
CN103218148B (en) For configuration and the affined device for interacting of user interface, method and graphical user interface
US9247146B2 (en) Mobile terminal and control method thereof
US8745490B2 (en) Mobile terminal capable of controlling various operations using a multi-fingerprint-touch input and method of controlling the operation of the mobile terminal
EP2557764B1 (en) Mobile terminal and method of controlling the same
US10127011B2 (en) Device and method for performing functions
EP2261784B1 (en) Mobile terminal and method of displaying information in mobile terminal
US20120159340A1 (en) Mobile terminal and displaying method thereof
US20140372896A1 (en) User-defined shortcuts for actions above the lock screen
US9407751B2 (en) Methods and apparatus for improving user experience
CN103197879A (en) Apparatus and method for displaying screen on portable device having flexible display

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