CN109189303B - Text editing method and mobile terminal - Google Patents
Text editing method and mobile terminal Download PDFInfo
- Publication number
- CN109189303B CN109189303B CN201811006143.8A CN201811006143A CN109189303B CN 109189303 B CN109189303 B CN 109189303B CN 201811006143 A CN201811006143 A CN 201811006143A CN 109189303 B CN109189303 B CN 109189303B
- Authority
- CN
- China
- Prior art keywords
- text
- editing
- text content
- operation area
- pasted
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a text editing method and a mobile terminal, belongs to the field of terminals, and aims to solve the problem that the text editing operation consumes more time, so that the text editing efficiency is reduced. The text editing method comprises the following steps: if the copy operation is detected, determining an operation area corresponding to the copy operation; displaying the text content in the operation area in a full screen mode; and if the editing operation on the text content is detected, obtaining a target text to be pasted according to the editing operation. The scheme provided by the embodiment of the invention can reduce the time consumption of text editing operation and improve the efficiency of text editing.
Description
Technical Field
The invention relates to the field of terminals, in particular to a text editing method and a mobile terminal.
Background
With the popularization of mobile terminals (such as mobile phones, smart wearable devices, and the like), more and more users are used to browse web pages or messages by using the mobile terminals, and users often encounter content in which the users are interested in the browsing process, and at this time, the users want to copy the content in which the users are interested and store the content in the mobile terminals or send the content to other users.
In some scenarios, the user may wish to modify the copied text content before saving it in the mobile terminal or sending it to another user. However, currently, modifications can only be made after the user pastes the copied text content to the information input box. Because the information input box is long and narrow and the content displayed in the input box is limited, when text content with more words is pasted to the information input box, if a part of words in the information input box needs to be modified, the words need to be modified after the words are turned to the place needing to be modified one line by one line, so that the time consumption of text editing operation is more, and the efficiency of text editing is reduced.
Disclosure of Invention
The embodiment of the invention provides a text editing method and a mobile terminal, and aims to solve the problem that the text editing operation consumes more time, so that the text editing efficiency is reduced.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a text editing method is provided, which is applied to a mobile terminal, and includes:
if the copy operation is detected, determining an operation area corresponding to the copy operation;
displaying the text content in the operation area in a full screen mode;
and if the editing operation on the text content is detected, obtaining a target text to be pasted according to the editing operation.
In a second aspect, a mobile terminal is provided, including:
the determining module is used for determining an operation area corresponding to the copying operation if the copying operation is detected;
the display module is used for displaying the text content in the operation area in a full screen mode;
and the acquisition module is used for acquiring a target text to be pasted according to the editing operation if the editing operation on the text content is detected.
In a third aspect, a mobile terminal is provided, comprising a processor, a memory and a computer program stored on the memory and being executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to the first aspect.
In the embodiment of the invention, if the copy operation is detected, an operation area corresponding to the copy operation is determined; displaying the text content in the operation area in a full screen mode; and if the editing operation on the text content is detected, obtaining a target text to be pasted according to the editing operation. Therefore, the operation area of the copying operation is determined firstly, and the text content in the operation area is displayed in a full screen mode, so that the editing operation can be facilitated, the time consumption of the text editing operation can be reduced, and the text editing efficiency is improved.
Drawings
Fig. 1 is a flowchart of a text editing method according to a first embodiment of the present invention.
Fig. 2A is a schematic diagram of an operation area corresponding to a copy operation according to an embodiment of the present invention.
Fig. 2B is a schematic diagram illustrating an effect of displaying text content in the operation area in a full screen manner according to the embodiment of the present invention.
Fig. 3 is a flowchart of a text editing method according to a second embodiment of the present invention.
Fig. 4 is a schematic diagram of text content framed by a display selection box in an operation area according to an embodiment of the present invention.
Fig. 5 is a flowchart of a text editing method according to a third embodiment of the present invention.
Fig. 6 is a schematic diagram illustrating an effect of generating an edit mark at a position of a click operation according to an embodiment of the present invention.
Fig. 7 illustrates a block diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 8 is a schematic hardware structure diagram of a mobile terminal implementing various embodiments 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 technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
The text editing method provided by the embodiment of the invention can be executed by the mobile terminal.
In this embodiment, the Mobile terminal may be any Device having a storage medium, such as a Computer (Computer), a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), and the like.
Fig. 1 is a flowchart of a text editing method according to a first embodiment of the present invention. As shown in fig. 1, a text editing method provided in an embodiment of the present invention includes:
in step S110, if the copy operation is detected, an operation area corresponding to the copy operation is determined.
In step S110, when the mobile terminal detects a copy operation, the mobile terminal may determine an operation region corresponding to the copy operation. For example, as shown in fig. 2A as operating region 210. Fig. 2A may be a schematic illustration of an interface for chat software (e.g., WeChat). The interface displays the chat conversation between users, when the user presses one dialog box in the interface for a long time, a plurality of operation options can be displayed, such as options of copying, sending to friends, collecting, deleting and the like. When the user selects the copy option, the region defined by this dialog box (e.g., region 210) may be determined to be the operational region. The operation area may include text content that needs to be copied and edited. The text content may be a text including a plurality of sentences or a text including a plurality of lines, that is, the text content may include a text having a large number of words.
In addition, the copy operation may be input by the user through a touch screen, for example, input by the user through double-clicking the touch screen or input by the user pressing the touch screen for a preset time (for example, 2 seconds). The copy operation may be input by a user through an input device (e.g., a stylus, a keyboard, a mouse, or the like), input by a double-click operation performed by the user through the input device, or input by a long-press operation performed by the user through the input device for a preset time (e.g., 2 seconds).
And step S120, displaying the text content in the operation area in a full screen mode.
In step S120, the mobile terminal may enlarge the operation area to display the text content in the operation area in full screen, as shown in fig. 2B. Of course, in the embodiment of the present invention, the text content in the operation area may also be acquired, and then the text content is displayed in a full screen without performing an enlarging operation on the operation area. In this embodiment, all the words of the text content may be displayed in a full screen, so that the user may edit the words of the text content while clearly seeing all the words. Therefore, the complicated operation of the user in the process of determining the characters needing to be modified can be reduced, the text editing efficiency of the user is improved, and the flexibility and the convenience of the user experience and the editing operation are improved.
Step S130, if the editing operation on the text content is detected, obtaining the target text to be pasted according to the editing operation.
In step S130, when the mobile terminal detects an editing operation on all or part of the characters in the text content, the mobile terminal may obtain a target text to be pasted according to the editing operation.
In this embodiment, the editing operation may include a text adding operation, a text changing operation, a text deleting operation, and the like. The editing operation may be input by a user through a touch screen, or may be input by the user through an input device (e.g., a stylus, a keyboard, a mouse, or the like).
In the embodiment of the present invention, the target text to be pasted may be all the text in the operation area, or may be a part of the text in the operation area. That is, all texts in the operation area may be used as target texts to be pasted, or only a part of texts in the operation area may be selected as target texts to be pasted.
According to the text editing method provided by the embodiment of the invention, if the copy operation is detected, an operation area corresponding to the copy operation is determined; displaying the text content in the operation area in a full screen mode; if the editing operation on the text content is detected, the target text to be pasted is obtained according to the editing operation, so that the complicated operation of a user in the process of modifying and copying the text can be reduced, the efficiency of editing and copying the text by the user is improved, and the copying experience, the flexibility and the convenience of use of the user are improved.
Fig. 3 is a flowchart of a text editing method of a second embodiment of the present invention. As shown in fig. 3, the text editing method provided in this embodiment may include:
in step S310, if the copy operation is detected, an operation area corresponding to the copy operation is determined.
In step S310, when the mobile terminal detects a copy operation, the mobile terminal may determine an operation region corresponding to the copy operation, for example, the operation region 210 as shown in fig. 2A. The operation area may include text content that needs to be copied and edited. The text content may be a text including a plurality of sentences or a text including a plurality of lines, that is, the text content may include a text having a large number of words.
In addition, the copy operation may be input by the user through a touch screen, for example, input by the user through double-clicking the touch screen or input by the user pressing the touch screen for a preset time (for example, 2 seconds). The copy operation may be input by a user through an input device (e.g., a stylus, a keyboard, a mouse, or the like), input by a double-click operation performed by the user through the input device, or input by a long-press operation performed by the user through the input device for a preset time (e.g., 2 seconds).
Step S320, displaying the text content in the operation area in a full screen mode, and enabling the text content to be in an editable state.
In step S320, the mobile terminal may enlarge the operation area to display the text content in the operation area in a full screen and to make the text content in an editable state, as shown in fig. 2B. In this embodiment, by enlarging the operation area, all the characters of the text content can be displayed in a full screen in the enlarged operation area, and the text content is in an editable state, so that the user can directly edit the characters of the text content when seeing all the characters in the operation area. Of course, in the embodiment of the present invention, the text content in the operation area may also be obtained first, and then the text content is displayed in a full screen, and the text content is in an editable state without performing an enlarging operation on the operation area.
Therefore, the complicated operation of the user in the process of determining the characters needing to be modified can be reduced, the text editing efficiency of the user is improved, and the flexibility and the convenience of the user experience and the editing operation are improved.
Step S330, displaying the selection frame in the operation area, and acquiring the text content corresponding to the selection frame.
In step S330, the mobile terminal may display a selection box 410 in the operation area, as shown in fig. 4, so that the user may select the text to be edited through the selection box 410 for subsequent editing operation and copying operation.
The text content corresponding to the selection box may be the content of the characters framed by the selection box.
When the initial frame of the selection box is not the character that the user desires to acquire, the user may further adjust the size of the selection box 410 by adjusting the size of the selection box 410, for example, by dragging, so as to select a range in which the characters of the text content need to be adjusted, for example, the box selects all or part of the characters of the text content, thereby performing subsequent editing operation and copying operation. The operation of adjusting the size of the selection box may be input by the user through a touch screen, or may be input by the user through an input device (e.g., a stylus, a keyboard, a mouse, or the like). After receiving the adjustment operation on the selection frame, the mobile terminal can adjust the size of the selection frame according to the received adjustment operation and acquire the text content corresponding to the adjusted selection frame.
And step S340, editing the text content corresponding to the selection box according to the editing operation to obtain the target text to be pasted.
In step S340, when the mobile terminal detects an editing operation on a character in the text content corresponding to the selection box, the mobile terminal may edit the selected text content according to the editing operation, so as to obtain a target text to be pasted.
In this embodiment, the editing operation may include a text adding operation, a text changing operation, a text deleting operation, and the like. The editing operation may be input by a user through a touch screen, or may be input by the user through an input device (e.g., a stylus, a keyboard, a mouse, or the like).
In the embodiment of the present invention, the target text to be pasted may be a text framed in the selection box, or may be all texts in the operation area. That is, all texts in the operation area may be used as target texts to be pasted, or only a part of texts in the operation area, specifically, texts selected in the selection box, may be selected as target texts to be pasted. In any case, the content in the target text to be pasted is the content modified by the editing operation. For example, if the text content corresponding to the selection box is "go to home to eat", the editing operation is, for example, "go to home to eat" modified to "eat home this evening" in the text content corresponding to the selection box, the target text to be pasted is "eat home this evening" in the text content corresponding to the selection box after the editing operation is modified, and the non-editing operation modifies "go to home to eat" in the text content corresponding to the previous selection box.
According to the text editing method provided by the embodiment of the invention, if the copy operation is detected, an operation area corresponding to the copy operation is determined; displaying the text content in the operation area in a full screen mode and enabling the text content to be in an editable state; displaying a selection frame in the operation area, and acquiring text content corresponding to the selection frame; according to the editing operation, the selected text content is edited to obtain the target text to be pasted, so that the complicated operation of the user in the process of modifying and copying the text can be reduced, the efficiency of editing and copying the text by the user is improved, and the copying experience, the flexibility and the convenience of use of the user are improved.
Fig. 5 is a flowchart of a text editing method of the third embodiment of the present invention. As shown in fig. 5, the text editing method may include:
in step S510, if the copy operation is detected, an operation area corresponding to the copy operation is determined.
In step S510, when the mobile terminal detects a copy operation, the mobile terminal may determine an operation region corresponding to the copy operation, for example, the operation region 210 as shown in fig. 2A. The operation area may include text content that needs to be copied and edited. The text content may be a text including a plurality of sentences or a text including a plurality of lines, that is, the text information may include a text having a large number of words.
In addition, the copy operation may be input by a user through a touch screen, for example, input by a user double-clicking the touch screen or input by a user pressing the touch screen for a preset time (for example, 2 seconds). The copy operation may be input by a user through an input device (e.g., a stylus, a keyboard, a mouse, or the like), input by a user through a double-click operation of the input device, or input by a user through a long-press operation of the input device for a predetermined time (e.g., 2 seconds).
And step S520, displaying the text content in the operation area in a full screen mode.
In step S520, the mobile terminal may enlarge the operation area to display the text content in the operation area in a full screen and to make the text content in an editable state, as shown in fig. 2B. In this embodiment, by enlarging the operation area, all the characters of the text content can be displayed in a full screen in the enlarged operation area, and the text content can be in an editable state, so that the user can edit the characters in the text content when seeing all the characters in the operation area. Of course, in the embodiment of the present invention, the text content in the operation area may also be obtained first, and then the text content is displayed in a full screen, and the text content is in an editable state without performing an enlarging operation on the operation area.
Therefore, the complicated operation of the user in the process of determining the characters needing to be modified can be reduced, the text editing efficiency of the user is improved, and the flexibility and the convenience of the user experience and the editing operation are improved.
In step S530, if the click operation on the operation area is detected, an edit mark is generated at the position of the click operation.
In step S530, when the mobile terminal detects a click operation on the operation area, indicating that the user needs to edit the text at the click position, the mobile terminal may generate an edit identifier 610 at the click position, as shown in fig. 6, to facilitate the subsequent editing operation and copying operation. The editing indicator 610 may be presented in a flashing manner, or may be presented in a highlighted or colored manner to play a role of informing, prompting or guiding, so that the user can clearly know where to edit the text content. Moreover, the clicking operation is not limited to a specific position on the operation area, the user may click on different positions of the operation area, and the mobile terminal may generate the editing identifier 610 at the corresponding position, so that the user may perform an editing operation on the corresponding text of the text content based on the editing identifier 610. The clicking operation may be input by the user through a touch screen, or may be input by the user through an input device (e.g., a stylus, a keyboard, a mouse, or the like).
In step S540, at the editing identifier, the text content is edited according to the editing operation, so as to obtain the target text to be pasted.
In step S540, when the mobile terminal detects an editing operation on a character in the text content at the editing identifier, the mobile terminal may edit the text content at the editing identifier according to the editing operation, so as to obtain a target text to be pasted.
In this embodiment, the editing operation may include a text adding operation, a text changing operation, a text deleting operation, and the like. The editing operation may be input by a user through a touch screen, or may be input by the user through an input device (e.g., a stylus, a keyboard, a mouse, or the like).
In the embodiment of the present invention, the target text to be pasted may be a text selected based on the edit identifier, or may be all texts in the operation area. That is, all texts in the operation area may be used as target texts to be pasted, or only a part of texts in the operation area may be selected, specifically, a text selected based on the editing identifier is used as a target text to be pasted. In any case, the content in the target text to be pasted is the content modified by the editing operation.
For example, if the text content selected based on the editing identifier is "go to home to eat", the editing operation is, for example, "go to home to eat" modified to "eat at this night" by the text content corresponding to the selection box, the target text to be pasted is "eat at this night" based on the text selected based on the editing identifier after the editing operation is modified, and the text "go to home to eat" selected based on the editing identifier before the editing operation is modified.
The present embodiment is different from the second embodiment in that, after a click operation on an operation area is detected, text content is in an editable state and an edit flag is generated at a position of the click operation, and the second embodiment is that the text content is in the editable state while the text content in the operation area is displayed in a full screen. Although the present embodiment is different from the second embodiment in the above-mentioned manner, the same technical effects can be achieved by the embodiments of the present invention and the second embodiment.
According to the text editing method provided by the embodiment of the invention, if the copy operation is detected, an operation area corresponding to the copy operation is determined; displaying the text content in the operation area in a full screen mode; if the click operation on the operation area is detected, generating an editing identifier at the position of the click operation; at the editing identification, the text content is edited according to the editing operation to obtain the target text to be pasted, so that the complicated operation of a user in the process of modifying and copying the text can be reduced, the efficiency of editing and copying the text by the user is improved, and the copying experience, the flexibility and the convenience of use of the user are further improved.
The text editing method according to the embodiment of the present invention is described in detail in the above fig. 1, fig. 3, and fig. 5, and the mobile terminal according to the embodiment of the present invention will be described in detail in conjunction with fig. 7.
Fig. 7 illustrates a block diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 7, the mobile terminal 700 includes:
a determining module 710, configured to determine, if a copy operation is detected, an operation area corresponding to the copy operation;
the display module 720 is used for displaying the text content in the operation area in a full screen manner;
the obtaining module 730, if the editing operation on the text content is detected, obtains the target text to be pasted according to the editing operation.
Optionally, as an embodiment, the display module 720 is specifically configured to:
and displaying the text content in the operation area in a full screen mode, and enabling the text content to be in an editable state.
Optionally, as an embodiment, the obtaining module 730 is specifically configured to:
displaying a selection frame in the operation area, and acquiring text content corresponding to the selection frame;
and editing the text content corresponding to the selection box according to the editing operation to obtain a target text to be pasted.
Optionally, as an embodiment, the obtaining module 730 is specifically configured to:
and adjusting the size of the selection frame according to the received adjustment operation, and acquiring the text content corresponding to the adjusted selection frame.
Optionally, as an embodiment, the obtaining module 730 is specifically configured to:
if the click operation on the operation area is detected, generating an editing identifier at the position of the click operation;
and editing the text content at the editing identifier according to the editing operation to obtain a target text to be pasted.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented in the method embodiments of fig. 1, fig. 3, and fig. 5, and is not described here again to avoid repetition.
Fig. 8 is a schematic hardware structure diagram of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 8 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal 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 processor 810 is configured to detect a copy operation, and determine an operation area corresponding to the copy operation; displaying the text content in the operation area in a full screen mode; and if the editing operation on the text content is detected, obtaining the target text to be pasted according to the editing operation.
According to the mobile terminal provided by the embodiment of the invention, if the copying operation is detected, the operation area corresponding to the copying operation is determined; displaying the text content in the operation area in a full screen mode; and if the editing operation on the text content is detected, obtaining the target text to be pasted according to the editing operation. Therefore, the operation area of the copying operation is determined firstly, and the text content in the operation area is displayed in a full screen mode, so that the editing operation can be facilitated, the time consumption of the text editing operation can be reduced, and the text editing efficiency is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 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. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 802, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the mobile terminal 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process 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 801 in case of a phone call mode.
The mobile terminal 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the mobile terminal 800 moves 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 posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 805 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 806 is used to display information input by the user or information provided to the user. The Display unit 806 may include a Display panel 8061, and the Display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions 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 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 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 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 8, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 808 is an interface through which an external device is connected to the mobile terminal 800. 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 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more components within the mobile terminal 800 or may be used to transmit data between the mobile terminal 800 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 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 809 can include high speed random access memory, and can 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 810 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby integrally monitoring the mobile terminal. Processor 810 may include one or more processing units; preferably, the processor 810 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 processor 810.
The mobile terminal 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and the power supply 811 may be logically coupled to the processor 810 via a power management system that may be used to manage charging, discharging, and power consumption.
In addition, the mobile terminal 800 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 810, a memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the text editing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
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 text editing 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.
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 (10)
1. A text editing method is applied to a mobile terminal and is characterized by comprising the following steps:
when receiving the operation of a dialog box in a chat software interface, displaying an operation option containing a copy option;
if the copy operation aiming at the dialog box in the chat software interface is detected, determining an operation area corresponding to the copy operation, wherein the operation area is an area defined by the dialog box and comprises text contents needing to be copied and edited; the copying operation is a selection operation of the copying option;
amplifying the operation area, and enabling the text content in the operation area to be in an editable state while displaying the text content in the operation area in a full screen mode;
and if the editing operation on the text content is detected, obtaining a target text to be pasted according to the editing operation.
2. The method for editing text according to claim 1, wherein the step of obtaining the target text to be pasted according to the editing operation comprises:
displaying a selection frame in the operation area, and acquiring text content corresponding to the selection frame;
and editing the text content corresponding to the selection box according to the editing operation to obtain a target text to be pasted.
3. The text editing method according to claim 2, wherein the step of obtaining the text content corresponding to the selection box comprises:
and adjusting the size of the selection frame according to the received adjustment operation, and acquiring the text content corresponding to the adjusted selection frame.
4. The method for editing text according to claim 1, wherein the step of obtaining the target text to be pasted according to the editing operation if the editing operation on the text content is detected comprises:
if the click operation on the operation area is detected, generating an editing identifier at the position of the click operation;
and editing the text content at the editing identifier according to the editing operation to obtain the target text to be pasted.
5. A text editing apparatus, comprising:
the display module is used for displaying operation options containing the copy options when receiving the operation on the dialog box in the chat software interface;
the system comprises a determining module and a judging module, wherein the determining module is used for determining an operation area corresponding to a copying operation if the copying operation of a dialog box in a chat software interface is detected, wherein the operation area is an area defined by the dialog box and comprises text contents needing to be copied and edited; the copying operation is a selection operation of the copying option;
the display module is used for amplifying the operation area, displaying the text content in the operation area in a full screen mode, and enabling the text content in the operation area to be in an editable state;
and the acquisition module is used for acquiring a target text to be pasted according to the editing operation if the editing operation on the text content is detected.
6. The text editing apparatus of claim 5, wherein the obtaining module is specifically configured to:
displaying a selection frame in the operation area, and acquiring text content corresponding to the selection frame;
and editing the text content corresponding to the selection box according to the editing operation to obtain a target text to be pasted.
7. The text editing apparatus of claim 6, wherein the obtaining module is specifically configured to:
and adjusting the size of the selection frame according to the received adjustment operation, and acquiring the text content corresponding to the adjusted selection frame.
8. The text editing apparatus of claim 5, wherein the obtaining module is specifically configured to:
if the click operation on the operation area is detected, generating an editing identifier at the position of the click operation;
and editing the text content at the editing identifier according to the editing operation to obtain the target text to be pasted.
9. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the text editing method as claimed in any one of claims 1 to 4.
10. A computer-readable medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the text editing method according to any one of claims 1 to 4.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811006143.8A CN109189303B (en) | 2018-08-30 | 2018-08-30 | Text editing method and mobile terminal |
PCT/CN2019/096501 WO2020042815A1 (en) | 2018-08-30 | 2019-07-18 | Text editing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811006143.8A CN109189303B (en) | 2018-08-30 | 2018-08-30 | Text editing method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109189303A CN109189303A (en) | 2019-01-11 |
CN109189303B true CN109189303B (en) | 2021-02-09 |
Family
ID=64916864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811006143.8A Active CN109189303B (en) | 2018-08-30 | 2018-08-30 | Text editing method and mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109189303B (en) |
WO (1) | WO2020042815A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189303B (en) * | 2018-08-30 | 2021-02-09 | 维沃移动通信有限公司 | Text editing method and mobile terminal |
CN110471598A (en) * | 2019-07-26 | 2019-11-19 | 天脉聚源(杭州)传媒科技有限公司 | A kind of chat bubble display methods, system, device and storage medium |
CN111857495A (en) * | 2020-06-30 | 2020-10-30 | 海尔优家智能科技(北京)有限公司 | Information display method, information display device, storage medium, and electronic device |
CN112434494A (en) * | 2020-11-26 | 2021-03-02 | 北京沃东天骏信息技术有限公司 | Text editing method, device, terminal and storage medium |
CN115188013B (en) * | 2022-09-14 | 2023-06-30 | 泰豪信息技术有限公司 | Risk prevention and control method, system, storage medium and equipment for decision book |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105706038A (en) * | 2013-11-08 | 2016-06-22 | 微软技术许可有限责任公司 | Two step content selection with auto content categorization |
CN105723314A (en) * | 2013-11-08 | 2016-06-29 | 微软技术许可有限责任公司 | Two step content selection |
CN106896981A (en) * | 2017-02-07 | 2017-06-27 | 惠州Tcl移动通信有限公司 | One kind replicates implementation method and realizes system |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2053497A1 (en) * | 2007-10-26 | 2009-04-29 | Research In Motion Limited | Text selection using a touch sensitive screen of a handheld mobile communication device |
US20090189862A1 (en) * | 2008-01-24 | 2009-07-30 | Viberg Daniel | Method, computer program product and device for text editing |
US9317196B2 (en) * | 2011-08-10 | 2016-04-19 | Microsoft Technology Licensing, Llc | Automatic zooming for text selection/cursor placement |
US20130113719A1 (en) * | 2011-11-09 | 2013-05-09 | Jason Tyler Griffin | Touch-sensitive display method and apparatus |
CN107831991B (en) * | 2012-12-29 | 2020-11-27 | 苹果公司 | Device, method and graphical user interface for determining whether to scroll or select content |
KR102072049B1 (en) * | 2013-05-14 | 2020-02-03 | 삼성디스플레이 주식회사 | Terminal and method for editing text using thereof |
CN103777866B (en) * | 2014-02-24 | 2019-11-08 | 苏州浩辰软件股份有限公司 | Data editing method and device for magnifying glass |
CN109189303B (en) * | 2018-08-30 | 2021-02-09 | 维沃移动通信有限公司 | Text editing method and mobile terminal |
-
2018
- 2018-08-30 CN CN201811006143.8A patent/CN109189303B/en active Active
-
2019
- 2019-07-18 WO PCT/CN2019/096501 patent/WO2020042815A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105706038A (en) * | 2013-11-08 | 2016-06-22 | 微软技术许可有限责任公司 | Two step content selection with auto content categorization |
CN105723314A (en) * | 2013-11-08 | 2016-06-29 | 微软技术许可有限责任公司 | Two step content selection |
CN106896981A (en) * | 2017-02-07 | 2017-06-27 | 惠州Tcl移动通信有限公司 | One kind replicates implementation method and realizes system |
Also Published As
Publication number | Publication date |
---|---|
WO2020042815A1 (en) | 2020-03-05 |
CN109189303A (en) | 2019-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110995923B (en) | Screen projection control method and electronic equipment | |
CN108762954B (en) | Object sharing method and mobile terminal | |
CN108234289B (en) | Message display method and device and mobile terminal | |
CN107977132B (en) | Information display method and mobile terminal | |
CN109189303B (en) | Text editing method and mobile terminal | |
CN107943390B (en) | Character copying method and mobile terminal | |
CN108924037B (en) | Display method of rich media communication RCS message and mobile terminal | |
CN108132752B (en) | Text editing method and mobile terminal | |
CN110109593B (en) | Screen capturing method and terminal equipment | |
CN109857297B (en) | Information processing method and terminal equipment | |
CN111130989B (en) | Information display and sending method and electronic equipment | |
CN109739407B (en) | Information processing method and terminal equipment | |
CN108391008B (en) | Message reminding method and mobile terminal | |
CN110196668B (en) | Information processing method and terminal equipment | |
CN107734170B (en) | Notification message processing method, mobile terminal and wearable device | |
CN107734172B (en) | Information display method and mobile terminal | |
CN109271262B (en) | Display method and terminal | |
CN111061446A (en) | Display method and electronic equipment | |
CN108287644B (en) | Information display method of application program and mobile terminal | |
CN111399715B (en) | Interface display method and electronic equipment | |
CN110796438B (en) | Message sending method and mobile terminal | |
CN113918109A (en) | Information display method and terminal equipment | |
CN109672845B (en) | Video call method and device and mobile terminal | |
CN110795188A (en) | Message interaction method and electronic equipment | |
CN110851219A (en) | Information processing 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 |