CN108984068B - Character copying method and terminal equipment - Google Patents

Character copying method and terminal equipment Download PDF

Info

Publication number
CN108984068B
CN108984068B CN201810623472.0A CN201810623472A CN108984068B CN 108984068 B CN108984068 B CN 108984068B CN 201810623472 A CN201810623472 A CN 201810623472A CN 108984068 B CN108984068 B CN 108984068B
Authority
CN
China
Prior art keywords
control
characters
image
copying
user
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
CN201810623472.0A
Other languages
Chinese (zh)
Other versions
CN108984068A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810623472.0A priority Critical patent/CN108984068B/en
Publication of CN108984068A publication Critical patent/CN108984068A/en
Application granted granted Critical
Publication of CN108984068B publication Critical patent/CN108984068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space

Abstract

The embodiment of the invention provides a character copying method and terminal equipment, relates to the technical field of terminals, and aims to solve the problem that in some cases, a user cannot copy characters in a display interface, and therefore the efficiency of text editing is low. The method comprises the following steps: receiving a first operation input by a user, wherein the first operation is an operation on the display content of a first control; responding to the first operation, displaying a first menu, wherein the first menu comprises a copy option which is used for triggering the copying of characters in the display content of the first control; receiving a second operation input by a user, wherein the second operation is an operation on the copying option; in response to the second operation, copying characters in the first control. The embodiment of the invention is used for character copying.

Description

