Patent Description:
With the rapid development of mobile terminals, mobile terminals already become an indispensable part of people's lives. During the process of using mobile terminals, it is inevitable to edit information of the mobile terminals to acquire a part of the information. For example, when a mobile terminal is used for socializing, it is quite common to forward a part of a short message received by the mobile terminal to another person. In the related art, in order to obtain a part of a short message, it is necessary to copy and paste the entire short message into an input box firstly, and then move a cursor to different positions to delete each to-be-deleted character in sequence. In the process of moving the cursor, an inaccurate positioning of the cursor tends to occur due to the small size of the cursor, and the position of the cursor has to be adjusted repeatedly. Therefore, it is fairly difficult to accurately position the cursor, and it takes a long time to edit text.

<CIT> discloses techniques for deleting one or more displayed characters in response to determining that a gesture including movement from a first location of a presence-sensitive input device to a second location of the presence-sensitive input device satisfies a threshold distance.

<CIT> provides a number of different approaches for manipulating user interfaces.

<CIT> provides a mobile terminal including: a touchscreen, and a controller configured, upon reception of a predetermined touch input applied to the touchscreen, to display an object for controlling deletion of a text disposed around a touch point corresponding to the touch input at the touch point, to display a control area including a plurality of control items for setting a deletion direction and a deletion unit based on the object on the touchscreen, and to delete the text based on at least one control item upon selection of the at least one control item.

This invention is as defined in the claims.

The technical solutions in the embodiments of the present disclosure are clearly and thoroughly described below with reference to the accompanying drawings of the embodiments of the present disclosure. Apparently, the described embodiments are some embodiments of the present disclosure, but are not all the embodiments. Based on the embodiments of the present disclosure, all other embodiments derived by a person of ordinary skill in the art without creative efforts shall fall within the scope of the present disclosure.

Referring to <FIG> is a flowchart of a method for editing text according to some embodiments of the present disclosure. As shown in <FIG>, the method includes the following steps:
A step <NUM> includes: receiving a first input of a user on target text.

The target text may be text information displayed on a screen of a mobile terminal, and includes a short message received by the mobile terminal, information displayed on a web page, or the like.

The first input may be an input of the user on an information display interface. The input may be specifically a press or a click input performed by the user on the target text on the information display interface, a press performed by the user on a side border, or the like.

A step <NUM> includes: displaying a preset text deletion control on a first preset side of the target text in response to the first input.

The text deletion control may be used to indicate that a part of the target text is to be selected, and the user may manipulate the text deletion control to select a part of the target text.

In this step, the mobile terminal may display the text deletion control on a side of the target text according to an operation manner of the user. For example, when the user uses a right-hand finger to operate on the screen, the text deletion control may be displayed to the upper left of the target text, so it is convenient for the user to view the selected to-be-deleted text during operation, thereby facilitating user's operation. For another example, when the mobile terminal is in landscape display mode, the text deletion control may be displayed to the right of the target text according to the habit of the user, to facilitate operations by a right-handed user. In addition, the text deletion control may be displayed at other position according to display content of the screen as long as user's operation is facilitated.

For example, as shown in <FIG>, the user may perform the first input on text on a short message interface, and the mobile terminal displays a text deletion control <NUM> at an unoccupied position to the left of the text.

After the mobile terminal displays the text deletion control, when the user operates the text deletion control, the mobile terminal may add a preset identifier on the information display interface, to indicate to the user that the text deletion control may be further manipulated to select to-be-deleted text. For example, information on the information display interface may be displayed in gray or the text deletion control may blink, to prompt the user to perform an operation.

For example, as shown in <FIG>, after the user operates the text deletion control, the mobile terminal selects all the text on the display interface by drawing a box around the text, to indicate to the user that the text in the box may be edited.

A step <NUM> includes: receiving a second input of the user on the text deletion control.

The second input may be an input performed by the user on the text deletion control. The second input may be specifically a press input, a click input, or the like.

