Translation result display method and device and electronic equipment
Through split screen or overlay display of the interface between the translation application and the target application, real-time translation and update are achieved, solving the problem of cumbersome user operations and improving translation efficiency and multi-task interaction capabilities.
Patent Information
- Application Number
- CN202411193106.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-02
- Publication Date
- 2025-01-14
AI Technical Summary
Users encounter language barriers when using electronic devices. The existing translation software is cumbersome and inefficient, and needs to frequently switch applications to complete translation tasks.
It provides a translation result display method, which realizes real-time translation and update of translated content through split screen or superimposed display of translation applications and target applications, simplifies user operations and improves translation efficiency.
By simplifying user operations, real-time display and update of translation results are achieved, translation efficiency is improved, user interaction costs are reduced, and multi-task interaction capabilities are enhanced.
Smart Images

Figure CN119311357A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202010630277.8, and the original application date is July 2, 2020. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application belongs to the field of computer technology, and in particular, relates to a method, device and electronic device for displaying translation results. Background Art
[0003] With the rapid development of terminal technology, electronic devices have greatly enriched the lives of users and provided convenience for users. Users can use various applications (Application, APP) installed on electronic devices to obtain information, socialize, shop or entertain, etc. For example: instant messaging APP, reading APP and translation APP, etc.
[0004] When users use electronic devices, they often encounter information in different languages. If the user does not have sufficient language knowledge, reading difficulties will occur. At this time, translation software or translation tools are needed to solve this problem.
[0005] In order to eliminate the language barriers encountered when reading on electronic devices, users usually install translation software on electronic devices. When the user sees new words or sentences in the first APP, he needs to exit the first APP and open the translation APP. Enter the content to be translated in the query box of the translation APP to obtain the translation result. After searching for the content to be translated, the user needs to exit the translation APP and switch to the first APP. It can be seen that the user operation is quite cumbersome and inefficient during the entire translation process. Summary of the invention
[0006] The embodiments of the present application provide a method, device and electronic device for displaying translation results, which can solve the technical problems of related technologies in that the user operations are cumbersome and inefficient during the translation process.
[0007] In a first aspect, an embodiment of the present application provides a method for displaying translation results, comprising:
[0008] In response to a first operation input by a user in a first application, a display interface of the first application and a display interface of the second application are displayed in split screens; or, the display interface of the second application is displayed superimposed on the display interface of the first application, and the second application is a translation application;
[0009] Translate the currently displayed content in the first application into a target language to obtain a translation result;
[0010] The translation result is displayed on a display interface of the second application.
[0011] In the embodiment of the first aspect, the translation result of the content currently displayed by the first application can be displayed in the second application through a simple user operation, which reduces the interaction cost and improves the efficiency. In addition, the display interface of the first application and the second application is displayed at the same time, that is, the display screen displays the content and the translation result at the same time, which increases the amount of information displayed on the display screen and improves the efficiency of multi-task interaction.
[0012] As an implementation of the first aspect, in response to a first operation input by a user in a first application, displaying a display interface of the first application and a display interface of the second application in split screen; or displaying the display interface of the second application superimposed on the display interface of the first application, includes:
[0013] In response to a first operation input by a user in a first application, triggering a system pop-up window, wherein the system pop-up window includes a system pop-up window asking the user whether to enter a synchronous translation state;
[0014] If a confirmation operation is received from the user in response to the system pop-up box input, the display interface of the first application and the display interface of the second application are displayed in split screen; or, the display interface of the second application is superimposed on the display interface of the first application.
[0015] In an implementation of the first aspect, a trigger of a system pop-up window is added to avoid displaying the display interface of the second application due to a user's misoperation, thereby improving the anti-mistouch performance of the solution.
[0016] As an implementation of the first aspect, before translating the displayed content in the first application into a target language to obtain a translation result, the method further includes:
[0017] The source language and / or the target language input by the user in the second application is obtained.
[0018] In an implementation of the first aspect, the user can input the source language and / or the target language by himself / herself, which can meet the needs of the user and improve the diversity of solutions.
[0019] In an implementation of the first aspect, when the display interface of the first application and the display interface of the second application are displayed in split screen, the method further includes:
[0020] In response to a fourth operation input by the user on the display interface of the first application or the display interface of the second application, the display interface of the first application or the display interface of the second application is switched to a floating window.
[0021] In an implementation of the first aspect, when the display interface of the second application is superimposed on the display interface of the first application, the method further includes:
[0022] In response to a fifth operation input by the user on the display interface of the second application, the display interface of the first application and the display interface of the second application are switched to split-screen display.
[0023] In an implementation of the first aspect, switching between split-screen display and overlay display can be achieved through simple user operations, and the display mode of the display screen can be quickly switched according to user needs, thereby improving interaction efficiency.
[0024] As an implementation of the first aspect, after the display interface of the second application displays the translation result, the method further includes:
[0025] After receiving a second operation input by the user to update the currently displayed content of the first application, in response to the second operation, the updated display content is displayed on the display interface of the first application, and the translation result corresponding to the updated display content is displayed on the display interface of the second application.
[0026] In an implementation of the first aspect, the second application automatically and synchronously updates the translation result according to the display content updated by the first application, without requiring user operation, thereby improving translation efficiency.
[0027] As an implementation of the first aspect, after the display interface of the second application displays the translation result, the method further includes:
[0028] Receive refresh translation operation input by user;
[0029] In response to the refresh translation operation, the translation result of the content currently displayed on the display interface of the first application is displayed on the display interface of the second application.
[0030] In an implementation of the first aspect, the second application responds to the user operation and synchronously updates the translation result according to the display content updated by the first application, so that the embodiment of the present application is applicable to more scenarios.
[0031] As an implementation of the first aspect, after the display interface of the second application displays the translation result, the method further includes:
[0032] Receiving a second operation input by a user in the first application;
[0033] In response to the second operation, if the display content is updated on the display interface of the first application, the translation result corresponding to the updated display content is displayed on the display interface of the second application.
[0034] In an implementation of the first aspect, the translation result is automatically updated based on the user operation in the first application and when it is confirmed that the display content of the first application is updated, the user does not need to input the user operation in the second application, thereby improving the translation efficiency.
[0035] As an implementation manner of the first aspect, the first application is a non-translation application.
[0036] In a second aspect, corresponding to a method for displaying a translation result provided in the first aspect, an embodiment of the present application further provides a translation result display device, including:
[0037] A first display module, configured to display a display interface of the first application and a display interface of the second application in split screen in response to a first operation input by a user in the first application; or to display the display interface of the second application superimposed on the display interface of the first application, wherein the second application is a translation application;
[0038] A translation module, used to translate the currently displayed content in the first application into a target language to obtain a translation result;
[0039] The second display module is used to display the translation result on the display interface of the second application.
[0040] As an implementation of the second aspect, the first display module is specifically configured to:
[0041] In response to a first operation input by a user in a first application, triggering a system pop-up window, wherein the system pop-up window includes a system pop-up window asking the user whether to enter a synchronous translation state;
[0042] If a confirmation operation is received from the user in response to the system pop-up box input, the display interface of the first application and the display interface of the second application are displayed in split screen; or, the display interface of the second application is superimposed on the display interface of the first application.
[0043] As an implementation of the second aspect, the method further includes: a language acquisition module, which is used to:
[0044] The source language and / or the target language input by the user in the second application is obtained.
[0045] In an implementation of the second aspect, when the display interface of the first application and the display interface of the second application are displayed in split screen, the device further includes a first switching module, and the first switching module is used to:
[0046] In response to a fourth operation input by the user on the display interface of the first application or the display interface of the second application, the display interface of the first application or the display interface of the second application is switched to a floating window.
[0047] In an implementation of the second aspect, when the display interface of the second application is superimposed on the display interface of the first application, the device further includes a second switching module, and the second switching module is used to:
[0048] In response to a fifth operation input by the user on the display interface of the second application, the display interface of the first application and the display interface of the second application are switched to split-screen display.
[0049] As an implementation of the second aspect, the apparatus further includes a first translation update module, wherein the first translation update module is configured to:
[0050] After receiving a second operation input by the user to update the currently displayed content of the first application, in response to the second operation, the updated display content is displayed on the display interface of the first application, and the translation result corresponding to the updated display content is displayed on the display interface of the second application.
[0051] As an implementation of the second aspect, the apparatus further includes a second translation update module, wherein the second translation update module is configured to:
[0052] Receive refresh translation operation input by user;
[0053] In response to the refresh translation operation, the translation result of the content currently displayed on the display interface of the first application is displayed on the display interface of the second application.
[0054] As an implementation of the second aspect, the apparatus further includes a third translation update module, wherein the third translation update module is configured to:
[0055] Receiving a second operation input by a user in the first application;
[0056] In response to the second operation, if the display content is updated on the display interface of the first application, the translation result corresponding to the updated display content is displayed on the display interface of the second application.
[0057] It can be understood that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above.
[0058] In a third aspect, an embodiment of the present application provides a method for displaying translation results, including:
[0059] The first electronic device translates the currently displayed content in the first application into a target language in response to a first operation input by a user in the first application to obtain a translation result;
[0060] The first electronic device sends the translation result to a second electronic device communicatively connected to the first electronic device for display.
[0061] In an embodiment of the third aspect, the translation result of the content currently displayed by the first application on the first electronic device can be displayed on the second electronic device through simple user operation. On the one hand, the interaction cost is reduced and the efficiency is improved; on the other hand, the display capabilities of different devices are greatly utilized to improve reading efficiency.
[0062] As an implementation of the third aspect, the first electronic device, in response to a first operation input by a user in a first application, translates currently displayed content in the first application into a target language to obtain a translation result, including:
[0063] The first electronic device displays a device list in response to a first operation input by a user in a first application;
[0064] The first electronic device receives a second operation of the user selecting a second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list;
[0065] The first electronic device translates the currently displayed content in the first application into a target language to obtain a translation result.
[0066] As an implementation of the third aspect, the first electronic device, in response to a first operation input by a user in a first application, translates currently displayed content in the first application into a target language to obtain a translation result, including:
[0067] The first electronic device triggers a system pop-up box in response to a first operation input by a user in the first application, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state;
[0068] If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, a communication connection is established with the second electronic device;
[0069] The first electronic device translates the currently displayed content in the first application into a target language to obtain a translation result.
[0070] As an implementation of the third aspect, the first electronic device, in response to a first operation input by a user in a first application, translates currently displayed content in the first application into a target language to obtain a translation result, including:
[0071] The first electronic device triggers a system pop-up box in response to a first operation input by a user in the first application, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state;
[0072] If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, displaying a device list;
[0073] The first electronic device receives a second operation of the user selecting a second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list;
[0074] The first electronic device translates the currently displayed content in the first application into a target language to obtain a translation result.
[0075] As an implementation of the third aspect, the method further includes:
[0076] The first electronic device receives a second operation input by a user to update the currently displayed content of the first application;
[0077] In response to the second operation, the first electronic device displays updated display content on the display interface of the first application, and instructs the second electronic device to display a translation result corresponding to the updated display content.
[0078] In an implementation of the third aspect, the first electronic device instructs the second electronic device to synchronously update the translation result based on the display content updated by the first application, without the need for the user to input specific operations, thereby improving translation efficiency.
[0079] As an implementation of the third aspect, the method further includes:
[0080] The first electronic device receives a refresh translation operation input by a user;
[0081] In response to the refresh translation operation, the first electronic device obtains the current displayed content in the first application, and instructs the second electronic device to display the translation result corresponding to the current displayed content in the first application;
[0082] Or, the method further comprises:
[0083] The first electronic device receives a refresh translation instruction from the second electronic device; the refresh translation instruction is triggered by the second electronic device receiving a refresh translation operation input by a user;
[0084] In response to the refresh translation instruction, the first electronic device obtains the current displayed content in the first application, and instructs the second electronic device to display the translation result corresponding to the current displayed content in the first application.
[0085] In an implementation of the third aspect, the first electronic device or the second electronic device implements the first electronic device instructing the second electronic device to synchronously update the translation result according to a specific operation input by the user, thereby improving translation efficiency.
[0086] As an implementation of the third aspect, the method further includes:
[0087] The first electronic device receives a second operation input by a user in the first application;
[0088] In response to the second operation, if it is determined that the display interface of the first application has updated display content, the first electronic device instructs the second electronic device to display the translation result corresponding to the updated display content of the first application.
[0089] In an implementation of the third aspect, the first electronic device responds to the received user operation and, if it is determined that the displayed content is updated, instructs the second electronic device to synchronously update the translation result, thereby improving translation efficiency.
[0090] In a fourth aspect, corresponding to a method for displaying a translation result provided in the third aspect, an embodiment of the present application further provides a translation result display device, including:
[0091] A translation module, configured for the first electronic device to translate currently displayed content in the first application into a target language in response to a first operation input by a user in the first application, and obtain a translation result;
[0092] The sending module is used for the first electronic device to send the translation result to a second electronic device that is communicatively connected to the first electronic device for display.
[0093] As an implementation of the fourth aspect, the translation module is specifically used to:
[0094] The first electronic device displays a device list in response to a first operation input by a user in a first application;
[0095] The first electronic device receives a second operation of the user selecting a second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list;
[0096] The first electronic device translates the currently displayed content in the first application into a target language to obtain a translation result.
[0097] As an implementation of the fourth aspect, the translation module is specifically used to:
[0098] The first electronic device triggers a system pop-up box in response to a first operation input by a user in the first application, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state;
[0099] If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, a communication connection is established with the second electronic device;
[0100] The first electronic device translates the currently displayed content in the first application into a target language to obtain a translation result.
[0101] As an implementation of the fourth aspect, the translation module is specifically used to:
[0102] The first electronic device triggers a system pop-up box in response to a first operation input by a user in the first application, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state;
[0103] If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, displaying a device list;
[0104] The first electronic device receives a second operation of the user selecting a second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list;
[0105] The first electronic device translates the currently displayed content in the first application into a target language to obtain a translation result.
[0106] As an implementation of the fourth aspect, the apparatus further includes a first translation update module, wherein the first translation update module is configured to:
[0107] The first electronic device receives a second operation input by a user to update the currently displayed content of the first application;
[0108] In response to the second operation, the first electronic device displays updated display content on the display interface of the first application, and instructs the second electronic device to display a translation result corresponding to the updated display content.
[0109] As an implementation manner of the fourth aspect, the device also includes a second translation update module.
[0110] The second translation update module is used for:
[0111] The first electronic device receives a refresh translation operation input by a user;
[0112] In response to the refresh translation operation, the first electronic device obtains the current displayed content in the first application, and instructs the second electronic device to display the translation result corresponding to the current displayed content in the first application;
[0113] Or, the second translation update module is used for:
[0114] The first electronic device receives a refresh translation instruction from the second electronic device; the refresh translation instruction is triggered by the second electronic device receiving a refresh translation operation input by a user;
[0115] In response to the refresh translation instruction, the first electronic device obtains the current displayed content in the first application, and instructs the second electronic device to display the translation result corresponding to the current displayed content in the first application.
[0116] As an implementation of the fourth aspect, the apparatus further includes a third translation update module, wherein the third translation update module is configured to:
[0117] The first electronic device receives a second operation input by a user in the first application;
[0118] In response to the second operation, if it is determined that the display interface of the first application has updated display content, the first electronic device instructs the second electronic device to display the translation result corresponding to the updated display content of the first application.
[0119] It can be understood that the beneficial effects of the fourth aspect can be found in the relevant description of the third aspect.
[0120] In a fifth aspect, an embodiment of the present application provides a method for displaying translation results, including:
[0121] The first electronic device obtains currently displayed content in the first application in response to a first operation input by a user in the first application;
[0122] The first electronic device sends the currently displayed content to a second electronic device that is communicatively connected to the first electronic device, and instructs the second electronic device to translate the displayed content into a target language for display.
[0123] In the embodiment of the fifth aspect, the translation result of the content currently displayed by the first application on the first electronic device can be displayed on the second electronic device through simple user operation. On the one hand, the interaction cost is reduced and the efficiency is improved; on the other hand, the display capabilities of different devices are greatly utilized to improve reading efficiency.
[0124] As an implementation of the fifth aspect, the first electronic device, in response to a first operation input by a user in a first application, obtains currently displayed content in the first application, including:
[0125] The first electronic device displays a device list in response to a first operation input by a user in a first application;
[0126] The first electronic device receives a second operation of the user selecting a second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list;
[0127] The first electronic device obtains currently displayed content in the first application.
[0128] As an implementation of the fifth aspect, the first electronic device, in response to a first operation input by a user in a first application, obtains currently displayed content in the first application, including:
[0129] The first electronic device triggers a system pop-up box in response to a first operation input by a user in the first application, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state;
[0130] If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, a communication connection is established with the second electronic device;
[0131] The first electronic device obtains currently displayed content in the first application.
[0132] As an implementation of the fifth aspect, the first electronic device, in response to a first operation input by a user in a first application, obtains currently displayed content in the first application, including:
[0133] The first electronic device triggers a system pop-up box in response to a first operation input by a user in the first application, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state;
[0134] If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, displaying a device list;
[0135] The first electronic device receives a second operation of the user selecting a second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list;
[0136] The first electronic device obtains currently displayed content in the first application.
[0137] As an implementation of the fifth aspect, the method further includes:
[0138] The first electronic device receives a second operation input by a user to update the currently displayed content of the first application;
[0139] In response to the second operation, the first electronic device displays updated display content on the display interface of the first application, and instructs the second electronic device to display a translation result corresponding to the updated display content.
[0140] In an implementation of the fifth aspect, the first electronic device instructs the second electronic device to synchronously update the translation result based on the display content updated by the first application, without the need for the user to input specific operations, thereby improving translation efficiency.
[0141] As an implementation of the fifth aspect, the method further includes:
[0142] The first electronic device receives a refresh translation operation input by a user;
[0143] In response to the refresh translation operation, the first electronic device obtains the current displayed content in the first application, and instructs the second electronic device to display the translation result corresponding to the current displayed content in the first application;
[0144] Or, the method further comprises:
[0145] The first electronic device receives a refresh translation instruction from the second electronic device; the refresh translation instruction is triggered by the second electronic device receiving a refresh translation operation input by a user;
[0146] In response to the refresh translation instruction, the first electronic device obtains the current displayed content in the first application, and instructs the second electronic device to display the translation result corresponding to the current displayed content in the first application.
[0147] In an implementation of the fifth aspect, the first electronic device or the second electronic device implements the first electronic device instructing the second electronic device to synchronously update the translation result according to a specific operation input by the user, thereby improving translation efficiency.
[0148] As an implementation of the fifth aspect, the method further includes:
[0149] The first electronic device receives a second operation input by a user in the first application;
[0150] In response to the second operation, if it is determined that the display interface of the first application has updated display content, the first electronic device instructs the second electronic device to display the translation result corresponding to the updated display content of the first application.
[0151] In an implementation of the fifth aspect, the first electronic device responds to the received user operation and, if it is determined that the displayed content has been updated, instructs the second electronic device to synchronously update the translation result, thereby improving translation efficiency.
[0152] In a sixth aspect, corresponding to a method for displaying a translation result provided in the fifth aspect, an embodiment of the present application further provides a translation result display device, including:
[0153] An acquisition module, configured for the first electronic device to acquire currently displayed content in the first application in response to a first operation input by a user in the first application;
[0154] The sending module is used for the first electronic device to send the currently displayed content to a second electronic device that is communicatively connected to the first electronic device, and to instruct the second electronic device to translate the displayed content into a target language for display.
[0155] As an implementation of the sixth aspect, the acquisition module is specifically configured to:
[0156] The first electronic device displays a device list in response to a first operation input by a user in a first application;
[0157] The first electronic device receives a second operation of the user selecting a second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list;
[0158] The first electronic device obtains currently displayed content in the first application.
[0159] As an implementation of the sixth aspect, the acquisition module is specifically configured to:
[0160] The first electronic device triggers a system pop-up box in response to a first operation input by a user in the first application, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state;
[0161] If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, a communication connection is established with the second electronic device;
[0162] The first electronic device obtains currently displayed content in the first application.
[0163] As an implementation of the sixth aspect, the acquisition module is specifically configured to:
[0164] The first electronic device triggers a system pop-up box in response to a first operation input by a user in the first application, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state;
[0165] If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, displaying a device list;
[0166] The first electronic device receives a second operation of the user selecting a second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list;
[0167] The first electronic device obtains currently displayed content in the first application.
[0168] As an implementation of the sixth aspect, the apparatus further includes a first translation update module, wherein the first translation update module is configured to:
[0169] The first electronic device receives a second operation input by a user to update the currently displayed content of the first application;
[0170] In response to the second operation, the first electronic device displays updated display content on the display interface of the first application, and instructs the second electronic device to display a translation result corresponding to the updated display content.
[0171] As an implementation manner of the sixth aspect, the device also includes a second translation update module.
[0172] The second translation update module is used for:
[0173] The first electronic device receives a refresh translation operation input by a user;
[0174] In response to the refresh translation operation, the first electronic device obtains the current displayed content in the first application, and instructs the second electronic device to display the translation result corresponding to the current displayed content in the first application;
[0175] Or, the second translation update module is used for:
[0176] The first electronic device receives a refresh translation instruction from the second electronic device; the refresh translation instruction is triggered by the second electronic device receiving a refresh translation operation input by a user;
[0177] In response to the refresh translation instruction, the first electronic device obtains the current displayed content in the first application, and instructs the second electronic device to display the translation result corresponding to the current displayed content in the first application.
[0178] As an implementation of the sixth aspect, the apparatus further includes a third translation update module, wherein the third translation update module is configured to:
[0179] The first electronic device receives a second operation input by a user in the first application;
[0180] In response to the second operation, if it is determined that the display interface of the first application has updated display content, the first electronic device instructs the second electronic device to display the translation result corresponding to the updated display content of the first application.
[0181] It can be understood that the beneficial effects of the sixth aspect can be found in the relevant description of the fifth aspect.
[0182] In the seventh aspect, an embodiment of the present application provides an electronic device, comprising a display screen, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements the method described in the first aspect and any one of the possible implementations of the first aspect, or implements the method described in the third aspect and any one of the possible implementations of the third aspect, or implements the method described in the fifth aspect and any one of the possible implementations of the fifth aspect.
[0183] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements a method as described in the first aspect and any one of the possible implementations of the first aspect, or implements a method as described in the third aspect and any one of the possible implementations of the third aspect, or implements a method as described in the fifth aspect and any one of the possible implementations of the fifth aspect.
[0184] In the ninth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes the method described in the first aspect and any one of the possible implementations of the first aspect, or executes the method described in the third aspect and any one of the possible implementations of the third aspect, or executes the method described in the fifth aspect and any one of the possible implementations of the fifth aspect.
[0185] It can be understood that the beneficial effects of the seventh to ninth aspects mentioned above can be found in the relevant descriptions of the first, third and fifth aspects mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS
[0186] Figure 1 is a schematic diagram of the hardware structure of a mobile phone to which the translation result display method provided in an embodiment of the present application is applicable;
[0187] Figure 2A is a schematic diagram of the software structure of a mobile phone to which the translation result display method provided in an embodiment of the present application is applicable;
[0188] Figure 2B is a schematic diagram of the software structure of a mobile phone to which the translation result display method provided in an embodiment of the present application is applicable;
[0189] Figure 3A It is a flowchart of a method for displaying translation results provided in an embodiment of the present application;
[0190] Figure 3B It is a schematic diagram of triggering a system pop-up window on the display interface of a reading APP provided by an embodiment of the present application;
[0191] Figure 3C It is a schematic diagram of a split-screen display of a reading APP and a translation APP provided in an embodiment of the present application;
[0192] Figure 3D This is an example diagram of a split-screen display of a reading APP and a translation APP provided by another embodiment of the present application;
[0193] Figure 3E This is an example diagram of inputting a source language and a target language in a display interface of a translation APP provided in an embodiment of the present application;
[0194] Figure 3F It is a schematic diagram of a reading APP and a translation APP provided in an embodiment of the present application displaying reading content and translation results on separate screens;
[0195] Figure 3G It is a schematic diagram of a reading APP and a translation APP provided in another embodiment of the present application displaying reading content and translation results on separate screens;
[0196] Figure 4A This is a flow chart of a translation APP displaying translation results provided by an embodiment of the present application;
[0197] Figure 4B It is a schematic diagram of obtaining a display screenshot of a reading APP provided in an embodiment of the present application;
[0198] Figure 5A It is a schematic diagram of a user confirming to enter a split-screen translation interface provided by an embodiment of the present application;
[0199] Figure 5B This is a schematic diagram of a translation APP provided by an embodiment of the present application being superimposed on a reading APP;
[0200] Figure 5C is a schematic diagram of switching from a floating window to a split-screen display provided by an embodiment of the present application;
[0201] Figure 5D is a schematic diagram of switching from a floating window to a split-screen display provided by another embodiment of the present application;
[0202] Figure 5Eis a schematic diagram of switching from split-screen display to floating window provided by an embodiment of the present application;
[0203] Fig. 5F is a schematic diagram of switching from split-screen display to floating window provided by another embodiment of the present application;
[0204] Figure 5G is a schematic diagram of switching from split-screen display to floating window provided by another embodiment of the present application;
[0205] Figure 5H is a schematic diagram of switching from split-screen display to floating window provided by another embodiment of the present application;
[0206] Fig. 6A is a flowchart of a method for displaying translation results provided by another embodiment of the present application;
[0207] Figure 6B It is a schematic diagram of a translation APP automatically and synchronously displaying the translation result corresponding to the updated display content of the reading APP provided by an embodiment of the present application;
[0208] Fig. 7A is a flowchart of a method for displaying translation results provided by another embodiment of the present application;
[0209] Figure 7B It is a schematic diagram of realizing, through manual operation by a user, that a translation APP synchronously displays a translation result corresponding to the updated display content of a reading APP, provided by an embodiment of the present application;
[0210] Figure 8 is a flowchart of a method for displaying translation results provided by another embodiment of the present application;
[0211] Fig. 9A is a flowchart of a method for displaying translation results provided by another embodiment of the present application;
[0212] Fig. 9B It is a process diagram of a method for displaying translation results provided by another embodiment of the present application. DETAILED DESCRIPTION
[0213] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0214] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context.
[0215] It should also be understood that in the embodiments of the present application, "one or more" and "several" refer to one, two or more than two; "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B may be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0216] When used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0217] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting" depending on the context.
[0218] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0219] References to "an embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0220] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.
[0221] Currently, when encountering dyslexia, users need to perform complex operations to switch to the translation interface, and they need to manually enter the content to be queried in the translation interface to obtain the translation results. The operation is cumbersome and inefficient. If users need to translate a large amount of content, the translation efficiency is very low, which will greatly reduce the user experience.
[0222] The present application takes into account the deficiencies of the existing technical solutions and provides a method for displaying translation results. The method for displaying translation results provided in the embodiments of the present application can, on the one hand, display the translation results through simple user operations, simplifying user operations and improving efficiency; on the other hand, the reading content (or content to be translated) and the translation results are displayed simultaneously, and more information is displayed on one screen, which improves the efficiency of multi-task interaction.
[0223] The translation result display method provided in the embodiment of the present application is applicable to the situation where a user needs to translate when reading through an electronic device. The translation result display method is applied to an electronic device and can be executed by a translation result display device configured in the electronic device. The translation result display device can be implemented by software, hardware, or a combination of software and hardware of the electronic device.
[0224] The translation result display method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices (or car computers), augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart screens, televisions, smart speakers, etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0225] Figure 1 A schematic structural diagram of an electronic device 100 is shown.
[0226] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0227] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0228] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0229] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0230] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0231] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0232] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0233] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0234] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0235] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0236] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0237] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0238] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0239] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0240] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0241] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0242] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0243] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0244] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0245] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0246] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0247] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0248] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0249] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0250] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0251] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0252] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0253] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0254] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0255] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0256] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0257] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0258] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0259] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0260] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0261] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0262] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0263] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0264] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0265] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0266] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0267] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0268] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0269] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0270] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0271] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0272] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0273] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0274] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0275] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0276] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0277] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0278] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0279] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0280] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is taken as an example to exemplify the software structure of the electronic device 100.
[0281] Figure 2A It is a software structure block diagram of the electronic device 100 to which the translation result display method provided by the embodiment of the present invention is applicable.
[0282] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0283] The application layer can include a series of application packages.
[0284] like Figure 2A As shown, the application package may include camera, gallery, reading, translation, office software (eg, WPS Office), short message, browser and other applications.
[0285] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0286] like Figure 2AAs shown, the application framework layer may include an input event manager, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0287] The input event manager is used to monitor various touch operation events. In an embodiment of the present application, the input event manager may include a gesture monitoring module and a sliding event monitoring module. The gesture event monitoring module can be used to monitor gestures, such as three-finger pinching, or clicking on specific controls. The sliding event monitoring module can be used to monitor sliding events, such as touch operations such as sliding to turn pages. The gesture monitoring module of the input event manager monitors gesture events and triggers a system pop-up box asking the user whether to enter the split-screen translation interface. The input event manager provides sliding event monitoring to the translation APP, which is used to trigger the translation APP to refresh the translation content.
[0288] The window manager is used to manage window programs. In the Android application framework, windows can include application windows and windows of public interfaces (i.e., system-level windows). The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. In some embodiments of the present application, the window manager may include an application split-screen window manager, and the application split-screen window manager may include modules such as split-screen management, window screenshots, and system pop-up windows. The system pop-up window module can be used to start a system pop-up box, and the system pop-up box can be a system pop-up box that asks the user whether to enter the split-screen translation interface. The gesture monitoring module of the input event manager monitors the gesture event and calls the system pop-up window module to start a system pop-up box that asks the user whether to enter the split-screen translation interface.
[0289] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0290] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0291] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0292] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0293] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0294] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.
[0295] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0296] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0297] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0298] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0299] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0300] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0301] A 2D graphics engine is a drawing engine for 2D drawings.
[0302] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0303] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with the method for displaying translation results provided in an embodiment of the present application.
[0304] The electronic device has opened a reading APP, and the reading APP is in full screen mode (full screen). When the touch sensor 180K of the electronic device 100 receives a three-finger pinch touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the three-finger pinch touch operation into a first original input event (including a touch sliding coordinate sequence, the start and end timestamps of the touch operation, and other information), and stores the first original input event. The application framework layer obtains the first original input event from the kernel layer, calls the system pop-up module to trigger the system pop-up box, and asks the user whether to enter the split-screen translation interface.
[0305] When the touch sensor 180K of the electronic device 100 receives a touch operation of a click, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation of the click into a second original input event (including touch coordinates, timestamp of the touch operation and other information), and stores the second original input event. The application framework layer obtains the second original input event from the kernel layer, and identifies that the control corresponding to the second original input event is a confirmation control in the system pop-up box, such as a "yes" control. The reading APP switches from full-screen mode to split-screen mode and is displayed on one side of the display screen 194; the system starts the translation APP in split-screen mode, and the translation APP is displayed on the other side of the display screen 194.
[0306] In the above embodiment, the existing split-screen management framework of the system is used, and a gesture-triggered system pop-up box is added. The gesture monitoring module in the input event manager of the application framework layer implements gesture event monitoring, such as monitoring the touch operation of three-finger pinching. The gesture event is used to trigger a system pop-up box asking the user whether to enter the split-screen translation interface. When it is detected that the user clicks the confirmation control in the system pop-up box, the reading APP switches to split-screen mode and starts the translation APP in split-screen mode. The reading APP is displayed on one side of the display screen 194, and the translation APP is displayed on the other side. This example realizes the split-screen and parallel display of reading content and translation results.
[0307] It should be noted that in some other embodiments of the present application, the system pop-up window can be triggered by monitoring the user clicking on a specific control. The specific control may include a control in the reading APP display interface, a control in the drop-down notification bar, or a control in the floating ball, etc.
[0308] It should also be noted that in some other embodiments of the present application, when it is detected that the user clicks the confirmation control in the system pop-up box, the reading APP may not switch to the split-screen mode, and may continue to maintain the full-screen mode, and the translation APP is started in the floating window mode.
[0309] In some other embodiments of the present application, if the reading APP and the first APP are displayed in split screen, and the first APP is an APP other than the reading APP and the translation APP, a system pop-up box can also be triggered on the interface of the reading APP. When it is detected that the user clicks the confirmation control in the system pop-up box, the reading APP can continue to maintain the split screen mode, and the translation APP covers the first APP and starts in split screen mode.
[0310] In some other embodiments of the present application, the translation APP obtains a window screenshot of the other application, such as a reading APP, through the application framework layer, thereby extracting text information from the screenshot, and then translating the text information into the target language and displaying it on the interface of the translation APP.
[0311] In some embodiments of the present application, the translation APP registers a full-screen sliding event listener in the system, and the input event manager of the application framework layer can provide the translation APP with a full-screen sliding event listener. In other words, the translation APP can detect the sliding event of the entire display screen. Therefore, the translation APP can monitor the sliding event of the other side application through the application framework layer, such as the sliding page turning event of the reading APP, thereby dynamically refreshing the translation content.
[0312] In order to better understand the implementation principle of the translation APP dynamically refreshing the translation content provided in some embodiments of the present application, an exemplary block diagram of the internal software modules of the translation APP is introduced next. It should be understood that this is only an exemplary description, and in other embodiments, the translation APP may include more or fewer software modules.
[0313] See also Figure 2B In the example shown, the internal software modules of the translation APP include: user interface (UI) display, sliding event monitoring, screenshot processing, text extraction, translation engine, and voice selection modules.
[0314] The UI display module is used to display the user interface, etc. For example, the various interfaces of the translation APP, including the main interface, sub-interfaces, and translation result display interface.
[0315] The language selection module is used for selecting a source language and / or a target language.
[0316] The sliding event monitoring module is used to monitor full-screen sliding events in split-screen state, such as sliding page turning events in reading apps.
[0317] The screenshot processing module is used to capture a screenshot of the content displayed on the other side of the APP in response to the sliding event monitored by the sliding event monitoring module in the split-screen state.
[0318] The text extraction module is used to extract text information from the screenshot of the content displayed by the APP on the other side.
[0319] The translation engine module is used to translate the extracted text information into a target language to obtain the final information to be displayed.
[0320] In some embodiments of the present application, the translation result display method is a system-level technical solution, and the translation APP is a system-level application. The technical solution of the embodiment of the present application does not depend on the specific application implementation, and can be supported by any third-party application that supports split-screen display.
[0321] The following embodiments can be implemented on an electronic device 100 having the above hardware structure and software structure. The following embodiments will take a tablet computer as an example to illustrate the translation result display method provided in the embodiments of the present application. It should be understood that the tablet computer is only an exemplary description and cannot be interpreted as a limitation of the present application.
[0322] See also Figure 3A , which is a flow chart of a method for displaying translation results provided in one embodiment of the present application.
[0323] S310: receiving an operation from a user to start a reading APP, and opening the reading APP.
[0324] In the embodiments of the present application, a reading APP is used as an exemplary illustration. It should be understood that in other examples of the present application, the reading APP can be replaced with other APPs, such as gallery, office software, short message, browser, news, or instant messaging APPs, and the present application does not limit this. The APP installed in the electronic device can be a native APP provided by the operating system, or a third-party APP installed by the user.
[0325] In an implementation of the present application, the electronic device receives an operation of a user clicking on a reading APP icon installed on a tablet computer, and in response to the operation, opens the reading APP and displays a reading interface. The reading interface may be a history reading interface or a main interface of the reading APP.
[0326] S320, in response to the monitored gesture event, triggering a system pop-up box, wherein the system pop-up box is a system pop-up box that asks the user whether to enter the split-screen translation interface.
[0327] In the embodiment of the present application, the gesture event may include the tablet computer monitoring the user performing a preset touch operation on any display interface of the reading APP. The preset touch operation includes but is not limited to a three-finger pinch operation, or clicking a specific control. The specific control is a preset control, which may include a preset control in the menu bar of the reading APP display interface, a preset control in the drop-down notification bar, or a preset control in the floating ball.
[0328] It should be noted that, more generally, when there is no conflict with other preset touch operations, the preset touch operation that triggers the system pop-up window may include but is not limited to: single-finger or multi-finger long press operation, multi-finger pinch (or contraction) operation, multi-finger zoom in (or expansion) operation, knuckle tapping operation, single-finger or multi-finger sliding operation along a preset trajectory, etc.
[0329] Among them, the single-finger or multi-finger long press operation includes the operation of pressing the touch screen with one finger or multiple fingers for a time period exceeding the first time period, wherein the first time period is the time period threshold. The multi-finger pinch or zoom operation includes the operation of pinching or zooming in with two fingers, three fingers, four fingers or five fingers. The knuckle tapping operation includes the operation of single-finger or multi-finger joints single-clicking, double-clicking or triple-clicking the touch screen. The single-finger or multi-finger sliding along a preset trajectory includes the operation of sliding one finger or multiple fingers up, down, left or right on the touch screen.
[0330] As a non-limiting example of this application, Figure 3B As shown, the tablet computer detects that the user performs a three-finger pinch touch operation on the display interface of the reading APP. In response to the touch operation, a system pop-up window is triggered. Figure 3B In the system pop-up window loaded by the tablet, the words "Do you want to enter the split-screen translation interface" are displayed. The system pop-up window also includes selection controls, "Yes" and "Cancel".
[0331] S330, receiving a confirmation operation input by the user, the tablet computer enters a split-screen display state in response to the confirmation operation, with a reading APP displayed on one side and a translation APP displayed on the other side.
[0332] In the present application embodiment, the confirmation operation refers to the user operation of agreeing to enter the translation split-screen translation interface. For example, you can click Figure 3B The touch operation of the "yes" control in the system pop-up box shown, or the cursor control operation of moving the cursor to the position of the "yes" control and then clicking the mouse, etc. For another example, a preset voice control operation such as "confirm to enter the split-screen translation interface" or "confirm" can be input by the user. After receiving the confirmation operation input by the user, the split-screen display state is entered, which can prevent the split-screen translation function from being triggered by an erroneous operation.
[0333] It should be noted that if a user inputs a cancel operation, the system pop-up box disappears and the user continues to read. The cancel operation refers to the user's operation of not agreeing to enter the translation split-screen translation interface. For example, you can click Figure 3B Touch operation of the "Cancel" control in the system dialog box is shown.
[0334] It should also be noted that if the user's confirmation operation is not received within a time threshold, the system pop-up box disappears and the user continues reading.
[0335] In an implementation of the present application, if the tablet computer is currently in landscape orientation, the split-screen display state is to set the display area of the reading APP in the left half and the display area of the translation APP in the right half, such as Figure 3C As shown; or, set the display area of the reading APP to the right half and the display area of the translation APP to the left half. If the tablet is currently in portrait mode, the split screen display state is to set the display area of the reading APP to the upper half and the display area of the translation APP to the lower half, as shown. Figure 3D As shown; or, the display area of the reading APP is set in the lower half, and the display area of the translation APP is set in the upper half. In other words, if the tablet is currently in landscape mode, the split screen adopts a landscape display layout, with left and right split screens. If the tablet is currently in portrait mode, the split screen adopts a portrait display layout, with top and bottom split screens.
[0336] It should be noted that the vertical screen display layout or horizontal screen display layout of the split screen may or may not occupy the entire display screen. When the vertical screen display layout or horizontal screen display layout occupies the entire display screen, more content can be displayed at the same time, which is convenient for users to view.
[0337] It should also be noted that the display area of the translation app and the display area of the reading app can have the same size or different sizes. The size of the display area of the reading app and the translation app can be set by the system default, or can be adaptively adjusted by the system according to the amount of content in the display area, or can be set by the user according to the size of the display screen and personalized needs. In an implementation of the present application, the size of the display interface of the translation app and the reading app can be adjusted by the system according to the amount of displayed content, so that the user can view it easily.
[0338] S340, receiving the source language and target language selected by the user on the translation APP.
[0339] The source language is the language of the text on the reading app. The target language is the language of the translation result. The target language is usually the user's native language; or a language that the user has no reading difficulties.
[0340] In an implementation of the present application, a language switching control is provided on the display interface of the translation APP, which allows the user to switch between the source language and the target language. Figure 3C , Figure 3D and Figure 3E As shown, a source language switching control 31 and a target language switching control 32 are set on the display interface of the translation APP. The user clicks the source language switching control 31 and can select the source language in the drop-down menu, such as Figure 3E As shown in Figure (A) in FIG. 3 , the user clicks the target language switch control 32 and can select the target language from the drop-down menu. Figure 3E As shown in Figure (B).
[0341] In another implementation of the present application, a language input control is provided on the display interface of the translation APP, and a user can input a source language and a target language. For example, two input boxes are provided on the display interface of the translation APP, one input box is used to input the source language, and the other input box is used to input the target language.
[0342] In some other embodiments of the present application, the translation APP can automatically identify the language of the text information to be translated in the reading APP and use it as the source language. In these embodiments, the user is no longer required to select the source language, which simplifies the user operation.
[0343] In some other embodiments of the present application, the translation APP can record the user's historical usage habits and determine the target language based on the user's historical usage habits. In these embodiments, the user is no longer required to select the target language, which simplifies the user operation.
[0344] In the following examples, for the convenience of description, the source language is English and the target language is Chinese. It should be understood that this example cannot be interpreted as a limitation to the present application.
[0345] S350, reading text information on the display interface of the APP, and displaying the text information in the translated target language on the translation APP.
[0346] After determining the source language and the target language, the translation APP translates the text information on the display interface of the reading APP into the target language and displays the translation result.
[0347] In an implementation of the present application, the translation APP translates text information in a text format in the reading APP. Figure 3F As shown, the translation APP will translate the English text format of the reading APP, "Walk into Switzerland Switzerland is rich in tourism resources and has the reputation of a world park.", into Chinese: "Walk into Switzerland Switzerland is rich in tourism resources and has the reputation of a world park.".
[0348] In another implementation of the present application, the translation APP translates text information in one or more formats such as text format, image or layout content in the reading APP. Figure 3G As shown, the translation app translates the text format in the reading app and the English text in the picture, and displays the translation results.
[0349] It should be understood that, more generally, there is no restriction on the format of the content displayed in the reading APP. The displayed content can be in text format, pictures, layout controls, or any other user-visible file display format. The displayed content in these formats can be displayed on the translation APP after being translated.
[0350] The following uses a tablet computer in landscape mode as an example to illustrate the implementation process of the translation APP translating text information and displaying the translation results, i.e., step S350. It should be understood that the process in portrait mode is similar to this example and will not be described in detail. Figure 4A As shown, step S350 includes steps S410 to S440.
[0351] S410, obtaining a display screenshot of the reading APP.
[0352] When the translation APP is started in split-screen mode and the source language and the target language input by the user are received, step S410 is executed to obtain a display screenshot of the reading APP.
[0353] In an implementation of the present application, the translation APP calls the system interface to capture a screenshot of the entire screen of the tablet computer, and the size of the screenshot is the size of the entire screen. For example, Figure 4B As shown in Figure (A), it is an example of a screenshot of the entire screen. Then, the translation app obtains the size of its own window area and the width and height of the tablet computer. Then, the translation app can obtain the size of the window area of the reading app based on the width and height of the tablet computer and the size of its own window area. Finally, in the screenshot of the entire screen, a picture of the reading app window area is obtained based on the size of the reading app window area. For example, Figure 4B As shown in Figure (B), it is an example of a screenshot of the reading APP window area.
[0354] S420, extracting text from the displayed screenshot.
[0355] In an implementation of the present application, the text in the displayed screenshot is extracted by using optical character recognition (OCR) technology.
[0356] S430, submitting the extracted text to a translation engine for translation to obtain a translation result.
[0357] In an implementation of the present application, the translation engine translates the extracted text into text in the target language to be ultimately displayed, namely, the translation result.
[0358] S440, displaying the translation result on the display interface of the translation APP.
[0359] At this point, the translation APP completes the translation of the text information to be translated in the reading APP.
[0360] In the embodiment of the present application, on the one hand, the user can quickly enter the split-screen display state through simple operation, so that the user can quickly obtain the translation results, which improves the efficiency of translation and reading. On the other hand, the display screen displays the translation APP and the reading APP at the same time, which increases the amount of information displayed on the display screen and improves the efficiency of multi-task interaction.
[0361] Optionally, in some other embodiments of the present application, the user operation that triggers the system pop-up window may not be limited to gesture touch operation, but may also include voice control operation of inputting preset voice, preset cursor control operation, etc.
[0362] As a non-limiting example of the present application, the tablet computer detects the user's voice input of a preset voice, such as "split screen translation" or "enter split screen translation", through the voice assistant, triggering a system pop-up box. As a non-limiting example of the present application, the user controls the cursor movement through the physical keyboard or mouse of the tablet computer, and controls the cursor to hover to the position of the preset button on the display interface of the reading APP. If the user clicks the mouse, or hovers at the position of the preset button for more than a second time, the system pop-up box is triggered. The second time is the time threshold. After the system pop-up box is triggered, the tablet computer enters the split-screen display state in response to the confirmation operation input by the user, with the reading APP displayed on one side and the translation APP displayed on the other side.
[0363] It should be noted that in some other embodiments of the present application, after the tablet computer detects that the user inputs a voice control operation of a preset voice, a preset gesture touch operation, or a preset cursor control operation, it is not necessary to trigger the system pop-up box, and the translation APP does not need to receive the confirmation operation input by the user. In these embodiments, the tablet computer enters a split-screen display state in response to the user inputting a voice control operation of a preset voice, a preset gesture touch operation, or a preset cursor control operation, with a reading APP displayed on one side and a translation APP displayed on the other side. In this way, user operations are further simplified, user interaction costs are reduced, and operational efficiency is improved.
[0364] Optionally, in some other embodiments of the present application, if the display interface of the reading APP and the display interface of the first APP are in a split-screen display state, the first APP is an APP other than the translation APP and the reading APP, such as an instant messaging APP. In this case, the user can also trigger a system pop-up box on the display interface of the reading APP. If the user triggers the system pop-up box, and the tablet receives the confirmation input by the user to operate the split-screen translation interface, the translation APP will start in split-screen mode in a way that covers the first APP, such as Figure 5AIn some implementations, if a user operation to close the translation APP is received, the first APP is activated and started in the split-screen mode in a manner of covering the translation APP.
[0365] Optionally, in some other embodiments of the present application, when the display interface of the reading APP and the display interface of the translation APP are in a split-screen display state, the user returns to the desktop, such as clicking the home button to return to the desktop, or switches from the recent task to other applications, and switches back to the reading APP again, the reading APP and the translation APP are still displayed in the split-screen mode. In these embodiments, when the operation of returning to the desktop or switching to other tasks input by the user is received, the system records the split-screen display state of the reading APP and the translation APP, switches the reading APP and the translation APP to a stop state, and when the user activates the reading APP, the system activates the reading APP and the translation APP according to the split-screen display state of the reading APP and the translation APP, and displays them in the split-screen mode. That is to say, in these embodiments, after the reading APP and the translation APP form a split screen, the display interface of the two applications, i.e., the window is bound together, whether it is returning to the desktop or entering other applications to activate the reading APP, the reading APP and the translation APP are still displayed in a split-screen state.
[0366] Optionally, in some other embodiments of the present application, after the tablet computer detects a voice control operation of a preset voice input by the user, a preset gesture touch operation, or a preset cursor control operation, or after the tablet computer receives a confirmation operation input by the user, the tablet computer responds to the voice control operation, the preset gesture touch operation, the preset cursor control operation, or the confirmation operation, and the reading APP can maintain the original display interface size, such as full-screen display, and can also avoid being blocked by the translation APP and scaled to a preset size. The translation APP is superimposed on the reading APP in a floating window mode, for example Figure 5B In these embodiments, the floating window may be a transparent or opaque floating window. The size of the display area of the reading APP and the translation APP may be set by the system by default or by the user according to the size of the display screen and personalized needs.
[0367] Optionally, in some other embodiments of the present application, continue to refer to Figure 5B As shown, a full screen and zoom display control 51 and / or an exit floating window control 52 can be set on the floating window of the translation APP. The user clicks the full screen and zoom display control 51 to switch between full screen display and floating window display. The user clicks the exit floating window control 52 to exit the floating window, that is, close the translation APP. In some embodiments of the present application, dragging the edge of the floating window of the translation APP can enlarge or reduce the floating window.
[0368] Optionally, in some other embodiments of the present application, the translation APP is displayed in a floating window mode overlaid on the reading APP, and a mobile control can be set on the floating window of the translation APP. Figure 5B As shown, the mobile control may be a top horizontal bar 53, and the user may drag the top horizontal bar 53 of the floating window to move the position of the floating window.
[0369] Optionally, in some other embodiments of the present application, the floating window can be switched to a split screen by receiving an operation of the user acting on the mobile control.
[0370] As a non-limiting example, when the tablet computer is currently in landscape mode, long press the top horizontal bar 53 of the floating window and drag it to the left or right to switch to the split screen mode. Figure 5C As shown, when you long press the top horizontal bar 53 of the floating window and drag it to the left to switch to the split-screen state, the split-screen window of the translation app is in the left half, and the split-screen window of the reading app is in the right half; when you long press the top horizontal bar 53 of the floating window and drag it to the right to switch to the split-screen state, the split-screen window of the translation app is in the right half, and the split-screen window of the reading app is in the left half.
[0371] As another non-limiting example, when the tablet is currently in portrait mode, long press the top horizontal bar 53 of the floating window and drag it upward or downward to switch to the split screen state. Figure 5D As shown, when you long press the top horizontal bar 53 of the floating window and drag upwards to switch to the split-screen state, the split-screen window of the translation app is in the upper half, and the split-screen window of the reading app is in the lower half; when you long press the top horizontal bar 53 of the floating window and drag downwards to switch to the split-screen state, the split-screen window of the translation app is in the lower half, and the split-screen window of the reading app is in the upper half.
[0372] That is, if the tablet computer is currently in landscape mode, the horizontal screen display layout is adopted, and the left and right screens are displayed. If the tablet computer is currently in portrait mode, the vertical screen display layout is adopted, and the top and bottom screens are displayed.
[0373] Optionally, in some other embodiments of the present application, after the reading APP and the translation APP are displayed in split screen, the split screen can be switched to a floating window through a received user operation. Figure 5E and Fig. 5F As shown, the split-screen window of the reading APP and / or the translation APP can set a full-screen and zoom display control 51, and / or an exit split-screen control 52, and / or a mobile control. The mobile control can be a top horizontal bar 53.
[0374] As a non-limiting example, the tablet is currently in landscape orientation. Figure 5EAs shown, the split screen window of the translation app is on the left half, and the split screen window of the reading app is on the right half. Long press the top horizontal bar 53 of the translation app split screen window and drag it to the right to switch to the floating window. The split screen window size of the reading app can be expanded to the entire display screen. As another non-limiting example, Fig. 5F As shown, the split screen window of the translation app is on the left half, and the split screen window of the reading app is on the right half. Long press the top horizontal bar 53 of the split screen window of the reading app and drag it to the left to switch to the floating window. The size of the split screen window of the translation app can be expanded to the entire display screen.
[0375] As another non-limiting example, the tablet is currently in portrait orientation. Figure 5G As shown, the split screen window of the translation app is in the upper half, and the split screen window of the reading app is in the lower half. Long press the top horizontal bar 53 of the translation app split screen window and drag it downward to switch to the floating window. The split screen window size of the reading app can be expanded to the entire display screen. As another non-limiting example, Figure 5H As shown, the split screen window of the translation app is in the upper half, and the split screen window of the reading app is in the lower half. Long press the top horizontal bar 53 of the split screen window of the reading app and drag it upward to switch to the floating window. The split screen window size of the translation app can be expanded to the entire display screen.
[0376] Based on any of the above-mentioned translation result display method embodiments, the other three embodiments of the present application provide other three translation result display methods. Figure 3A The improvement based on the shown embodiment is taken as an example for explanation.
[0377] As an embodiment of the present application, Fig. 6A As shown, in Figure 3A On the basis of the illustrated embodiment, the embodiment of the present application further includes steps S610 to S620 after step S350.
[0378] S610: receiving a sliding operation input by a user in a reading APP.
[0379] S620, in response to the sliding operation, the reading APP displays the new text, the translation APP translates the new text displayed on the reading APP, and refreshes the display.
[0380] In the embodiment of the present application, the sliding operation of the reading APP refers to the user sliding operation that triggers the page turning event, that is, the user operation that triggers the update of the displayed content. The translation APP registers a full-screen sliding event listener in the system, and the input event manager of the application framework layer can provide the translation APP with a full-screen sliding event listener. Therefore, the translation APP can determine whether a page turning event occurs in the reading APP by detecting the sliding event of the entire display screen. If a sliding operation of the user on the display interface of the reading APP is received, it can be considered that a page turning event occurs in the reading APP, so that the translation APP translates the new text and refreshes the display.
[0381] A sliding event usually consists of a sequence of a press (down) event, several move (move) events, and a release (up) event. As an implementation of the present application, the processing logic of the sliding event monitored by the translation APP includes: upon receiving a down event and a move event, it is considered that a sliding event has occurred, and the sliding coordinate sequence is recorded until an up event is received, and the coordinate position is determined according to the up event triggering the judgment, and whether the entire sliding coordinate sequence is within the display area of the reading APP. If so, it is considered that a valid sliding event has occurred, and the translation APP translates the new text displayed on the reading APP and refreshes the display; if not, it is considered that the sliding event that has occurred is invalid, and the translation APP does not respond.
[0382] It should be understood that the reading APP has the same processing logic for monitoring sliding events. For valid sliding events, the reading APP performs the page turning function, that is, updates the displayed content; and for invalid sliding events, the reading APP does not respond, that is, does not update the displayed content.
[0383] In the embodiment of the present application, the sliding operation includes a sliding operation of turning the previous page or the next page, such as sliding left or up to turn the previous page, or sliding down or right to turn the next page. When the sliding operation is detected, the reading APP triggers a page turning event, and the translation APP obtains a display screenshot of the reading APP, extracts text from the display screenshot, and submits the extracted text to the translation engine for translation, obtains the translation result, and refreshes the display. The process of refreshing the display of the translation APP is similar to Figure 3A The process of displaying the translation result in step S350 of the illustrated embodiment is similar, except that the triggering conditions are different, which will not be described here.
[0384] As a non-limiting example, Figure 6BAs shown, the tablet computer is currently in a horizontal display layout, with a left-right split screen display. The left half is a split screen window of the reading app, and the right half is a split screen window of the translation app. The tablet computer receives an upward swipe operation input by the user in the split screen window of the reading app. In response to the swipe operation, the reading app displays the content of the next page, and the translation app translates the new text displayed by the reading app and displays the new translation result.
[0385] exist Fig. 6A In the illustrated embodiment, the translation interface can automatically and synchronously display the translation results of the new content, thereby simplifying user operations, reducing user interaction costs, and improving efficiency.
[0386] As another embodiment of the present application, Fig. 7A As shown, in Figure 3A On the basis of the illustrated embodiment, the embodiment of the present application further includes steps S710 to S720 after step S350.
[0387] S710: receiving a refresh translation operation input by a user.
[0388] S720: In response to the refresh translation operation, the translation APP translates the text currently displayed on the reading APP and refreshes the display.
[0389] In real life, although reading apps usually have the function of turning pages when displaying documents, page turning events can be triggered by other than sliding operations. Fig. 6A In the embodiment shown, in the embodiment of the present application, the translation APP adds a manual refresh translation function, which can manually display the text content and translation results at the same time, making the embodiment of the present application applicable to more application scenarios and more universal.
[0390] The tablet computer receives a refresh translation operation input by the user and enables a refresh translation function of the translation APP. The refresh translation operation may include a touch operation, a voice control operation, and / or a cursor control operation. The touch operation includes a touch operation such as clicking a preset control or sliding along a preset track. The voice control operation includes a voice control operation of inputting a preset voice. The cursor control operation includes controlling the cursor to hover at the location of the preset control, etc.
[0391] Specifically, when the refresh translation operation input by the user is monitored, the translation app obtains the current display screenshot of the reading app, extracts text from the current display screenshot, submits the extracted text to the translation engine for translation, obtains the translation result, and refreshes the display. Figure 3A The process of displaying the translation result in step S350 of the illustrated embodiment is similar, except that the triggering conditions are different, which will not be described here.
[0392] As a non-limiting example, Figure 7B As shown, a refresh control 71 is set on the display interface of the translation APP. By receiving a click operation of the user on the refresh control, the translation APP obtains a display screenshot of the reading APP, obtains the translation result according to the display screenshot, and refreshes the display.
[0393] As another non-limiting example, the tablet receives a preset voice control operation input by the user, such as the user inputting "refresh translation" or "refresh translation result", etc. The translation APP obtains a display screenshot of the reading APP, obtains the translation result according to the display screenshot, and refreshes the display.
[0394] As another embodiment of the present application, Figure 8 As shown, in Figure 3A On the basis of the illustrated embodiment, the embodiment of the present application further includes steps S810 to S820 after step S350.
[0395] S810, receiving a user operation input by the user in the reading APP.
[0396] S820: In response to the user operation, if the translation APP determines that the reading APP displays new text, the new text displayed on the reading APP is translated and the display is refreshed.
[0397] In real life, although reading apps usually have the function of turning pages when displaying documents, page turning events can be triggered by other than sliding operations. Fig. 6A and Fig. 7A In the embodiment shown, in the embodiment of the present application, the translation APP registers a full-screen user operation event listener in the system. The input event manager of the application framework layer can provide the translation APP with a full-screen user operation event listener.
[0398] The tablet receives the user operation input by the user on the display interface of the reading APP, and the translation APP obtains the current display screenshot of the reading APP. The current display screenshot is compared with the historical display screenshots, and the comparison result is used to determine whether the reading APP displays new text. If it is determined that the reading APP displays new text, the new text displayed on the reading APP is translated and the display is refreshed; if it is determined that the reading APP does not display new text, the current display screenshot is no longer translated and the display is not refreshed. The process of refreshing the display of the translation APP is similar to Figure 3A The process of displaying the translation result in step S350 of the illustrated embodiment is similar, except that the triggering conditions are different, which will not be described here.
[0399] It should be noted that the historical display screenshot can be the display screenshot of the reading APP obtained by the translation APP last time. In the process of comparing the current display screenshot with the historical display screenshot, a global or local comparison scheme can be adopted, and this application does not limit this.
[0400] The embodiment of the present application can also realize the simultaneous display of text content and translation results. Fig. 6A The embodiment shown in the figure no longer monitors specific sliding page turning events, so that the embodiment of the present application is applicable to more application scenarios and is more universal; compared with Fig. 7A The illustrated embodiment reduces user operations and reduces interaction costs.
[0401] See also Fig. 9A As shown, it is a flowchart of a method for displaying translation results provided by an embodiment of the present application. The method for displaying translation results provided by this embodiment involves a cross-device connection scenario. When a first electronic device is connected to a second electronic device across devices, the translation result of the content displayed by the first electronic device can be displayed on the second electronic device. For the convenience of describing this embodiment, as Fig. 9B FIG. 1 is an exemplary application scenario of the present embodiment. In the exemplary application scenario, a mobile phone is used as an example of a first electronic device, and a tablet computer is used as an example of a second electronic device.
[0402] like Fig. 9A As shown, a method for displaying translation results includes steps S910 to S950. It should be understood that for the same steps in this embodiment as those in the above-mentioned embodiment, please refer to the corresponding description of the above-mentioned embodiment, which will not be repeated here.
[0403] S910, the mobile phone receives an operation from the user to start a reading APP, and opens the reading APP.
[0404] S920: In response to the monitored gesture event, the mobile phone triggers a system pop-up window, where the system pop-up window asks the user whether to enter a synchronous translation state.
[0405] In a non-limiting example of this application, see Fig. 9B As shown, the gesture event is a three-finger pinch event. In response to the three-finger pinch event, the mobile phone triggers a system pop-up window.
[0406] More generally, as described above, in some embodiments of the present application, the user operation that triggers the system pop-up window may include: a voice control operation of a preset voice, or a preset gesture touch operation, or a preset cursor control operation, etc.
[0407] S930, the mobile phone receives a confirmation operation input by the user and displays a device list.
[0408] In some embodiments of the present application, the device list may include local and / or surrounding receivable electronic devices.
[0409] In some other embodiments of the present application, the device list may include the local and / or surrounding receivable electronic devices with display screens.
[0410] In a non-limiting example of this application, see Fig. 9B As shown, in response to the user clicking the "Yes" control, the mobile phone displays a device list.
[0411] It should be understood that in some embodiments of the present application, the process of establishing a connection between a mobile phone and a surrounding receivable device may include steps such as discovery and connection, or steps such as discovery, authentication and connection.
[0412] In some embodiments of the present application, the mobile phone can search for receivable devices around through a BT module, an NFC module, or a Wi-Fi module, and then display a list of devices that can receive the device. When a user selects a target device in the device list, such as a tablet computer, as a display device for the translation result, a wireless communication connection such as a Wi-Fi direct connection, a hotspot, or an ultra-wideband (UWB) can be established between the mobile phone and the tablet computer. Finally, the transmission of control information and / or data information, etc. is realized between the mobile phone and the tablet computer through the established wireless communication connection. It should be noted that in other cases, a wired connection relying on a USB data cable, etc. can also be established between electronic devices to realize information transmission. Alternatively, a wireless communication connection can also be established between electronic devices by scanning a code to realize information transmission. It should be understood that the embodiment of the present application does not specifically limit the method for establishing a wireless or wired communication connection between electronic devices, and any method for realizing cross-device connection can be used in the present application.
[0413] S940: The mobile phone receives a click operation of the user selecting a tablet computer in the device list, and establishes a communication connection with the tablet computer, where the tablet computer is a device in the device list.
[0414] S950, displaying the translation result of the content displayed in the reading APP of the mobile phone on the tablet computer.
[0415] After the mobile phone receives the click operation input by the user to select the tablet computer, the mobile phone establishes a connection with the tablet computer. The mobile phone obtains the current displayed content in the reading APP, and displays the translation result of the current displayed content in the reading APP of the mobile phone on the tablet computer.
[0416] In some embodiments of the present application, after the mobile phone receives a click operation input by the user to select a tablet computer, the mobile phone establishes a communication connection with the tablet computer. In some embodiments, based on the communication connection established between the two, information exchange between the two is achieved, and the mobile phone can obtain the device capabilities of the tablet computer and determine whether the tablet computer has a translation function.
[0417] In some practical scenarios, tablet computers have translation functions.
[0418] In some implementations, after the mobile phone and the tablet computer establish a connection, the mobile phone sends a synchronous translation instruction to the tablet computer, and the tablet computer starts the translation APP according to the received synchronous translation instruction. The translation APP can allow the user to input the source language and / or the target language. When the source language and / or the target language input by the user on the tablet computer is obtained, the tablet computer sends a language determination instruction to the mobile phone. After the mobile phone receives the language determination instruction, it obtains a display screenshot of the reading APP, and sends the display screenshot to the tablet computer through the connection established between the mobile phone and the tablet computer. The tablet computer obtains the display screenshot, extracts the text information in the display screenshot, and after translating the text information into the corresponding language, displays the translation result on its own display screen.
[0419] In other implementations, the translation APP does not require the user to input the source language and / or the target language. The translation APP can identify the language of the content displayed by the reading APP as the source language, and can determine the target language based on the user's historical usage habits. The mobile phone obtains a display screenshot of the reading APP, and sends the display screenshot to the tablet computer through a communication connection established between the mobile phone and the tablet computer. The tablet computer obtains the display screenshot, extracts the text information in the display screenshot, and after translating the text information into the corresponding target language, displays the translation result on its own display screen.
[0420] In these actual scenarios, the tablet computer has a translation function. It should be understood that in these actual scenarios, if the mobile phone has a translation function, the displayed content of the reading APP can also be translated on the mobile phone side to obtain the translation result, and then the translation result can be displayed on the tablet computer. When the process of obtaining the translation result is performed on the mobile phone, the mobile phone sends the translation result to the tablet computer through the communication connection established between the mobile phone and the tablet computer. It should also be understood that the process of translating the displayed content of the reading APP to obtain the translation result can be performed partially on the mobile phone and partially on the tablet computer. This application does not limit the execution subject of this process.
[0421] Optionally, based on the implementations shown in these actual scenarios, in some other implementations of the present application, the tablet computer can refresh the display, that is, refresh the displayed translation results. The refreshing of the translation results can be achieved automatically or manually.
[0422] In some implementations, the mobile phone receives a sliding operation input by a user in a reading APP, wherein the sliding operation is a sliding page turning operation. In response to the sliding operation, the mobile phone updates the displayed content in the display interface of the reading APP. The tablet computer displays the translation result of the updated displayed content of the reading APP.
[0423] As a non-limiting example, the system monitors the sliding event of the reading APP, and in response to the sliding event input by the user, such as sliding the finger upward, the reading APP updates the displayed content and displays the next page. The tablet computer displays the translation result of the updated displayed content of the reading APP. The process of obtaining the translation result can be performed on the mobile phone or tablet computer.
[0424] In other implementations, the mobile phone receives a refresh translation operation input by the user, and in response to the refresh translation operation, the mobile phone obtains the current displayed content of the reading APP and instructs the tablet computer to display the translation result of the current displayed content of the reading APP.
[0425] As a non-limiting example, regardless of whether the display content of the display interface of the mobile reading APP is updated, the mobile phone monitors the user's voice input "refresh translation results" and controls the tablet computer to display the translation results corresponding to the current display content of the reading APP. Specifically, the mobile phone obtains the current display screenshot of the reading APP, then extracts the text information of the current display screenshot on the mobile phone or tablet computer, translates the text information to obtain the translation result, and finally displays the translation result on the tablet computer.
[0426] In other implementations, the tablet computer receives a refresh translation operation input by the user, and in response to the refresh translation operation, sends a refresh translation instruction to the mobile phone. The mobile phone obtains the current displayed content of the reading APP according to the refresh translation instruction, and instructs the tablet computer to display the translation result of the current displayed content of the reading APP.
[0427] As a non-limiting example, regardless of whether the display content of the display interface of the mobile reading APP is updated, the tablet computer monitors the user clicking the "Refresh" control of the translation APP display interface, and the tablet computer obtains the translation result corresponding to the current display content of the reading APP and displays the translation result. Exemplarily, the tablet computer monitors the user clicking the "Refresh" control of the translation APP display interface, sends a request to obtain the current display screenshot of the reading APP to the mobile phone, and the mobile phone responds to the acquisition request, obtains the current display screenshot of the reading APP, and then feeds the display screenshot back to the tablet computer. The tablet computer extracts the text information of the current display screenshot, translates the text information to obtain the translation result, and finally displays the translation result on the tablet computer. It should be understood that in other examples, the process of extracting text information, and / or the process of translating text information to obtain the translation result, can be performed on the mobile phone.
[0428] In other implementations, the mobile phone receives a user operation input by the user in a reading APP; the mobile phone responds to the user operation and determines whether the reading APP has updated the display content. If the reading APP has updated the display content, the mobile phone obtains the updated display content of the reading APP and instructs the tablet computer to display the translation result of the updated display content of the reading APP; if the reading APP has not updated the display content, no response is executed.
[0429] As a non-limiting example, the mobile phone monitors any user operation of the reading APP, and in response to any user operation input by the user, determines whether the reading APP has updated the displayed content page. If the reading APP has updated the displayed content, the updated displayed content of the reading APP is obtained, and the tablet computer is instructed to display the translation result of the updated displayed content of the reading APP.
[0430] In some other practical scenarios, the tablet computer does not have a translation function. It should be understood that in these practical scenarios, the mobile phone has a translation function, and the mobile phone calls the display function of the tablet computer.
[0431] In some implementations, after the mobile phone establishes a connection with the tablet computer, the mobile phone starts a translation APP. The translation APP allows users to input source language and / or target language. After obtaining the source language and / or target language input by the user, the mobile phone obtains a display screenshot of the reading APP. The mobile phone extracts the text information in the display screenshot, and after translating the text information into the corresponding language, the translation result is sent to the tablet computer through the connection established between the mobile phone and the tablet computer. The tablet computer displays the translation result on its own display screen. It should be understood that in these implementations, the display interface of the translation APP on the mobile phone can be displayed simultaneously with the display interface of the reading APP, and the translation APP is provided with controls for users to input source language and target language. Controls may include selection controls or input box controls, etc.
[0432] In other implementations, the translation APP does not require the user to input the source language and the target language. The translation APP identifies the language of the content displayed by the reading APP as the source language, and determines the target language based on the user's historical usage habits. The mobile phone obtains a display screenshot of the reading APP. The mobile phone extracts the text information in the display screenshot, and after translating the text information into the corresponding language, sends the translation result to the tablet computer through the connection established between the mobile phone and the tablet computer. The tablet computer displays the translation result on its own display screen. It should be understood that the translation APP on the mobile phone can be run in the background without displaying.
[0433] In the embodiment of the cross-device connection scenario, it can be determined based on the capabilities of the tablet computer to perform translation on the mobile phone or / tablet computer to obtain the translation result, and then display the translation result on the tablet computer. The technical solution of the present application is implemented based on the cross-device connection scenario, one device displays the reading content, and the other device synchronously displays the translation result. On the one hand, the use scenario of the embodiment of the present application is expanded, and the environmental adaptability of the embodiment of the present application is greatly improved; on the other hand, the display screens of the two devices are fully utilized, which improves the user's reading efficiency.
[0434] Optionally, in some other embodiments of the present application, after the mobile phone monitors a gesture event, etc., a device list may be displayed. In these embodiments, there is no need to trigger a system pop-up window or receive a confirmation operation input by the user. This simplifies user operations and reduces user interaction costs.
[0435] Optionally, in some other embodiments of the present application, the mobile phone and the tablet computer may establish a communication connection in advance. In this case, after the mobile phone monitors the gesture event, it obtains the current display content of the reading APP and instructs the tablet computer to display the translation result of the current display content of the reading APP.
[0436] Optionally, in some other embodiments of the present application, after the mobile phone monitors the gesture event, etc., it can establish a communication connection with the tablet computer according to the historical connection record. Then, the mobile phone sends the content to be translated or the translation result of the reading APP to the tablet computer, and the tablet computer translates the content to be translated into the target language and displays it, or displays the translation result after receiving the translation result.
[0437] Optionally, in some other embodiments of the present application, the user can select this machine, that is, a mobile phone, in the device list. It should be understood that in these actual scenarios, the mobile phone has a translation function. After the mobile phone receives the user's click operation to select this machine in the device list, it starts the translation APP and displays the display interface of the translation APP. The display interface of the translation APP is displayed at the same time as the display interface of the reading APP. The translation results for the display content of the reading APP are displayed on the display interface of the translation APP. It should be understood that these embodiments are the same as the aforementioned embodiments that do not involve cross-device connection, and will not be repeated here.
[0438] Optionally, in some other embodiments of the present application, the mobile phone can establish communication connections with multiple tablet computers, so that data can be exchanged with multiple tablet computers, and the translation results can be displayed on multiple tablet computers. It should be noted that in some implementations, the translation results in different target languages can be displayed on different tablet computers according to the user's historical usage habits or different target languages input by the user.
[0439] Corresponding to the translation result display method described in the above embodiment, the embodiment of the present application further provides a translation result display device, and each module of the translation result display device can correspond to each step of the translation result display method.
[0440] It should be noted that the information interaction, execution process and other contents between modules / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0441] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0442] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0443] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0444] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0445] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0446] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0447] In the embodiments provided in the present application, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the electronic device embodiments described above are only illustrative. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0448] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0449] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for displaying translation results, characterized in that: include: In response to a first operation by the user, displaying a display interface of the first application and a display interface of the second application in split screen; Or, superimposing and displaying the display interface of the second application on the display interface of the first application, where the second application is a translation application; Translate the currently displayed content in the first application into a target language to obtain a translation result; Displaying the translation result on a display interface of the second application; Receive a second operation input by a user to update the currently displayed content in the first application; In response to the second operation, the updated display content is displayed on the display interface of the first application, and the translation result corresponding to the updated display content is automatically and synchronously displayed on the display interface of the second application.
2. The method according to claim 1, characterized in that In response to a first operation by the user, displaying a display interface of the first application and a display interface of the second application in split screen; Or, displaying the display interface of the second application on the display interface of the first application in an overlaid manner, including: In response to the first operation of the user, triggering a system pop-up window, wherein the system pop-up window includes a system pop-up window asking the user whether to enter a synchronous translation state; If a confirmation operation is received from the user in response to the system pop-up box input, the display interface of the first application and the display interface of the second application are displayed in split screen; or, the display interface of the second application is superimposed on the display interface of the first application.
3. The method according to any one of claims 1 to 2, characterized in that: Before translating the currently displayed content in the first application into a target language to obtain a translation result, the method further includes: The source language and / or the target language input by the user in the second application is obtained.
4. The method according to any one of claims 1 to 2, characterized in that: In the case where the display interface of the first application and the display interface of the second application are displayed in split screen, the method further includes: In response to a fourth operation input by the user on the display interface of the first application or the display interface of the second application, the display interface of the first application or the display interface of the second application is switched to a floating window; In the case where the display interface of the second application is superimposed and displayed on the display interface of the first application, the method further includes: In response to a fifth operation input by the user on the display interface of the second application, the display interface of the first application and the display interface of the second application are switched to split-screen display.
5. A method for displaying translation results, characterized in that: include: The first electronic device translates the currently displayed content in the first application into a target language in response to a first operation of the user to obtain a translation result, wherein the first operation is an operation that triggers the first electronic device and a second electronic device in communication with the first electronic device to enter a synchronous translation state; The first electronic device sends the translation result to the second electronic device for display; The first electronic device receives a second operation input by a user to update the currently displayed content in the first application; In response to the second operation, the first electronic device displays updated display content on the display interface of the first application, translates the updated display content into a target language, obtains a translation result corresponding to the updated display content, and sends the translation result corresponding to the updated display content to the second electronic device for display.
6. The method according to claim 5, characterized in that The first electronic device translates the currently displayed content in the first application into a target language in response to a first operation by the user to obtain a translation result, including: The first electronic device displays a device list in response to the first operation of the user; The first electronic device receives a second operation of the user selecting the second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list; The first electronic device translates the currently displayed content in the first application into a target language to obtain a translation result.
7. The method according to claim 5, characterized in that The first electronic device translates the currently displayed content in the first application into a target language in response to a first operation by the user to obtain a translation result, including: The first electronic device triggers a system pop-up box in response to the first operation of the user, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state; If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, a communication connection is established with the second electronic device; The first electronic device translates the currently displayed content in the first application into a target language to obtain a translation result.
8. The method according to claim 5, characterized in that The first electronic device translates the currently displayed content in the first application into a target language in response to a first operation by the user to obtain a translation result, including: The first electronic device triggers a system pop-up box in response to the first operation of the user, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state; If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, displaying a device list; The first electronic device receives a second operation of the user selecting the second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list; The first electronic device translates the currently displayed content in the first application into a target language to obtain a translation result.
9. A method for displaying translation results, characterized in that: include: The first electronic device obtains the currently displayed content in the first application in response to a first operation of the user, wherein the first operation is an operation that triggers the first electronic device and a second electronic device in communication with the first electronic device to enter a synchronous translation state; The first electronic device sends the currently displayed content to the second electronic device, and instructs the second electronic device to translate the currently displayed content into a target language for display; The first electronic device receives a second operation input by a user to update the currently displayed content in the first application; In response to the second operation, the first electronic device displays updated display content on the display interface of the first application, sends the updated display content to the second electronic device, and instructs the second electronic device to translate the updated display content into a target language for display.
10. The method according to claim 9, characterized in that The first electronic device obtains currently displayed content in the first application in response to a first operation by a user, including: The first electronic device displays a device list in response to the first operation of the user; The first electronic device receives a second operation of the user selecting the second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list; The first electronic device obtains the currently displayed content in the first application.
11. The method according to claim 9, characterized in that The first electronic device obtains currently displayed content in the first application in response to a first operation by a user, including: The first electronic device triggers a system pop-up box in response to the first operation of the user, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state; If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, a communication connection is established with the second electronic device; The first electronic device obtains the currently displayed content in the first application.
12. The method according to claim 9, characterized in that The first electronic device obtains currently displayed content in the first application in response to a first operation by a user, including: The first electronic device triggers a system pop-up box in response to the first operation of the user, wherein the system pop-up box includes a system pop-up box asking the user whether to enter a synchronous translation state; If the first electronic device receives a confirmation operation input by the user in response to the system pop-up box, displaying a device list; The first electronic device receives a second operation of the user selecting the second electronic device in the device list, and establishes a communication connection with the second electronic device, where the second electronic device is a device in the device list; The first electronic device obtains the currently displayed content in the first application.
13. The method according to any one of claims 5 to 12, characterized in that: Also includes: The first electronic device receives a refresh translation operation input by a user; In response to the refresh translation operation, the first electronic device obtains the current displayed content in the first application, and instructs the second electronic device to display the translation result corresponding to the current displayed content in the first application; or, also include: The first electronic device receives a refresh translation instruction from the second electronic device; the refresh translation instruction is triggered by the second electronic device receiving a refresh translation operation input by a user; In response to the refresh translation instruction, the first electronic device obtains the current displayed content in the first application, and instructs the second electronic device to display the translation result corresponding to the current displayed content in the first application.
14. A translation result display device, characterized in that: include: A first display module, configured to display a display interface of the first application and a display interface of the second application in split screen in response to a first operation of the user; Or, superimposing and displaying the display interface of the second application on the display interface of the first application, where the second application is a translation application; A translation module, used to translate the currently displayed content in the first application into a target language to obtain a translation result; A second display module, configured to display the translation result on a display interface of the second application; A receiving module, configured to receive a second operation input by a user to update the currently displayed content in the first application; The first display module is further configured to display updated display content on the display interface of the first application in response to the second operation; The second display module is further configured to automatically and synchronously display the translation result corresponding to the updated display content on the display interface of the second application in response to the second operation.
15. An electronic device comprising a display screen, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device implements the method according to any one of claims 1 to 13.
16. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
17. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 13.