Character copying method and terminal equipment
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a character copying method and a terminal device.
Background
With the development of terminal technology, the application of terminal equipment is more and more extensive. In the process of using the terminal device, the user often needs to copy the interested text content. For example: in browsing a web page, reading a novel, viewing news, etc., it is necessary to copy characters in the web page, the novel, the news, etc.
In some cases, the application installed on the terminal device supports copying of characters in the display interface, and at this time, the user can trigger the application to pop up the copy option by only a certain operation, and then select the copy option popped up by the application to copy the characters, for example: in the process of browsing a webpage by the browser, the browser can be triggered to pop up a copy option by long-time pressing operation on a display interface of the browser, and then the copy option popped up by the browser is selected to realize copying of characters displayed in the display interface of the browser. However, in other cases, the application installed on the terminal device does not support copying the characters in the display interface, or the characters in the display interface are not displayed in a text manner, and the user cannot copy the characters in the display interface. For example: when the memory of the terminal equipment is cleaned through the memory management application, the memory management application does not support copying of characters displayed in the memory management application plane. At this time, only the characters to be copied can be edited to the positions to be pasted word by word, which wastes a lot of time and is inefficient in text editing.
Disclosure of Invention
The embodiment of the invention provides a character copying method and terminal equipment, which are used for solving the problem that in some cases, a user cannot copy characters in a display interface, and therefore the efficiency of text editing is low.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a character copying method, including:
receiving a first operation input by a user, wherein the first operation is an operation on the display content of a first control;
responding to the first operation, displaying a first menu, wherein the first menu comprises a copy option which is used for triggering the copying of characters in the display content of the first control;
receiving a second operation input by a user, wherein the second operation is an operation on the copying option;
in response to the second operation, copying characters in the first control.
In a second aspect, an embodiment of the present invention provides a terminal device, including:
the device comprises a receiving unit, a display unit and a control unit, wherein the receiving unit is used for receiving a first operation input by a user, and the first operation is an operation on display content of a first control;
the display unit is used for responding to the first operation and displaying a first menu, wherein the first menu comprises a copy option which is used for triggering the copy of characters in the display content of the first control;
the receiving unit is further configured to receive a second operation input by a user, where the second operation is an operation on the copy option;
and the processing unit is used for responding to the second operation and copying the characters in the first control.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the character copying method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the character copying method according to the first aspect.
When the character copying method provided by the embodiment of the invention receives the first operation input by the user on the first control, displaying a first menu containing a copy option for triggering copying of characters in the display of the first control, then receiving a second operation of the user on the copying option, and copying the characters in the first control in response to the second operation, since the character copying method provided by the embodiment of the invention controls the characters based on the control, therefore, whether the application installed on the terminal equipment supports the copying of the characters on the display interface or not, the characters in the display content of the control can be copied based on the control, therefore, the character copying method provided by the embodiment of the invention can solve the problem that a user cannot copy characters in the display interface, thereby improving the efficiency of text editing.
Drawings
Fig. 1 is an architecture diagram of an android operating system provided in an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a character replication method according to an embodiment of the present invention;
fig. 3 is one of application scenarios of the character copying method according to the embodiment of the present invention;
FIG. 4 is a second schematic view of an application scenario of the character copying method according to the embodiment of the present invention;
fig. 5 is a third schematic view of an application scenario of the character copying method according to the embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between synchronized objects, and are not used to describe a particular order of objects. For example, the first interface and the second interface, etc. are for distinguishing different interfaces, rather than for describing a particular order of the interfaces.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion. Further, in the description of the embodiments of the present invention, "a plurality" means two or more unless otherwise specified.
In some cases, the application installed on the terminal device does not support copying the characters in the display interface, or the characters in the display interface are not displayed in a text manner, and the user cannot copy the characters in the display interface. For example: when the memory of the terminal equipment is cleaned through the memory management application, the memory management application does not support copying of characters displayed in the memory management application plane. At this time, only the characters to be copied can be edited to the positions to be pasted word by word, which wastes a lot of time and is inefficient in text editing.
In order to solve the problem, an embodiment of the present invention provides a character copying method and a terminal device, where the character copying method displays a first menu containing a copy option for triggering copying of characters in display content of a first control when receiving a first operation input by a user on the first control, then receives a second operation on the copy option by the user, and copies characters in the first control in response to the second operation, and because the character copying method provided in the embodiment of the present invention controls characters based on a control, characters in the display content of the control can be copied based on the control no matter whether an application installed on the terminal device supports copying of characters on the display interface, the character copying method provided in the embodiment of the present invention can solve the problem that the user cannot copy characters in the display interface, and further improve the efficiency of text editing.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the character copying method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the character copying method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the character copying method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal can implement the character copying method provided by the embodiment of the invention by running the software program in the android operating system.
The terminal equipment in the embodiment of the invention can be a mobile terminal and can also be non-terminal equipment. The mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-terminal device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The execution main body of the character copying method provided by the embodiment of the present invention may be the terminal device (including a mobile terminal and a non-mobile terminal), or may also be a functional module and/or a functional entity capable of implementing the character copying method in the terminal device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited.
The first embodiment,
An embodiment of the present invention provides a character replication method, and specifically, as shown in fig. 2, the character replication method provided by the embodiment of the present invention includes:
and S11, receiving a first operation input by a user.
Wherein the first operation is an operation on the display content of the first control.
Specifically, the first control in the embodiment of the present invention may be a Text control (Text View), an Image control (Image View), or another control other than the Text control and the Image control. The text control is used for displaying characters, the image control is used for displaying a foreground image (image) on a background image (background) and the other controls except the text control and the image control are used for displaying corresponding contents on the background image.
Illustratively, referring to fig. 3, in fig. 3, a control displaying characters such as "space clear", "garbage clear", "similar photo", "album clear", and "empty folder" is a text control in the embodiment of the present invention, a control displaying icons such as a garbage clear icon, a similar photo icon, an album clear icon, and an empty folder icon is an image control in the embodiment of the present invention, and a control displaying a function for selecting a depth cleaning function is a text control and another control other than the image control in the embodiment of the present invention.
In addition, the first operation in the embodiment of the present invention may specifically be a click operation of the user on the display content of the first control, or a voice instruction input by the user, or a specific gesture input by the user. In some embodiments of the present invention, the specific gesture may be any one of a single-tap gesture, a sliding gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-tap gesture.
For example, the first operation may be a pressing operation with a pressing time length greater than a threshold event length. For example: the pressing event length is greater than 1 second(s) of pressing operation.
And S12, responding to the first operation, and displaying a first menu.
The first menu comprises a copy option, and the copy option is used for triggering copying of characters in the display content of the first control.
Illustratively, referring to fig. 4, the operation of the first operation as the character "space clearing" displayed on the text control is illustrated in fig. 4 as an example, as shown in fig. 4, after the character "space clearing" for the text control display is input to the first operation, a first menu 41 is displayed on the display interface, and the first menu contains a copy option 42 for triggering the copying of the character "space clearing" displayed on the text control. In addition, as shown in fig. 4, other options may also be included in the first menu, such as: the sharing option is used to trigger sharing of the characters displayed by the text control, the translation option is used to trigger translation of the characters displayed by the text control, and the like, which is not limited in the embodiment of the present invention, and the sharing option is subject to including a copying option 42 used to trigger copying of the characters displayed by the text control.
Optionally, the step S12 of displaying the first menu may specifically be:
and displaying the first menu on the display content of the first control in an overlapping manner according to the preset transparency.
For example, the preset transparency may be 30%, 50%, 80%, 100%, etc., and a person skilled in the art may adjust the preset transparency according to the actual use environment, and the user may also need to adjust the preset transparency during the use process.
In addition, on the basis of the above embodiment, the first menu may also be displayed in other manners, such as: the display is in the area different from the display content of the first control, and the display is directly superposed and displayed on the display content of the first control.
And S13, receiving a second operation input by the user.
Wherein the second operation is an operation on the copy option.
Similarly, the second operation in the embodiment of the present invention may specifically be a click operation of the copy option by the user, or a voice instruction input by the user, or a specific gesture input by the user. In some embodiments of the present invention, the specific gesture may be any one of a single-tap gesture, a sliding gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-tap gesture.
S14, responding to the second operation, and copying the characters in the first control.
Illustratively, referring to fig. 5, in fig. 5, the second operation of the copy option 42 shown in fig. 4 is taken as an example, and after the terminal device receives the second operation of the copy option 42 input by the user, the character "space clear" in the copy text control 41 stops displaying the first menu 41.
By this point, the terminal device has finished copying the characters in the display content of the first control.
When the character copying method provided by the embodiment of the invention receives the first operation input by the user on the first control, displaying a first menu containing a copy option for triggering copying of characters in the display of the first control, then receiving a second operation of the user on the copying option, and copying the characters in the first control in response to the second operation, since the character copying method provided by the embodiment of the invention controls the characters based on the control, therefore, whether the application installed on the terminal equipment supports the copying of the characters on the display interface or not, the characters in the display content of the control can be copied based on the control, therefore, the character copying method provided by the embodiment of the invention can solve the problem that a user cannot copy characters in the display interface, thereby improving the efficiency of text editing.
Further, the following describes in detail the character copying method provided by the above embodiment by taking the first control as a text control, an image control, and other controls besides the text control and the image control, respectively.
The first control is a text control.
When the first control is a text control, before the step S12 displays the first menu, the method for copying characters provided in the embodiment of the present invention further includes:
and reading characters in the text control as characters in the first control.
Specifically, the content in the control is generally displayed and executed by an application layer in the system, so that the bottom layer system of the terminal device can directly read the characters displayed by the application layer and the characters are the characters in the first control.
And secondly, the first control is an image control.
When the first control is an image control, before the step S12 displays the first menu, the character copying method provided in the embodiment of the present invention further includes the following steps 1 to 3.
1. And identifying characters in a foreground image (image Drawable) of the image control.
Optionally, in step 1, the characters in the foreground image of the image control may be identified by an Optical Character Recognition (QCR) technology.
In the step 1, if the character in the foreground image of the image control is successfully identified, the step 2 is executed, and if the character in the foreground image of the image control is not successfully identified, the step 3 is executed.
2. And taking characters in a foreground image of the image control as characters in the first control.
3. And identifying characters in the background image of the image control, and taking the characters in the background image of the image control as the characters in the first control.
Likewise, characters in the background image of the image control can be recognized by OCR techniques.
That is, when the first control is an image control, firstly, identifying characters in a foreground image of the image control, if the identification is successful, taking the characters in the foreground image of the image control as the characters in the first control, and if the identification is unsuccessful, identifying characters in a background image of the image control, and taking the characters in the background image of the image control as the characters in the first control.
And thirdly, the first control is other controls except a text control and an image control.
When the first control is a control other than a text control and an image control, before the step S12 displays the first menu, the character copying method provided in the embodiment of the present invention further includes the following steps a and b.
a. Identifying a character in a background image of the first control.
Likewise, characters in the background image of text controls and other controls than image controls may be recognized by OCR techniques.
b. And taking characters in the background image of the first control as characters in the first control.
Further, on the basis of any of the above embodiments, the character copying method provided in the embodiments of the present invention further includes:
and receiving a third operation input by the user.
The third operation is the operation on a global copy identifier, where the global copy identifier is used to turn on or turn off a global copy function.
Specifically, the global copy function in the embodiment of the present invention is a function that can be implemented by the character copy method provided in any one of the embodiments.
That is, an identifier for controlling the global copy function is added, when the global copy function is turned on, the user may turn off the global copy function through the third operation, and when the global copy function is turned off, the user may turn on the global copy function through the third operation, thereby implementing the control of the global copy function.
Since the global copy function must be turned on before the method is executed, the step S12 displays a first menu in response to the first operation, including:
and in the case of starting the global copy function, responding to the first operation, and displaying a first menu.
In the embodiment, by adding an identifier for controlling the global copy function, the user can turn on or off the global copy function according to the requirement, so that the user experience can be further improved.
Example II,
An embodiment of the present invention further provides a terminal device, and specifically, as shown in fig. 6, the terminal device 600 includes:
a receiving unit 61, configured to receive a first operation input by a user, where the first operation is an operation on display content of a first control;
a display unit 62, configured to display a first menu in response to the first operation, where the first menu includes a copy option, and the copy option is used to trigger copying of characters in display content of the first control;
the receiving unit 61 is further configured to receive a second operation input by the user, where the second operation is an operation on the copy option;
and the processing unit 63 is configured to copy the character in the first control in response to the second operation.
Optionally, the display unit 62 is specifically configured to display the first menu in a manner of superimposing the first menu on the display content of the first control with a preset transparency.
Optionally, the first control is a text control;
the processing unit 63 is further configured to read characters in the text control as characters in the first control.
Optionally, the first control is an image control;
the processing unit 63 is further configured to identify characters in a foreground image of the image control; if the characters in the foreground image of the image control are successfully identified, taking the characters in the foreground image of the image control as the characters in the first control; if the characters in the foreground image of the image control are not successfully identified, identifying the characters in the background image of the image control, and taking the characters in the background image of the image control as the characters in the first control.
Optionally, the first control is a control other than a text control and an image control;
the processing unit 63 is further configured to recognize characters in the background image of the first control, and use the characters in the background image of the first control as the characters in the first control.
Optionally, the receiving unit 61 is further configured to receive a third operation input by the user, where the third operation is the operation on the global copy identifier, and the global copy identifier is used to turn on or turn off the global copy function;
the display unit 62 is specifically configured to display a first menu in response to the first operation when the global copy function is turned on.
The terminal device provided by the embodiment of the invention, when receiving the first operation input by the user to the first control, displaying a first menu containing a copy option for triggering copying of characters in the display of the first control, then receiving a second operation of the user on the copying option, and copying the characters in the first control in response to the second operation, since the character copying method provided by the embodiment of the invention controls the characters based on the control, therefore, whether the application installed on the terminal equipment supports the copying of the characters on the display interface or not, the characters in the display content of the control can be copied based on the control, therefore, the terminal device provided by the embodiment of the invention can solve the problem that the user cannot copy the characters in the display interface, thereby improving the efficiency of text editing.
Fig. 7 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, and as shown in fig. 7, the terminal device 600 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, receiving unit 104, sensor 105, display unit 106, user receiving unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 7 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The user receiving unit 107 is configured to receive a first operation input by a user, where the first operation is an operation on display content of a first control;
a display unit 106, configured to display a first menu in response to the first operation, where the first menu includes a copy option, and the copy option is used to trigger copying of characters in display content of the first control;
the user receiving unit 107 is further configured to receive a first operation input by a user, where the first operation is an operation on display content of a first control;
a processor 110, configured to copy the character in the first control in response to the second operation.
The terminal device provided by the embodiment of the invention, when receiving the first operation input by the user to the first control, displaying a first menu containing a copy option for triggering copying of characters in the display of the first control, then receiving a second operation of the user on the copying option, and copying the characters in the first control in response to the second operation, since the character copying method provided by the embodiment of the invention controls the characters based on the control, therefore, whether the application installed on the terminal equipment supports the copying of the characters on the display interface or not, the characters in the display content of the control can be copied based on the control, therefore, the terminal device provided by the embodiment of the invention can solve the problem that the user cannot copy the characters in the display interface, thereby improving the efficiency of text editing.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The receiving unit 104 is used for receiving audio or video signals. The receiving Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user receiving unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user receiving unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user receiving unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal equipment or may be used to transmit data between the terminal equipment and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal device, connects various parts of the entire terminal device by various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device may further include a power supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device includes some functional modules that are not shown, and are not described herein again.
Example III,
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned character copying method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The terminal device and the computer storage medium provided in the embodiments of the present invention are both configured to execute the corresponding methods provided above, and therefore, the beneficial effects achieved by the terminal device and the computer storage medium can refer to the beneficial effects in the corresponding methods provided above, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A character copying method, comprising:
receiving a first operation input by a user, wherein the first operation is an operation on the display content of a first control;
responding to the first operation, displaying a first menu, wherein the first menu comprises a copying option which is used for triggering the copying operation of characters in the display content of the first control;
receiving a second operation input by a user, wherein the second operation is an operation on the copying option;
copying characters in the first control in response to the second operation;
in the case that the first control is an image control; before displaying the first menu, the method further comprises:
identifying characters in a foreground image of the image control;
if the characters in the foreground image of the image control are successfully identified, taking the characters in the foreground image of the image control as the characters in the first control;
if the characters in the foreground image of the image control are not successfully identified, identifying the characters in the background image of the image control, and taking the characters in the background image of the image control as the characters in the first control;
and the characters in the first control are copied by a system of the terminal equipment.
2. The method of claim 1, wherein the first control is a control other than a text control and an image control; before displaying the first menu, the method further comprises:
and identifying characters in the background image of the first control, and taking the characters in the background image of the first control as the characters in the first control.
3. The method according to any one of claims 1-2, further comprising:
receiving a third operation input by a user, wherein the third operation is the operation on a global copy identifier, and the global copy identifier is used for starting or closing a global copy function;
the displaying a first menu in response to the first operation includes:
and in the case of starting the global copy function, responding to the first operation, and displaying a first menu.
4. A terminal device, comprising:
the device comprises a receiving unit, a display unit and a control unit, wherein the receiving unit is used for receiving a first operation input by a user, and the first operation is an operation on display content of a first control;
the display unit is used for responding to the first operation and displaying a first menu, wherein the first menu comprises a copying option which is used for triggering the copying operation of characters in the display content of the first control;
the receiving unit is further configured to receive a second operation input by a user, where the second operation is an operation on the copy option;
the processing unit is used for responding to the second operation and copying characters in the first control;
the processing unit is further configured to, if the first control is an image control; identifying characters in a foreground image of the image control; if the characters in the foreground image of the image control are successfully identified, taking the characters in the foreground image of the image control as the characters in the first control; if the characters in the foreground image of the image control are not successfully identified, identifying the characters in the background image of the image control, and taking the characters in the background image of the image control as the characters in the first control;
and the characters in the first control are copied by a system of the terminal equipment.
5. The terminal device of claim 4, wherein the first control is a control other than a text control and an image control;
the processing unit is further configured to identify characters in the background image of the first control, and use the characters in the background image of the first control as the characters in the first control.
6. The terminal device according to any of claims 4-5,
the receiving unit is further configured to receive a third operation input by a user, where the third operation is the operation on a global copy identifier, and the global copy identifier is used to turn on or turn off a global copy function;
the display unit is specifically configured to display a first menu in response to the first operation when the global copy function is turned on.
7. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the character copying method as claimed in any one of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the character copying method according to any one of claims 1 to 3.
CN201810623472.0A 2018-06-15 2018-06-15 Character copying method and terminal equipment Active CN108984068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810623472.0A CN108984068B (en) 2018-06-15 2018-06-15 Character copying method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810623472.0A CN108984068B (en) 2018-06-15 2018-06-15 Character copying method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108984068A CN108984068A (en) 2018-12-11
CN108984068B true CN108984068B (en) 2021-03-05