A step <NUM> includes: deleting, in response to the second input, target sub-text selected by the second input, where the target text includes the target sub-text.

The target sub-text may be to-be-deleted text in the target text. In a specific implementation, when the user performs the second input on the text deletion control, the mobile terminal may display a positioning identifier in the target text. The identifier may be used to indicate a starting position of to-be-deleted target sub-information. In addition, the user may operate target information. The mobile terminal may determine the to-be-deleted target sub-information according to a trajectory of the user's operations. In this way, the user may rapidly determine that any target sub-text in the target text is selected, so as to delete the target sub-text.

Specifically, when the text deletion control is a joystick control and the second input is a touch operation of the user on the joystick control, in this step, a preset positioning control is displayed on a second preset side of the target text in response to the second input; a target position of the positioning control in the target text is acquired; a touch pressure value of the touch operation is acquired; and a preset text deletion identifier is displayed on N consecutive characters in sequence starting from a first character of a target row, indicated by the target position, of the target text according to the size of the touch pressure value, where the target sub-text is the N consecutive characters, the deletion identifier is used to indicate that each character is deleted, and N is positively correlated with the size of the touch pressure value of the touch operation.

The touch operation may be a touch, a press, a click or the like performed by the user on the joystick control. After the mobile terminal receives the second input, the positioning control used to position the target sub-text is displayed on a side of the target text. In this case, the user may perform the touch operation on the joystick control, so as to control the position of the positioning control in the target text.

The acquisition of the target position of the positioning control in the target text is implemented in the following manner: acquiring the touch operation direction of the touch operation; and controlling the positioning control to move to a target position according to the touch operation direction.

In the implementation, the user performs a tilted press operation on the joystick control. The mobile terminal controls the positioning control to move in the direction of the tilted press operation.

For example, as shown in <FIG>, the user may control the position of a positioning control <NUM> by pressing a joystick control <NUM> upward, downward, to the left or to the right. When the joystick control <NUM> is pressed to the left, the positioning control <NUM> moves to the left. When the user presses the joystick control <NUM> downward, the positioning control <NUM> moves downward. In this way, the user may adjust the position of the positioning control in text by simply operating the joystick control. Therefore, the positioning control is easy to operate.

The acquisition of the target position of the positioning control in the target text may further be implemented in the following manner: receiving a drag input performed by the user on the positioning control; and identifying a drag end position of the drag input as the target position of the positioning control in the target text.

In the implementation, the user may directly perform a drag input on the positioning control. When the drag input ends, a drag end position of the drag input, that is, a position where a finger performing the drag input leaves the screen, may be acquired, and the drag end position is identified as the position of the positioning control in the target text. By operating the positioning control directly, the positioning control can be positioned more accurately.

For example, as shown in <FIG>, the user may directly perform an input on the positioning control <NUM>, that is, drag the positioning control <NUM> to any position in the text to determine to-be-deleted text. In this way, the operation are convenient, and the position of the positioning control in the text can be rapidly identified.

After identifying the target position of the positioning control in the target text, the user may continue to perform a touch operation on the text deletion control. The mobile terminal may detect a value of the pressure exerted on the screen by the touch operation, so that a range of to-be-deleted text can be determined according to the pressure value.

Specifically, a deletion identifier is added to N consecutive characters starting from the first character in a row where the positioning control is located. In a specific implementation, a deletion identifier may be added, starting from the position of the positioning control, to N consecutive characters immediately before or after the positioning control, to indicate that the N characters are to-be-deleted characters. In addition, the to-be-deleted characters may be displayed in a color different from other characters or the to-be-deleted characters may be crossed out, to distinguish the to-be-deleted characters from other characters.

For example, as shown in <FIG>, some consecutive characters after the positioning control are crossed out to indicate that these characters are to-be-deleted characters, and characters that are not crossed out are those need not to be deleted. In this way, the user may adjust the to-be-deleted characters according to the identifier, thereby the user operation is more convenient.

