CN109739664B - Information processing method, information processing apparatus, electronic device, and medium - Google Patents

Information processing method, information processing apparatus, electronic device, and medium Download PDF

Info

Publication number
CN109739664B
CN109739664B CN201811653604.0A CN201811653604A CN109739664B CN 109739664 B CN109739664 B CN 109739664B CN 201811653604 A CN201811653604 A CN 201811653604A CN 109739664 B CN109739664 B CN 109739664B
Authority
CN
China
Prior art keywords
content
pasted
translation
language
input operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811653604.0A
Other languages
Chinese (zh)
Other versions
CN109739664A (en
Inventor
李彦龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811653604.0A priority Critical patent/CN109739664B/en
Publication of CN109739664A publication Critical patent/CN109739664A/en
Application granted granted Critical
Publication of CN109739664B publication Critical patent/CN109739664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present disclosure provides an information processing method, including: obtaining an input operation for an input area; acquiring original content to be pasted based on the input operation, wherein the original content to be pasted is copy content determined by responding to a copy action before the input operation is acquired or cut content determined by responding to a cut action before the input operation is acquired; obtaining a first language according to a preset rule; obtaining a second language from the original content; and if the first language is different from the second language, displaying prompt information corresponding to the input operation. The present disclosure also provides an information processing apparatus, an electronic device, and a computer-readable storage medium.

Description

Information processing method, information processing apparatus, electronic device, and medium
Technical Field
The present disclosure relates to an information processing method, apparatus, electronic device, and medium.
Background
With the rapid development of scientific technology, electronic devices with various functions are increasingly applied to many scenes such as life and work in order to improve user experience. For example, each electronic apparatus generally has a copy-paste or cut-paste function for the convenience of user operation.
However, in the course of implementing the disclosed concept, the inventor finds that there is at least the following problem in the prior art, that is, in the prior art, usually, in response to the user's paste operation, the copied or cut content is directly pasted to the designated location, the user can only see the pasted content after the paste is completed, and if the content is not the content that the user wants, the user needs to erase the content again, which brings no change, and is not friendly and intelligent to the user.
Disclosure of Invention
One aspect of the present disclosure provides an information processing method, including: the method comprises the steps of obtaining input operation aiming at an input area, obtaining original content to be pasted based on the input operation, wherein the original content to be pasted is copy content determined by responding to a copy action before the input operation is obtained or cut content determined by responding to a cut action before the input operation is obtained, obtaining a first language according to a preset rule, obtaining a second language according to the original content, and displaying prompt information corresponding to the input operation if the first language is different from the second language.
Optionally, the prompt information includes: the translation content to be pasted is the content which converts the original content into the first language, wherein the translation content to be pasted is used for being provided for a user to select so as to respond to a pasting instruction.
Optionally, the prompt information includes: the original content to be pasted and the translation content to be pasted are converted into the content of the first language, and are used for being selected by a user to respond to a pasting instruction.
Optionally, the prompt information includes: the translation control is used for indicating to generate translation content to be pasted, and the translation content to be pasted is content for converting the original content from the second language to the first language.
Optionally, the method further includes: and acquiring a trigger instruction aiming at the translation control, responding to the trigger instruction to generate the translation content to be pasted, adding the translation content to be pasted into the prompt information, and providing the prompt information for a user to select so as to respond to the pasting instruction. Or obtaining a selected instruction aiming at the translation control, so that the translation content to be pasted is generated based on the selected instruction when the pasting instruction is responded, and the translation content to be pasted is added into an input area.
Optionally, the prompt information is used to display a plurality of contents to be pasted and a pasting control, the plurality of contents to be pasted at least include translation contents to be pasted, and the plurality of contents to be pasted are used to provide a user with a choice of at least one content to be pasted. The method further comprises the following steps: responding to the triggering operation of the pasting control to add the at least one content to be pasted selected by the user into the input area in response to the pasting instruction.
Optionally, the method further includes: and when the first language is the same as the second language, displaying the original content to be pasted.
Another aspect of the present disclosure provides an information processing apparatus including a first obtaining module, a second obtaining module, a third obtaining module, a fourth obtaining module, and a first presenting module. The first obtaining module obtains an input operation for an input area. The second obtaining module obtains original content to be pasted based on the input operation, wherein the original content to be pasted is copy content determined by responding to a copy action before the input operation is obtained or cut content determined by responding to a cut action before the input operation is obtained. The third obtaining module obtains the first language according to a preset rule. The fourth obtaining module obtains the second language according to the original content. And if the first language is different from the second language, the first display module displays prompt information corresponding to the input operation.
Optionally, the prompt information includes: the translation content to be pasted is the content which converts the original content into the first language, wherein the translation content to be pasted is used for being provided for a user to select so as to respond to a pasting instruction.
Optionally, the prompt information includes: the original content to be pasted and the translation content to be pasted are converted into the content of the first language, and are used for being selected by a user to respond to a pasting instruction.
Optionally, the prompt information includes: the translation control is used for indicating to generate translation content to be pasted, and the translation content to be pasted is content for converting the original content from the second language to the first language.
Optionally, the apparatus further comprises: and the fifth obtaining module is used for obtaining a trigger instruction aiming at the translation control, responding to the trigger instruction to generate the translation content to be pasted, adding the translation content to be pasted into the prompt information, and providing the translation content to be pasted for a user to select so as to respond to the pasting instruction. Or a sixth obtaining module, configured to obtain a selected instruction for the translation control, so that when the pasting instruction is responded, the translation content to be pasted is generated based on the selected instruction, and the translation content to be pasted is added into an input area.
Optionally, the prompt information is used to display a plurality of contents to be pasted and a pasting control, the plurality of contents to be pasted at least include translation contents to be pasted, and the plurality of contents to be pasted are used to provide a user with a choice of at least one content to be pasted. The above-mentioned device still includes: and the response module responds to the triggering operation aiming at the pasting control so as to respond to the pasting instruction to add the at least one content to be pasted selected by the user into the input area.
Optionally, the apparatus further comprises: and the second display module displays the original content to be pasted when the first language is the same as the second language.
Another aspect of the present disclosure provides an electronic device including: one or more memories storing executable instructions and one or more processors executing the executable instructions to obtain input operations for an input area; acquiring original content to be pasted based on the input operation, wherein the original content to be pasted is copy content determined by responding to a copy action before the input operation is acquired or cut content determined by responding to a cut action before the input operation is acquired; obtaining a first language according to a preset rule; obtaining a second language from the original content; and if the first language is different from the second language, displaying prompt information corresponding to the input operation.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1A to 1D schematically show application scenarios of the information processing method and apparatus according to an embodiment of the present disclosure;
FIG. 2 schematically shows a flow chart of an information processing method according to an embodiment of the present disclosure;
3A-3F schematically illustrate diagrams of a cue according to an embodiment of the present disclosure;
fig. 4A and 4B schematically show block diagrams of an information processing apparatus according to an embodiment of the present disclosure;
fig. 5 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
An embodiment of the present disclosure provides an information processing method, including: the method comprises the steps of obtaining input operation aiming at an input area, obtaining original content to be pasted based on the input operation, wherein the original content to be pasted is the copied content determined by responding to a copying action before obtaining the input operation or the cut content determined by responding to a cutting action before obtaining the input operation, obtaining a first language according to a preset rule, obtaining a second language according to the original content, and displaying prompt information corresponding to the input operation if the first language is different from the second language.
Fig. 1A to 1D schematically show application scenarios of the information processing method and apparatus according to the embodiment of the present disclosure.
As shown in fig. 1A and 1B, in the related art, an electronic device generally has a function of copy-paste or cut-paste for the convenience of user operation. For example, as shown in fig. 1A, the electronic device may display the paste control 110 in response to an input operation by the user with respect to the input area (e.g., a long press operation within the input area of a smartphone, etc.). After the user triggers the paste control 110, the electronic device directly pastes the original content (Meeting at 10am on monitoring) to be pasted in the input area in response to the trigger operation, as shown in fig. 1B.
Therefore, in the related art, usually, the copied or cut content is directly pasted to a specified position in response to the pasting operation of the user, the user can see the pasted content only after the pasting is completed, and if the content is not the content desired by the user, the user needs to erase the content again, so that invariance, and the related technology is not friendly and intelligent.
In view of this, the present disclosure provides an information processing method, after an input operation for an input area is obtained, original content to be pasted is obtained based on the input operation, a first language is obtained according to a preset rule, a second language is obtained according to the original content, and prompt information corresponding to the input operation is presented if the first language is different from the second language.
For example, as shown in fig. 1C and 1D, the application scenario shown in fig. 1C may be, for example, a notepad, and the application scenario shown in fig. lD may be, for example, an instant messaging application (e.g., a WeChat, etc.).
The original content to be pasted may be Meeting at 10am on Monday timing, the corresponding second language may be English, and the prompt information 130 may be displayed if the first language obtained according to the preset rule may be Chinese. The prompt message 130 may include, for example, translated content to be pasted (i.e., a ten-am meeting on monday) after converting the original content from english to chinese.
It can be understood that if the language of the original content to be pasted is different from the language of the currently existing content in the input area, or the language of the original content to be pasted is different from the language of the input method corresponding to the input area, or the language of the original content to be pasted is different from the system language of the electronic device, or the language of the original content to be pasted is different from the common language used by the user, if the original content is directly pasted as in the prior art, the original content may not meet the user's intention, and the user needs to translate and modify the pasted content, which is very inconvenient. In this case, the embodiment of the present disclosure may respond to the input operation of the user, and display the prompt information, where the prompt information at least includes the corresponding translation content to be pasted, so as to provide more information for the user, facilitate the use of the user, and improve the user experience.
It should be noted that fig. 1A to 1D are only examples of scenarios in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
Fig. 2 schematically shows a flow chart of an information processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 to S205.
In operation S201, an input operation for an input area is obtained.
In operation S202, original content to be pasted is obtained based on an input operation, where the original content to be pasted is copied content determined in response to a copying action before the input operation is obtained or cut content determined in response to a cutting action before the input operation is obtained.
In operation S203, a first language is obtained according to a preset rule.
In operation S204, a second language is obtained from the original content.
In operation S205, if the first language is different from the second language, a prompt corresponding to the input operation is presented.
According to the embodiment of the present disclosure, the input operation may be an operation related to a paste function. For example, the input operation may be a long-press operation in an input area of an electronic device such as a smartphone, a right-key operation at a position of a cursor of an electronic device such as a computer, or a shortcut key operation (e.g., Ctrl + v).
In the embodiment of the present disclosure, the original content to be pasted may be acquired based on the input operation. The original content to be pasted may be one or more pieces of content determined in response to a copy action or a cut action prior to the input operation. For example, the original content to be pasted may be the most recent copied content or cut content. Alternatively, the original content to be pasted may be copied content or cut content of the last several times. Still alternatively, the original content to be pasted may also be content whose copy or cut frequency exceeds a threshold within a preset time.
According to an embodiment of the present disclosure, obtaining the first language according to the preset rule may be obtaining the first language according to a language of input content existing in the current input area. For example, if the input content already in the current input area is Chinese content, then the first language may be Chinese.
Or, the first language obtained according to the preset rule may also be obtained according to a language corresponding to a character within a preset character distance of the current cursor position. For example, if the character preceding the cursor is a Chinese character, the first language may be Chinese.
Or, the first language may be obtained according to a preset rule, or according to a language corresponding to an input method of the current input area. For example, if the input method of the current input area is a Chinese input method, the first language may be Chinese.
Alternatively, the obtaining of the first language according to the preset rule may also be obtaining the first language according to a system language of the electronic device. For example, if the system language of the electronic device is Chinese, the first language may be Chinese.
In the embodiment of the present disclosure, a second language corresponding to the original content to be pasted may also be obtained. For example, the second language may be obtained from the text content in the original content to be pasted. In some embodiments of the present disclosure, if the original content to be pasted is a pure arabic numeral or a picture, the second language corresponding to the original content may be considered to be the same as the first language.
In an embodiment of the present disclosure, the prompt message may include: and the translation content to be pasted is the content for converting the original content into the first language, wherein the translation content to be pasted is used for providing a user with a selection to respond to the pasting instruction.
For example, as shown in FIG. 3A, the original content is Meeting at 10am on Monday morning, the first language is Chinese, the hint information 130 can include the translated content 131 to be pasted, and the translated content 131 to be pasted is the content that converted the original content into Chinese (i.e., Monday morning Meeting).
The prompt 130 may further include a paste control 132, and the electronic device may respond to a trigger operation for the paste control 132 to add the translated content 131 to be pasted into the input area in response to the paste instruction. For example, the user clicks on the paste control 132, the electronic device may add "Monday morning ten-PM" into the input area.
In another embodiment of the present disclosure, the prompt message may include: the content pasting method comprises original content to be pasted and translated content to be pasted, wherein the translated content to be pasted is content for converting the original content into a first language, and the original content to be pasted and the translated content to be pasted are used for providing a user with a selection to respond to a pasting instruction.
For example, as shown in FIG. 3B, the hint information 130 can include the original content 133 to be pasted (Meeting at 10am on Monday lighting) and the translated content 131 to be pasted (Ten-PM Meeting on Monday).
The prompt 130 may also include a selection box 134 that the user may select for pasting content by checking. According to the embodiment of the disclosure, when the prompt content includes a plurality of contents to be pasted, a plurality of selection frames can be correspondingly displayed for providing the user with a selection. When only one content to be pasted is included in the prompt content, the selection frame may be displayed or may not be displayed.
The prompt 130 may further include a paste control 132, and the electronic device may respond to a trigger operation for the paste control 132 to add the at least one content to be pasted selected by the user into the input area in response to the paste instruction. For example, the user has checked the selection box corresponding to the original content and triggered the paste control 132, the electronic device can add "Meeting at 10am on Monday warning" into the input area.
In a further embodiment of the present disclosure, the prompt message may include original content to be pasted and a translation control, where the translation control is used to instruct generation of translation content to be pasted, and the translation content to be pasted is content that converts the original content from the second language to the first language.
For example, as shown in FIG. 3C, the hints information 130 can include the original content 133(Meeting at 10am on today mouning) to be pasted and the translation controls 135. Translation control 135 may be used to indicate that translation content to be pasted (a monday ten-am meeting) is generated.
According to the embodiment of the disclosure, a trigger instruction for the translation control 135 may be obtained, the translation content to be pasted is generated in response to the trigger instruction, and the translation content to be pasted is added to the prompt information and provided for the user to select in response to the pasting instruction.
For example, as shown in FIG. 3D, the user may click on the translation control 135, and the electronic device generates translated content 131 (ten o' clock on Monday morning) in response to the triggering instruction and adds the translated content 131 to the reminder 130. In the embodiment of the present disclosure, after the translation content to be pasted is added to the prompt information, the display of the translation control may be cancelled, or the translation control may be continuously displayed. The user may continue to select the generated translated content 131 or the original content 133 and then trigger the paste control 132 to add the selected content to the input area.
According to the embodiment of the disclosure, a selected instruction for the translation control 135 may also be obtained, so that when responding to the pasting instruction, the translation content to be pasted is generated based on the selected instruction and is added into the input area.
For example, as shown in FIG. 3E, the hints information 130 can include the original content 133, the translation controls 135, and their respective corresponding selection boxes. For example, if the user selects the selection box corresponding to the translation control and triggers the paste control 132, the electronic device may generate and add translation content (ten-pm monday meeting) to the input area in response to the paste instruction.
In the disclosed embodiment, for example, as shown in fig. 3F, the original content may include a plurality of pieces of original content, and the prompt information 130 may be used to show a plurality of pieces of original content to be pasted and/or translated content to be pasted and a paste control. A plurality of original content and/or translated content to be pasted may be used to provide the user with a selection. And responding to the triggering operation of the pasting control to add the at least one content to be pasted selected by the user into the input area in response to the pasting instruction.
According to the embodiment of the disclosure, if the first language is different from the second language, the prompt message can be displayed, and the prompt message can include the translation content to be pasted so as to prompt the user. If the first language is the same as the second language, the prompt message can not be displayed, and the content to be pasted is added into the input area by directly responding to the instruction for triggering the pasting control. Alternatively, if the first language and the second language are the same, the original content to be pasted may also be presented so that the user knows the content to be pasted.
The embodiment of the disclosure can provide more choices for the user by displaying the prompt information, fully considers the language currently required by the user, facilitates the use of the user, and improves the user experience.
Fig. 4A and 4B schematically show block diagrams of an information processing apparatus 400 according to an embodiment of the present disclosure.
As shown in fig. 4A, the information processing apparatus 400 includes a first obtaining module 410, a second obtaining module 420, a third obtaining module 430, a fourth obtaining module 440, and a first presenting module 450.
The first obtaining module 410 obtains an input operation for an input area.
The second obtaining module 420 obtains the original content to be pasted based on the input operation, wherein the original content to be pasted is the copied content determined in response to the copying action before obtaining the input operation or the cut content determined in response to the cutting action before obtaining the input operation.
The third obtaining module 430 obtains the first language according to a preset rule.
The fourth obtaining module 440 obtains the second language from the original content.
The first presentation module 450 presents the prompt message corresponding to the input operation if the first language is different from the second language.
According to an embodiment of the present disclosure, the prompt message may include: and the translation content to be pasted is the content which converts the original content into the first language, wherein the translation content to be pasted is used for providing a user with a selection so as to respond to the pasting instruction.
According to an embodiment of the present disclosure, the prompt message may include: the content pasting method comprises original content to be pasted and translated content to be pasted, wherein the translated content to be pasted is content for converting the original content into a first language, and the original content to be pasted and the translated content to be pasted are used for providing a user with a selection to respond to a pasting instruction.
According to an embodiment of the present disclosure, the prompt message may include: the translation control is used for indicating to generate translation content to be pasted, and the translation content to be pasted is content for converting the original content from the second language to the first language.
As shown in fig. 4B, the information processing apparatus 400 may further include a fifth obtaining module 460, a sixth obtaining module 470, a responding module 480, and a second presenting module 490.
The fifth obtaining module 460 obtains a trigger instruction for the translation control, generates translation content to be pasted in response to the trigger instruction, adds the translation content to be pasted to the prompt information, and provides the translation content to be pasted to the user for selection in response to the pasting instruction.
The sixth obtaining module 470 obtains a selected instruction for the translation control, so that when the pasting instruction is responded, the translation content to be pasted is generated based on the selected instruction and is added into the input area.
According to the embodiment of the disclosure, the prompt message is used for displaying a plurality of contents to be pasted and the pasting control, the plurality of contents to be pasted at least include translation contents to be pasted, and the plurality of contents to be pasted are used for providing a user with at least one selected content to be pasted.
The response module 480 responds to the trigger operation of the paste control to add the at least one content to be pasted selected by the user into the input area in response to the paste instruction.
The second presentation module 490 presents the original content to be pasted when the first language is the same as the second language.
According to the embodiment of the disclosure, the information processing apparatus 400 as shown in fig. 4A and 4B may implement the method described above with reference to fig. 2, for example, and will not be described herein again.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the first obtaining module 410, the second obtaining module 420, the third obtaining module 430, the fourth obtaining module 440, the first presenting module 450, the fifth obtaining module 460, the sixth obtaining module 470, the responding module 480 and the second presenting module 490 may be combined to be implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first obtaining module 410, the second obtaining module 420, the third obtaining module 430, the fourth obtaining module 440, the first presenting module 450, the fifth obtaining module 460, the sixth obtaining module 470, the responding module 480, and the second presenting module 490 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable manner of integrating or packaging a circuit, or implemented in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the first obtaining module 410, the second obtaining module 420, the third obtaining module 430, the fourth obtaining module 440, the first presenting module 450, the fifth obtaining module 460, the sixth obtaining module 470, the responding module 480 and the second presenting module 490 may be at least partially implemented as a computer program module which, when executed, may perform a corresponding function.
Fig. 5 schematically shows a block diagram of an electronic device adapted to implement the above described method according to an embodiment of the present disclosure. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device 500 includes a processor 510, a computer-readable storage medium 520. The electronic device 500 may perform a method according to an embodiment of the present disclosure.
In particular, processor 510 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 510 may also include on-board memory for caching purposes. Processor 510 may be a single processing unit or a plurality of processing units for performing different actions of a method flow according to embodiments of the disclosure.
Computer-readable storage media 520, for example, may be non-volatile computer-readable storage media, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 520 may include a computer program 521, which computer program 521 may include code/computer-executable instructions that, when executed by the processor 510, cause the processor 510 to perform a method according to an embodiment of the disclosure, or any variation thereof.
The computer program 521 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 521 may include one or more program modules, including for example 521A, modules 521B, … …. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, and when these program modules are executed by the processor 510, the processor 510 may execute the method according to the embodiment of the present disclosure or any variation thereof.
According to an embodiment of the present invention, at least one of the first obtaining module 410, the second obtaining module 420, the third obtaining module 430, the fourth obtaining module 440, the first presenting module 450, the fifth obtaining module 460, the sixth obtaining module 470, the responding module 480 and the second presenting module 490 may be implemented as a computer program module described with reference to fig. 5, which when executed by the processor 510 may implement the respective operations described above.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. An information processing method comprising:
obtaining an input operation for an input area;
acquiring original content to be pasted based on the input operation, wherein the original content to be pasted is copy content determined by responding to a copy action before the input operation is acquired or cut content determined by responding to a cut action before the input operation is acquired;
obtaining a first language according to a preset rule;
obtaining a second language from the original content;
if the first language is different from the second language, displaying prompt information corresponding to the input operation;
the prompt information comprises the original content to be pasted and the translation content to be pasted, the translation content to be pasted is the content which converts the original content into the first language, and the original content to be pasted and the translation content to be pasted are used for being provided for a user to select so as to respond to a pasting instruction;
the prompt message also comprises a pasting control;
the method further comprises the following steps: responding to the triggering operation of the pasting control to add the at least one content to be pasted selected by the user into the input area in response to the pasting instruction.
2. The method of claim 1, wherein:
the prompt information is used for displaying a plurality of original contents to be pasted and translation contents to be pasted, and the original contents to be pasted and the translation contents to be pasted are used for providing a user with at least one content to be pasted.
3. The method of claim 1, further comprising:
and when the first language is the same as the second language, displaying the original content to be pasted.
4. An information processing method comprising:
obtaining an input operation for an input area;
acquiring original content to be pasted based on the input operation, wherein the original content to be pasted is copy content determined by responding to a copy action before the input operation is acquired or cut content determined by responding to a cut action before the input operation is acquired;
obtaining a first language according to a preset rule;
obtaining a second language from the original content;
if the first language is different from the second language, displaying prompt information corresponding to the input operation;
the prompt information comprises the original content to be pasted, a translation control and a pasting control; the translation control is used for indicating to generate translation content to be pasted, and the translation content to be pasted is content for converting the original content from the second language to the first language;
the method further comprises the following steps: acquiring a trigger instruction for the translation control, responding to the trigger instruction to generate the translation content to be pasted, adding the translation content to be pasted into the prompt information, and providing the translation content to be pasted for a user to select so as to respond to a pasting instruction;
responding to a trigger operation aiming at the pasting control to add at least one to-be-pasted content selected by the user into an input area in response to the pasting instruction;
or
Obtaining a selected instruction for the translation control;
responding to the trigger operation aiming at the pasting control to respond to the pasting instruction, generating the translation content to be pasted based on the selected instruction, and adding the translation content to be pasted into an input area.
5. The method of claim 4, wherein:
the prompt information is used for displaying a plurality of original contents to be pasted and translation contents to be pasted, and the original contents to be pasted and the translation contents to be pasted are used for providing a user with at least one content to be pasted.
6. An information processing apparatus comprising:
a first obtaining module that obtains an input operation for an input area;
a second obtaining module, configured to obtain original content to be pasted based on the input operation, where the original content to be pasted is copied content determined in response to a copy action before the input operation is obtained or cut content determined in response to a cut action before the input operation is obtained;
the third obtaining module is used for obtaining the first language according to a preset rule;
a fourth obtaining module, for obtaining a second language according to the original content;
the first display module is used for displaying prompt information corresponding to the input operation if the first language is different from the second language;
the prompt information comprises the original content to be pasted and the translation content to be pasted, the translation content to be pasted is the content which converts the original content into the first language, and the original content to be pasted and the translation content to be pasted are used for being provided for a user to select so as to respond to a pasting instruction;
the prompt message also comprises a pasting control; responding to the triggering operation of the pasting control to add the at least one content to be pasted selected by the user into the input area in response to the pasting instruction.
7. An information processing apparatus comprising:
a first obtaining module that obtains an input operation for an input area;
a second obtaining module, configured to obtain original content to be pasted based on the input operation, where the original content to be pasted is copied content determined in response to a copy action before the input operation is obtained or cut content determined in response to a cut action before the input operation is obtained;
the third obtaining module is used for obtaining the first language according to a preset rule;
a fourth obtaining module, for obtaining a second language according to the original content;
the first display module is used for displaying prompt information corresponding to the input operation if the first language is different from the second language;
the prompt information comprises the original content to be pasted, a translation control and a pasting control; the translation control is used for indicating to generate translation content to be pasted, and the translation content to be pasted is content for converting the original content from the second language to the first language;
acquiring a trigger instruction for the translation control, responding to the trigger instruction to generate the translation content to be pasted, adding the translation content to be pasted into the prompt information, and providing the translation content to be pasted for a user to select so as to respond to a pasting instruction;
responding to a trigger operation aiming at the pasting control to add at least one to-be-pasted content selected by the user into an input area in response to the pasting instruction;
or
Obtaining a selected instruction for the translation control;
responding to the trigger operation aiming at the pasting control to respond to the pasting instruction, generating the translation content to be pasted based on the selected instruction, and adding the translation content to be pasted into an input area.
8. An electronic device, comprising:
one or more memories storing executable instructions; and
one or more processors executing the executable instructions to obtain an input operation for an input area; acquiring original content to be pasted based on the input operation, wherein the original content to be pasted is copy content determined by responding to a copy action before the input operation is acquired or cut content determined by responding to a cut action before the input operation is acquired; obtaining a first language according to a preset rule; obtaining a second language from the original content; if the first language is different from the second language, displaying prompt information corresponding to the input operation;
the prompt information comprises the original content to be pasted and the translation content to be pasted, the translation content to be pasted is the content which converts the original content into the first language, and the original content to be pasted and the translation content to be pasted are used for being provided for a user to select so as to respond to a pasting instruction;
the prompt message further comprises a pasting control, and at least one content to be pasted selected by the user is added into the input area in response to the pasting instruction in response to the triggering operation aiming at the pasting control.
9. An electronic device, comprising:
one or more memories storing executable instructions; and
one or more processors executing the executable instructions to obtain an input operation for an input area; acquiring original content to be pasted based on the input operation, wherein the original content to be pasted is copy content determined by responding to a copy action before the input operation is acquired or cut content determined by responding to a cut action before the input operation is acquired; obtaining a first language according to a preset rule; obtaining a second language from the original content; if the first language is different from the second language, displaying prompt information corresponding to the input operation;
the prompt information comprises the original content to be pasted, a translation control and a pasting control; the translation control is used for indicating to generate translation content to be pasted, and the translation content to be pasted is content for converting the original content from the second language to the first language;
acquiring a trigger instruction for the translation control, responding to the trigger instruction to generate the translation content to be pasted, adding the translation content to be pasted into the prompt information, and providing the translation content to be pasted for a user to select so as to respond to a pasting instruction;
responding to a trigger operation aiming at the pasting control to add at least one to-be-pasted content selected by the user into an input area in response to the pasting instruction;
or
Obtaining a selected instruction for the translation control;
responding to the trigger operation aiming at the pasting control to respond to the pasting instruction, generating the translation content to be pasted based on the selected instruction, and adding the translation content to be pasted into an input area.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, implement the method of any of claims 1 to 3 or the method of any of claims 4 to 5.
CN201811653604.0A 2018-12-29 2018-12-29 Information processing method, information processing apparatus, electronic device, and medium Active CN109739664B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811653604.0A CN109739664B (en) 2018-12-29 2018-12-29 Information processing method, information processing apparatus, electronic device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811653604.0A CN109739664B (en) 2018-12-29 2018-12-29 Information processing method, information processing apparatus, electronic device, and medium

Publications (2)

Publication Number Publication Date
CN109739664A CN109739664A (en) 2019-05-10
CN109739664B true CN109739664B (en) 2021-05-18

Family

ID=66362968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811653604.0A Active CN109739664B (en) 2018-12-29 2018-12-29 Information processing method, information processing apparatus, electronic device, and medium

Country Status (1)

Country Link
CN (1) CN109739664B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021248383A1 (en) * 2020-06-10 2021-12-16 Orange Method for inputting message on terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101427244A (en) * 2006-04-26 2009-05-06 卢森特技术有限公司 Language translation service for text message communications
CN102375809A (en) * 2010-08-04 2012-03-14 英业达股份有限公司 System of instantly outputting second language by using input first language and method thereof
CN108108249A (en) * 2016-11-25 2018-06-01 北京嘀嘀无限科技发展有限公司 Data inputting method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8473276B2 (en) * 2008-02-19 2013-06-25 Google Inc. Universal language input
CN104021127A (en) * 2013-03-01 2014-09-03 联想(北京)有限公司 Information processing method and electronic device
JP2015138414A (en) * 2014-01-22 2015-07-30 富士通株式会社 Machine translation device, translation method, and program thereof
CN106168905A (en) * 2016-07-21 2016-11-30 北京奇虎科技有限公司 Text handling method, device and mobile terminal in a kind of mobile terminal
CN106156014A (en) * 2016-07-29 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of information processing method and device
CN108021298B (en) * 2016-10-28 2020-04-24 腾讯科技(深圳)有限公司 Method and device for pasting information by using shear plate
CN107153541B (en) * 2017-04-20 2020-07-03 北京小米移动软件有限公司 Browsing interaction processing method and device
CN108228058A (en) * 2018-03-19 2018-06-29 网易(杭州)网络有限公司 Information stickup method and device, electronic equipment, storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101427244A (en) * 2006-04-26 2009-05-06 卢森特技术有限公司 Language translation service for text message communications
CN102375809A (en) * 2010-08-04 2012-03-14 英业达股份有限公司 System of instantly outputting second language by using input first language and method thereof
CN108108249A (en) * 2016-11-25 2018-06-01 北京嘀嘀无限科技发展有限公司 Data inputting method and device

Also Published As

Publication number Publication date
CN109739664A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
US10445132B2 (en) Method and apparatus for switching applications
KR102249054B1 (en) Quick tasks for on-screen keyboards
EP3189679B1 (en) Operating system support for location cards
US20170185461A1 (en) Fast switching method, device and terminal of dual system
US20130057572A1 (en) Multiple Display Device Taskbars
CN107844377B (en) Communication method and device
US20120246573A1 (en) Systems and methods of copying data
CN109460180B (en) Control method and electronic device
WO2018130085A1 (en) Method and apparatus for page presentation
JP2019504427A (en) Page positioning method and apparatus for input information with error
CN105144058A (en) Deferred placement prompt
WO2017012416A2 (en) Shortcut operation method, shortcut operation device, and terminal
JP2017525044A (en) Direct access application representation
CN109739664B (en) Information processing method, information processing apparatus, electronic device, and medium
US9910580B2 (en) List display control method and device
CN111897607A (en) Application interface loading and interaction method, device and storage medium
CN110874200A (en) Interaction method, device, storage medium and operating system
US20150324209A1 (en) Operating System Switching Method and Dual-Operating System Electronic Device Using the Same
CN111143298A (en) Information processing method and information processing apparatus
CN110673921A (en) Information processing method and device and electronic equipment
US20120173984A1 (en) Context-addressed tabs for presentation applications
CN110554865A (en) Visual programming method, device, computing equipment and medium
US9600161B2 (en) Generating and displaying a specific area
US20180090174A1 (en) Video generation of project revision history
CN114116124A (en) Cloud container and human-computer interaction method and device based on cloud container

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant