WO2019120192A1 - 文本编辑方法及移动终端 - Google Patents

文本编辑方法及移动终端 Download PDF

Info

Publication number
WO2019120192A1
WO2019120192A1 PCT/CN2018/121746 CN2018121746W WO2019120192A1 WO 2019120192 A1 WO2019120192 A1 WO 2019120192A1 CN 2018121746 W CN2018121746 W CN 2018121746W WO 2019120192 A1 WO2019120192 A1 WO 2019120192A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
target
input
user
control
Prior art date
Application number
PCT/CN2018/121746
Other languages
English (en)
French (fr)
Inventor
崔晓东
刘长铕
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Priority to EP18890324.9A priority Critical patent/EP3731077A4/en
Priority to US16/956,452 priority patent/US11340777B2/en
Publication of WO2019120192A1 publication Critical patent/WO2019120192A1/zh

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/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
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • 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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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
    • G06F3/0486Drag-and-drop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails

Definitions

  • the embodiments of the present disclosure relate to the field of communications technologies, and in particular, to a text editing method and a mobile terminal.
  • an embodiment of the present disclosure provides a text editing method, including:
  • the target text includes the target sub-text.
  • an embodiment of the present disclosure further provides a mobile terminal, including:
  • a first receiving module configured to receive a first input of the user on the target text
  • a display module configured to display a preset text deletion control on a first preset side of the target text in response to the first input received by the first receiving module
  • a second receiving module configured to receive a second input of the user on the text deletion control displayed by the display module
  • a deleting module configured to delete the target sub-text in the second input selection in response to the second input received by the second receiving module
  • the target text includes the target sub-text.
  • an embodiment of the present disclosure further provides a mobile terminal, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the computer program as described above The steps in the text editing method described.
  • an embodiment of the present disclosure further provides a readable storage medium on which is stored a computer program that, when executed by a processor, implements the steps in the text editing method as described above.
  • FIG. 1 is a flowchart of a text editing method provided by an embodiment of the present disclosure
  • 1-1 is a display interface diagram of a mobile terminal provided by an embodiment of the present disclosure
  • 1-2 is a second display interface diagram of a mobile terminal according to an embodiment of the present disclosure.
  • 1-3 is a third display interface diagram of a mobile terminal according to an embodiment of the present disclosure.
  • 1-4 is a fourth display interface diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 1-5 is a fifth display interface diagram of a mobile terminal according to an embodiment of the present disclosure.
  • 1-6 is a sixth display interface diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 2 is a structural diagram of a mobile terminal according to an embodiment of the present disclosure
  • FIG. 3 is a structural diagram of a deletion module in a mobile terminal according to an embodiment of the present disclosure
  • FIG. 4 is a structural diagram of a first acquisition submodule in a mobile terminal according to an embodiment of the present disclosure
  • FIG. 5 is a second structural diagram of a first acquisition sub-module in a mobile terminal according to an embodiment of the present disclosure
  • FIG. 6 is a second structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a third structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a text editing method according to an embodiment of the present disclosure. As shown in FIG. 1 , the method includes the following steps:
  • Step 101 Receive a first input of a user on the target text.
  • the target text may be text information displayed on the screen by the mobile terminal, including a short message received by the mobile terminal, information displayed on the webpage, and the like.
  • the first input may be an input of the user on the information display interface, and the input may be a press input or a click input performed by the user on the target text of the information display interface, a press input of the side frame, and the like.
  • Step 102 In response to the first input, displaying a preset text deletion control on a first preset side of the target text.
  • the text deletion control can be used to indicate that part of the text in the target text is selected, and the user can operate the text deletion control to select part of the text in the target text.
  • the mobile terminal can display the text deletion control on the side of the target text according to the user's operation mode.
  • the text deletion control can be displayed on the upper left side of the target text, so that the user can view the selected text to be deleted during the operation, thereby facilitating the user's operation.
  • the text deletion control may be displayed on the right side of the target text according to the user's operating habits, so as to perform operations using the right-handed user.
  • the text deletion control can be displayed in other convenient positions according to the display content of the screen.
  • the user can perform the first input on the text on the short message interface, and the mobile terminal displays the text deletion control 1 in the left margin.
  • the mobile terminal may add a preset identifier in the information display interface to indicate that the user can further operate the text deletion control to select the text to be deleted. For example, the information on the information display interface is displayed in gray, or the text deletion control is flashed to prompt the user to operate.
  • the mobile terminal displays all the text boxes of the display interface to indicate that the user can edit the selected text.
  • Step 103 Receive a second input of the user on the text deletion control.
  • the second input may be an input made by the user on the text deletion control, and the second input may specifically be a press input or a click input.
  • Step 104 Delete the target sub-text in the second input selection in response to the second input, wherein the target text includes the target sub-text.
  • the target sub-text may be the text to be deleted in the target text.
  • the mobile terminal may display the positioning identifier in the target text, and the identifier may be used to indicate the starting position of the target sub-information to be deleted.
  • the user can also operate the target information, and the mobile terminal can determine the target sub-information to be deleted according to the operation trajectory of the user operation, so that the user can quickly determine any target sub-text in the selected target text, thereby deleting the target sub-text. .
  • the text deletion control is a joystick control
  • the second input is a touch operation of the user on the text deletion control
  • this step in response to the second input, in the a second preset side of the target text, displaying a preset positioning control; acquiring a target position of the positioning control in the target text; acquiring a touch pressure value of the touch operation; according to the touch pressure a size of the value, in which the preset text deletion identifier is sequentially displayed on consecutive N characters starting from the first character of the target line of the target text indicated by the target position; wherein the target sub-text is The consecutive N characters are used to indicate that each character is deleted, and N is positively correlated with the magnitude of the touch pressure value of the touch operation.
  • the touch operation may be a user touch, press or click on the joystick control.
  • the mobile terminal After receiving the second input, the mobile terminal displays a positioning control for positioning the target sub-text position on the side of the target text. At this point, the user can control the position of the positioning control in the target text by performing a touch operation on the joystick control.
  • the touch operation direction of the touch operation is obtained, and the positioning control is controlled to move to the target position according to the touch operation direction.
  • the user can perform a tilting pressing operation on the joystick control, and the mobile terminal can control the positioning control to move toward the operating direction according to the operating direction of the tilting pressing operation.
  • the user can press the joystick control 1 in four directions of up, down, left, and right to control the position of the positioning control 2.
  • the positioning control 2 is moved to the left side; the user presses the rocker control 1 toward the lower side, and the positioning control 2 moves to the lower side.
  • the user only needs to operate the joystick control to adjust the position of the positioning control in the text, and the operation mode is simple.
  • the method further includes: receiving a drag input of the positioning control by the user; determining a drag end position of the drag input as the positioning control The target location in the target text.
  • the user can directly input the drag on the positioning control, and when the drag input ends, the end position of the drag input can be obtained, that is, the position when the user drags the input finger away from the screen, and The end position is determined as the position of the positioning control in the target text.
  • the end position is determined as the position of the positioning control in the target text.
  • the user can directly input the positioning control 2, and drag the positioning control 2 to any position in the text to determine the text to be deleted.
  • the operation is convenient, and it is convenient to quickly determine the position of the positioning control in the text.
  • the user After determining the target position of the positioning control in the target text, the user can continue to perform a touch operation on the text deletion control, and the mobile terminal can detect the pressure value of the touch operation on the screen, so that the pressure value can be determined according to the pressure value.
  • the scope of the text is not limited to.
  • the deletion identifier is added to consecutive N characters starting from the first character of the row where the positioning control is located.
  • the location of the location control is used as a starting position, and a deletion identifier is added to consecutive N characters immediately before or after the positioning control to indicate that the N characters are characters to be deleted.
  • the character to be deleted may be displayed as a color different from other characters, or a line may be added to the character to be deleted to distinguish the character to be deleted from other characters.
  • a pressure bar 3 is displayed next to the text deletion control 1, and the pressure bar 3 is used to indicate the pressure value of the text deletion control 1.
  • the size is convenient for the user to know whether the pressure of the current touch operation is larger or smaller, so that the user can correctly adjust the pressure value of the touch operation.
  • the pressure value of the touch operation is larger, the more characters of the selected target sub-text to be deleted, that is, the larger the value of N.
  • the pressure bar 3 indicates that the pressure is large, and the characters located behind the positioning control 2 are all selected. At this time, a line is added to the characters after the positioning control.
  • the pressure value of the touch operation is smaller, as shown in FIG. 1-6, the pressure indicated by the pressure bar 3 is decreased, and the fewer characters of the selected target sub-text to be deleted, that is, the smaller the N value.
  • the method further includes receiving a sliding input of the user on the M characters of the consecutive N characters; and in response to the sliding input, sequentially deleting the text deletion identifier on the M characters.
  • the target sub-text when the user needs to undo the selection of the target sub-text, the target sub-text, ie, consecutive N characters, can be further operated. Specifically, any M characters of the N characters may be slidably input, and the mobile terminal cancels the text deletion identifier on the M characters, thereby removing the M characters from the N characters, that is, canceling the M characters. The deletion of characters.
  • the deletion identifier of the partial character is eliminated.
  • the user can perform sliding input on a plurality of consecutive or discontinuous characters, thereby selecting text to be deleted from the deleted identifier.
  • the user can also perform the touch operation on the text deletion control to select the text to be deleted.
  • the user can select any operation mode to delete the characters according to the habit, and the operation mode is diversified.
  • the text editing method may be applied to a mobile terminal, such as a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA), and a mobile Internet access device.
  • a mobile terminal such as a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA), and a mobile Internet access device.
  • PDA personal digital assistant
  • Device Mobile Internet Device, MID
  • Wearable Device any device that uses a mobile Internet access device.
  • the text editing method of the embodiment of the present disclosure receives a first input of the user on the target text; in response to the first input, displays a preset text deletion control on the first preset side of the target text; receiving a second input by the user on the text deletion control; in response to the second input, deleting the target sub-text in the second input selection; wherein the target text includes the target sub-text.
  • the user can edit the information displayed in the display interface of the mobile terminal to obtain part of the information in the information, and the information editing manner is flexible.
  • FIG. 2 is a structural diagram of a mobile terminal according to an embodiment of the present disclosure. As shown in FIG. 2, the mobile terminal 200 includes:
  • the first receiving module 201 is configured to receive a first input of the user on the target text
  • the display module 202 is configured to display a preset text deletion control on the first preset side of the target text in response to the first input received by the first receiving module 201;
  • a second receiving module 203 configured to receive a second input of the user on the text deletion control displayed by the display module 202;
  • a deleting module 204 configured to delete the target sub-text in the second input selection in response to the second input received by the second receiving module 203;
  • the target text includes the target sub-text.
  • the text deletion control is a joystick control
  • the second input is a touch operation performed by the user on the text deletion control
  • the deleting module 204 includes:
  • the first display sub-module 2041 is configured to display a preset positioning control on a second preset side of the target text in response to the second input;
  • a first obtaining sub-module 2042 configured to acquire a target position of the positioning control displayed by the first display sub-module 2041 in the target text
  • the second obtaining sub-module 2043 is configured to obtain a touch pressure value of the touch operation
  • the second display sub-module 2044 is configured to start, according to the size of the touch pressure value acquired by the second acquiring sub-module 2043, the first character of the target line of the target text indicated by the target position.
  • the preset text deletion identifiers are sequentially displayed on consecutive N characters;
  • the target sub-text is the consecutive N characters, the deletion identifier is used to indicate that each character is deleted, and N is positively correlated with the magnitude of the touch pressure value of the touch operation.
  • the first obtaining submodule 2042 includes:
  • the acquiring unit 20421 is configured to acquire a touch operation direction of the touch operation.
  • the moving unit 20422 is configured to control the positioning control to move to the target position according to the touch operation direction acquired by the acquiring unit 20421.
  • the first obtaining submodule 2042 includes:
  • the receiving unit 20423 is configured to receive a drag input of the positioning control by a user
  • the determining unit 2024 is configured to determine a drag end position of the drag input received by the receiving unit 20423 as a target position of the positioning control in the target text.
  • the mobile terminal 200 further includes:
  • the third receiving module 205 is configured to receive a sliding input of the user on the M characters of the consecutive N characters;
  • the eliminating module 206 is configured to sequentially cancel the text deletion identifiers on the M characters in response to the sliding input received by the third receiving module 205.
  • the mobile terminal 200 can implement various processes implemented by the mobile terminal in the foregoing method embodiments. To avoid repetition, details are not described herein again.
  • the mobile terminal 200 of the embodiment of the present disclosure receives a first input of the user on the target text; in response to the first input, displays a preset text deletion control on the first preset side of the target text; receiving a second input by the user on the text deletion control; in response to the second input, deleting the target sub-text in the second input selection; wherein the target text includes the target sub-text.
  • the user can edit the information displayed in the display interface of the mobile terminal to obtain part of the information in the information, and the information editing manner is flexible.
  • FIG. 7 is a schematic diagram of a hardware structure of a mobile terminal that implements various embodiments of the present disclosure.
  • the mobile terminal 700 includes, but is not limited to, a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, and a display unit. 706, user input unit 707, interface unit 708, memory 709, processor 710, and power source 711 and the like.
  • the mobile terminal structure shown in FIG. 7 does not constitute a limitation of the mobile terminal, and the mobile terminal may include more or less components than those illustrated, or combine some components, or different components.
  • the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a car mobile terminal, a wearable device, a pedometer, and the like.
  • the processor 710 is configured to receive a first input of the user on the target text; in response to the first input, display a preset text deletion control on the first preset side of the target text; and receive the user a second input on the text deletion control; in response to the second input, deleting the target sub-text in the second input selection; wherein the target text includes the target sub-text.
  • the user can edit the information displayed in the display interface of the mobile terminal to obtain part of the information in the information, and the information editing manner is flexible.
  • the text deletion control is a joystick control
  • the second input is a touch operation of the user on the text deletion control
  • the processor 710 is further configured to, in response to the second input, a second preset side of the target text, displaying a preset positioning control; acquiring a target position of the positioning control in the target text; acquiring a touch pressure value of the touch operation; a size of the pressure value, in which the preset text deletion identifier is sequentially displayed on consecutive N characters starting from the first character of the target line of the target text indicated by the target position; wherein the target sub-text is The consecutive N characters, the deletion identifier is used to indicate that each character is deleted, and N is positively correlated with the magnitude of the touch pressure value of the touch operation.
  • the processor 710 is further configured to: obtain a touch operation direction of the touch operation; and control the positioning control to move to a target position according to the touch operation direction.
  • the processor 710 is further configured to: receive a drag input of the positioning control by the user; and determine a drag end position of the drag input as a target position of the positioning control in the target text.
  • the processor 710 is further configured to receive a sliding input of the user on the M characters of the consecutive N characters; and in response to the sliding input, sequentially cancel the text deletion identifier on the M characters.
  • the radio frequency unit 701 can be used for receiving and transmitting signals during the transmission and reception of information or during a call. Specifically, after receiving downlink data from the base station, the processing is processed by the processor 710; The uplink data is sent to the base station.
  • radio frequency unit 701 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.
  • the radio unit 701 can also communicate with the network and other devices through a wireless communication system.
  • the mobile terminal provides the user with wireless broadband Internet access through the network module 702, such as helping the user to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 703 can convert the audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as a sound. Moreover, the audio output unit 703 can also provide audio output (eg, call signal reception sound, message reception sound, etc.) related to a particular function performed by the mobile terminal 700.
  • the audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 704 is for receiving an audio or video signal.
  • the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042 that images an 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 data is processed.
  • the processed image frame can be displayed on the display unit 706.
  • the image frames processed by the graphics processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702.
  • the microphone 7042 can receive sound and can process such sound as audio data.
  • the processed audio data can be converted to a format output that can be transmitted to the mobile communication base station via the radio unit 701 in the case of a telephone call mode.
  • the mobile terminal 700 also includes at least one type of sensor 705, such as a light sensor, motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light, and the proximity sensor can close the display panel 7061 when the mobile terminal 700 moves to the ear. / or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the attitude of the mobile terminal (such as horizontal and vertical screen switching, related games).
  • sensor 705 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors and the like are not described here.
  • the display unit 706 is for displaying information input by the user or information provided to the user.
  • the display unit 706 can include a display panel 7061.
  • the display panel 7061 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the user input unit 707 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal.
  • the user input unit 707 includes a touch panel 7071 and other input devices 7072.
  • the touch panel 7071 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 7071 or near the touch panel 7071. operating).
  • the touch panel 7071 may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the touch panel 7071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the user input unit 707 may also include other input devices 7072.
  • the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which are not described herein.
  • the touch panel 7071 can be overlaid on the display panel 7061. After the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch panel 7071 is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 according to the touch. The type of event provides a corresponding visual output on display panel 7061.
  • the touch panel 7071 and the display panel 7061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated. The input and output functions of the mobile terminal are implemented, and are not limited herein.
  • the interface unit 708 is an interface in which an external device is connected to the mobile terminal 700.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
  • the interface unit 708 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 700 or can be used at the mobile terminal 700 and externally Data is transferred between devices.
  • an external device eg, data information, power, etc.
  • Memory 709 can be used to store software programs as well as various data.
  • the memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 709 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.
  • Processor 710 is the control center of the mobile terminal, connecting various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in memory 709, and recalling data stored in memory 709.
  • the mobile terminal performs various functions and processing data to perform overall monitoring on the mobile terminal.
  • the processor 710 can include one or more processing units; optionally, the processor 710 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and a modulation solution
  • the processor mainly handles wireless communication. It can be understood that the above modem processor may not be integrated into the processor 710.
  • the mobile terminal 700 may further include a power source 711 (such as a battery) for supplying power to various components.
  • a power source 711 such as a battery
  • the power source 711 may be logically connected to the processor 710 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the mobile terminal 700 includes some functional modules not shown, and details are not described herein again.
  • an embodiment of the present disclosure further provides a mobile terminal, including a processor 710, a memory 709, a computer program stored on the memory 709 and executable on the processor 710, and the computer program is executed by the processor 710.
  • a mobile terminal including a processor 710, a memory 709, a computer program stored on the memory 709 and executable on the processor 710, and the computer program is executed by the processor 710.
  • the embodiment of the present disclosure further provides a computer readable storage medium.
  • the computer readable storage medium stores a computer program, where the computer program is executed by the processor to implement various processes of the text editing method embodiment, and can achieve the same technology. The effect, to avoid repetition, will not be repeated here.
  • the computer readable storage medium such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present disclosure, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a mobile terminal (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present disclosure.

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)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