For example, as shown in <FIG>, when the user performs a press on the text deletion control <NUM>, a pressure bar <NUM> is displayed beside the text deletion control <NUM>. The pressure bar <NUM> is used to indicate the size of the value of the pressure exerted on the text deletion control <NUM>, to make it convenient for the user to know whether the pressure of the current touch operation increases or decreases, so that the user may adjust the pressure value of the touch operation correctly. The larger the pressure value of the touch operation is, the more characters the selected to-be-deleted target sub-text includes, that is, the value of N is greater. As shown in <FIG>, when the pressure value is greater than a particular value, the pressure bar <NUM> indicates that the pressure is relatively large, and all characters after the positioning control <NUM> are selected. In this case, all the characters after the positioning control are crossed out. The smaller the pressure value of the touch operation is, as shown in <FIG>, the pressure indicated by the pressure bar <NUM> decreases, the fewer characters the selected to-be-deleted target sub-text includes, that is, the value of N is less.

Optionally, after the displaying the deletion identifier on the N consecutive characters in sequence starting from the first character of the target row, indicated by the target position, of the target text according to a size of the touch pressure value, the method further includes: receiving a slide input performed by the user on M characters of the N consecutive characters; and removing the text deletion identifier on the M characters in sequence in response to the slide input.

In the implementation, when the user needs to cancel the selection of the target sub-text, the user may further perform an operation on the target sub-text, that is, the N consecutive characters. Specifically, a slide input may be performed on any M characters of the N characters, and the mobile terminal removes the text deletion identifier on the M characters, so as to remove the M characters from the N characters, that is, cancel the deletion of the M characters.

For example, as shown in <FIG>, when the user performs the slide input on some characters among the characters with the deletion identifier, the deletion identifier on these characters is removed. The user may perform the slide input on a plurality of consecutive or nonconsecutive characters, so as to select text from which the deletion identifier is to be removed.

In this way, the user may rapidly cancel the selection of characters by performing the slide input on any character of the characters with the deletion identifier, thus the operation is flexible and convenient.

In addition, the user may perform the touch operation on the text deletion control again, to select text from which the deletion identifier is to be removed. The user may delete characters by choosing any operation manner according to his/her habit, thus the operation manners are varied.

In the embodiments of the present disclosure, the method for editing text may be applied to a mobile terminal, for example, a mobile phone, a tablet personal computer (PC), a laptop computer, a personal digital assistant (PDA), a mobile Internet device (MID), a wearable device, or the like.

In the method for editing text according to the embodiments of the present disclosure, a first input of a user on target text is received; a preset text deletion control is displayed on a first preset side of the target text in response to the first input; a second input of the user on the text deletion control is received; and target sub-text selected by the second input is deleted in response to the second input, where the target text includes the target sub-text. In this way, the user may edit information displayed on a display interface of a mobile terminal to acquire some of the information. Thus, information may be edited flexibly.

Referring to <FIG> is a structural diagram of a mobile terminal according to some embodiments of the present disclosure. As shown in <FIG>, a mobile terminal <NUM> includes:.

As shown in <FIG>, the text deletion control is a joystick control, and the second input is a touch operation of the user on the text deletion control;
the deletion module <NUM> includes:.

As shown in <FIG>, the first acquisition submodule <NUM> includes:.

Optionally, as shown in <FIG>, the first acquisition submodule <NUM> includes:.

Optionally, as shown in <FIG>, the mobile terminal <NUM> further includes:.

The mobile terminal <NUM> can implement the processes implemented by the mobile terminal in the foregoing method embodiments. To avoid repetition, details are not described herein again.