Family

ID=64541419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810623472.0A Active CN108984068B (en) 2018-06-15 2018-06-15 Character copying method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108984068B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7793233B1 (en) * 2003-03-12 2010-09-07 Microsoft Corporation System and method for customizing note flags
TWI510994B (en) * 2013-09-13 2015-12-01 Acer Inc Electronic apparatus and method for controlling the same
CN106484261B (en) * 2016-10-08 2021-09-14 北京小米移动软件有限公司 Information acquisition method and device, information transmission method and device, and terminal

Also Published As

Publication number Publication date
CN108984068A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN110069306B (en) Message display method and terminal equipment
CN110851051B (en) Object sharing method and electronic equipment
WO2019184666A1 (en) Method for displaying content and terminal
CN109917995B (en) Object processing method and terminal equipment
CN109614061B (en) Display method and terminal
CN110221885B (en) Interface display method and terminal equipment
CN109491738B (en) Terminal device control method and terminal device
CN110502163B (en) Terminal device control method and terminal device
CN110062105B (en) Interface display method and terminal equipment
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN111078076A (en) Application program switching method and electronic equipment
CN109828705B (en) Icon display method and terminal equipment
CN109085968B (en) Screen capturing method and terminal equipment
CN111142723B (en) Icon moving method and electronic equipment
CN110489385B (en) Information processing method and terminal equipment
CN110752981B (en) Information control method and electronic equipment
CN110928461A (en) Icon moving method and electronic equipment
CN109522278B (en) File storage method and terminal equipment
CN110007822B (en) Interface display method and terminal equipment
CN109408072B (en) Application program deleting method and terminal equipment
CN111026464A (en) Identification method and electronic equipment
CN110703972B (en) File control method and electronic equipment
CN110908554B (en) Long screenshot method and terminal device
WO2020192324A1 (en) Interface displaying method and terminal device
CN110764666A (en) Display control method and electronic equipment

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