本公开提供一种文本编辑方法及移动终端。该方法包括:接收用户在目标文本上的第一输入;响应于所述第一输入,在所述目标文本的第一预设侧边,显示预设的文本删除控件;接收用户在所述文本删除控件上的第二输入;响应于所述第二输入,删除所述第二输入所选中的目标子文本;其中,所述目标文本包括所述目标子文本。

Description

文本编辑方法及移动终端
相关申请的交叉引用
本申请主张在2017年12月21日在中国提交的中国专利申请号No.201711391653.7的优先权,其全部内容通过引用包含于此。
技术领域
本公开实施例涉及通信技术领域,尤其涉及一种文本编辑方法及移动终端。
背景技术
随着移动终端的快速发展,移动终端已经成为人们生活中不可缺少的一部分。在使用移动终端的过程中,人们不可避免地需要对移动终端中的信息进行编辑,从而获取信息中的部分内容。例如,在使用移动终端进行社交时,通常需要将移动终端接收的短信中的部分内容转发给他人。相关技术中,移动终端需要先将整条短信复制并粘贴至输入框后,将光标移动到不同的位置,依次删除每个待删除的字,从而得到短信中的部分内容,在用于移动光标的过程中,由于光标太小,容易出现光标定位不准确的情况,需要用户多次对光标的位置进行调整,光标准确定位难度大,文本修改耗时长。
发明内容
第一方面,本公开实施例提供了一种文本编辑方法,包括:
接收用户在目标文本上的第一输入;
响应于所述第一输入,在所述目标文本的第一预设侧边,显示预设的文本删除控件;
接收用户在所述文本删除控件上的第二输入;
响应于所述第二输入,删除所述第二输入所选中的目标子文本;
其中,所述目标文本包括所述目标子文本。
第二方面,本公开实施例还提供一种移动终端,包括:
第一接收模块,用于接收用户在目标文本上的第一输入;
显示模块,用于响应于所述第一接收模块接收的所述第一输入,在所述目标文本的第一预设侧边,显示预设的文本删除控件;
第二接收模块,用于接收用户在所述显示模块显示的所述文本删除控件上的第二输入;
删除模块,用于响应于所述第二接收模块接收的所述第二输入,删除所述第二输入所选中的目标子文本;
其中,所述目标文本包括所述目标子文本。
第三方面,本公开实施例还提供一种移动终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的文本编辑方法中的步骤。
第四方面,本公开实施例还提供一种可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上所述的文本编辑方法中的步骤。
附图说明
图1是本公开实施例提供的文本编辑方法的流程图;
图1-1是本公开实施例提供的移动终端的显示界面图之一;
图1-2是本公开实施例提供的移动终端的显示界面图之二;
图1-3是本公开实施例提供的移动终端的显示界面图之三;
图1-4是本公开实施例提供的移动终端的显示界面图之四;
图1-5是本公开实施例提供的移动终端的显示界面图之五;
图1-6是本公开实施例提供的移动终端的显示界面图之六;
图2是本公开实施例提供的移动终端的结构图之一;
图3是本公开实施例提供的移动终端中的删除模块的结构图;
图4是本公开实施例提供的移动终端中的第一获取子模块的结构图之一;
图5是本公开实施例提供的移动终端中的第一获取子模块的结构图之二;
图6是本公开实施例提供的移动终端的结构图之二;
图7是本公开实施例提供的移动终端的结构图之三。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
参见图1,图1是本公开实施例提供的文本编辑方法的流程图,如图1所示,包括以下步骤:
步骤101、接收用户在目标文本上的第一输入。
其中,目标文本可以是移动终端在屏幕上显示的文本信息,包括移动终端接收到的短信、网页上显示的信息等。
第一输入可以是用户在信息显示界面上的输入,该输入具体可以是用户在信息显示界面的目标文本上进行的按压输入或者点击输入、侧边框的按压输入等。
步骤102、响应于所述第一输入,在所述目标文本的第一预设侧边,显示预设的文本删除控件。
其中,文本删除控件可以用于指示对目标文本中的部分文本进行选择,用户可以对文本删除控件进行操作,以选择目标文本中的部分文本。
在此步骤中,移动终端可以根据用户的操作方式将文本删除控件显示在目标文本的侧边。例如,当用户使用右手手指在屏幕上进行操作时,可以将文本删除控件显示在目标文本的左上侧,这样便于用户在操作的过程中查看已选择的待删除文本,从而便于用户操作。又如,当移动终端为横屏显示时,可以根据用户的操作习惯,将文本删除控件显示在目标文本的右侧,以便于使用右手操作的用户进行操作。另外,也可以根据屏幕的显示内容,将文本删除控件显示在其他便于操作的位置。
例如,如图1-1所示,用户可以在短信界面上的文本进行第一输入,移动终端在左侧空白处显示文本删除控件1。
移动终端在显示文本删除控件后,用户在对文本删除控件进行操作时,移动终端可以在信息显示界面内添加预设标识,以指示用户可以进一步对文 本删除控件进行操作以选择待删除文本。例如,将信息显示界面上的信息显示为灰色,或者将文本删除控件闪烁显示,从而提示用户进行操作。
例如,如图1-2所示,用户在对文本删除控件进行操作后,移动终端将显示界面的所有文本框选,以指示用户可以对框选的文本进行编辑。
步骤103、接收用户在所述文本删除控件上的第二输入。
其中,第二输入可以是用户在文本删除控件上进行的输入,第二输入具体可以是按压输入或点击输入等等。
步骤104、响应于所述第二输入,删除所述第二输入所选中的目标子文本,其中,所述目标文本包括所述目标子文本。
其中,目标子文本可以是目标文本中待删除的文本。在具体实施时,用户在文本删除控件上进行第二输入时,移动终端可以在目标文本中显示定位标识,该标识可以用于指示待删除的目标子信息的起始位置。另外,用户也可以对目标信息进行操作,移动终端可以根据用户操作的操作轨迹确定待删除的目标子信息,这样,用户可以快速确定已选择目标文本中的任意目标子文本,从而删除目标子文本。
具体地,当所述文本删除控件为摇杆控件,所述第二输入为用户在所述文本删除控件上的触控操作时,在此步骤中,响应于所述第二输入,在所述目标文本的第二预设侧边,显示预设的定位控件;获取所述定位控件在所述目标文本中的目标位置;获取所述触控操作的触控压力值;根据所述触控压力值的大小,在所述目标位置所指示的所述目标文本的目标行的第一个字符开始的连续N个字符上,依次显示预设的文本删除标识;其中,所述目标子文本为所述连续N个字符,所述删除标识用于指示每个字符被删除,N与所述触控操作的触控压力值的大小正相关。
其中,上述触控操作可以是用户对摇杆控件的触摸、按压或者点击等操作,移动终端接收第二输入后,在目标文本的侧边显示用于对目标子文本位置进行定位的定位控件。此时,用户可以通过对摇杆控件进行触控操作,从而控制定位控件在目标文本中的位置。
在获取定位控件在目标文本中的目标位置时,可以通过以下方式实现:获取所述触控操作的触控操作方向;按照所述触控操作方向,控制所述定位 控件移动至目标位置。
在该实施方式中,用户可以对摇杆控件进行倾斜按压操作,移动终端可以根据倾斜按压操作的操作方向,控制定位控件朝着该操作方向移动。
例如,如图1-3所示,用户可以对摇杆控件1向上下左右四个方向进行按压来控制定位控件2的位置。当对摇杆控件1朝左侧按压时,定位控件2朝左侧移动;用户对摇杆控件1朝下侧按压,定位控件2向下侧移动。这样,用户仅需要对摇杆控件进行操作,即可调整定位控件在文本中的位置,操作方式简单。
在获取定位控件在目标文本中的目标位置时,还可以通过以下方式实现:接收用户对所述定位控件的拖动输入;将所述拖动输入的拖动结束位置确定为所述定位控件在所述目标文本中的目标位置。
在该实施方式中,用户可以直接在定位控件上进行拖动输入,当拖动输入结束时,可以获取拖动输入的结束位置,即用户进行拖动输入的手指离开屏幕时的位置,并将该结束位置确定为定位控件在目标文本中的位置。通过直接在定位控件,能够实现更精准的定位控件的定位。
例如,如图1-3所示,用户可以直接对定位控件2进行输入,将定位控件2拖动至文本中的任意位置,以确定待删除的文本。这样,操作便捷,便于快速确定定位控件在文本中的位置。
在确定定位控件在目标文本中的目标位置后,用户可以继续对文本删除控件进行触控操作,移动终端可以检测该触控操作对屏幕的压力值,从而可以根据该压力值,确定待删除的文本范围。
具体的,从定位控件所在行的第一个字符开始,连续N个字符上添加删除标识。在具体实施时,可以以定位控件所在位置为起始位置,在紧邻定位控件之前或之后的连续N个字符上添加删除标识,以指示该N个字符为待删除的字符。另外,可以将待删除的字符显示为不同于其他字符的颜色,也可以在待删除的字符上添加划线,以对待删除字符和其他的字符进行区分。
例如,如图1-4所示,对位于定位控件后连续的部分字符添加划线,以指示该部分字符为待删除字符,而未添加划线的字符为不需要删除的字符。这样,用户可以根据标识对字符调整待删除字符的内容,便于用户操作。
例如,如图1-4所示,当用户对文本删除控件1进行按压操作的过程中,在文本删除控件1旁边显示压力条3,该压力条3用于指示对文本删除控件1的压力值大小,方便用户知道当前的触控操作的压力是变大还是变小,以便用户正确地调整触控操作的压力值。当触控操作的压力值越大时,被选中的待删除目标子文本的字符越多,即N值越大。如图1-5所示,当压力值大于一定值时,压力条3指示压力较大,位于定位控件2后的字符全部被选中,此时在定位控件后的字符上均添加划线。当触控操作的压力值越小,如图1-6所示,压力条3指示的压力减小,则被选中的待删除目标子文本的字符越少,即N值越小。
可选的,所述根据所述触控压力值的大小,在所述目标位置所指示的所述目标文本的目标行的第一个字符开始的连续N个字符上,依次显示删除标识之后,所述方法还包括:接收用户在所述连续N个字符中的M个字符上的滑动输入;响应于所述滑动输入,依次消除所述M个字符上的文本删除标识。
在该实施方式中,当用户需要撤销对目标子文本的选择时,可以进一步对目标子文本,即连续N个字符进行操作。具体地,可以对N个字符中的任意M个字符进行滑动输入,移动终端将该M个字符上的文本删除标识消除,从而将M个字符从N个字符中剔除,即撤销对该M个字符的删除。
例如,如图1-6所示,用户在对具有删除标识的字符中的部分字符进行滑动输入时,该部分字符的删除标识消除。其中,用户可以在连续或者不连续的多个字符上进行滑动输入,从而选择待消除删除标识的文本。
这样,用户通过对具有删除标识字符中的任意字符进行滑动输入,即可快速撤销对字符的选择,操作方式灵活、便捷。
另外,用户也可以通过对文本删除控件再次进行触控操作,以选择待消除删除标识的文本,用户可以根据习惯选择任一操作方式对字符进行删除,操作方式多样化。
本公开实施例中,上述文本编辑方法可以应用于移动终端,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。
本公开实施例的文本编辑方法,接收用户在目标文本上的第一输入;响应于所述第一输入,在所述目标文本的第一预设侧边,显示预设的文本删除控件;接收用户在所述文本删除控件上的第二输入;响应于所述第二输入,删除所述第二输入所选中的目标子文本;其中,所述目标文本包括所述目标子文本。这样,用户可以对移动终端显示界面中显示的信息进行编辑,以获取该信息中的部分信息,信息编辑方式灵活。
参见图2,图2是本公开实施例提供的移动终端的结构图,如图2所示,移动终端200包括:
第一接收模块201,用于接收用户在目标文本上的第一输入;
显示模块202,用于响应于所述第一接收模块201接收的所述第一输入,在所述目标文本的第一预设侧边,显示预设的文本删除控件;
第二接收模块203,用于接收用户在所述显示模块202显示的所述文本删除控件上的第二输入;
删除模块204,用于响应于所述第二接收模块203接收的所述第二输入,删除所述第二输入所选中的目标子文本;
其中,所述目标文本包括所述目标子文本。
可选的,如图3所示,所述文本删除控件为摇杆控件,所述第二输入为用户在所述文本删除控件上的触控操作;
所述删除模块204包括:
第一显示子模块2041,用于响应于所述第二输入,在所述目标文本的第二预设侧边,显示预设的定位控件;
第一获取子模块2042,用于获取所述第一显示子模块2041显示的所述定位控件在所述目标文本中的目标位置;
第二获取子模块2043,用于获取所述触控操作的触控压力值;
第二显示子模块2044,用于根据所述第二获取子模块2043获取的所述触控压力值的大小,在所述目标位置所指示的所述目标文本的目标行的第一个字符开始的连续N个字符上,依次显示预设的文本删除标识;
其中,所述目标子文本为所述连续N个字符,所述删除标识用于指示每个字符被删除,N与所述触控操作的触控压力值的大小正相关。
可选的,如图4所示,所述第一获取子模块2042包括:
获取单元20421,用于获取所述触控操作的触控操作方向;
移动单元20422,用于按照所述获取单元20421获取的所述触控操作方向,控制所述定位控件移动至目标位置。
可选的,如图5所示,所述第一获取子模块2042包括:
接收单元20423,用于接收用户对所述定位控件的拖动输入;
确定单元20424,用于将所述接收单元20423接收的所述拖动输入的拖动结束位置确定为所述定位控件在所述目标文本中的目标位置。
可选的,如图6所示,所述移动终端200还包括:
第三接收模块205,用于接收用户在所述连续N个字符中的M个字符上的滑动输入;
消除模块206,用于响应于所述第三接收模块205接收的所述滑动输入,依次消除所述M个字符上的文本删除标识。
移动终端200能够实现上述方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。
本公开实施例的移动终端200,接收用户在目标文本上的第一输入;响应于所述第一输入,在所述目标文本的第一预设侧边,显示预设的文本删除控件;接收用户在所述文本删除控件上的第二输入;响应于所述第二输入,删除所述第二输入所选中的目标子文本;其中,所述目标文本包括所述目标子文本。这样,用户可以对移动终端显示界面中显示的信息进行编辑,以获取该信息中的部分信息,信息编辑方式灵活。
图7为实现本公开各个实施例的一种移动终端的硬件结构示意图,该移动终端700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、处理器710、以及电源711等部件。本领域技术人员可以理解,图7中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载移动终端、可穿戴设备、以及计步器等。
其中,处理器710,用于接收用户在目标文本上的第一输入;响应于所述第一输入,在所述目标文本的第一预设侧边,显示预设的文本删除控件;接收用户在所述文本删除控件上的第二输入;响应于所述第二输入,删除所述第二输入所选中的目标子文本;其中,所述目标文本包括所述目标子文本。
这样,用户可以对移动终端显示界面中显示的信息进行编辑,以获取该信息中的部分信息,信息编辑方式灵活。
可选的,所述文本删除控件为摇杆控件,所述第二输入为用户在所述文本删除控件上的触控操作;处理器710还用于,响应于所述第二输入,在所述目标文本的第二预设侧边,显示预设的定位控件;获取所述定位控件在所述目标文本中的目标位置;获取所述触控操作的触控压力值;根据所述触控压力值的大小,在所述目标位置所指示的所述目标文本的目标行的第一个字符开始的连续N个字符上,依次显示预设的文本删除标识;其中,所述目标子文本为所述连续N个字符,所述删除标识用于指示每个字符被删除,N与所述触控操作的触控压力值的大小正相关。
可选的,处理器710还用于,获取所述触控操作的触控操作方向;按照所述触控操作方向,控制所述定位控件移动至目标位置。
可选的,处理器710还用于,接收用户对所述定位控件的拖动输入;将所述拖动输入的拖动结束位置确定为所述定位控件在所述目标文本中的目标位置。
可选的,处理器710还用于,接收用户在所述连续N个字符中的M个字符上的滑动输入;响应于所述滑动输入,依次消除所述M个字符上的文本删除标识。
应理解的是,本公开实施例中,射频单元701可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器710处理;另外,将上行的数据发送给基站。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元701还可以通过无线通信系统与网络和其他设备通信。
移动终端通过网络模块702为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元703可以将射频单元701或网络模块702接收的或者在存储器709中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元703还可以提供与移动终端700执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元703包括扬声器、蜂鸣器以及受话器等。
输入单元704用于接收音频或视频信号。输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元706上。经图形处理器7041处理后的图像帧可以存储在存储器709(或其它存储介质)中或者经由射频单元701或网络模块702进行发送。麦克风7042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元701发送到移动通信基站的格式输出。
移动终端700还包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板7061的亮度,接近传感器可在移动终端700移动到耳边时,关闭显示面板7061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器705还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元706用于显示由用户输入的信息或提供给用户的信息。显示单元706可包括显示面板7061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板7061。
用户输入单元707可用于接收输入的数字或字符信息,以及产生与移动 终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板7071上或在触控面板7071附近的操作)。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器710,接收处理器710发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板7071。除了触控面板7071,用户输入单元707还可以包括其他输入设备7072。具体地,其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板7071可覆盖在显示面板7061上,当触控面板7071检测到在其上或附近的触摸操作后,传送给处理器710以确定触摸事件的类型,随后处理器710根据触摸事件的类型在显示面板7061上提供相应的视觉输出。虽然在图7中,触控面板7071与显示面板7061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板7071与显示面板7061集成而实现移动终端的输入和输出功能,具体此处不做限定。
接口单元708为外部装置与移动终端700连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元708可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端700内的一个或多个元件或者可以用于在移动终端700和外部装置之间传输数据。
存储器709可用于存储软件程序以及各种数据。存储器709可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区 可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器710是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器709内的软件程序和/或模块,以及调用存储在存储器709内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器710可包括一个或多个处理单元;可选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。
移动终端700还可以包括给各个部件供电的电源711(比如电池),可选的,电源711可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,移动终端700包括一些未示出的功能模块,在此不再赘述。
可选的,本公开实施例还提供一种移动终端,包括处理器710,存储器709,存储在存储器709上并可在所述处理器710上运行的计算机程序,该计算机程序被处理器710执行时实现上述文本编辑方法实施例中的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述文本编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台移动终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。