In the mobile terminal <NUM> according to the embodiments of the present disclosure, a first input of a user on target text is received; a preset text deletion control is displayed on a first preset side of the target text in response to the first input; a second input of the user on the text deletion control is received; and target sub-text selected by the second input is deleted in response to the second input, where the target text includes the target sub-text. In this way, the user may edit information displayed on a display interface of a mobile terminal to acquire some of the information. Thus, information may be edited flexibly.

<FIG> is a schematic structural diagram of hardware of a mobile terminal according to non-claimed embodiments of the present disclosure. A mobile terminal <NUM> includes, but is not limited to, a radio frequency (RF) unit <NUM>, a network module <NUM>, an audio output unit <NUM>, an input unit <NUM>, a sensor <NUM>, a display unit <NUM>, a user input unit <NUM>, an interface unit <NUM>, a storage <NUM>, a processor <NUM>, and a power supply <NUM>, among other components. It may be understood by those skilled in the art that, the mobile terminal structure shown in <FIG> does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or fewer components than those shown, or some components may be combined, or different component arrangements are used. The mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle mobile terminal, a wearable device, and a pedometer.

The processor <NUM> is configured to: receive a first input of a user on target text; display a preset text deletion control on a first preset side of the target text in response to the first input; receive a second input of the user on the text deletion control; and delete, in response to the second input, target sub-text selected by the second input, where the target text includes the target sub-text.

In this way, the user may edit information displayed on a display interface of a mobile terminal to acquire some of the information. Thus, information may be edited flexibly.

Optionally, the text deletion control is a joystick control, and the second input is a touch operation of the user on the text deletion control; and the processor <NUM> is further configured to: display a preset positioning control on a second preset side of the target text in response to the second input; acquire a target position of the positioning control in the target text; acquire a touch pressure value of the touch operation; and display a preset text deletion identifier on N consecutive characters in sequence starting from a first character of a target row, indicated by the target position, of the target text according to a size of the touch pressure value, where the target sub-text is the N consecutive characters, the deletion identifier is used to indicate each deleted character, and N is positively correlated with the size of the touch pressure value of the touch operation.

Optionally, the processor <NUM> is further configured to: acquire a touch operation direction of the touch operation; and control the positioning control to move to the target position according to the touch operation direction.

Optionally, the processor <NUM> is further configured to: receive a drag input performed by the user on the positioning control; and identify a drag end position of the drag input as the target position of the positioning control in the target text.

Optionally, the processor <NUM> is further configured to: receive a slide input performed by the user on M characters of the N consecutive characters; and removing a text deletion identifier on the M characters in sequence in response to the slide input.

It should be understood that, the RF unit <NUM> may be configured to transmit and receive signals during information transmission or phone call. To be specific, the RF unit <NUM> may, upon receiving downlink data from the base station, transmit the downlink data to the processor <NUM> for processing. In addition, the RF unit <NUM> may transmit uplink data to the base station. Usually, the RF unit <NUM> 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 RF unit <NUM> may communicate with a network and other devices via a wireless communication system.

The mobile terminal provides a user with wireless broadband Internet access by means of the network module <NUM>, such as sending and receiving emails, browsing webpages and accessing streamed media.

The audio output unit <NUM> is configured to convert audio data received by the RF unit <NUM> or the network module <NUM> or audio data stored in the storage <NUM> into an audio signal and output the audio signal as a sound. In addition, the audio output unit <NUM> is further configured to provide an audio output related to a specific function executed by the mobile terminal <NUM> (such as, incoming call ringtone, message received ringtone). The audio output unit <NUM> includes a loudspeaker, a buzzer and a telephone receiver.

The input unit <NUM> is configured to receive an audio or video signal. The input unit <NUM> may include a graphics processing unit (GPU) <NUM> and a microphone <NUM>. The GPU <NUM> is configured to process image data of a static image or video captured by an image capturing unit (e.g., a camera) in a video capturing mode or an image capturing mode, and a processed image frame may be displayed by the display unit <NUM>. The image frame processed by the GPU <NUM> may be stored in the storage <NUM> (or other storage medium) or transmitted via the RF unit <NUM> or network module <NUM>. The microphone <NUM> is configured to receive a sound, and convert the sound into audio data. In a phone call mode, the processed audio data may be converted into a format suitable for transmission to a mobile communication base station via the RF unit <NUM> and output.