Claims (12)

  1. 一种文本编辑方法,包括:
    接收用户在目标文本上的第一输入;
    响应于所述第一输入,在所述目标文本的第一预设侧边,显示预设的文本删除控件;
    接收用户在所述文本删除控件上的第二输入;
    响应于所述第二输入,删除所述第二输入所选中的目标子文本;
    其中,所述目标文本包括所述目标子文本。
  2. 根据权利要求1所述的方法,其中,所述文本删除控件为摇杆控件,所述第二输入为用户在所述文本删除控件上的触控操作;
    所述响应于所述第二输入,删除所述第二输入所选中的目标子文本,包括:
    响应于所述第二输入,在所述目标文本的第二预设侧边,显示预设的定位控件;
    获取所述定位控件在所述目标文本中的目标位置;
    获取所述触控操作的触控压力值;
    根据所述触控压力值的大小,在所述目标位置所指示的所述目标文本的目标行的第一个字符开始的连续N个字符上,依次显示预设的文本删除标识;
    其中,所述目标子文本为所述连续N个字符,所述删除标识用于指示每个字符被删除,N与所述触控操作的触控压力值的大小正相关。
  3. 根据权利要求2所述的方法,其中,所述获取所述定位控件在所述目标文本中的目标位置,包括:
    获取所述触控操作的触控操作方向;
    按照所述触控操作方向,控制所述定位控件移动至目标位置。
  4. 根据权利要求2所述的方法,其中,所述获取所述定位控件在所述目标文本中的目标位置,包括:
    接收用户对所述定位控件的拖动输入;
    将所述拖动输入的拖动结束位置确定为所述定位控件在所述目标文本中 的目标位置。
  5. 根据权利要求2所述的方法,还包括:所述根据所述触控压力值的大小,在所述目标位置所指示的所述目标文本的目标行的第一个字符开始的连续N个字符上,依次显示删除标识之后,
    接收用户在所述连续N个字符中的M个字符上的滑动输入;
    响应于所述滑动输入,依次消除所述M个字符上的文本删除标识。
  6. 一种移动终端,包括:
    第一接收模块,用于接收用户在目标文本上的第一输入;
    显示模块,用于响应于所述第一接收模块接收的所述第一输入,在所述目标文本的第一预设侧边,显示预设的文本删除控件;
    第二接收模块,用于接收用户在所述显示模块显示的所述文本删除控件上的第二输入;
    删除模块,用于响应于所述第二接收模块接收的所述第二输入,删除所述第二输入所选中的目标子文本;
    其中,所述目标文本包括所述目标子文本。
  7. 根据权利要求6所述的移动终端,其中,所述文本删除控件为摇杆控件,所述第二输入为用户在所述文本删除控件上的触控操作;
    所述删除模块包括:
    第一显示子模块,用于响应于所述第二输入,在所述目标文本的第二预设侧边,显示预设的定位控件;
    第一获取子模块,用于获取所述第一显示子模块显示的所述定位控件在所述目标文本中的目标位置;
    第二获取子模块,用于获取所述触控操作的触控压力值;
    第二显示子模块,用于根据所述第二获取子模块获取的所述触控压力值的大小,在所述目标位置所指示的所述目标文本的目标行的第一个字符开始的连续N个字符上,依次显示预设的文本删除标识;
    其中,所述目标子文本为所述连续N个字符,所述删除标识用于指示每个字符被删除,N与所述触控操作的触控压力值的大小正相关。
  8. 根据权利要求7所述的移动终端,其中,所述第一获取子模块包括:
    获取单元,用于获取所述触控操作的触控操作方向;
    移动单元,用于按照所述获取单元获取的所述触控操作方向,控制所述定位控件移动至目标位置。
  9. 根据权利要求7所述的移动终端,其中,所述第一获取子模块包括:
    接收单元,用于接收用户对所述定位控件的拖动输入;
    确定单元,用于将所述接收单元接收的所述拖动输入的拖动结束位置确定为所述定位控件在所述目标文本中的目标位置。
  10. 根据权利要求7所述的移动终端,还包括:
    第三接收模块,用于接收用户在所述连续N个字符中的M个字符上的滑动输入;
    消除模块,用于响应于所述第三接收模块接收的所述滑动输入,依次消除所述M个字符上的文本删除标识。
  11. 一种移动终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至5任一项所述的文本编辑方法中的步骤。
  12. 一种计算机可读存储介质,存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述的文本编辑方法中的步骤。
PCT/CN2018/121746 2017-12-21 2018-12-18 文本编辑方法及移动终端 WO2019120192A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP18890324.9A EP3731077A4 (en) 2017-12-21 2018-12-18 TEXT MODIFICATION PROCESS, AND MOBILE DEVICE
US16/956,452 US11340777B2 (en) 2017-12-21 2018-12-18 Method for editing text and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711391653.7 2017-12-21
CN201711391653.7A CN108132752B (zh) 2017-12-21 2017-12-21 一种文本编辑方法及移动终端

Publications (1)

Publication Number Publication Date
WO2019120192A1 true WO2019120192A1 (zh) 2019-06-27

Family

ID=62391192

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/121746 WO2019120192A1 (zh) 2017-12-21 2018-12-18 文本编辑方法及移动终端

Country Status (4)

Country Link
US (1) US11340777B2 (zh)
EP (1) EP3731077A4 (zh)
CN (1) CN108132752B (zh)
WO (1) WO2019120192A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928842A (zh) * 2019-10-30 2020-03-27 维沃移动通信有限公司 一种显示方法及终端设备

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132752B (zh) * 2017-12-21 2020-02-18 维沃移动通信有限公司 一种文本编辑方法及移动终端
CN111310418A (zh) * 2020-02-25 2020-06-19 深圳市元征科技股份有限公司 一种文本提取方法及其装置
CN113485590A (zh) * 2021-04-16 2021-10-08 维沃移动通信有限公司 触控操作方法及装置
CN113177391B (zh) * 2021-05-28 2021-11-19 掌阅科技股份有限公司 在流式界面中操作光标重定向方法、计算设备及存储介质
CN113608655A (zh) * 2021-07-29 2021-11-05 维沃移动通信有限公司 信息处理方法、装置、电子设备和存储介质
CN113805753A (zh) * 2021-09-24 2021-12-17 维沃移动通信有限公司 文字编辑方法、装置和电子设备
CN114415887A (zh) * 2022-01-07 2022-04-29 维沃移动通信有限公司 文档内容处理方法与装置
CN114385562A (zh) * 2022-01-19 2022-04-22 维沃移动通信有限公司 文本信息删除方法、装置及电子设备
CN114610192A (zh) * 2022-03-17 2022-06-10 维沃移动通信有限公司 文本选取方法、文本选取装置、电子设备和可读存储介质
CN115048030B (zh) * 2022-08-12 2022-12-09 广东新空电子科技股份有限公司 一种文字合并方法、装置、电子设备和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981765A (zh) * 2012-11-26 2013-03-20 中兴通讯股份有限公司 一种文本处理方法及终端
US20150128095A1 (en) * 2013-11-07 2015-05-07 Tencent Technology (Shenzhen) Company Limited Method, device and computer system for performing operations on objects in an object list
CN104932807A (zh) * 2014-03-19 2015-09-23 腾讯科技(深圳)有限公司 一种光标定位方法及触屏设备
CN105094642A (zh) * 2015-07-21 2015-11-25 努比亚技术有限公司 短信处理方法及装置
CN105183310A (zh) * 2015-08-26 2015-12-23 深圳市金立通信设备有限公司 一种信息编辑方法及终端
CN108132752A (zh) * 2017-12-21 2018-06-08 维沃移动通信有限公司 一种文本编辑方法及移动终端

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7683889B2 (en) * 2004-12-21 2010-03-23 Microsoft Corporation Pressure based selection
US8510665B2 (en) * 2009-03-16 2013-08-13 Apple Inc. Methods and graphical user interfaces for editing on a multifunction device with a touch screen display
US9069416B2 (en) * 2010-03-25 2015-06-30 Google Inc. Method and system for selecting content using a touchscreen
US20110320978A1 (en) * 2010-06-29 2011-12-29 Horodezky Samuel J Method and apparatus for touchscreen gesture recognition overlay
US10275153B2 (en) * 2011-05-19 2019-04-30 Will John Temple Multidirectional button, key, and keyboard
US8826190B2 (en) * 2011-05-27 2014-09-02 Google Inc. Moving a graphical selector
KR101838260B1 (ko) * 2011-06-03 2018-03-13 구글 엘엘씨 텍스트를 선택하기 위한 제스처들
US8584049B1 (en) * 2012-10-16 2013-11-12 Google Inc. Visual feedback deletion
CN104375756A (zh) * 2013-08-16 2015-02-25 北京三星通信技术研究有限公司 触控操作的方法及装置
KR20150051479A (ko) 2013-11-04 2015-05-13 삼성디스플레이 주식회사 표시 장치 및 이의 제조 방법
US9600114B2 (en) * 2014-07-31 2017-03-21 International Business Machines Corporation Variable pressure touch system
US9639184B2 (en) * 2015-03-19 2017-05-02 Apple Inc. Touch input cursor manipulation
CN104834433B (zh) * 2015-04-24 2018-02-02 小米科技有限责任公司 文本编辑方法、装置及终端
US9880735B2 (en) * 2015-08-10 2018-01-30 Apple Inc. Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback
CN105224234B (zh) * 2015-10-28 2019-06-07 努比亚技术有限公司 文本内容选择方法及移动终端
CN106802732A (zh) * 2015-11-25 2017-06-06 中兴通讯股份有限公司 对象选择方法和装置
CN105373309B (zh) * 2015-11-26 2019-10-08 努比亚技术有限公司 文本选择方法及移动终端
CN107479786A (zh) * 2017-07-28 2017-12-15 珠海市魅族科技有限公司 一种删除文本的方法、装置、计算机装置及计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981765A (zh) * 2012-11-26 2013-03-20 中兴通讯股份有限公司 一种文本处理方法及终端
US20150128095A1 (en) * 2013-11-07 2015-05-07 Tencent Technology (Shenzhen) Company Limited Method, device and computer system for performing operations on objects in an object list
CN104932807A (zh) * 2014-03-19 2015-09-23 腾讯科技(深圳)有限公司 一种光标定位方法及触屏设备
CN105094642A (zh) * 2015-07-21 2015-11-25 努比亚技术有限公司 短信处理方法及装置
CN105183310A (zh) * 2015-08-26 2015-12-23 深圳市金立通信设备有限公司 一种信息编辑方法及终端
CN108132752A (zh) * 2017-12-21 2018-06-08 维沃移动通信有限公司 一种文本编辑方法及移动终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3731077A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928842A (zh) * 2019-10-30 2020-03-27 维沃移动通信有限公司 一种显示方法及终端设备

Also Published As

Publication number Publication date
US11340777B2 (en) 2022-05-24
CN108132752B (zh) 2020-02-18
EP3731077A1 (en) 2020-10-28
CN108132752A (zh) 2018-06-08
EP3731077A4 (en) 2021-02-17
US20210096739A1 (en) 2021-04-01

Similar Documents

Publication Publication Date Title
CN108762954B (zh) 一种对象分享方法及移动终端
WO2019120192A1 (zh) 文本编辑方法及移动终端
WO2019137429A1 (zh) 图片处理方法及移动终端
WO2019120191A1 (zh) 多段文本复制方法及移动终端
CN108536365B (zh) 一种图像分享方法及终端
WO2019154181A1 (zh) 显示控制方法及移动终端
CN107977132B (zh) 一种信息显示方法及移动终端
WO2019196929A1 (zh) 一种视频数据处理方法及移动终端
CN107943390B (zh) 一种文字复制方法及移动终端
WO2019196691A1 (zh) 一种键盘界面显示方法和移动终端
WO2021004426A1 (zh) 内容选择方法及终端
WO2020238497A1 (zh) 图标移动方法及终端设备
WO2019196864A1 (zh) 一种虚拟按键控制方法及移动终端
WO2019114522A1 (zh) 屏幕控制方法、屏幕控制装置及移动终端
CN108228902B (zh) 一种文件显示方法及移动终端
WO2019076371A1 (zh) 资源数据展示方法及移动终端
CN111030918B (zh) 一种消息处理方法、电子设备及服务器
CN109189303B (zh) 文本编辑方法及移动终端
US11895069B2 (en) Message sending method and mobile terminal
WO2021169954A1 (zh) 搜索方法及电子设备
WO2019076377A1 (zh) 图像的查看方法及移动终端
CN109710130B (zh) 一种显示方法和终端
WO2019154360A1 (zh) 界面切换方法及移动终端
CN109271262B (zh) 一种显示方法和终端
WO2019120190A1 (zh) 拨号方法及移动终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18890324

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018890324

Country of ref document: EP

Effective date: 20200721