The mobile terminal <NUM> further includes at least one sensor <NUM>, for example, an optical sensor, a motion sensor, among others. In specific, the optical sensor includes ambient light sensor and proximity sensor. The ambient light sensor may adjust a brightness of a display panel <NUM> according to the ambient light conditions. The proximity sensor may deactivate the display panel <NUM> and/or a backlight when the mobile terminal <NUM> is moved close to an ear. As a kind of motion sensor, an acceleration sensor may detect a magnitude of acceleration on each direction (generally, on three axes). While remaining still, the acceleration sensor may detect the magnitude and direction of gravity, which may be used in posture identification of the mobile terminal (e.g., switch between portrait and landscape modes, related games, magnetometer posture calibration), vibration identification related function (e.g., pedometer, tapping) and the like; the sensor <NUM> may further include a fingerprint sensor, a pressure sensor , an iris sensor, a molecule sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like, which is not described in detail herein.

The display unit <NUM> is configured to display information inputted by the user or provided to the user. The display panel <NUM> may be constructed in form of liquid crystal display (LCD), organic light-emitting diode (OLED) or the like.

The user input unit <NUM> may be configured to receive input numerical information or character information, and generate key signal inputs related to the user setting and function control of the mobile terminal. To be specific, the user input unit <NUM> includes a touch panel <NUM> and other input device <NUM>. The touch panel <NUM>, also known as touch screen, may detect the touches thereon or in the vicinity thereof performed by the user (such as touch operations performed on or in the vicinity of the touch panel <NUM> by the user using a finger, stylus or any other suitable object or accessory). The touch panel <NUM> may include a touch detector and a touch controller. Wherein, the touch detector detects the position where the user touched and the signal resulting from the touch operation, and conveys the signal to the touch controller; the touch controller receives the touch information from the touch detector, converts the information into coordinates of the touch and conveys the coordinates to the processor <NUM>, as well as receives and executes the commands from the processor <NUM>. Further, the touch panel <NUM> may be implemented in a variety of modes, such as resistance, capacitance, infrared and surface acoustic wave. In addition to the touch panel <NUM>, the user input unit <NUM> may include other input devices <NUM>. In specific, the other input devices <NUM> may include, but is not limited to: physical keyboard, functional keys (such as volume control button, switch button, etc.), track ball, mouse, joystick, which is not described in detail herein.

Further, the touch panel <NUM> may overlie the display panel <NUM>. Having detected a touch operation thereon or in the vicinity thereof, the touch panel <NUM> conveys the detected touch signal to the processor <NUM> to determine a category of the touch event, and the processor <NUM> provides corresponding visual output on the display panel <NUM> in accordance with the category of the touch event. Although, in <FIG>, the touch panel <NUM> and the display panel <NUM> are provided as two separate parts to implement the input and output functions of the mobile terminal, the touch panel <NUM> and the display panel <NUM> may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.

The interface unit <NUM> is an interface by which an external device is connected to the mobile terminal <NUM>. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a storage card port, a port configured to be connected to 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 <NUM> may be configured to receive input (e.g., data information, power, etc.) from the external device and transfer the received input to one or more components in the mobile terminal <NUM>, or may be configured to transmit data between the mobile terminal <NUM> and the external device.

The storage <NUM> may be configured to store software program and various data. The storage <NUM> may include generally a program storage area and a data storage area. The program storage area may store an operating system (OS), an application program required for at least one function (such as an audio playing function and an image playback function) and the like; the data storage area may store data (e.g., audio data, phone book, etc.) created according to usage of a mobile phone, and the like. Moreover, the storage <NUM> may include a cache, as well as a non-volatile storage, such as at least one disk storage device, flash memory or other non-volatile solid-state storage devices.

The processor <NUM> is a control center of the mobile terminal. The processor <NUM> is connected to various parts of the entire mobile terminal through various interfaces and lines, and performs various functions of the mobile terminal and processes data by executing or running software programs and/or modules stored in the storage <NUM> and invoking data stored in the storage <NUM>, so as to achieve an overall monitoring of the mobile terminal. The processor <NUM> may include one or more processing units; optionally, the processor <NUM> may integrate an application processor and a modem, wherein the application processor is mainly responsible for executing an operating system, a user interface, an application program, etc., while the modem is mainly responsible for handling wireless communication. It is understood, the modem may not be integrated in the processor <NUM>.

The mobile terminal <NUM> may further include a power supply <NUM> (e.g., a battery) providing power to various components. Optionally, the power supply <NUM> may be logically connected to the processor <NUM> via a power management system, such that functions such as charging management, discharging management and power management may be achieved through the power management system.

In addition, the mobile terminal <NUM> includes some functional modules not shown.

Optionally, the present disclosure further provides in non-claimed embodiments a mobile terminal, including a processor <NUM>, a storage <NUM>, and a computer program stored in the storage <NUM> and executable by the processor <NUM>. The computer program is configured to be executed by the processor <NUM> to implement various processes in the embodiments of the foregoing method for editing text, and can achieve the same technical effects. To avoid repetition, details are not described herein again.

The present disclosure further provides in some embodiments a computer-readable storage medium, where the computer-readable storage medium stores therein a computer program, and the computer program is configured to be executed by a processor to implement various processes of the embodiments of the foregoing method for editing text, and can achieve the same technical effects. To avoid repetition, details are not described herein again. The computer-readable storage medium may be, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disc, or the like.

It should be noted that the terms "include", "comprise", or any variation thereof herein are intended to cover a non-exclusive inclusion. Therefore, in the context of a process, method, article, or apparatus that includes a series of elements, the process, method, article, or apparatus not only includes such elements, but also includes other elements not specified expressly, or may include elements inherent to the process, method, article, or apparatus. In case that there is no further limitation, an element preceded by "includes or including" does not preclude existence of additional identical elements in the process, the method, the article, or the apparatus including the element.

From the foregoing description of the embodiments, a person skilled in the art will clearly appreciate that the method according to the embodiments may be implemented not only by software in conjunction with necessary generic hardware platform, but also by hardware, although the former will be preferred in most cases. Based on such an understanding, essential parts, or parts contributing to the related art, of the technical solution of the present disclosure may be implemented in form of a software product. The software product is stored in a storage medium (e.g., an ROM/RAM, a magnetic disk and an optical disc) and includes several instructions configured to be executed by a terminal (such as a handset, a computer, a server, an air conditioner or a network device) to perform the method according to the embodiments of the present disclosure.

Claim 1:
A method for editing text, comprising:
receiving a first input of a user on target text (<NUM>);
displaying a preset text deletion control on a first preset side of the target text in response to the first input (<NUM>);
receiving a second input of the user on the preset text deletion control (<NUM>); and
deleting, in response to the second input, target sub-text selected by the second input (<NUM>),
wherein the target text comprises the target sub-text;
characterized in that, the preset text deletion control is a joystick control, and the second input is a touch operation of the user on the joystick control,
the deleting, in response to the second input, the target sub-text selected by the second input (<NUM>) comprises:
displaying a positioning control on a second preset side of the target text in response to the second input;
acquiring a target position of the positioning control in the target text,
wherein the acquiring the target position of the positioning control in the target text comprises:
acquiring a touch operation direction of the touch operation; and
controlling the positioning control to move to a target position according to the touch operation direction,
wherein the touch operation is a tilted press operation, the controlling the positioning control to move to the target position according to the touch operation direction comprises: controlling the positioning control to move in a direction of the tilted press operation.