WO2015123823A1 - Information processing method and terminal device - Google Patents

Information processing method and terminal device Download PDF

Info

Publication number
WO2015123823A1
WO2015123823A1 PCT/CN2014/072249 CN2014072249W WO2015123823A1 WO 2015123823 A1 WO2015123823 A1 WO 2015123823A1 CN 2014072249 W CN2014072249 W CN 2014072249W WO 2015123823 A1 WO2015123823 A1 WO 2015123823A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
information
sliding
text
touch
Prior art date
Application number
PCT/CN2014/072249
Other languages
French (fr)
Chinese (zh)
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 PCT/CN2014/072249 priority Critical patent/WO2015123823A1/en
Priority to CN201480000713.6A priority patent/CN104169862B/en
Priority to CN201711212839.1A priority patent/CN108153720A/en
Publication of WO2015123823A1 publication Critical patent/WO2015123823A1/en

Links

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/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

Definitions

  • the present invention relates to the field of data editing, and in particular, to an information processing method and a terminal device.
  • the deletion and recovery operations can generally only be performed by using the click back key or the recovery key. For example, to delete the last "quantity” word of "weekend to eat", you need to click the backspace key to delete. If the "rice” word is also deleted when deleting, you need to click the recovery button to restore or re-enter.
  • the embodiments of the present invention provide an information processing method and a terminal device, which are used to delete or restore information by using a more clean and efficient touch track, improve the accuracy of information editing, and improve editing efficiency.
  • a first aspect of the embodiments of the present invention provides an information processing method, including:
  • the terminal device monitors a touch trajectory of the user
  • the terminal device performs a deletion or recovery operation on the information according to the touch trajectory and the positional relationship.
  • the step of the terminal device monitoring the touch trajectory of the user includes:
  • the terminal device detects whether a shortcut editing mode is enabled
  • the step of triggering the terminal device to monitor a touch trajectory of the user is triggered.
  • the terminal device Monitoring the user's touch trajectory includes:
  • the terminal device monitors a start point, an end point, and a sliding direction of the touch track.
  • the terminal device is configured to: according to the touch trajectory and the location relationship Information for deletion or recovery operations includes:
  • the terminal device deletes the text between the starting point and the ending point according to the positional relationship
  • the terminal device resumes the text deleted in the previous step between the starting point and the ending point according to the positional relationship
  • the second direction is opposite to the first direction.
  • the method further includes: When the sliding direction is the third direction, the terminal device deletes the entire line of text in which the cursor is located in the editable text;
  • the terminal device recovers the entire line of text deleted in the previous step
  • the terminal device monitors The user's touch track includes:
  • the terminal device monitors a mark point of the touch track and a sliding operation.
  • Information for deletion or recovery operations includes:
  • the terminal device deletes the information group that has passed the marked point in the sliding according to the positional relationship
  • the terminal device recovers according to the positional relationship a group of information deleted in the previous step of the marked point in the complex sliding;
  • a second aspect of the embodiments of the present invention provides a terminal device, including:
  • a recording module configured to record a positional relationship between the information and the display screen
  • a monitoring module configured to monitor a user's touch trajectory
  • a processing module configured to delete or restore the information according to the touch track detected by the monitoring module and the positional relationship recorded by the recording module.
  • the terminal device further includes:
  • a detecting module configured to detect whether a shortcut editing mode is enabled
  • a triggering module configured to trigger the monitoring module when the detecting module detects that the shortcut editing mode is enabled.
  • the monitoring module is specifically configured to monitor a starting point, an ending point, and a sliding direction of the touch track.
  • the processing module specifically includes:
  • a text deleting unit configured to delete text between the starting point and the ending point according to the positional relationship when the sliding direction is the first direction
  • a text recovery unit configured to: when the sliding direction is the second direction, recover the text deleted in the previous step between the starting point and the ending point according to the positional relationship;
  • the second direction is opposite to the first direction.
  • the processing module further includes: a line deleting unit, configured to delete the entire line of text in the editable text when the sliding direction is the third direction;
  • An entire line recovery unit configured to restore the entire line of text deleted in the previous step when the sliding direction is the fourth direction;
  • the fourth direction is opposite to the third direction.
  • the information is an information group
  • the monitoring module is specifically configured to monitor a mark point of the touch track and a sliding operation.
  • the processing module specifically includes:
  • a message group deleting unit configured to delete, according to the position relationship, a group of information passing through the marked point according to the positional relationship when the sliding operation is sliding in a fourth direction;
  • a information group recovery unit configured to: when the sliding operation is sliding in a third direction, recover the information group deleted in the previous step of the marking point in the sliding according to the position relationship;
  • a third aspect of the embodiments of the present invention provides a terminal device, including:
  • Memory processor, touch screen and communication bus
  • the processor performs the following operations:
  • the processor further performs the following operations:
  • the processor when the information is editable text, the processor Specifically, perform the following operations:
  • the starting point, the ending point, and the sliding direction of the touch track are monitored.
  • the processor specifically performs the following operations:
  • the second direction is opposite to the first direction.
  • the processor further performs the following operations. :
  • the sliding direction is the fourth direction
  • the entire line of text deleted in the previous step is restored; wherein the fourth direction is opposite to the third direction.
  • the processor when the information is an information group, the processor is specific to Do the following:
  • a marker point of the touch track and a sliding operation are monitored.
  • the processor specifically performs the following operations:
  • the embodiment of the present invention has the following advantages:
  • the terminal device first records the positional relationship between the information and the display screen, and then monitors the touch trajectory of the user, according to the touch trajectory and the position relationship, The information is deleted or restored, so that the editing is directly related to the information to be edited, the accuracy of the information editing is improved, and the touch track is automatically detected to be deleted and restored, and the touch track can be passed in real time.
  • the information of each unit is processed, which saves the time for information editing and improves the editing efficiency.
  • 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention
  • 2 is another schematic flowchart of an information processing method according to an embodiment of the present invention
  • FIG. 3 is another schematic flowchart of an information processing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an application of an information processing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another flow of an information processing method according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another application of an information processing method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 8 is another schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 9 is another schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • FIG. 11 is another schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 12 is another schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of an example of a positional relationship in an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of another example of a positional relationship in an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of another application of an information processing method according to an embodiment of the present invention. detailed description
  • left, right, upper, lower, and the like orientations in this embodiment are merely relative concepts or reference to the normal use state of the product, and should not be considered as limiting.
  • first, second, third, fourth, etc. may be used to describe various directions in the embodiments of the present invention, these directions should not be limited to these terms. These terms are only used to distinguish one direction from another.
  • the first direction may also be referred to as the second direction without departing from the scope of the embodiments of the present invention.
  • the second direction may also be referred to as the first direction; likewise, the second direction may also be It is referred to as a third direction.
  • the third direction may also be referred to as a second direction or the like, which is not limited by the embodiment of the present invention.
  • first and second directions are opposite in the embodiment of the present invention; the third and fourth directions are opposite In the opposite direction, the angle between one direction and the other direction is between 90 degrees and 270 degrees.
  • the two directions are considered to be opposite, and the two directions are not limited to 180 degrees.
  • an embodiment of an information processing method in an embodiment of the present invention includes:
  • the terminal device can record the positional relationship between the information and the display screen.
  • the terminal device monitors a touch track of the user.
  • the terminal device After the terminal device records the positional relationship between the information and the display screen, the user's touch trajectory is monitored.
  • the terminal device deletes or restores the information according to the touch track and the position relationship.
  • the terminal device monitors the user's touch trajectory
  • the information is deleted or restored according to the user's touch trajectory and the positional relationship between the information and the display screen.
  • the terminal device first records the positional relationship between the information and the display screen, and then monitors the touch trajectory of the user, and deletes or restores the information according to the touch trajectory and the positional relationship, so that the editing is directly and needs to be edited.
  • the contact of the information improves the accuracy of the information editing, and the monitoring of the touch track automatically performs the deletion and recovery operation, and the information of the plurality of units through which the touch track passes can be processed in real time, thereby saving the time for information editing and improving the time. Editing efficiency.
  • FIG. 2 another embodiment of the information processing method in the embodiment of the present invention includes:
  • the terminal device can record the positional relationship between the information and the display screen.
  • the information can be various, and can be editable text, such as mail, social network service SNS or instant messaging IM, or a list of information groups, such as a short message group, an address book, a buddy list, etc. It can be other kinds of information, which is not limited here.
  • the positional relationship between the information and the display screen can be represented differently. As shown in FIG. 13, a coordinate system can be established in the display screen, and the positional relationship can be represented as each unit in the information, for example, each word is displayed.
  • the coordinate values in the screen as shown in Figure 14, can also be the display of each part of the information. For the spacing of the borders, there may be other ways of indicating the positional relationship, which is not limited herein.
  • the terminal device detects whether a shortcut editing mode is enabled.
  • the terminal device can detect whether the shortcut editing mode is enabled. It can be understood that the step 202 can also be performed before the step 201, which is not limited herein.
  • the shortcut editing mode can be opened in multiple ways.
  • the user can slide the left and right on the screen to open the shortcut editing mode, or can be set to double-click on the screen.
  • the shortcut editing mode can also be set to other ways to enable the shortcut editing mode, or the user can customize a specific gesture to open the shortcut editing mode, which is not limited herein.
  • the terminal device monitors the touch track of the user; when the terminal device detects that the shortcut editing mode is enabled, the terminal device monitors the touch track of the user;
  • the terminal device can continue to perform other operations.
  • the touch trajectory of the user may be a touch trajectory formed by sliding a user's finger or other object detected on the screen by the touch screen, or may be a trajectory of a user's finger sensed by a sensor such as an infrared sensor or a light sensor;
  • the trajectory can be a single-point trajectory, for example, a trajectory formed by a user by one finger, or a trajectory formed by two or more fingers, which is not limited herein.
  • the terminal device deletes or restores the information according to the touch track and the location relationship.
  • the terminal device monitors the user's touch trajectory
  • the information is deleted or restored according to the user's touch trajectory and the positional relationship between the information and the display screen.
  • the deleting and restoring operations of the terminal device may include more specific operations, such as the scope of the deletion operation, whether the deletion operation or the recovery operation should be performed, and the corresponding relationship between the specific operations and the touch track may be determined by using preset rules. .
  • the terminal device detects that the shortcut editing mode is enabled, the user's touch trajectory is monitored, so that on the one hand, the user's touch trajectory is continuously monitored to consume power, and the terminal device's battery life is prolonged. More gestures are used in the quick edit mode without being confused with gestures when the terminal device is in other states, which enhances the accuracy of the operation.
  • the terminal device monitors the touch trajectory of the user, and in actual applications, according to the information
  • the difference in the touch track monitored by the terminal device can focus on different aspects.
  • the terminal device can monitor the start point, the end point, and the sliding direction of the touch track for subsequent processing;
  • another embodiment of the information processing method in the embodiment of the present invention includes:
  • the terminal device can record the positional relationship between the information and the display screen.
  • the information is editable text, and can be an email, a social network service SNS or an instant messaging IM, which is not limited herein.
  • the positional relationship between the information and the display screen can be represented differently, and a coordinate system can be established in the display screen, and the positional relationship can be represented as each unit in the information, for example, the coordinate value of each word in the display screen. It can also be the distance between each part of the information from the border of the display screen, and there may be other ways of indicating the positional relationship, which is not limited herein.
  • the terminal device can record every time the positional relationship between the information and the display screen changes. If the storage capacity of the terminal device is sufficient, the terminal device can not only store the current information and the positional relationship of the display screen, and After the next time the position information of the information and the display screen is recorded, the positional relationship between the last recorded information and the display screen can be saved, so that multiple recovery operations can be performed in the subsequent processing, and only the actual application can be saved.
  • the positional relationship between the latest information and the display screen is not limited here.
  • the terminal device detects whether a shortcut editing mode is enabled.
  • the terminal device can detect whether the shortcut editing mode is enabled. It can be understood that the step 302 can also be performed before the step 301, which is not limited herein.
  • the shortcut editing mode can be opened in multiple ways. It can be set to enable the user to edit the information on the screen to open the shortcut editing mode, or to double-click on the screen.
  • the shortcut editing mode can also be set to other ways to enable the shortcut editing mode, or the user can customize a specific gesture to open the shortcut editing mode, which is not limited herein.
  • the terminal device monitors a starting point, an ending point, and a sliding direction of the touch track of the user.
  • the terminal device After the terminal device detects that the shortcut editing mode is enabled, the terminal device monitors the touch trajectory of the user. Starting point, ending point and sliding direction;
  • the touch trajectory of the user may be a touch trajectory formed by sliding a user's finger or other object detected on the screen by the touch screen, or may be a trajectory of a user's finger sensed by a sensor such as an infrared sensor or a light sensor;
  • the trajectory can be a single-point trajectory, for example, a trajectory formed by a user by one finger, or a trajectory formed by two or more fingers, which is not limited herein.
  • the terminal device deletes the text between the starting point and the ending point according to the positional relationship
  • the terminal device After the terminal device monitors the touch track of the user, when the sliding direction of the touch track is the first direction, the terminal device deletes the text between the start point and the end point of the touch track according to the positional relationship.
  • the terminal device resumes the text deleted from the previous step between the starting point and the ending point according to the positional relationship;
  • the terminal device After the terminal device monitors the touch track of the user, when the sliding direction of the touch track is the first direction, the terminal device restores the text deleted from the previous step between the start point and the end point according to the positional relationship, and the second direction is opposite to the first direction.
  • first direction is to the left
  • second direction is to the right
  • first direction is to the right
  • second direction is to the left, which is not limited herein.
  • the terminal device can only restore the deleted text in the positional relationship between the start point and the end point of the touch track, which is not limited herein.
  • the path of the entire touch track may be directly monitored, and the area passing the touch track is deleted or restored.
  • the scope is not limited here.
  • the terminal device deletes the entire line of text where the cursor is located in the editable text.
  • the terminal device monitors the touch track of the user, when the sliding direction of the touch track is the third direction, the terminal device can delete the entire line of text where the cursor is located in the editable text.
  • the terminal device resumes the entire line of text deleted in the previous step.
  • the terminal device detects the touch track of the user, when the sliding direction of the touch track is the fourth direction, the terminal device can recover the entire line of text deleted in the previous step, and the fourth direction is opposite to the third direction.
  • the cursor is in the third line of the editable text.
  • the terminal device deletes the text of the third line.
  • the terminal device resumes the previous step. Three lines of text.
  • steps 306 and 307 there may be no steps 306 and 307, which are not limited herein.
  • the terminal device monitors the start point, the end point, and the sliding direction of the touch track, determines whether the deletion or recovery operation is performed according to the sliding direction, and determines the range of the deletion or recovery operation according to the starting point and the end point, such that This makes the editing of information more accurate.
  • the user's finger is directed to a magical eraser or magic pen, which can directly erase the content by hand or restore the content with the finger, which embodies the user's operation and enhances the user's Device interaction.
  • the current information is editable text.
  • the terminal device can record the positional relationship between the information and the display screen. For example, the coordinates of each letter on the display screen can be recorded;
  • the terminal device detects that the shortcut editing mode is turned on;
  • the terminal device starts monitoring the starting point, the ending point and the sliding direction of the user's touch trajectory
  • the terminal device monitors that the sliding direction of the touch track is sliding to the left, the starting point is the coordinate on the right side of the letter "u”, and the ending point is the coordinate on the left side of the letter "0";
  • the terminal device deletes the text between the right side of the letter "u” on the display and the coordinates on the left side of the letter "0" according to the positional relationship;
  • the terminal device detects that the sliding direction of the touch track is sliding to the right, the starting point is the coordinate of the left side of the letter "0" in the previous deletion operation, and the ending point is the coordinate of the right side of the letter "u” in the previous step;
  • the terminal device restores the deleted text in the previous step between the coordinates on the left side of the letter "0" on the display screen and the coordinates on the right side of the letter "U” according to the positional relationship.
  • the terminal device can monitor the marked points of the touch track and the sliding operation for subsequent processing;
  • another embodiment of the information processing method in the embodiment of the present invention includes:
  • the terminal device can record the positional relationship between the information group and the display screen.
  • the information group can be a short message group (sms list), an address book, a friend list, etc., and is not limited herein.
  • the positional relationship between the information group and the display screen may have different representation manners, and a coordinate system may be established in the display screen, and the positional relationship may be represented as each information group, for example, the coordinates of the center point of each short message in the display screen.
  • the value may also be the distance between the upper and lower edges of the information group and the respective borders of the display screen, and may also have other manners for indicating the positional relationship, which is not limited herein.
  • the terminal device can record every time the positional relationship between the information and the display screen changes. If the storage capacity of the terminal device is sufficient, the terminal device can not only store the current information and the positional relationship of the display screen, and After the next time the position information of the information and the display screen is recorded, the positional relationship between the last recorded information and the display screen can be saved, so that multiple recovery operations can be performed in the subsequent processing, and only the actual application can be saved.
  • the positional relationship between the latest information and the display screen is not limited here.
  • the terminal device detects whether a shortcut editing mode is enabled.
  • the terminal device can detect whether the shortcut editing mode is enabled. It can be understood that the step 502 can also be performed before the step 501, which is not limited herein.
  • the shortcut editing mode can be opened in multiple ways. It can be set to enable the user to edit the information on the screen to open the shortcut editing mode, or to double-click on the screen.
  • the shortcut editing mode can also be set to other ways to enable the shortcut editing mode, or the user can customize a specific gesture to open the shortcut editing mode, which is not limited herein.
  • the terminal device monitors a mark point of the touch track of the user and a sliding operation; After the terminal device detects that the shortcut editing mode is enabled, the terminal device monitors the marking point of the touch track of the user and the sliding operation;
  • the marking point of the touch track and the sliding operation can be performed by the user through two fingers, or can be completed by the user through more fingers or other objects, which is not limited herein.
  • the touch trajectory of the user may be a touch trajectory formed by sliding a user's finger or other object detected on the screen by the touch screen, or may be a trajectory of a user's finger sensed by a sensor such as an infrared sensor or a light sensor;
  • the trajectory can be a single-point trajectory, for example, a trajectory formed by a user by one finger, or a trajectory formed by two or more fingers, which is not limited herein.
  • the terminal device deletes the information group of the marked points in the sliding according to the positional relationship
  • the terminal device After the terminal device detects the marked point of the touch track and the sliding operation, when the sliding operation is sliding in the fourth direction, the terminal device deletes the information group of the marked point in the sliding according to the positional relationship.
  • the terminal device resumes the information group deleted by the previous step of the marked point in the sliding according to the positional relationship.
  • the terminal device After the terminal device detects the marked point of the touch track and the sliding operation, when the sliding operation is sliding in the third direction, the terminal device resumes the information group deleted in the previous step of the marked point in the sliding according to the positional relationship, the third direction and the third direction.
  • the horizontal axis of the display on which the marker passes during the slide indicates the passing point.
  • the terminal device Before the terminal device performs the delete or restore operation, the terminal device can display a confirmation window, and after the deletion or recovery operation, the terminal device can also give a prompt.
  • the terminal device monitors the marking point and the sliding operation of the touch track, and when the sliding operation is sliding in the fourth direction, deleting the information group of the marked point in the sliding, when the sliding operation is When sliding in the third direction, the information group deleted in the previous step of the marked point in the sliding is restored, so that the deletion and recovery operation of the information group is more convenient, the operation steps are reduced, and the operation efficiency of the user is improved.
  • the terminal device can record the position relationship between the information group and the display screen, for example, the coordinates of the upper and lower edges of each piece of information can be recorded;
  • the terminal device After the user draws an "L" on the display screen, the terminal device detects that the shortcut editing mode is enabled; the terminal device starts to monitor the marking point of the user's touch track and the sliding operation;
  • the terminal device monitors the coordinates of the marked point, and the horizontal axis coordinate of the upper edge of the information No. 2 is slid to the horizontal axis coordinate of the marked point;
  • the terminal device deletes the No. 1 information and the No. 2 information of the marked point in the sliding according to the positional relationship; the terminal device monitors the coordinates of the marked point, and the horizontal axis coordinate of the lower edge of the No. 1 information is slid to the horizontal axis coordinate of the marked point ;
  • the terminal device resumes the information of No. 1 and No. 2 deleted in the previous step of the marked point in the sliding according to the positional relationship.
  • an embodiment of the terminal device in the embodiment of the present invention includes:
  • a recording module 701 configured to record a positional relationship between the information and the display screen
  • the monitoring module 702 is configured to monitor a touch trajectory of the user
  • the processing module 703 is configured to delete or restore the information according to the touch track monitored by the monitoring module 702 and the positional relationship recorded by the recording module 701.
  • the recording module 701 first records the positional relationship between the information and the display screen, and then the monitoring module 702 monitors the touch trajectory of the user, and the processing module 703 deletes or restores the information according to the touch trajectory and the positional relationship,
  • the processing module 703 deletes or restores the information according to the touch trajectory and the positional relationship
  • the terminal device may first detect whether the shortcut editing mode is enabled, and then perform subsequent operations.
  • another embodiment of the terminal device in the embodiment of the present invention includes:
  • a recording module 801 configured to record a positional relationship between the information and the display screen
  • a monitoring module 802 configured to monitor a touch trajectory of the user
  • the processing module 803 is configured to delete or restore the information according to the touch track detected by the monitoring module 802 and the positional relationship recorded by the recording module 801;
  • the terminal device further includes:
  • a detecting module 804 configured to detect whether a shortcut editing mode is enabled
  • the triggering module 805 is configured to trigger the monitoring module 802 when the detecting module 804 detects that the shortcut editing mode is enabled.
  • the monitoring module 802 is triggered to monitor the touch trajectory of the user, so as to avoid the power consumption of the user's touch trajectory being monitored all the time, and the endurance time of the terminal device is prolonged.
  • more gesture actions can be used in the quick edit mode without being confused with gesture actions when the terminal device is in other states, which enhances the accuracy of the operation.
  • the monitoring module 802 monitors the user's touch trajectory. In practical applications, depending on the information, the touch trajectory monitored by the monitoring module 802 can focus on different aspects.
  • the monitoring module 802 can monitor the starting point, the end point, and the sliding direction of the touch track for subsequent processing;
  • another embodiment of the terminal device in the embodiment of the present invention includes:
  • a recording module 901 configured to record a positional relationship between the information and the display screen
  • the monitoring module 902 is configured to monitor a touch trajectory of the user
  • the processing module 903 is configured to delete or restore the information according to the touch track monitored by the monitoring module 902 and the positional relationship recorded by the recording module 901;
  • the terminal device further includes:
  • a detecting module 904 configured to detect whether a shortcut editing mode is enabled
  • the triggering module 905 is configured to trigger the monitoring module 902 when the detecting module 904 detects that the shortcut editing mode is enabled;
  • the monitoring module 902 is specifically configured to monitor a starting point, an ending point, and a sliding direction of the touch track;
  • the processing module 903 may specifically include:
  • a text deleting unit 9031 configured to delete text between the starting point and the ending point according to the positional relationship when the sliding direction is the first direction
  • a text recovery unit 9032 configured to: when the sliding direction is the second direction, recover the text deleted in the previous step between the starting point and the ending point according to the positional relationship, where the second direction is opposite to the first direction;
  • the processing module 903 can also include:
  • the entire line deleting unit 9033 is configured to delete the entire line of text in which the cursor is located in the editable text when the sliding direction is the third direction;
  • the entire line recovery unit 9034 is configured to restore the entire line of text deleted in the previous step when the sliding direction is the fourth direction, the fourth direction being opposite to the third direction.
  • the monitoring module 902 monitors the start point, the end point, and the sliding direction of the touch track, and the processing module 903 determines whether the deletion or recovery operation is performed according to the sliding direction, and determines the deletion or recovery operation according to the start point and the end point.
  • the scope of the information so that the editing of the information can be more accurate, this time, the user's finger to a magical eraser or magic pen, you can directly erase the content by hand or use the finger to restore the content, the user's operation, Enhanced user interaction with the device.
  • the current information is editable text.
  • the recording module 901 can record the positional relationship between the information and the display screen, for example, the coordinates of each letter on the display screen can be recorded;
  • the detecting module 904 detects that the shortcut editing mode is turned on; the monitoring module 902 starts monitoring the starting point, the ending point, and the sliding direction of the user's touch track; the monitoring module 902 detects that the sliding direction of the touch track is sliding to the left.
  • the starting point is the coordinate on the right side of the letter "u”
  • the end point is the coordinate on the left side of the letter "0";
  • the text deletion unit 9031 deletes the text between the right side of the letter "u” on the display and the coordinates on the left side of the letter "0" according to the positional relationship;
  • the monitoring module 902 detects that the sliding direction of the touch track is sliding to the right, the starting point is the coordinate of the left side of the letter "0" in the previous deletion operation, and the ending point is the coordinate of the right side of the operation letter "u” in the previous step; the text recovery unit 9032 According to the positional relationship, the text deleted on the display in the previous step between the coordinates of the left side of the letter "0" and the coordinates on the right side of the letter "u” is deleted. Second, when the information is a group of information, the monitoring module 902 can monitor the marked points of the touch track and the sliding operation for subsequent processing;
  • another embodiment of the terminal device in the embodiment of the present invention includes:
  • a recording module 1001 configured to record a positional relationship between the information and the display screen
  • the monitoring module 1002 is configured to monitor a touch trajectory of the user
  • the processing module 1003 is configured to delete or restore the information according to the touch track detected by the monitoring module 1002 and the positional relationship recorded by the recording module 1001;
  • the terminal device further includes:
  • the detecting module 1004 is configured to detect whether a shortcut editing mode is enabled
  • the triggering module 1005 is configured to trigger the monitoring module 1002 when the detecting module 1004 detects that the shortcut editing mode is enabled;
  • the monitoring module 1002 is specifically configured to: monitor a mark point of the touch track and a sliding operation
  • the processing module 1003 specifically includes:
  • the information group deleting unit 10031 is configured to: when the sliding operation is sliding in the fourth direction, delete the information group that passes the marked point in the sliding according to the positional relationship;
  • the information group restoring unit 10032 is configured to: when the sliding operation is sliding in the third direction, recover the information group deleted in the previous step of the marking point in the sliding according to the positional relationship.
  • the monitoring module 1002 monitors the marking point and the sliding operation of the touch track.
  • the information group deleting unit 10031 deletes the information sliding below the marking point.
  • the information group recovery unit 10032 restores the information group deleted in the previous step of the marking point in the sliding, so that the deletion and recovery operation of the information group is more convenient, and the operation steps are reduced. , improve the user's operating efficiency.
  • the recording module 1001 can record the positional relationship between the group of information and the display screen, for example, the coordinates of the upper and lower edges of each piece of information can be recorded;
  • the detecting module 1004 detects that the shortcut editing mode is enabled;
  • the monitoring module 1002 starts monitoring the marking point of the user's touch trajectory and the sliding operation;
  • the monitoring module 1002 monitors the coordinates of the marking point, and the horizontal axis coordinate of the upper edge of the second information is slid below the horizontal axis coordinate of the marking point;
  • the information group deleting unit 10031 deletes the No. 1 information and the No. 2 information of the past marked points in the sliding according to the positional relationship;
  • the monitoring module 1002 monitors the coordinates of the marked point, and the horizontal axis coordinate of the lower edge of the information 1 is slid to the horizontal axis coordinate of the marked point;
  • the block recovery unit 10032 restores the No. 1 information and the No. 2 information deleted in the previous step of the marked point in the sliding according to the positional relationship.
  • Another embodiment of the terminal device 1100 in the embodiment of the present invention includes:
  • a memory 1101 a central processing unit (CPU) 1102, a touch screen 1103 and a communication bus 1104;
  • CPU central processing unit
  • the terminal device may further include: a peripheral interface 1105, an RF circuit 1106, an audio circuit 1107, a speaker 1108, a power management chip 1109, an input/output (I/O) subsystem 1110, other input/control devices 1111, or an external port 1112. .
  • a peripheral interface 1105 an RF circuit 1106, an audio circuit 1107, a speaker 1108, a power management chip 1109, an input/output (I/O) subsystem 1110, other input/control devices 1111, or an external port 1112.
  • terminal device provided by this embodiment is only one example of the terminal device, and the terminal device according to the embodiment of the present invention may have more or less components than those shown in FIG. More components, or different component configurations or arrangements, may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the terminal device for processing a message provided in this embodiment is described in detail below.
  • the memory 1101 can be accessed by the CPU 1102, the peripheral interface 1105, etc., and the memory 1101 can include a high speed random access memory, and can also include a nonvolatile memory, such as one or more magnetic disk storage devices, flash memory devices. , or other volatile solid-state storage devices.
  • Peripheral interface 1105 which can connect the input and output peripherals of the device to CPU 1102 and memory 1101.
  • the I/O subsystem 1110 can input and output peripherals on the device, such as A touch screen 1103 (corresponding to the display screen in the above embodiment) and other input/control devices 1111 are connected to the peripheral interface 1105.
  • the I/O subsystem 1110 can include a display controller 11101 and one or more input controllers 11102 for controlling other input/control devices 1111.
  • one or more input controllers 11102 receive electrical signals from other input/control devices 1111 or transmit electrical signals to other input/control devices 1111, and other input/control devices 1111 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 11102 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch screen 1103 is an input interface and an output interface between the terminal device and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, videos, and the like.
  • the display controller 11101 in the I/O subsystem 1110 receives an electrical signal from the touch screen 1103 or transmits an electrical signal to the touch screen 1103.
  • the touch screen 1103 detects the contact on the touch screen, and the display controller 11101 converts the detected contact into an interaction with the user interface object displayed on the touch screen 1103, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 1103 may be running.
  • the icon of the game, the icon of the network to the corresponding network, and the like.
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
  • the RF circuit 1106 is mainly used for establishing communication between the terminal device and the wireless network (ie, the network side), and realizing data receiving and transmitting of the terminal device and the wireless network. For example, sending and receiving short messages, emails, etc. Specifically, the RF circuit 1106 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 1106 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate.
  • an RF signal which is also referred to as an electromagnetic signal
  • RF circuitry 1106 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip Group, Subscriber Identity Module (SIM), etc.
  • an antenna system an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip Group, Subscriber Identity Module (SIM), etc.
  • SIM Subscriber Identity Module
  • the audio circuit 1107 is mainly used to receive audio data from the peripheral interface 1105, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 1108.
  • the speaker 1108 is configured to restore the voice signal received by the terminal device from the wireless network through the RF circuit 1106 to sound and play the sound to the user.
  • Power management chip 1109 for connecting to CPU 1102, I/O subsystem 1110, and peripheral interface 1105 Connected hardware for power and power management.
  • Figure 12 is a structural diagram of the internal part of the terminal device.
  • the software components stored in the memory 1101 may include an operating system 1201, a communication module 1202, a contact/moving module 1203, a graphics module 1204, and a function module 1205.
  • Operating system 1201 eg, Darwin, RTXC, LINUX, UNIX, OS X, WINDOWS, or an embedded operating system such as VxWorks
  • Operating system 1201 includes controls and management of general system tasks (eg, memory management, storage device control, power management, etc.)
  • general system tasks eg, memory management, storage device control, power management, etc.
  • Various software components and/or drivers and facilitate communication between various hardware and software components.
  • Communication module 1202 facilitates communication with other devices via one or more external ports 1112, and also includes various software components for processing data received by RF circuitry 1106 and/or external port 1112.
  • the contact/movement module 1203 can detect contact with the touch screen 1103 (in conjunction with the display controller 11101) and other touch sensitive devices (eg, a touch pad or physical click wheel).
  • the contact/move module 1203 includes various software components for performing various operations related to detecting a contact, such as determining whether a contact has occurred, determining whether the contact has moved, and tracking the movement on the touch screen 1103, And determining if the contact has been disconnected (ie, whether the contact has stopped). Determining the movement of the contact point may include determining the rate (amplitude) of the contact point, velocity (amplitude and direction), and/or acceleration (change in amplitude and/or direction). These operations can be applied to a single contact (e. g., one finger contact) or to multiple simultaneous contacts (e.g., "multi-touch" / multi-finger contact). In some embodiments, contact/movement module 1203 and display controller 11101 also detect contact on the touchpad.
  • Graphics module 1204 includes various known software components for displaying graphics on touch screen 1103, including components for changing the brightness of the displayed graphics. For example, an instruction of the processor 1102 is received, and a graphical user interface or the like of various software is displayed on the touch screen 1103.
  • the function module 1205 may specifically be at least one of the following modules:
  • a recording module 12051 configured to record a positional relationship between the information and the display screen
  • the monitoring module 12052 is configured to monitor a touch trajectory of the user
  • the processing module 12053 is configured to delete or restore the information according to the touch track detected by the monitoring module 12052 and the positional relationship recorded by the recording module 12051;
  • the processor 1102 can detect whether the shortcut editing mode is enabled, and when detecting that the shortcut editing mode is enabled, the monitoring module can be triggered; Specifically, when the information is editable text, the processor 1102 can monitor a start point, an end point, and a sliding direction of the touch track, and when the sliding direction is the first direction, delete the start point and the end point according to the positional relationship. Between the text, when the sliding direction is the second direction, recovering the text deleted in the previous step between the starting point and the ending point according to the positional relationship, the first direction is opposite to the second direction;
  • the processor 1102 may delete the entire line of text in the editable text, and when the sliding direction is the fourth direction, the processor 1102 may resume.
  • the processor 1102 can monitor the marking point of the touch track and the sliding operation.
  • the marking point is deleted according to the positional relationship.
  • the information group when the sliding operation is sliding in the third direction, recovers the information group deleted by the previous step of the marking point in the sliding according to the positional relationship, and the third direction is opposite to the fourth direction.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. , including a plurality of instructions for causing a computer device (which may be a personal computer, a server, a storage medium including: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, Random) Access Memory ), a variety of media such as a disk or a disc that can store program code.
  • a computer device which may be a personal computer, a server, a storage medium including: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, Random) Access Memory
  • a variety of media such as a disk or a disc that can store program code.

Abstract

Disclosed in an embodiment of the present invention are an information processing method and terminal device, for deleting or recovering information using more concise and efficient touch tracking, to improve the accuracy and efficiency of information editing. The method comprises: a terminal device records the positional relationship between information and a display screen, and then monitors the touch track of a user, and deletes or recovers the information according to the touch track and the positional relationship. In this method, the user directly contacts the information to be edited, thus improving the accuracy of information editing; in addition, the automatic deletion and recovery after monitoring the touch track can process in real time a plurality of units of information covered by the touch track, thus saving the time of information editing, and improving the editing efficiency.

Description

一种信息处理方法和终端设备 技术领域  Information processing method and terminal device
本发明涉及数据编辑领域, 尤其涉及一种信息处理方法和终端设备。  The present invention relates to the field of data editing, and in particular, to an information processing method and a terminal device.
背景技术 Background technique
在电子设备中进行数据的编辑时, 需要用到各种编辑功能, 其中删除与恢 复是最常用到的。  When editing data in an electronic device, various editing functions are required, and deletion and recovery are most commonly used.
目前在终端设备中,进行删除与恢复操作一般都只能利用点击回格键或恢 复键来进行, 例如若要删除 "周末去吃饭量" 最后的 "量" 字, 需要点击回格 键进行删除, 若删除时将 "饭" 字也删除了, 则需要点击恢复键来进行恢复或 重新输入。  At present, in the terminal device, the deletion and recovery operations can generally only be performed by using the click back key or the recovery key. For example, to delete the last "quantity" word of "weekend to eat", you need to click the backspace key to delete. If the "rice" word is also deleted when deleting, you need to click the recovery button to restore or re-enter.
这样使用点击特定按键来删除或恢复信息,由于不是直接与需要编辑的信 息接触, 容易形成误操作, 从而增加了操作的步骤, 且利用按键特定按键进行 删除或恢复信息, 每次只能删除或恢复一个单位的信息, 例如一个字, 延长了 信息编辑的时间, 使得编辑效率緩曼。 发明内容  In this way, by clicking a specific button to delete or restore the information, since it is not directly in contact with the information to be edited, it is easy to form an erroneous operation, thereby increasing the steps of the operation, and deleting or restoring the information by using the specific button of the button, can only be deleted or Recovering a unit of information, such as a word, extends the time for information editing, making editing more efficient. Summary of the invention
本发明实施例提供了一种信息处理方法以及终端设备,用于使用更加筒洁 高效的触摸轨迹来删除或恢复信息, 提高信息编辑的准确度, 提升编辑效率。  The embodiments of the present invention provide an information processing method and a terminal device, which are used to delete or restore information by using a more clean and efficient touch track, improve the accuracy of information editing, and improve editing efficiency.
本发明实施例第一方面提供了一种信息处理方法, 包括:  A first aspect of the embodiments of the present invention provides an information processing method, including:
终端设备记录信息与显示屏的位置关系;  The positional relationship between the terminal device recording information and the display screen;
所述终端设备监测用户的触摸轨迹;  The terminal device monitors a touch trajectory of the user;
所述终端设备根据所述触摸轨迹和所述位置关系,对所述信息进行删除或 恢复操作。  The terminal device performs a deletion or recovery operation on the information according to the touch trajectory and the positional relationship.
结合本发明实施例的第一方面,本发明实施例的第一方面的第一种实现方 式中, 所述终端设备监测用户的触摸轨迹的步骤之前还包括:  With reference to the first aspect of the embodiments of the present invention, in the first implementation manner of the first aspect of the embodiment, the step of the terminal device monitoring the touch trajectory of the user includes:
所述终端设备检测是否开启了快捷编辑模式;  The terminal device detects whether a shortcut editing mode is enabled;
若开启了所述快捷编辑模式,则触发所述终端设备监测用户的触摸轨迹的 步骤。 结合本发明实施例的第一方面或第一方面的第一种实现方式,本发明实施 例的第一方面的第二种实现方式中, 当所述信息为可编辑文本时, 所述终端设 备监测用户的触摸轨迹包括: If the shortcut editing mode is enabled, the step of triggering the terminal device to monitor a touch trajectory of the user is triggered. With reference to the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, in a second implementation manner of the first aspect of the embodiment of the present disclosure, when the information is editable text, the terminal device Monitoring the user's touch trajectory includes:
所述终端设备监测所述触摸轨迹的起点, 终点以及滑动方向。  The terminal device monitors a start point, an end point, and a sliding direction of the touch track.
结合本发明实施例的第一方面的第二种实现方式,本发明实施例的第一方 面的第三种实现方式中, 所述终端设备根据所述触摸轨迹和所述位置关系,对 所述信息进行删除或恢复操作包括:  With reference to the second implementation manner of the first aspect of the embodiment of the present invention, in a third implementation manner of the first aspect of the embodiments, the terminal device is configured to: according to the touch trajectory and the location relationship Information for deletion or recovery operations includes:
当所述滑动方向为第一方向时,所述终端设备按照所述位置关系删除所述 起点与所述终点之间的文本;  When the sliding direction is the first direction, the terminal device deletes the text between the starting point and the ending point according to the positional relationship;
当所述滑动方向为第二方向时,所述终端设备按照所述位置关系恢复所述 起点与所述终点之间上一步被删除的文本;  When the sliding direction is the second direction, the terminal device resumes the text deleted in the previous step between the starting point and the ending point according to the positional relationship;
其中, 所述第二方向与所述第一方向相反。  The second direction is opposite to the first direction.
结合本发明实施例的第一方面的第二种实现方式或第一方面的第三种实 现方式, 本发明实施例的第一方面的第四种实现方式中, 所述方法还包括: 当所述滑动方向为第三方向时,所述终端设备删除所述可编辑文本中光标 所在的整行文本;  With reference to the second implementation manner of the first aspect of the embodiment of the present invention or the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect of the embodiment, the method further includes: When the sliding direction is the third direction, the terminal device deletes the entire line of text in which the cursor is located in the editable text;
当所述滑动方向为第四方向时,所述终端设备恢复上一步被删除的整行文 本;  When the sliding direction is the fourth direction, the terminal device recovers the entire line of text deleted in the previous step;
其中, 所述第四方向与所述第三方向相反。  Wherein the fourth direction is opposite to the third direction.
结合本发明实施例的第一方面或第一方面的第一种实现方式,本发明实施 例的第一方面的第五种实现方式中, 当所述信息为信息组时, 所述终端设备监 测用户的触摸轨迹包括:  With reference to the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, in a fifth implementation manner of the first aspect of the embodiment, when the information is an information group, the terminal device monitors The user's touch track includes:
所述终端设备监测所述触摸轨迹的标记点以及滑动操作。  The terminal device monitors a mark point of the touch track and a sliding operation.
结合本发明实施例的第一方面的第五种实现方式,本发明实施例的第一方 面的第六种实现方式中, 所述终端设备根据所述触摸轨迹和所述位置关系,对 所述信息进行删除或恢复操作包括:  In conjunction with the fifth implementation manner of the first aspect of the embodiments of the present disclosure, in a sixth implementation manner of the first aspect of the embodiments, the terminal device, according to the touch trajectory and the location relationship, Information for deletion or recovery operations includes:
当所述滑动操作为向第四方向滑动时,所述终端设备按照所述位置关系删 除滑动中经过所述标记点的信息组;  When the sliding operation is to slide in the fourth direction, the terminal device deletes the information group that has passed the marked point in the sliding according to the positional relationship;
当所述滑动操作为向第三方向滑动时,所述终端设备按照所述位置关系恢 复滑动中经过所述标记点的上一步删除的信息组; When the sliding operation is sliding in the third direction, the terminal device recovers according to the positional relationship a group of information deleted in the previous step of the marked point in the complex sliding;
其中, 所述第三方向与所述第四方向相反。  Wherein the third direction is opposite to the fourth direction.
本发明实施例第二方面提供了一种终端设备, 包括:  A second aspect of the embodiments of the present invention provides a terminal device, including:
记录模块, 用于记录信息与显示屏的位置关系;  a recording module, configured to record a positional relationship between the information and the display screen;
监测模块, 用于监测用户的触摸轨迹;  a monitoring module, configured to monitor a user's touch trajectory;
处理模块,用于根据所述监测模块监测到的触摸轨迹和所述记录模块记录 的位置关系, 对所述信息进行删除或恢复操作。  And a processing module, configured to delete or restore the information according to the touch track detected by the monitoring module and the positional relationship recorded by the recording module.
结合本发明实施例的第二方面,本发明实施例的第二方面的第一种实现方 式中, 所述终端设备还包括:  With reference to the second aspect of the embodiments of the present invention, in a first implementation manner of the second aspect of the embodiments, the terminal device further includes:
检测模块, 用于检测是否开启了快捷编辑模式;  a detecting module, configured to detect whether a shortcut editing mode is enabled;
触发模块, 用于当所述检测模块检测到开启了所述快捷编辑模式时,触发 所述监测模块。  And a triggering module, configured to trigger the monitoring module when the detecting module detects that the shortcut editing mode is enabled.
结合本发明实施例的第二方面或第二方面的第一种实现方式,本发明实施 例的第二方面的第二种实现方式中, 当所述信息为可编辑文本时,  With reference to the second aspect of the embodiment of the present invention or the first implementation manner of the second aspect, in the second implementation manner of the second aspect of the embodiment of the present invention, when the information is editable text,
所述监测模块具体用于, 监测所述触摸轨迹的起点, 终点以及滑动方向。 结合本发明实施例的第二方面的第二种实现方式,本发明实施例的第二方 面的第三种实现方式中, 所述处理模块具体包括:  The monitoring module is specifically configured to monitor a starting point, an ending point, and a sliding direction of the touch track. With reference to the second implementation manner of the second aspect of the embodiment of the present invention, in a third implementation manner of the second aspect of the embodiment of the present disclosure, the processing module specifically includes:
文本删除单元, 用于当所述滑动方向为第一方向时,按照所述位置关系删 除所述起点与所述终点之间的文本;  a text deleting unit, configured to delete text between the starting point and the ending point according to the positional relationship when the sliding direction is the first direction;
文本恢复单元, 用于当所述滑动方向为第二方向时,按照所述位置关系恢 复所述起点与所述终点之间上一步被删除的文本;  a text recovery unit, configured to: when the sliding direction is the second direction, recover the text deleted in the previous step between the starting point and the ending point according to the positional relationship;
其中, 所述第二方向与所述第一方向相反。  The second direction is opposite to the first direction.
结合本发明实施例的第二方面的第二种实现方式或第二方面的第三种实 现方式,本发明实施例的第二方面的第四种实现方式中,所述处理模块还包括: 整行删除单元, 用于当所述滑动方向为第三方向时,删除所述可编辑文本 中光标所在的整行文本;  With reference to the second implementation manner of the second aspect of the embodiment of the present invention or the third implementation manner of the second aspect, in the fourth implementation manner of the second aspect of the embodiment, the processing module further includes: a line deleting unit, configured to delete the entire line of text in the editable text when the sliding direction is the third direction;
整行恢复单元, 用于当所述滑动方向为第四方向时, 恢复上一步被删除的 整行文本;  An entire line recovery unit, configured to restore the entire line of text deleted in the previous step when the sliding direction is the fourth direction;
其中, 所述第四方向与所述第三方向相反。 结合本发明实施例的第二方面或第二方面的第一种实现方式,本发明实施 例的第二方面的第五种实现方式中, 当所述信息为信息组时, Wherein the fourth direction is opposite to the third direction. With reference to the second aspect of the embodiment of the present invention or the first implementation manner of the second aspect, in the fifth implementation manner of the second aspect of the embodiment, when the information is an information group,
所述监测模块具体用于 , 监测所述触摸轨迹的标记点以及滑动操作。 结合本发明实施例的第二方面的第五种实现方式,本发明实施例的第二方 面的第六种实现方式中, 所述处理模块具体包括:  The monitoring module is specifically configured to monitor a mark point of the touch track and a sliding operation. With reference to the fifth implementation manner of the second aspect of the embodiment of the present invention, in the sixth implementation manner of the second aspect of the embodiment of the present disclosure, the processing module specifically includes:
信息组删除单元,用于当所述滑动操作为向第四方向滑动时,按照所述位 置关系删除滑动中经过所述标记点的信息组;  a message group deleting unit, configured to delete, according to the position relationship, a group of information passing through the marked point according to the positional relationship when the sliding operation is sliding in a fourth direction;
信息组恢复单元,用于当所述滑动操作为向第三方向滑动时,按照所述位 置关系恢复滑动中经过所述标记点的上一步删除的信息组;  a information group recovery unit, configured to: when the sliding operation is sliding in a third direction, recover the information group deleted in the previous step of the marking point in the sliding according to the position relationship;
其中, 所述第四方向与所述第三方向相反。  Wherein the fourth direction is opposite to the third direction.
本发明实施例第三方面提供了一种终端设备, 包括:  A third aspect of the embodiments of the present invention provides a terminal device, including:
存储器, 处理器, 触摸屏和通信总线;  Memory, processor, touch screen and communication bus;
所述处理器执行如下操作:  The processor performs the following operations:
记录信息与显示屏的位置关系;  Record the positional relationship between the information and the display screen;
监测用户的触摸轨迹;  Monitoring the user's touch trajectory;
根据所述触摸轨迹和所述位置关系, 对所述信息进行删除或恢复操作。 结合本发明实施例的第三方面,本发明实施例的第三方面的第一种实现方 式中, 所述处理器还执行如下操作:  Deleting or restoring the information according to the touch trajectory and the positional relationship. With reference to the third aspect of the embodiments of the present invention, in a first implementation manner of the third aspect of the embodiments of the present disclosure, the processor further performs the following operations:
检测是否开启了快捷编辑模式;  Check if the shortcut editing mode is enabled;
当开启了所述快捷编辑模式时, 触发所述监测用户的触摸轨迹的操作。 结合本发明实施例的第三方面或第三方面的第一种实现方式,本发明实施 例的第三方面的第二种实现方式中, 当所述信息为可编辑文本时, 所述处理器 具体执行如下操作:  When the shortcut editing mode is turned on, the operation of monitoring the touch trajectory of the user is triggered. With reference to the third aspect of the embodiment of the present invention or the first implementation manner of the third aspect, in a second implementation manner of the third aspect of the embodiment of the present invention, when the information is editable text, the processor Specifically, perform the following operations:
监测所述触摸轨迹的起点, 终点以及滑动方向。  The starting point, the ending point, and the sliding direction of the touch track are monitored.
结合本发明实施例的第三方面的第二种实现方式,本发明实施例的第三方 面的第三种实现方式中, 所述处理器具体执行如下操作:  With reference to the second implementation manner of the third aspect of the embodiment of the present invention, in the third implementation manner of the third aspect of the embodiment of the present invention, the processor specifically performs the following operations:
当所述滑动方向为第一方向时,按照所述位置关系删除所述起点与所述终 点之间的文本;  When the sliding direction is the first direction, deleting the text between the starting point and the ending point according to the positional relationship;
当所述滑动方向为第二方向时,按照所述位置关系恢复所述起点与所述终 点之间上一步被删除的文本; When the sliding direction is the second direction, recovering the starting point and the ending according to the positional relationship The text that was deleted between the previous points;
其中, 所述第二方向与所述第一方向相反。  The second direction is opposite to the first direction.
结合本发明实施例的第三方面的第二种实现方式或第三方面的第三种实 现方式, 本发明实施例的第三方面的第四种实现方式中, 所述处理器还执行如 下操作:  With reference to the second implementation manner of the third aspect of the embodiment of the present invention or the third implementation manner of the third aspect, in a fourth implementation manner of the third aspect of the embodiment, the processor further performs the following operations. :
当所述滑动方向为第三方向时,删除所述可编辑文本中光标所在的整行文 本;  When the sliding direction is the third direction, deleting the entire line of text in the editable text;
当所述滑动方向为第四方向时, 恢复上一步被删除的整行文本; 其中, 所述第四方向与所述第三方向相反。  When the sliding direction is the fourth direction, the entire line of text deleted in the previous step is restored; wherein the fourth direction is opposite to the third direction.
结合本发明实施例的第三方面或第三方面的第一种实现方式,本发明实施 例的第三方面的第五种实现方式中, 当所述信息为信息组时, 所述处理器具体 执行如下操作:  With reference to the third aspect of the embodiment of the present invention or the first implementation manner of the third aspect, in a fifth implementation manner of the third aspect of the embodiment of the present disclosure, when the information is an information group, the processor is specific to Do the following:
监测所述触摸轨迹的标记点以及滑动操作。  A marker point of the touch track and a sliding operation are monitored.
结合本发明实施例的第三方面的第五种实现方式,本发明实施例的第三方 面的第六种实现方式中, 所述处理器具体执行如下操作:  With reference to the fifth implementation manner of the third aspect of the embodiment of the present invention, in the sixth implementation manner of the third aspect of the embodiment of the present invention, the processor specifically performs the following operations:
当所述滑动操作为向第四方向滑动时,按照所述位置关系删除滑动中经过 所述标记点的信息组;  When the sliding operation is sliding in the fourth direction, deleting the information group that passes through the marked point in the sliding according to the positional relationship;
当所述滑动操作为向第三方向滑动时,按照所述位置关系恢复滑动中经过 所述标记点的上一步删除的信息组;  When the sliding operation is sliding in the third direction, the information group deleted in the previous step of the marking point in the sliding is restored according to the positional relationship;
其中, 所述第四方向与所述第三方向相反。  Wherein the fourth direction is opposite to the third direction.
从以上技术方案可以看出, 本发明实施例具有以下优点: 本发明实施例中 终端设备先记录信息与显示屏的位置关系, 然后监测用户的触摸轨迹,根据该 触摸轨迹和该位置关系,对信息进行删除或恢复操作,这样由于编辑时是直接 与需要编辑的信息进行接触,提高了信息编辑的准确性,且监测触摸轨迹再自 动的进行删除与恢复操作,可以实时对触摸轨迹经过的多个单位的信息进行处 理, 节省了信息编辑的时间, 提高了编辑效率。 附图说明  It can be seen from the above technical solutions that the embodiment of the present invention has the following advantages: In the embodiment of the present invention, the terminal device first records the positional relationship between the information and the display screen, and then monitors the touch trajectory of the user, according to the touch trajectory and the position relationship, The information is deleted or restored, so that the editing is directly related to the information to be edited, the accuracy of the information editing is improved, and the touch track is automatically detected to be deleted and restored, and the touch track can be passed in real time. The information of each unit is processed, which saves the time for information editing and improves the editing efficiency. DRAWINGS
图 1为本发明实施例中信息处理方法一个流程示意图; 图 2为本发明实施例中信息处理方法另一个流程示意图; 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention; 2 is another schematic flowchart of an information processing method according to an embodiment of the present invention;
图 3为本发明实施例中信息处理方法另一个流程示意图;  3 is another schematic flowchart of an information processing method according to an embodiment of the present invention;
图 4为本发明实施例中信息处理方法一个应用示意图;  4 is a schematic diagram of an application of an information processing method according to an embodiment of the present invention;
图 5为本发明实施例中信息处理方法另一个流程示意图;  FIG. 5 is a schematic diagram of another flow of an information processing method according to an embodiment of the present invention; FIG.
图 6为本发明实施例中信息处理方法另一个应用示意图;  6 is a schematic diagram of another application of an information processing method according to an embodiment of the present invention;
图 7为本发明实施例中终端设备一个结构示意图;  7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
图 8为本发明实施例中终端设备另一个结构示意图;  8 is another schematic structural diagram of a terminal device according to an embodiment of the present invention;
图 9为本发明实施例中终端设备另一个结构示意图;  9 is another schematic structural diagram of a terminal device according to an embodiment of the present invention;
图 10为本发明实施例中终端设备另一个结构示意图;  FIG. 10 is a schematic structural diagram of another terminal device according to an embodiment of the present invention;
图 11为本发明实施例中终端设备另一个结构示意图;  11 is another schematic structural diagram of a terminal device according to an embodiment of the present invention;
图 12为本发明实施例中终端设备另一个结构示意图;  12 is another schematic structural diagram of a terminal device according to an embodiment of the present invention;
图 13为本发明实施例中位置关系一个实例示意图;  13 is a schematic diagram of an example of a positional relationship in an embodiment of the present invention;
图 14为本发明实施例中位置关系另一个实例示意图;  14 is a schematic diagram of another example of a positional relationship in an embodiment of the present invention;
图 15为本发明实施例中信息处理方法另一个应用示意图。 具体实施方式  FIG. 15 is a schematic diagram of another application of an information processing method according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域技术人员在没有做出创造性劳 动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
还需要说明的是, 本实施例中的左、 右、 上、 下等方位用语, 仅是互为相 对概念或是以产品的正常使用状态为参考的, 而不应该认为是具有限制性的。  It should also be noted that the left, right, upper, lower, and the like orientations in this embodiment are merely relative concepts or reference to the normal use state of the product, and should not be considered as limiting.
应当理解, 尽管在本发明实施例中可能采用术语第一、 第二、 第三、 第四 等来描述各种方向,但这些方向不应限于这些术语。这些术语仅用来将方向彼 此区分开。 例如, 在不脱离本发明实施例范围的情况下, 第一方向也可以被称 为第二方向, 类似地, 第二方向也可以被称为第一方向; 同样的, 第二方向也 可以被称为第三方向, 类似地, 第三方向也可以被称为第二方向等等, 本发明 实施例对此不做限制。  It should be understood that although the terms first, second, third, fourth, etc. may be used to describe various directions in the embodiments of the present invention, these directions should not be limited to these terms. These terms are only used to distinguish one direction from another. For example, the first direction may also be referred to as the second direction without departing from the scope of the embodiments of the present invention. Similarly, the second direction may also be referred to as the first direction; likewise, the second direction may also be It is referred to as a third direction. Similarly, the third direction may also be referred to as a second direction or the like, which is not limited by the embodiment of the present invention.
还应该理解, 本发明实施例中的第一与第二方向相反; 第三与第四方向相 反; 其中一个方向与另一个方向的夹角在 90度到 270度之间都可以认为这两 个方向相反, 并不限定于这两个方向一定呈 180度。 It should also be understood that the first and second directions are opposite in the embodiment of the present invention; the third and fourth directions are opposite In the opposite direction, the angle between one direction and the other direction is between 90 degrees and 270 degrees. The two directions are considered to be opposite, and the two directions are not limited to 180 degrees.
请参阅图 1 , 本发明实施例中信息处理方法一个实施例包括:  Referring to FIG. 1, an embodiment of an information processing method in an embodiment of the present invention includes:
101、 终端设备记录信息与显示屏的位置关系;  101. The positional relationship between the terminal device recording information and the display screen;
当终端设备的显示屏上显示有信息时,终端设备可以记录该信息与显示屏 的位置关系。  When information is displayed on the display of the terminal device, the terminal device can record the positional relationship between the information and the display screen.
102、 终端设备监测用户的触摸轨迹;  102. The terminal device monitors a touch track of the user.
终端设备记录信息与显示屏的位置关系后, 监测用户的触摸轨迹。  After the terminal device records the positional relationship between the information and the display screen, the user's touch trajectory is monitored.
103、 终端设备根据该触摸轨迹和该位置关系, 对信息进行删除或恢复操 作。  103. The terminal device deletes or restores the information according to the touch track and the position relationship.
终端设备监测用户的触摸轨迹时,根据用户的触摸轨迹, 和信息与显示屏 的位置关系, 对信息进行删除或恢复操作。  When the terminal device monitors the user's touch trajectory, the information is deleted or restored according to the user's touch trajectory and the positional relationship between the information and the display screen.
本发明实施例中终端设备先记录信息与显示屏的位置关系,然后监测用户 的触摸轨迹, 根据该触摸轨迹和该位置关系, 对信息进行删除或恢复操作, 这 样由于编辑时是直接与需要编辑的信息进行接触, 提高了信息编辑的准确性, 且监测触摸轨迹再自动的进行删除与恢复操作,可以实时对触摸轨迹经过的多 个单位的信息进行处理, 节省了信息编辑的时间, 提高了编辑效率。  In the embodiment of the present invention, the terminal device first records the positional relationship between the information and the display screen, and then monitors the touch trajectory of the user, and deletes or restores the information according to the touch trajectory and the positional relationship, so that the editing is directly and needs to be edited. The contact of the information improves the accuracy of the information editing, and the monitoring of the touch track automatically performs the deletion and recovery operation, and the information of the plurality of units through which the touch track passes can be processed in real time, thereby saving the time for information editing and improving the time. Editing efficiency.
在实际应用中, 终端设备监测用户的触摸轨迹之前, 可以先检测是否开启 了快捷编辑模式, 再进行后续操作, 请参阅图 2, 本发明实施例中信息处理方 法另一个实施例包括:  In an actual application, before the terminal device monitors the touch track of the user, it may first detect whether the shortcut edit mode is enabled, and then perform subsequent operations. Referring to FIG. 2, another embodiment of the information processing method in the embodiment of the present invention includes:
201、 终端设备记录信息与显示屏的位置关系;  201. The location relationship between the terminal device recording information and the display screen;
当终端设备的显示屏上显示有信息时,终端设备可以记录该信息与显示屏 的位置关系。  When information is displayed on the display of the terminal device, the terminal device can record the positional relationship between the information and the display screen.
可以理解的是, 该信息可以有多种, 可以为可编辑文本, 例如邮件, 社会 性网络服务 SNS或即时通讯 IM,也可以为信息组列表,例如短信组,通讯录, 好友列表等, 还可以为其他种类的信息, 此处不作限定。  It can be understood that the information can be various, and can be editable text, such as mail, social network service SNS or instant messaging IM, or a list of information groups, such as a short message group, an address book, a buddy list, etc. It can be other kinds of information, which is not limited here.
该信息与显示屏的位置关系可以有不同的表示方式, 如图 13所示, 可以 在显示屏中建立坐标系, 则该位置关系可以表示为信息中的每个单元, 例如每 个字在显示屏中的坐标值, 如图 14所示, 也可以为信息中每个部分距显示屏 的各个边框的间距, 还可以有其他的表示位置关系的方式, 此处不作限定。The positional relationship between the information and the display screen can be represented differently. As shown in FIG. 13, a coordinate system can be established in the display screen, and the positional relationship can be represented as each unit in the information, for example, each word is displayed. The coordinate values in the screen, as shown in Figure 14, can also be the display of each part of the information. For the spacing of the borders, there may be other ways of indicating the positional relationship, which is not limited herein.
202、 终端设备检测是否开启了快捷编辑模式; 202. The terminal device detects whether a shortcut editing mode is enabled.
终端设备可以检测是否开启了快捷编辑模式, 可以理解的是, 步骤 202 也可以在步骤 201之前进行, 此处不作限定。  The terminal device can detect whether the shortcut editing mode is enabled. It can be understood that the step 202 can also be performed before the step 201, which is not limited herein.
需要说明的是, 快捷编辑模式的开启可以有多种方式,可以设定为当信息 可编辑时, 用户在屏幕上左右滑动则开启快捷编辑模式,也可以设定为用户在 屏幕上双击则开启快捷编辑模式,还可以设定为其他的方式开启该快捷编辑模 式, 也可以由用户自定义特定的手势来开启该快捷编辑模式, 此处不作限定。  It should be noted that the shortcut editing mode can be opened in multiple ways. When the information is editable, the user can slide the left and right on the screen to open the shortcut editing mode, or can be set to double-click on the screen. The shortcut editing mode can also be set to other ways to enable the shortcut editing mode, or the user can customize a specific gesture to open the shortcut editing mode, which is not limited herein.
203、 若开启了快捷编辑模式, 则终端设备监测用户的触摸轨迹; 当终端设备检测到开启了快捷编辑模式后, 终端设备监测用户的触摸轨 迹;  203. If the shortcut editing mode is enabled, the terminal device monitors the touch track of the user; when the terminal device detects that the shortcut editing mode is enabled, the terminal device monitors the touch track of the user;
若检测没有开启快捷编辑模式, 终端设备可以继续执行其他操作。  If the shortcut editing mode is not enabled, the terminal device can continue to perform other operations.
该用户的触摸轨迹可以为通过触摸屏检测到的用户手指或其它物体在屏 幕上滑动形成的触摸轨迹,也可以为通过红外线传感器或光线传感器等传感器 感应到的用户的手指划动的轨迹; 该触摸轨迹可以为单点轨迹, 例如用户通过 一个手指形成的轨迹,也可以为多点轨迹, 例如用户通过两个或更多的手指形 成的轨迹, 此处不作限定。  The touch trajectory of the user may be a touch trajectory formed by sliding a user's finger or other object detected on the screen by the touch screen, or may be a trajectory of a user's finger sensed by a sensor such as an infrared sensor or a light sensor; The trajectory can be a single-point trajectory, for example, a trajectory formed by a user by one finger, or a trajectory formed by two or more fingers, which is not limited herein.
204、 终端设备根据该触摸轨迹和该位置关系, 对信息进行删除或恢复操 作。  204. The terminal device deletes or restores the information according to the touch track and the location relationship.
终端设备监测用户的触摸轨迹时,根据用户的触摸轨迹, 和信息与显示屏 的位置关系, 对信息进行删除或恢复操作。  When the terminal device monitors the user's touch trajectory, the information is deleted or restored according to the user's touch trajectory and the positional relationship between the information and the display screen.
终端设备对信息进行删除与恢复操作可以包含更多具体的操作,例如进行 删除操作的范围,应该进行删除操作还是恢复操作等, 这些具体的操作与触摸 轨迹的对应关系可以通过预置规则来确定。  The deleting and restoring operations of the terminal device may include more specific operations, such as the scope of the deletion operation, whether the deletion operation or the recovery operation should be performed, and the corresponding relationship between the specific operations and the touch track may be determined by using preset rules. .
本发明实施例中,终端设备检测开启了快捷编辑模式后, 才监测用户的触 摸轨迹, 这样一方面可以避免一直监测用户的触摸轨迹耗费电能,延长了终端 设备的续航时间,另一方面可以使得在快捷编辑模式中使用更多的手势动作而 不会和终端设备处于其他状态时的手势动作混淆, 增强了操作的准确性。  In the embodiment of the present invention, after the terminal device detects that the shortcut editing mode is enabled, the user's touch trajectory is monitored, so that on the one hand, the user's touch trajectory is continuously monitored to consume power, and the terminal device's battery life is prolonged. More gestures are used in the quick edit mode without being confused with gestures when the terminal device is in other states, which enhances the accuracy of the operation.
上面实施例中, 终端设备监测用户的触摸轨迹, 在实际应用中, 根据信息 的不同, 终端设备监测的该触摸轨迹可以侧重于不同的方面。 In the above embodiment, the terminal device monitors the touch trajectory of the user, and in actual applications, according to the information The difference in the touch track monitored by the terminal device can focus on different aspects.
一, 当信息为可编辑文本时, 终端设备可以监测触摸轨迹的起点, 终点以 及滑动方向再进行后续处理;  First, when the information is editable text, the terminal device can monitor the start point, the end point, and the sliding direction of the touch track for subsequent processing;
请参阅图 3, 本发明实施例中信息处理方法另一个实施例包括:  Referring to FIG. 3, another embodiment of the information processing method in the embodiment of the present invention includes:
301、 终端设备记录信息与显示屏的位置关系;  301. The positional relationship between the information recorded by the terminal device and the display screen;
当终端设备的显示屏上显示有信息时,终端设备可以记录该信息与显示屏 的位置关系。  When information is displayed on the display of the terminal device, the terminal device can record the positional relationship between the information and the display screen.
该信息为可编辑文本,可以为邮件,社会性网络服务 SNS或即时通讯 IM, 此处不作限定。  The information is editable text, and can be an email, a social network service SNS or an instant messaging IM, which is not limited herein.
该信息与显示屏的位置关系可以有不同的表示方式,可以在显示屏中建立 坐标系, 则该位置关系可以表示为信息中的每个单元,例如每个字在显示屏中 的坐标值,也可以为信息中每个部分距显示屏的各个边框的间距,还可以有其 他的表示位置关系的方式, 此处不作限定。  The positional relationship between the information and the display screen can be represented differently, and a coordinate system can be established in the display screen, and the positional relationship can be represented as each unit in the information, for example, the coordinate value of each word in the display screen. It can also be the distance between each part of the information from the border of the display screen, and there may be other ways of indicating the positional relationship, which is not limited herein.
可以理解的是,终端设备可以在每次信息与显示屏的位置关系发生变化时 都进行记录, 若终端设备的存储容量足够, 终端设备不仅仅可以只存储当前信 息与显示屏的位置关系, 并且可以在下一次再记录信息与显示屏的位置关系 后,将上一次记录的信息与显示屏的位置关系也保存起来便于之后的处理过程 中可以进行多次恢复操作,在实际应用中也可以只保存最近一次的信息与显示 屏的位置关系, 此处不作限定。  It can be understood that the terminal device can record every time the positional relationship between the information and the display screen changes. If the storage capacity of the terminal device is sufficient, the terminal device can not only store the current information and the positional relationship of the display screen, and After the next time the position information of the information and the display screen is recorded, the positional relationship between the last recorded information and the display screen can be saved, so that multiple recovery operations can be performed in the subsequent processing, and only the actual application can be saved. The positional relationship between the latest information and the display screen is not limited here.
302、 终端设备检测是否开启了快捷编辑模式;  302. The terminal device detects whether a shortcut editing mode is enabled.
终端设备可以检测是否开启了快捷编辑模式, 可以理解的是, 步骤 302 也可以在步骤 301之前进行, 此处不作限定。  The terminal device can detect whether the shortcut editing mode is enabled. It can be understood that the step 302 can also be performed before the step 301, which is not limited herein.
需要说明的是, 快捷编辑模式的开启可以有多种方式, 可以设定为当信息 可编辑时, 用户在屏幕上左右滑动则开启快捷编辑模式,也可以设定为用户在 屏幕上双击则开启快捷编辑模式,还可以设定为其他的方式开启该快捷编辑模 式, 也可以由用户自定义特定的手势来开启该快捷编辑模式, 此处不作限定。  It should be noted that the shortcut editing mode can be opened in multiple ways. It can be set to enable the user to edit the information on the screen to open the shortcut editing mode, or to double-click on the screen. The shortcut editing mode can also be set to other ways to enable the shortcut editing mode, or the user can customize a specific gesture to open the shortcut editing mode, which is not limited herein.
303、 若开启了快捷编辑模式, 则终端设备监测用户的触摸轨迹的起点, 终点以及滑动方向;  303. If the shortcut editing mode is enabled, the terminal device monitors a starting point, an ending point, and a sliding direction of the touch track of the user.
当终端设备检测到开启了快捷编辑模式后,终端设备监测用户的触摸轨迹 的起点, 终点以及滑动方向; After the terminal device detects that the shortcut editing mode is enabled, the terminal device monitors the touch trajectory of the user. Starting point, ending point and sliding direction;
该用户的触摸轨迹可以为通过触摸屏检测到的用户手指或其它物体在屏 幕上滑动形成的触摸轨迹,也可以为通过红外线传感器或光线传感器等传感器 感应到的用户的手指划动的轨迹; 该触摸轨迹可以为单点轨迹, 例如用户通过 一个手指形成的轨迹,也可以为多点轨迹, 例如用户通过两个或更多的手指形 成的轨迹, 此处不作限定。  The touch trajectory of the user may be a touch trajectory formed by sliding a user's finger or other object detected on the screen by the touch screen, or may be a trajectory of a user's finger sensed by a sensor such as an infrared sensor or a light sensor; The trajectory can be a single-point trajectory, for example, a trajectory formed by a user by one finger, or a trajectory formed by two or more fingers, which is not limited herein.
304、 当滑动方向为第一方向时, 终端设备按照位置关系删除起点与终点 之间的文本;  304. When the sliding direction is the first direction, the terminal device deletes the text between the starting point and the ending point according to the positional relationship;
终端设备监测到用户的触摸轨迹后, 当触摸轨迹的滑动方向为第一方向 时, 终端设备按照位置关系删除触摸轨迹的起点与终点之间的文本。  After the terminal device monitors the touch track of the user, when the sliding direction of the touch track is the first direction, the terminal device deletes the text between the start point and the end point of the touch track according to the positional relationship.
305、 当滑动方向为第二方向时, 终端设备按照位置关系恢复起点与终点 之间上一步被删除的文本;  305. When the sliding direction is the second direction, the terminal device resumes the text deleted from the previous step between the starting point and the ending point according to the positional relationship;
终端设备监测到用户的触摸轨迹后, 当触摸轨迹的滑动方向为第一方向 时, 终端设备按照位置关系恢复起点与终点之间上一步被删除的文本, 该第二 方向与第一方向相反。  After the terminal device monitors the touch track of the user, when the sliding direction of the touch track is the first direction, the terminal device restores the text deleted from the previous step between the start point and the end point according to the positional relationship, and the second direction is opposite to the first direction.
可以理解的是, 若第一方向为向左, 则第二方向为向右; 若第一方向为向 右, 则第二方向为向左, 此处不作限定。  It can be understood that if the first direction is to the left, the second direction is to the right; if the first direction is to the right, the second direction is to the left, which is not limited herein.
当触摸轨迹的滑动方向为第二方向时,若触摸轨迹的起点与终点在位置关 系中对应上一步被删除的文本的一部分, 则恢复这一部分被删除的文本, 若终 端设备中按时间顺序保存了多个位置关系,且在相同的位置范围内监测到多次 触摸轨迹, 则在相同的位置范围上每监测到一次触摸操作, 可以选择上一个时 间段的位置关系作为恢复该处信息的位置关系,若终端设备中只保存了一个位 置关系,则终端设备只能恢复触摸轨迹的起点与终点对应该位置关系中的被删 除的文本, 此处不作限定。  When the sliding direction of the touch track is the second direction, if the start point and the end point of the touch track correspond to a part of the text deleted in the previous step in the positional relationship, the deleted text is restored, if the terminal device is saved in chronological order If a plurality of positional relationships are detected and multiple touch trajectories are detected within the same position range, each time a touch operation is detected on the same position range, the positional relationship of the previous time period can be selected as the position at which the information is restored. In the relationship, if only one location relationship is saved in the terminal device, the terminal device can only restore the deleted text in the positional relationship between the start point and the end point of the touch track, which is not limited herein.
在实际应用中, 除了检测触摸轨迹的起点终点, 然后根据该起点终点来确 定删除或恢复的范围外,也可以直接监测整条触摸轨迹的路径,将该触摸轨迹 经过的区域作为删除或恢复的范围, 此处不作限定。  In practical applications, in addition to detecting the start point of the touch track, and then determining the range of deletion or recovery according to the start point of the start point, the path of the entire touch track may be directly monitored, and the area passing the touch track is deleted or restored. The scope is not limited here.
306、 当滑动方向为第三方向时, 终端设备删除可编辑文本中光标所在的 整行文本; 终端设备监测到用户的触摸轨迹后, 当触摸轨迹的滑动方向为第三方向 时, 终端设备可以删除可编辑文本中光标所在的整行文本。 306. When the sliding direction is the third direction, the terminal device deletes the entire line of text where the cursor is located in the editable text. After the terminal device monitors the touch track of the user, when the sliding direction of the touch track is the third direction, the terminal device can delete the entire line of text where the cursor is located in the editable text.
307、 当滑动方向为第四方向时, 终端设备恢复上一步被删除的整行文本。 终端设备监测到用户的触摸轨迹后, 当触摸轨迹的滑动方向为第四方向 时,终端设备可以恢复上一步被删除的整行文本,该第四方向与第三方向相反。  307. When the sliding direction is the fourth direction, the terminal device resumes the entire line of text deleted in the previous step. After the terminal device detects the touch track of the user, when the sliding direction of the touch track is the fourth direction, the terminal device can recover the entire line of text deleted in the previous step, and the fourth direction is opposite to the third direction.
如图 15所示, 光标在可编辑文本的第三行, 当检测到手指向上滑动时, 终端设备删除第三行的文本, 当检测到手指向下滑动时, 终端设备恢复上一步 被删除的第三行文本。  As shown in FIG. 15, the cursor is in the third line of the editable text. When detecting that the finger slides up, the terminal device deletes the text of the third line. When detecting that the finger slides down, the terminal device resumes the previous step. Three lines of text.
可以理解的是, 若第三方向为向上, 则第四方向为向下; 若第四方向为向 下, 则第三方向为向上, 此处不作限定。  It can be understood that if the third direction is upward, the fourth direction is downward; if the fourth direction is downward, the third direction is upward, which is not limited herein.
在有些场景下, 也可以没有步骤 306与步骤 307, 此处不作限定。  In some scenarios, there may be no steps 306 and 307, which are not limited herein.
本发明实施例中,当信息为可编辑文本时,终端设备监测触摸轨迹的起点, 终点以及滑动方向,根据滑动方向确定是删除还是恢复操作,根据起点以及终 点确定删除或恢复操作的范围,这样使得对信息的编辑能更加准确,这个时候, 用户的手指就向一个神奇的橡皮擦或者魔笔,可以直接用手擦除内容或者用手 指恢复内容, 筒化了用户的操作, 增强了用户与设备的交互。  In the embodiment of the present invention, when the information is editable text, the terminal device monitors the start point, the end point, and the sliding direction of the touch track, determines whether the deletion or recovery operation is performed according to the sliding direction, and determines the range of the deletion or recovery operation according to the starting point and the end point, such that This makes the editing of information more accurate. At this time, the user's finger is directed to a magical eraser or magic pen, which can directly erase the content by hand or restore the content with the finger, which embodies the user's operation and enhances the user's Device interaction.
为便于理解,下面以一具体应用场景对本发明实施例中信息处理方法进行 具体描述:  For ease of understanding, the information processing method in the embodiment of the present invention is specifically described in a specific application scenario:
如图 4所示, 当前信息为可编辑文本, 当显示屏上显示有内容时, 终端设 备可以记录信息与显示屏的位置关系,例如可以记录每个字母在显示屏上的坐 标;  As shown in Figure 4, the current information is editable text. When the content is displayed on the display, the terminal device can record the positional relationship between the information and the display screen. For example, the coordinates of each letter on the display screen can be recorded;
当用户用手指双击屏幕, 终端设备检测到开启了快捷编辑模式;  When the user double-clicks the screen with the finger, the terminal device detects that the shortcut editing mode is turned on;
终端设备开始监测用户的触摸轨迹的起点, 终点以及滑动方向;  The terminal device starts monitoring the starting point, the ending point and the sliding direction of the user's touch trajectory;
终端设备监测到触摸轨迹的滑动方向为向左滑动, 起点为字母 "u" 右侧 的坐标, 终点为字母 "0" 左侧的坐标;  The terminal device monitors that the sliding direction of the touch track is sliding to the left, the starting point is the coordinate on the right side of the letter "u", and the ending point is the coordinate on the left side of the letter "0";
终端设备按照位置关系删除显示屏上字母 "u" 右侧与字母 "0" 左侧的 坐标之间文本;  The terminal device deletes the text between the right side of the letter "u" on the display and the coordinates on the left side of the letter "0" according to the positional relationship;
终端设备监测到触摸轨迹的滑动方向为向右滑动,起点为上一步删除操作 中字母 "0" 左侧的坐标, 终点为上一步删除操作字母 "u" 右侧的坐标; 终端设备按照位置关系恢复显示屏上该字母 "0"左侧的坐标与该字母 "U" 右侧的坐标之间的上一步删除操作中被删除的文本。 The terminal device detects that the sliding direction of the touch track is sliding to the right, the starting point is the coordinate of the left side of the letter "0" in the previous deletion operation, and the ending point is the coordinate of the right side of the letter "u" in the previous step; The terminal device restores the deleted text in the previous step between the coordinates on the left side of the letter "0" on the display screen and the coordinates on the right side of the letter "U" according to the positional relationship.
二, 当信息为信息组时, 终端设备可以监测触摸轨迹的标记点以及滑动操 作再进行后续处理;  Second, when the information is a group of information, the terminal device can monitor the marked points of the touch track and the sliding operation for subsequent processing;
请参阅图 5 , 本发明实施例中信息处理方法另一个实施例包括:  Referring to FIG. 5, another embodiment of the information processing method in the embodiment of the present invention includes:
501、 终端设备记录信息与显示屏的位置关系;  501. The positional relationship between the information recorded by the terminal device and the display screen;
当终端设备的显示屏上显示有信息组时,终端设备可以记录该信息组与显 示屏的位置关系。  When a message group is displayed on the display screen of the terminal device, the terminal device can record the positional relationship between the information group and the display screen.
该信息组可以为短信组(短信列表), 通讯录, 好友列表等, 此处不作限 定。  The information group can be a short message group (sms list), an address book, a friend list, etc., and is not limited herein.
该信息组与显示屏的位置关系可以有不同的表示方式,可以在显示屏中建 立坐标系, 则该位置关系可以表示为每个信息组, 例如每条短信的中心点在显 示屏中的坐标值,也可以为信息组的上下边沿与显示屏的各个边框的间距,还 可以有其他的表示位置关系的方式, 此处不作限定。  The positional relationship between the information group and the display screen may have different representation manners, and a coordinate system may be established in the display screen, and the positional relationship may be represented as each information group, for example, the coordinates of the center point of each short message in the display screen. The value may also be the distance between the upper and lower edges of the information group and the respective borders of the display screen, and may also have other manners for indicating the positional relationship, which is not limited herein.
可以理解的是,终端设备可以在每次信息与显示屏的位置关系发生变化时 都进行记录, 若终端设备的存储容量足够, 终端设备不仅仅可以只存储当前信 息与显示屏的位置关系, 并且可以在下一次再记录信息与显示屏的位置关系 后,将上一次记录的信息与显示屏的位置关系也保存起来便于之后的处理过程 中可以进行多次恢复操作,在实际应用中也可以只保存最近一次的信息与显示 屏的位置关系, 此处不作限定。  It can be understood that the terminal device can record every time the positional relationship between the information and the display screen changes. If the storage capacity of the terminal device is sufficient, the terminal device can not only store the current information and the positional relationship of the display screen, and After the next time the position information of the information and the display screen is recorded, the positional relationship between the last recorded information and the display screen can be saved, so that multiple recovery operations can be performed in the subsequent processing, and only the actual application can be saved. The positional relationship between the latest information and the display screen is not limited here.
502、 终端设备检测是否开启了快捷编辑模式;  502. The terminal device detects whether a shortcut editing mode is enabled.
终端设备可以检测是否开启了快捷编辑模式, 可以理解的是, 步骤 502 也可以在步骤 501之前进行, 此处不作限定。  The terminal device can detect whether the shortcut editing mode is enabled. It can be understood that the step 502 can also be performed before the step 501, which is not limited herein.
需要说明的是, 快捷编辑模式的开启可以有多种方式, 可以设定为当信息 可编辑时, 用户在屏幕上左右滑动则开启快捷编辑模式,也可以设定为用户在 屏幕上双击则开启快捷编辑模式,还可以设定为其他的方式开启该快捷编辑模 式, 也可以由用户自定义特定的手势来开启该快捷编辑模式, 此处不作限定。  It should be noted that the shortcut editing mode can be opened in multiple ways. It can be set to enable the user to edit the information on the screen to open the shortcut editing mode, or to double-click on the screen. The shortcut editing mode can also be set to other ways to enable the shortcut editing mode, or the user can customize a specific gesture to open the shortcut editing mode, which is not limited herein.
503、 若开启了快捷编辑模式, 则终端设备监测用户的触摸轨迹的标记点 以及滑动操作; 当终端设备检测到开启了快捷编辑模式后,终端设备监测用户的触摸轨迹 的标记点以及滑动操作; 503. If the shortcut editing mode is enabled, the terminal device monitors a mark point of the touch track of the user and a sliding operation; After the terminal device detects that the shortcut editing mode is enabled, the terminal device monitors the marking point of the touch track of the user and the sliding operation;
该触摸轨迹的标记点以及滑动操作可以由用户通过两个手指完成,也可以 由用户通过更多的手指或其他物体完成, 此处不作限定。  The marking point of the touch track and the sliding operation can be performed by the user through two fingers, or can be completed by the user through more fingers or other objects, which is not limited herein.
该用户的触摸轨迹可以为通过触摸屏检测到的用户手指或其它物体在屏 幕上滑动形成的触摸轨迹,也可以为通过红外线传感器或光线传感器等传感器 感应到的用户的手指划动的轨迹; 该触摸轨迹可以为单点轨迹, 例如用户通过 一个手指形成的轨迹,也可以为多点轨迹, 例如用户通过两个或更多的手指形 成的轨迹, 此处不作限定。  The touch trajectory of the user may be a touch trajectory formed by sliding a user's finger or other object detected on the screen by the touch screen, or may be a trajectory of a user's finger sensed by a sensor such as an infrared sensor or a light sensor; The trajectory can be a single-point trajectory, for example, a trajectory formed by a user by one finger, or a trajectory formed by two or more fingers, which is not limited herein.
504、 当滑动操作为向第四方向滑动时, 终端设备按照位置关系删除滑动 中经过标记点的信息组;  504. When the sliding operation is sliding in the fourth direction, the terminal device deletes the information group of the marked points in the sliding according to the positional relationship;
终端设备监测到触摸轨迹的标记点以及滑动操作后,当滑动操作为向第四 方向滑动时, 终端设备按照位置关系删除滑动中经过标记点的信息组。  After the terminal device detects the marked point of the touch track and the sliding operation, when the sliding operation is sliding in the fourth direction, the terminal device deletes the information group of the marked point in the sliding according to the positional relationship.
505、 当滑动操作为向第三方向滑动时, 终端设备按照位置关系恢复滑动 中经过标记点的上一步删除的信息组。  505. When the sliding operation is to slide in the third direction, the terminal device resumes the information group deleted by the previous step of the marked point in the sliding according to the positional relationship.
终端设备监测到触摸轨迹的标记点以及滑动操作后,当滑动操作为向第三 方向滑动时,终端设备按照位置关系恢复滑动中经过标记点的上一步删除的信 息组, 该第三方向与第四方向相反。  After the terminal device detects the marked point of the touch track and the sliding operation, when the sliding operation is sliding in the third direction, the terminal device resumes the information group deleted in the previous step of the marked point in the sliding according to the positional relationship, the third direction and the third direction The four directions are opposite.
信息组在滑动中经过该标记点所在显示屏的横轴即表示经过标记点。  The horizontal axis of the display on which the marker passes during the slide indicates the passing point.
可以理解的是, 若第四方向为向下, 则第三方向为向上, 若第四方向为向 上, 则第三方向为向下, 此处不作限定。  It can be understood that if the fourth direction is downward, the third direction is upward, and if the fourth direction is upward, the third direction is downward, which is not limited herein.
在终端设备执行删除或恢复操作之前, 终端设备可以显示确认窗口,删除 或恢复操作之后, 终端设备还可以给出提示。  Before the terminal device performs the delete or restore operation, the terminal device can display a confirmation window, and after the deletion or recovery operation, the terminal device can also give a prompt.
本发明实施例中, 当信息为信息组时, 终端设备监测触摸轨迹的标记点与 滑动操作,当滑动操作为向第四方向滑动时,删除滑动中经过标记点的信息组, 当滑动操作为向第三方向滑动时 ,恢复滑动中经过标记点的上一步删除的信息 组, 这样使得对信息组的删除与恢复操作更加筒便, 减少了操作步骤, 提升了 用户的操作效率。  In the embodiment of the present invention, when the information is the information group, the terminal device monitors the marking point and the sliding operation of the touch track, and when the sliding operation is sliding in the fourth direction, deleting the information group of the marked point in the sliding, when the sliding operation is When sliding in the third direction, the information group deleted in the previous step of the marked point in the sliding is restored, so that the deletion and recovery operation of the information group is more convenient, the operation steps are reduced, and the operation efficiency of the user is improved.
为便于理解,下面以一具体应用场景对本发明实施例中信息处理方法进行 具体描述: For ease of understanding, the information processing method in the embodiment of the present invention is performed in a specific application scenario. specific description:
如图 6所示, 当信息为信息组时, 终端设备可以记录信息组与显示屏的位 置关系, 例如可以记录每条信息的上下边沿的坐标;  As shown in FIG. 6, when the information is a message group, the terminal device can record the position relationship between the information group and the display screen, for example, the coordinates of the upper and lower edges of each piece of information can be recorded;
用户在显示屏上画了个 "L" 后, 终端设备检测到开启了快捷编辑模式; 终端设备开始监测用户的触摸轨迹的标记点以及滑动操作;  After the user draws an "L" on the display screen, the terminal device detects that the shortcut editing mode is enabled; the terminal device starts to monitor the marking point of the user's touch track and the sliding operation;
终端设备监测到标记点的坐标,并且 2号信息的上边沿的横轴坐标被滑动 到标记点的横轴坐标以下;  The terminal device monitors the coordinates of the marked point, and the horizontal axis coordinate of the upper edge of the information No. 2 is slid to the horizontal axis coordinate of the marked point;
终端设备按照位置关系删除滑动中经过标记点的 1号信息和 2号信息; 终端设备监测到标记点的坐标,并且 1号信息的下边沿的横轴坐标被滑动 到标记点的横轴坐标以上;  The terminal device deletes the No. 1 information and the No. 2 information of the marked point in the sliding according to the positional relationship; the terminal device monitors the coordinates of the marked point, and the horizontal axis coordinate of the lower edge of the No. 1 information is slid to the horizontal axis coordinate of the marked point ;
终端设备按照位置关系恢复滑动中经过标记点的上一步被删除的 1 号信 息和 2号信息。  The terminal device resumes the information of No. 1 and No. 2 deleted in the previous step of the marked point in the sliding according to the positional relationship.
下面对本发明实施例中的终端设备进行描述, 请参阅图 7, 本发明实施例 中终端设备一个实施例包括:  The following describes the terminal device in the embodiment of the present invention. Referring to FIG. 7, an embodiment of the terminal device in the embodiment of the present invention includes:
记录模块 701 , 用于记录信息与显示屏的位置关系;  a recording module 701, configured to record a positional relationship between the information and the display screen;
监测模块 702, 用于监测用户的触摸轨迹;  The monitoring module 702 is configured to monitor a touch trajectory of the user;
处理模块 703 , 用于根据所述监测模块 702监测到的触摸轨迹和所述记录 模块 701记录的位置关系, 对所述信息进行删除或恢复操作。  The processing module 703 is configured to delete or restore the information according to the touch track monitored by the monitoring module 702 and the positional relationship recorded by the recording module 701.
本发明实施例中记录模块 701先记录信息与显示屏的位置关系,然后监测 模块 702监测用户的触摸轨迹, 处理模块 703根据该触摸轨迹和该位置关系, 对信息进行删除或恢复操作,这样由于编辑时是直接与需要编辑的信息进行接 触,提高了信息编辑的准确性,且监测触摸轨迹再自动的进行删除与恢复操作, 可以实时对触摸轨迹经过的多个单位的信息进行处理, 节省了信息编辑的时 间, 提高了编辑效率。  In the embodiment of the present invention, the recording module 701 first records the positional relationship between the information and the display screen, and then the monitoring module 702 monitors the touch trajectory of the user, and the processing module 703 deletes or restores the information according to the touch trajectory and the positional relationship, When editing, it directly contacts the information that needs to be edited, improves the accuracy of information editing, and automatically deletes and restores the touch track, and can process the information of multiple units passing the touch track in real time, saving The time of information editing has improved the editing efficiency.
在实际应用中,监测模块 702监测用户的触摸轨迹之前, 终端设备可以先 检测是否开启了快捷编辑模式, 再进行后续操作, 请参阅图 8, 本发明实施例 中终端设备另一个实施例包括:  In an actual application, before the monitoring module 702 monitors the touch track of the user, the terminal device may first detect whether the shortcut editing mode is enabled, and then perform subsequent operations. Referring to FIG. 8, another embodiment of the terminal device in the embodiment of the present invention includes:
记录模块 801 , 用于记录信息与显示屏的位置关系;  a recording module 801, configured to record a positional relationship between the information and the display screen;
监测模块 802, 用于监测用户的触摸轨迹; 处理模块 803 , 用于根据所述监测模块 802监测到的触摸轨迹和所述记录 模块 801记录的位置关系, 对所述信息进行删除或恢复操作; a monitoring module 802, configured to monitor a touch trajectory of the user; The processing module 803 is configured to delete or restore the information according to the touch track detected by the monitoring module 802 and the positional relationship recorded by the recording module 801;
本实施中, 该终端设备还包括:  In this implementation, the terminal device further includes:
检测模块 804, 用于检测是否开启了快捷编辑模式;  a detecting module 804, configured to detect whether a shortcut editing mode is enabled;
触发模块 805 , 用于当所述检测模块 804检测到开启了所述快捷编辑模式 时, 触发所述监测模块 802。  The triggering module 805 is configured to trigger the monitoring module 802 when the detecting module 804 detects that the shortcut editing mode is enabled.
本发明实施例中,检测模块 804检测开启了快捷编辑模式后, 才触发监测 模块 802监测用户的触摸轨迹,这样一方面可以避免一直监测用户的触摸轨迹 耗费电能,延长了终端设备的续航时间, 另一方面可以使得在快捷编辑模式中 使用更多的手势动作而不会和终端设备处于其他状态时的手势动作混淆,增强 了操作的准确性。  In the embodiment of the present invention, after the detection module 804 detects that the shortcut editing mode is enabled, the monitoring module 802 is triggered to monitor the touch trajectory of the user, so as to avoid the power consumption of the user's touch trajectory being monitored all the time, and the endurance time of the terminal device is prolonged. On the other hand, more gesture actions can be used in the quick edit mode without being confused with gesture actions when the terminal device is in other states, which enhances the accuracy of the operation.
上面实施例中, 监测模块 802监测用户的触摸轨迹, 在实际应用中, 根据 信息的不同, 监测模块 802监测的该触摸轨迹可以侧重于不同的方面。  In the above embodiment, the monitoring module 802 monitors the user's touch trajectory. In practical applications, depending on the information, the touch trajectory monitored by the monitoring module 802 can focus on different aspects.
一, 当信息为可编辑文本时, 监测模块 802可以监测触摸轨迹的起点, 终 点以及滑动方向再进行后续处理;  First, when the information is editable text, the monitoring module 802 can monitor the starting point, the end point, and the sliding direction of the touch track for subsequent processing;
请参阅图 9, 本发明实施例中终端设备另一个实施例包括:  Referring to FIG. 9, another embodiment of the terminal device in the embodiment of the present invention includes:
记录模块 901 , 用于记录信息与显示屏的位置关系;  a recording module 901, configured to record a positional relationship between the information and the display screen;
监测模块 902, 用于监测用户的触摸轨迹;  The monitoring module 902 is configured to monitor a touch trajectory of the user;
处理模块 903 , 用于根据所述监测模块 902监测到的触摸轨迹和所述记录 模块 901记录的位置关系, 对所述信息进行删除或恢复操作;  The processing module 903 is configured to delete or restore the information according to the touch track monitored by the monitoring module 902 and the positional relationship recorded by the recording module 901;
该终端设备还包括:  The terminal device further includes:
检测模块 904, 用于检测是否开启了快捷编辑模式;  a detecting module 904, configured to detect whether a shortcut editing mode is enabled;
触发模块 905 , 用于当所述检测模块 904检测到开启了所述快捷编辑模式 时, 触发所述监测模块 902;  The triggering module 905 is configured to trigger the monitoring module 902 when the detecting module 904 detects that the shortcut editing mode is enabled;
本实施例中,监测模块 902具体用于监测所述触摸轨迹的起点,终点以及 滑动方向;  In this embodiment, the monitoring module 902 is specifically configured to monitor a starting point, an ending point, and a sliding direction of the touch track;
处理模块 903具体可以包括:  The processing module 903 may specifically include:
文本删除单元 9031 , 用于当所述滑动方向为第一方向时, 按照所述位置 关系删除所述起点与所述终点之间的文本; 文本恢复单元 9032, 用于当所述滑动方向为第二方向时, 按照所述位置 关系恢复所述起点与所述终点之间上一步被删除的文本,该第二方向与第一方 向相反; a text deleting unit 9031, configured to delete text between the starting point and the ending point according to the positional relationship when the sliding direction is the first direction; a text recovery unit 9032, configured to: when the sliding direction is the second direction, recover the text deleted in the previous step between the starting point and the ending point according to the positional relationship, where the second direction is opposite to the first direction;
处理模块 903还可以包括:  The processing module 903 can also include:
整行删除单元 9033 , 用于当所述滑动方向为第三方向时, 删除所述可编 辑文本中光标所在的整行文本;  The entire line deleting unit 9033 is configured to delete the entire line of text in which the cursor is located in the editable text when the sliding direction is the third direction;
整行恢复单元 9034, 用于当所述滑动方向为第四方向时, 恢复上一步被 删除的整行文本, 该第四方向与第三方向相反。  The entire line recovery unit 9034 is configured to restore the entire line of text deleted in the previous step when the sliding direction is the fourth direction, the fourth direction being opposite to the third direction.
本发明实施例中, 当信息为可编辑文本时,监测模块 902监测触摸轨迹的 起点, 终点以及滑动方向, 处理模块 903根据滑动方向确定是删除还是恢复操 作,根据起点以及终点确定删除或恢复操作的范围, 这样使得对信息的编辑能 更加准确, 这个时候, 用户的手指就向一个神奇的橡皮擦或者魔笔, 可以直接 用手擦除内容或者用手指恢复内容, 筒化了用户的操作,增强了用户与设备的 交互。  In the embodiment of the present invention, when the information is editable text, the monitoring module 902 monitors the start point, the end point, and the sliding direction of the touch track, and the processing module 903 determines whether the deletion or recovery operation is performed according to the sliding direction, and determines the deletion or recovery operation according to the start point and the end point. The scope of the information, so that the editing of the information can be more accurate, this time, the user's finger to a magical eraser or magic pen, you can directly erase the content by hand or use the finger to restore the content, the user's operation, Enhanced user interaction with the device.
为了便于理解上述实施例,下面以上述终端设备各个模块在一个具体应用 场景中的交互过程进行说明:  In order to facilitate the understanding of the foregoing embodiments, the following describes the interaction process of each module of the foregoing terminal device in a specific application scenario:
如图 4所示, 当前信息为可编辑文本, 当显示屏上显示有内容时, 记录模 块 901可以记录信息与显示屏的位置关系,例如可以记录每个字母在显示屏上 的坐标;  As shown in FIG. 4, the current information is editable text. When the content is displayed on the display screen, the recording module 901 can record the positional relationship between the information and the display screen, for example, the coordinates of each letter on the display screen can be recorded;
当用户用手指双击屏幕, 检测模块 904检测到开启了快捷编辑模式; 监测模块 902开始监测用户的触摸轨迹的起点, 终点以及滑动方向; 监测模块 902监测到触摸轨迹的滑动方向为向左滑动, 起点为字母 "u" 右侧的坐标, 终点为字母 "0" 左侧的坐标;  When the user double-clicks the screen with a finger, the detecting module 904 detects that the shortcut editing mode is turned on; the monitoring module 902 starts monitoring the starting point, the ending point, and the sliding direction of the user's touch track; the monitoring module 902 detects that the sliding direction of the touch track is sliding to the left. The starting point is the coordinate on the right side of the letter "u", and the end point is the coordinate on the left side of the letter "0";
文本删除单元 9031按照位置关系删除显示屏上字母 "u" 右侧与字母 "0" 左侧的坐标之间文本;  The text deletion unit 9031 deletes the text between the right side of the letter "u" on the display and the coordinates on the left side of the letter "0" according to the positional relationship;
监测模块 902监测到触摸轨迹的滑动方向为向右滑动,起点为上一步删除 操作中字母 "0" 左侧的坐标, 终点为上一步删除操作字母 "u" 右侧的坐标; 文本恢复单元 9032按照位置关系恢复显示屏上该字母 "0"左侧的坐标与 该字母 "u" 右侧的坐标之间的上一步删除操作中被删除的文本。 二, 当信息为信息组时,监测模块 902可以监测触摸轨迹的标记点以及滑 动操作再进行后续处理; The monitoring module 902 detects that the sliding direction of the touch track is sliding to the right, the starting point is the coordinate of the left side of the letter "0" in the previous deletion operation, and the ending point is the coordinate of the right side of the operation letter "u" in the previous step; the text recovery unit 9032 According to the positional relationship, the text deleted on the display in the previous step between the coordinates of the left side of the letter "0" and the coordinates on the right side of the letter "u" is deleted. Second, when the information is a group of information, the monitoring module 902 can monitor the marked points of the touch track and the sliding operation for subsequent processing;
请参阅图 10, 本发明实施例中终端设备另一个实施例包括:  Referring to FIG. 10, another embodiment of the terminal device in the embodiment of the present invention includes:
记录模块 1001 , 用于记录信息与显示屏的位置关系;  a recording module 1001, configured to record a positional relationship between the information and the display screen;
监测模块 1002, 用于监测用户的触摸轨迹;  The monitoring module 1002 is configured to monitor a touch trajectory of the user;
处理模块 1003, 用于根据所述监测模块 1002监测到的触摸轨迹和所述记 录模块 1001记录的位置关系, 对所述信息进行删除或恢复操作;  The processing module 1003 is configured to delete or restore the information according to the touch track detected by the monitoring module 1002 and the positional relationship recorded by the recording module 1001;
该终端设备还包括:  The terminal device further includes:
检测模块 1004, 用于检测是否开启了快捷编辑模式;  The detecting module 1004 is configured to detect whether a shortcut editing mode is enabled;
触发模块 1005, 用于当所述检测模块 1004检测到开启了所述快捷编辑模 式时, 触发所述监测模块 1002;  The triggering module 1005 is configured to trigger the monitoring module 1002 when the detecting module 1004 detects that the shortcut editing mode is enabled;
本实施例中, 监测模块 1002具体用于, 监测所述触摸轨迹的标记点以及 滑动操作;  In this embodiment, the monitoring module 1002 is specifically configured to: monitor a mark point of the touch track and a sliding operation;
处理模块 1003具体包括:  The processing module 1003 specifically includes:
信息组删除单元 10031 , 用于当所述滑动操作为向第四方向滑动时, 按照 所述位置关系删除滑动中经过所述标记点的信息组;  The information group deleting unit 10031 is configured to: when the sliding operation is sliding in the fourth direction, delete the information group that passes the marked point in the sliding according to the positional relationship;
信息组恢复单元 10032, 用于当所述滑动操作为向第三方向滑动时, 按照 所述位置关系恢复滑动中经过所述标记点的上一步删除的信息组。  The information group restoring unit 10032 is configured to: when the sliding operation is sliding in the third direction, recover the information group deleted in the previous step of the marking point in the sliding according to the positional relationship.
本发明实施例中, 当信息为信息组时, 监测模块 1002监测触摸轨迹的标 记点与滑动操作, 当滑动操作为向第四方向滑动时, 信息组删除单元 10031 删除滑动到标记点以下的信息组, 当滑动操作为向第三方向滑动时,信息组恢 复单元 10032恢复滑动中经过标记点的上一步删除的信息组,这样使得对信息 组的删除与恢复操作更加筒便, 减少了操作步骤, 提升了用户的操作效率。  In the embodiment of the present invention, when the information is the information group, the monitoring module 1002 monitors the marking point and the sliding operation of the touch track. When the sliding operation is sliding in the fourth direction, the information group deleting unit 10031 deletes the information sliding below the marking point. When the sliding operation is to slide in the third direction, the information group recovery unit 10032 restores the information group deleted in the previous step of the marking point in the sliding, so that the deletion and recovery operation of the information group is more convenient, and the operation steps are reduced. , improve the user's operating efficiency.
为了便于理解上述实施例,下面以上述终端设备各个模块在一个具体应用 场景中的交互过程进行说明:  In order to facilitate the understanding of the foregoing embodiments, the following describes the interaction process of each module of the foregoing terminal device in a specific application scenario:
如图 6所示, 当信息为信息组时, 记录模块 1001可以记录信息组与显示 屏的位置关系, 例如可以记录每条信息的上下边沿的坐标;  As shown in FIG. 6, when the information is a group of information, the recording module 1001 can record the positional relationship between the group of information and the display screen, for example, the coordinates of the upper and lower edges of each piece of information can be recorded;
用户在显示屏上画了个 "L"后,检测模块 1004检测到开启了快捷编辑模 式; 监测模块 1002开始监测用户的触摸轨迹的标记点以及滑动操作; 监测模块 1002监测到标记点的坐标, 并且 2号信息的上边沿的横轴坐标 被滑动到标记点的横轴坐标以下; After the user draws an "L" on the display screen, the detecting module 1004 detects that the shortcut editing mode is enabled; The monitoring module 1002 starts monitoring the marking point of the user's touch trajectory and the sliding operation; the monitoring module 1002 monitors the coordinates of the marking point, and the horizontal axis coordinate of the upper edge of the second information is slid below the horizontal axis coordinate of the marking point;
信息组删除单元 10031按照位置关系删除滑动中经过标记点的 1号信息和 2号信息;  The information group deleting unit 10031 deletes the No. 1 information and the No. 2 information of the past marked points in the sliding according to the positional relationship;
监测模块 1002监测到标记点的坐标, 并且 1号信息的下边沿的横轴坐标 被滑动到标记点的横轴坐标以上;  The monitoring module 1002 monitors the coordinates of the marked point, and the horizontal axis coordinate of the lower edge of the information 1 is slid to the horizontal axis coordinate of the marked point;
信息组恢复单元 10032按照位置关系恢复滑动中经过标记点的上一步被 删除的 1号信息和 2号信息。  The block recovery unit 10032 restores the No. 1 information and the No. 2 information deleted in the previous step of the marked point in the sliding according to the positional relationship.
本发明实施例中的终端设备 1100另一实施例包括: Another embodiment of the terminal device 1100 in the embodiment of the present invention includes:
存储器 1101 , 处理器(Central Processing Unit, 以下筒称 CPU ) 1102, 触 摸屏 1103和通信总线 1104;  a memory 1101, a central processing unit (CPU) 1102, a touch screen 1103 and a communication bus 1104;
该终端设备还可以包括: 外设接口 1105、 RF电路 1106、 音频电路 1107、 扬声器 1108、 电源管理芯片 1109、 输入 /输出 (I/O )子系统 1110、 其他输入 / 控制设备 1111或外部端口 1112。  The terminal device may further include: a peripheral interface 1105, an RF circuit 1106, an audio circuit 1107, a speaker 1108, a power management chip 1109, an input/output (I/O) subsystem 1110, other input/control devices 1111, or an external port 1112. .
值得说明的是, 本实施例提供的终端设备仅仅是终端设备的一个示例, 本 发明实施例涉及的终端设备可以具有比图 11所示出的更多或更少的部件,可以 组合两个或更多个部件, 或者可以具有不同的部件配置或设置,各个部件可以 在包括一个或多个信号处理和 /或专用集成电路在内的硬件、 软件或硬件和软 件的组合实现。  It should be noted that the terminal device provided by this embodiment is only one example of the terminal device, and the terminal device according to the embodiment of the present invention may have more or less components than those shown in FIG. More components, or different component configurations or arrangements, may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于对消息进行处理的终端设备进行详细的描述。 存储器 1101: 所述存储器 1101可以被 CPU1102、 外设接口 1105等访问, 所 述存储器 1101可以包括高速随机存取存储器,还可以包括非易失性存储器, 例 如一个或多个磁盘存储器件、 闪存器件、 或其他易失性固态存储器件。  The terminal device for processing a message provided in this embodiment is described in detail below. The memory 1101 can be accessed by the CPU 1102, the peripheral interface 1105, etc., and the memory 1101 can include a high speed random access memory, and can also include a nonvolatile memory, such as one or more magnetic disk storage devices, flash memory devices. , or other volatile solid-state storage devices.
外设接口 1105 , 所述外设接口可以将设备的输入和输出外设连接到 CPU 1102和存储器 1101。  Peripheral interface 1105, which can connect the input and output peripherals of the device to CPU 1102 and memory 1101.
I/O子系统 1110: 所述 I/O子系统 1110可以将设备上的输入输出外设, 例如 触摸屏 1103 (相当于上述实施例中的显示屏) 和其他输入 /控制设备 1111 , 连 接到外设接口 1105。 I/O子系统 1110可以包括显示控制器 11101和用于控制其他 输入 /控制设备 1111的一个或多个输入控制器 11102。 其中, 一个或多个输入控 制器 11102从其他输入 /控制设备 1111接收电信号或者向其他输入 /控制设备 1111发送电信号, 其他输入 /控制设备 1111可以包括物理按鈕(按压按鈕、摇臂 按鈕等)、 拨号盘、 滑动开关、 操纵杆、 点击滚轮。 值得说明的是, 输入控制 器 11102可以与以下任一个连接: 键盘、 红外端口、 USB接口以及诸如鼠标的 指示设备。 I/O subsystem 1110: The I/O subsystem 1110 can input and output peripherals on the device, such as A touch screen 1103 (corresponding to the display screen in the above embodiment) and other input/control devices 1111 are connected to the peripheral interface 1105. The I/O subsystem 1110 can include a display controller 11101 and one or more input controllers 11102 for controlling other input/control devices 1111. Wherein, one or more input controllers 11102 receive electrical signals from other input/control devices 1111 or transmit electrical signals to other input/control devices 1111, and other input/control devices 1111 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel. It is worth noting that the input controller 11102 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏 1103:所述触摸屏 1103是终端设备与用户之间的输入接口和输出接 口, 将可视输出显示给用户, 可视输出可以包括图形、 文本、 图标、 视频等。  The touch screen 1103 is an input interface and an output interface between the terminal device and the user, and displays the visual output to the user. The visual output may include graphics, text, icons, videos, and the like.
I/O子系统 1110中的显示控制器 11101从触摸屏 1103接收电信号或者向触 摸屏 1103发送电信号。 触摸屏 1103检测触摸屏上的接触, 显示控制器 11101将 检测到的接触转换为与显示在触摸屏 1103上的用户界面对象的交互,即实现人 机交互, 显示在触摸屏 1103上的用户界面对象可以是运行游戏的图标、联网到 相应网络的图标等。 值得说明的是, 设备还可以包括光鼠, 光鼠是不显示可视 输出的触摸敏感表面, 或者是由触摸屏形成的触摸敏感表面的延伸。  The display controller 11101 in the I/O subsystem 1110 receives an electrical signal from the touch screen 1103 or transmits an electrical signal to the touch screen 1103. The touch screen 1103 detects the contact on the touch screen, and the display controller 11101 converts the detected contact into an interaction with the user interface object displayed on the touch screen 1103, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 1103 may be running. The icon of the game, the icon of the network to the corresponding network, and the like. It is worth noting that the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
RF电路 1106, 主要用于建立终端设备与无线网络(即网络侧) 的通信, 实现终端设备与无线网络的数据接收和发送。 例如收发短信息、 电子邮件等。 具体地, RF电路 1106接收并发送 RF信号, RF信号也称为电磁信号, RF电路 1106 将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与 通信网络以及其他设备进行通信。 RF电路 1106可以包括用于执行这些功能的 已知电路, 其包括但不限于天线系统、 RF收发机、 一个或多个放大器、 调谐 器、 一个或多个振荡器、 数字信号处理器、 CODEC芯片组、 用户标识模块 ( Subscriber Identity Module, SIM )等等。  The RF circuit 1106 is mainly used for establishing communication between the terminal device and the wireless network (ie, the network side), and realizing data receiving and transmitting of the terminal device and the wireless network. For example, sending and receiving short messages, emails, etc. Specifically, the RF circuit 1106 receives and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 1106 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate. RF circuitry 1106 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip Group, Subscriber Identity Module (SIM), etc.
音频电路 1107, 主要用于从外设接口 1105接收音频数据, 将该音频数据转 换为电信号, 并且将该电信号发送给扬声器 1108。  The audio circuit 1107 is mainly used to receive audio data from the peripheral interface 1105, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 1108.
扬声器 1108, 用于将终端设备通过 RF电路 1106从无线网络接收的语音信 号, 还原为声音并向用户播放该声音。  The speaker 1108 is configured to restore the voice signal received by the terminal device from the wireless network through the RF circuit 1106 to sound and play the sound to the user.
电源管理芯片 1109,用于为 CPU1102、 I/O子系统 1110及外设接口 1105所连 接的硬件进行供电及电源管理。 Power management chip 1109 for connecting to CPU 1102, I/O subsystem 1110, and peripheral interface 1105 Connected hardware for power and power management.
图 12为终端设备内部部分结构图。在本发明实施例中,存储器 1101中存储 的软件部件可包括操作系统 1201、 通信模块 1202、 接触 /移动模块 1203、 图形 模块 1204、 功能模块 1205。  Figure 12 is a structural diagram of the internal part of the terminal device. In the embodiment of the present invention, the software components stored in the memory 1101 may include an operating system 1201, a communication module 1202, a contact/moving module 1203, a graphics module 1204, and a function module 1205.
操作系统 1201(例如, Darwin、RTXC、LINUX、UNIX、OS X、 WINDOWS, 或诸如 VxWorks的嵌入式操作系统)包括用于控制和管理一般系统任务(例如, 存储器管理、 存储设备控制、 电力管理等等) 的各种软件部件和 /或驱动器, 并且便于各种硬件与软件部件之间的通信。  Operating system 1201 (eg, Darwin, RTXC, LINUX, UNIX, OS X, WINDOWS, or an embedded operating system such as VxWorks) includes controls and management of general system tasks (eg, memory management, storage device control, power management, etc.) Various software components and/or drivers, and facilitate communication between various hardware and software components.
通信模块 1202便于通过一个或多个外部端口 1112与其他设备通信,并且还 包括用于处理由 RF电路 1106和 /或外部端口 1112接收的数据的各种软件部件。  Communication module 1202 facilitates communication with other devices via one or more external ports 1112, and also includes various software components for processing data received by RF circuitry 1106 and/or external port 1112.
接触 /移动模块 1203可以检测与触摸屏 1103 (结合显示控制器 11101 )和其 他触摸敏感设备(例如, 触摸板或物理点击滚轮)的接触。接触 /移动模块 1203 包括用于执行与检测接触相关的各种操作的各种软件部件,所述操作例如有确 定是否发生接触、 确定是否所述接触有移动并且在触摸屏 1103上追踪所述移 动、 以及确定是否已经断开所述接触 (即, 是否接触已经停止)。 确定接触点 的移动可以包括确定接触点的速率(幅值)、 速度(幅值和方向)和 /或加速度 (幅值和 /或方向的变化)。 这些操作可以应用到单个接触(例如, 一个手指接 触)或应用到多个同时接触 (例如, "多重触摸" /多手指接触)。 在一些实施 例中, 接触 /移动模块 1203和显示控制器 11101还检测触摸板上的接触。  The contact/movement module 1203 can detect contact with the touch screen 1103 (in conjunction with the display controller 11101) and other touch sensitive devices (eg, a touch pad or physical click wheel). The contact/move module 1203 includes various software components for performing various operations related to detecting a contact, such as determining whether a contact has occurred, determining whether the contact has moved, and tracking the movement on the touch screen 1103, And determining if the contact has been disconnected (ie, whether the contact has stopped). Determining the movement of the contact point may include determining the rate (amplitude) of the contact point, velocity (amplitude and direction), and/or acceleration (change in amplitude and/or direction). These operations can be applied to a single contact (e. g., one finger contact) or to multiple simultaneous contacts (e.g., "multi-touch" / multi-finger contact). In some embodiments, contact/movement module 1203 and display controller 11101 also detect contact on the touchpad.
图形模块 1204包括用于在触摸屏 1103上显示图形的各种已知软件部件,包 括用于改变所显示的图形的明暗度的部件。 例如接收处理器 1102的指令, 在触 摸屏 1103中显示各种软件的图形用户界面等。  Graphics module 1204 includes various known software components for displaying graphics on touch screen 1103, including components for changing the brightness of the displayed graphics. For example, an instruction of the processor 1102 is received, and a graphical user interface or the like of various software is displayed on the touch screen 1103.
功能模块 1205具体可以为以下模块中的至少一个:  The function module 1205 may specifically be at least one of the following modules:
记录模块 12051 , 用于记录信息与显示屏的位置关系;  a recording module 12051, configured to record a positional relationship between the information and the display screen;
监测模块 12052, 用于监测用户的触摸轨迹;  The monitoring module 12052 is configured to monitor a touch trajectory of the user;
处理模块 12053, 用于根据所述监测模块 12052监测到的触摸轨迹和所述 记录模块 12051记录的位置关系, 对所述信息进行删除或恢复操作;  The processing module 12053 is configured to delete or restore the information according to the touch track detected by the monitoring module 12052 and the positional relationship recorded by the recording module 12051;
可选的, 处理器 1102可以检测是否开启了快捷编辑模式, 当检测到开启 了所述快捷编辑模式时, 可以触发监测模块; 具体的, 当信息为可编辑文本时, 处理器 1102可以监测触摸轨迹的起点, 终点以及滑动方向, 当所述滑动方向为第一方向时,按照所述位置关系删除所 述起点与所述终点之间的文本, 当所述滑动方向为第二方向时,按照所述位置 关系恢复所述起点与所述终点之间上一步被删除的文本,该第一方向与第二方 向相反; Optionally, the processor 1102 can detect whether the shortcut editing mode is enabled, and when detecting that the shortcut editing mode is enabled, the monitoring module can be triggered; Specifically, when the information is editable text, the processor 1102 can monitor a start point, an end point, and a sliding direction of the touch track, and when the sliding direction is the first direction, delete the start point and the end point according to the positional relationship. Between the text, when the sliding direction is the second direction, recovering the text deleted in the previous step between the starting point and the ending point according to the positional relationship, the first direction is opposite to the second direction;
可选的, 当所述滑动方向为第三方向时, 处理器 1102可以删除所述可编 辑文本中光标所在的整行文本, 当所述滑动方向为第四方向时, 处理器 1102 可以恢复上一步被删除的整行文本, 该第四方向与第三方向相反。  Optionally, when the sliding direction is the third direction, the processor 1102 may delete the entire line of text in the editable text, and when the sliding direction is the fourth direction, the processor 1102 may resume. The entire line of text that was deleted in one step, the fourth direction being opposite to the third direction.
具体的, 当信息为信息组时, 处理器 1102可以监测所述触摸轨迹的标记 点以及滑动操作, 当滑动操作为向第四方向滑动时,按照所述位置关系删除滑 动中经过所述标记点的信息组, 当滑动操作为向第三方向滑动时,按照所述位 置关系恢复滑动中经过所述标记点的上一步删除的信息组,该第三方向与第四 方向相反。  Specifically, when the information is a group of information, the processor 1102 can monitor the marking point of the touch track and the sliding operation. When the sliding operation is sliding in the fourth direction, the marking point is deleted according to the positional relationship. The information group, when the sliding operation is sliding in the third direction, recovers the information group deleted by the previous step of the marking point in the sliding according to the positional relationship, and the third direction is opposite to the fourth direction.
所属领域的技术人员可以清楚地了解到, 为描述的方便和筒洁, 上述描述 的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and the cleaning of the description, the specific working processes of the system, the device and the unit described above can be referred to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和方 法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另 外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或 一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直 接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise. The components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元 中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的 形式实现。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. Medium. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用时, 可以存储在一个计算机可读取存储介质中。基于这样的理解, 本发 明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全 部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储 介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器, 的存储介质包括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory ), 随机存取存储器(RAM, Random Access Memory ), 磁碟或者光盘等各种可以 存储程序代码的介质。  The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. , including a plurality of instructions for causing a computer device (which may be a personal computer, a server, a storage medium including: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, Random) Access Memory ), a variety of media such as a disk or a disc that can store program code.
以上所述, 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽 管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理 解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分 技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱 离本发明各实施例技术方案的精神和范围。  The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents; and the modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 Rights request
1、 一种信息处理方法, 其特征在于, 包括: 1. An information processing method, characterized by including:
终端设备记录信息与显示屏的位置关系; The positional relationship between the terminal equipment recording information and the display screen;
所述终端设备监测用户的触摸轨迹; The terminal device monitors the user's touch trajectory;
所述终端设备根据所述触摸轨迹和所述位置关系,对所述信息进行删除或 恢复操作。 The terminal device performs a deletion or restoration operation on the information according to the touch trajectory and the position relationship.
2、 根据权利要求 1所述的方法, 其特征在于, 所述终端设备监测用户的 触摸轨迹的步骤之前还包括: 2. The method according to claim 1, wherein the step of monitoring the user's touch trajectory by the terminal device further includes:
所述终端设备检测是否开启了快捷编辑模式; The terminal device detects whether the quick editing mode is turned on;
若开启了所述快捷编辑模式,则触发所述终端设备监测用户的触摸轨迹的 步骤。 If the quick editing mode is turned on, the terminal device is triggered to monitor the user's touch trajectory.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 当所述信息为可编辑 文本时, 所述终端设备监测用户的触摸轨迹包括: 3. The method according to claim 1 or 2, characterized in that, when the information is editable text, the terminal device monitoring the user's touch trajectory includes:
所述终端设备监测所述触摸轨迹的起点, 终点以及滑动方向。 The terminal device monitors the starting point, end point and sliding direction of the touch track.
4、 根据权利要求 3所述的方法, 其特征在于, 所述终端设备根据所述触 摸轨迹和所述位置关系, 对所述信息进行删除或恢复操作包括: 4. The method according to claim 3, wherein the terminal device performs a deletion or restoration operation on the information based on the touch trajectory and the position relationship including:
当所述滑动方向为第一方向时,所述终端设备按照所述位置关系删除所述 起点与所述终点之间的文本; When the sliding direction is the first direction, the terminal device deletes the text between the starting point and the end point according to the position relationship;
当所述滑动方向为第二方向时,所述终端设备按照所述位置关系恢复所述 起点与所述终点之间上一步被删除的文本; When the sliding direction is the second direction, the terminal device restores the text deleted in the previous step between the starting point and the end point according to the position relationship;
其中, 所述第二方向与所述第一方向相反。 Wherein, the second direction is opposite to the first direction.
5、 根据权利要求 3或 4所述的方法, 其特征在于, 所述方法还包括: 当所述滑动方向为第三方向时,所述终端设备删除所述可编辑文本中光标 所在的整行文本; 5. The method according to claim 3 or 4, characterized in that, the method further includes: when the sliding direction is a third direction, the terminal device deletes the entire line where the cursor is located in the editable text. text;
当所述滑动方向为第四方向时,所述终端设备恢复上一步被删除的整行文 本; When the sliding direction is the fourth direction, the terminal device restores the entire line of text deleted in the previous step;
其中, 所述第四方向与所述第三方向相反。 Wherein, the fourth direction is opposite to the third direction.
6、 根据权利要求 1或 2所述的方法, 其特征在于, 当所述信息为信息组 时, 所述终端设备监测用户的触摸轨迹包括: 所述终端设备监测所述触摸轨迹的标记点以及滑动操作。 6. The method according to claim 1 or 2, wherein when the information is an information group, the terminal device monitoring the user's touch trajectory includes: The terminal device monitors the mark points of the touch track and the sliding operation.
7、 根据权利要求 6所述的方法, 其特征在于, 所述终端设备根据所述触 摸轨迹和所述位置关系, 对所述信息进行删除或恢复操作包括: 7. The method according to claim 6, characterized in that, the terminal device deleting or restoring the information according to the touch trajectory and the position relationship includes:
当所述滑动操作为向第四方向滑动时,所述终端设备按照所述位置关系删 除滑动中经过所述标记点的信息组; When the sliding operation is sliding in the fourth direction, the terminal device deletes the information group that passes the marked point during sliding according to the position relationship;
当所述滑动操作为向第三方向滑动时,所述终端设备按照所述位置关系恢 复滑动中经过所述标记点的上一步删除的信息组; When the sliding operation is sliding in the third direction, the terminal device restores the information group deleted in the previous step that passed the mark point during the sliding according to the position relationship;
其中, 所述第三方向与所述第四方向相反。 Wherein, the third direction is opposite to the fourth direction.
8、 一种终端设备, 其特征在于, 包括: 8. A terminal device, characterized by including:
记录模块, 用于记录信息与显示屏的位置关系; Recording module, used to record the positional relationship between information and the display screen;
监测模块, 用于监测用户的触摸轨迹; Monitoring module, used to monitor the user's touch trajectory;
处理模块,用于根据所述监测模块监测到的触摸轨迹和所述记录模块记录 的位置关系, 对所述信息进行删除或恢复操作。 A processing module, configured to delete or restore the information based on the touch trajectory monitored by the monitoring module and the position relationship recorded by the recording module.
9、 根据权利要求 8所述的终端设备, 其特征在于, 所述终端设备还包括: 检测模块, 用于检测是否开启了快捷编辑模式; 9. The terminal device according to claim 8, characterized in that, the terminal device further includes: a detection module, used to detect whether the quick editing mode is turned on;
触发模块, 用于当所述检测模块检测到开启了所述快捷编辑模式时,触发 所述监测模块。 A trigger module, configured to trigger the monitoring module when the detection module detects that the quick editing mode is turned on.
10、 根据权利要求 8或 9所述的终端设备, 其特征在于, 当所述信息为可 编辑文本时, 10. The terminal device according to claim 8 or 9, characterized in that when the information is editable text,
所述监测模块具体用于, 监测所述触摸轨迹的起点, 终点以及滑动方向。 The monitoring module is specifically configured to monitor the starting point, end point and sliding direction of the touch track.
11、 根据权利要求 10所述的终端设备, 其特征在于, 所述处理模块具体 包括: 11. The terminal device according to claim 10, characterized in that the processing module specifically includes:
文本删除单元, 用于当所述滑动方向为第一方向时,按照所述位置关系删 除所述起点与所述终点之间的文本; A text deletion unit configured to delete text between the starting point and the end point according to the positional relationship when the sliding direction is the first direction;
文本恢复单元, 用于当所述滑动方向为第二方向时,按照所述位置关系恢 复所述起点与所述终点之间上一步被删除的文本; A text restoration unit, configured to restore the text deleted in the previous step between the starting point and the end point according to the positional relationship when the sliding direction is the second direction;
其中, 所述第二方向与所述第一方向相反。 Wherein, the second direction is opposite to the first direction.
12、 根据权利要求 10或 11所述的终端设备, 其特征在于, 所述处理模块 还包括: 整行删除单元, 用于当所述滑动方向为第三方向时,删除所述可编辑文本 中光标所在的整行文本; 12. The terminal device according to claim 10 or 11, characterized in that the processing module further includes: A whole line deletion unit, used to delete the whole line of text where the cursor is located in the editable text when the sliding direction is the third direction;
整行恢复单元, 用于当所述滑动方向为第四方向时, 恢复上一步被删除的 整行文本; A whole line recovery unit, used to restore the whole line of text deleted in the previous step when the sliding direction is the fourth direction;
其中, 所述第四方向与所述第三方向相反。 Wherein, the fourth direction is opposite to the third direction.
13、 根据权利要求 8或 9所述的终端设备, 其特征在于, 当所述信息为信 息组时, 13. The terminal device according to claim 8 or 9, characterized in that when the information is an information group,
所述监测模块具体用于 , 监测所述触摸轨迹的标记点以及滑动操作。 The monitoring module is specifically used to monitor the mark points and sliding operations of the touch track.
14、 根据权利要求 13所述的终端设备, 其特征在于, 所述处理模块具体 包括: 14. The terminal device according to claim 13, characterized in that the processing module specifically includes:
信息组删除单元,用于当所述滑动操作为向第四方向滑动时,按照所述位 置关系删除滑动中经过所述标记点的信息组; An information group deletion unit, configured to delete the information group passing the marked point during sliding according to the position relationship when the sliding operation is sliding in the fourth direction;
信息组恢复单元,用于当所述滑动操作为向第三方向滑动时,按照所述位 置关系恢复滑动中经过所述标记点的上一步删除的信息组; An information group recovery unit, configured to restore the information group deleted in the previous step of sliding through the mark point according to the position relationship when the sliding operation is sliding in the third direction;
其中, 所述第四方向与所述第三方向相反。 Wherein, the fourth direction is opposite to the third direction.
15、 一种终端设备, 其特征在于, 包括: 15. A terminal device, characterized in that it includes:
存储器, 处理器, 触摸屏和通信总线; Memory, processor, touch screen and communication bus;
所述处理器执行如下操作: The processor performs the following operations:
记录信息与显示屏的位置关系; Record the positional relationship between the information and the display screen;
监测用户的触摸轨迹; Monitor user’s touch traces;
根据所述触摸轨迹和所述位置关系, 对所述信息进行删除或恢复操作。 According to the touch track and the position relationship, the information is deleted or restored.
16、 根据权利要求 15所述的终端设备, 其特征在于, 所述处理器还执行 如下操作: 16. The terminal device according to claim 15, characterized in that the processor also performs the following operations:
检测是否开启了快捷编辑模式; Check whether the quick editing mode is turned on;
当开启了所述快捷编辑模式时, 触发所述监测用户的触摸轨迹的操作。 When the shortcut editing mode is turned on, the operation of monitoring the user's touch track is triggered.
17、 根据权利要求 15或 16所述的终端设备, 其特征在于, 当所述信息为 可编辑文本时, 所述处理器具体执行如下操作: 17. The terminal device according to claim 15 or 16, wherein when the information is editable text, the processor specifically performs the following operations:
监测所述触摸轨迹的起点, 终点以及滑动方向。 Monitor the starting point, end point and sliding direction of the touch track.
18、 根据权利要求 17所述的终端设备, 其特征在于, 所述处理器具体执 行如下操作: 18. The terminal device according to claim 17, characterized in that the processor specifically executes Do the following:
当所述滑动方向为第一方向时,按照所述位置关系删除所述起点与所述终 点之间的文本; When the sliding direction is the first direction, delete the text between the starting point and the end point according to the positional relationship;
当所述滑动方向为第二方向时,按照所述位置关系恢复所述起点与所述终 点之间上一步被删除的文本; When the sliding direction is the second direction, restore the text deleted in the previous step between the starting point and the end point according to the position relationship;
其中, 所述第二方向与所述第一方向相反。 Wherein, the second direction is opposite to the first direction.
19、 根据权利要求 17或 18所述的终端设备, 其特征在于, 所述处理器还 执行如下操作: 19. The terminal device according to claim 17 or 18, characterized in that the processor also performs the following operations:
当所述滑动方向为第三方向时,删除所述可编辑文本中光标所在的整行文 本; When the sliding direction is the third direction, delete the entire line of text where the cursor is located in the editable text;
当所述滑动方向为第四方向时, 恢复上一步被删除的整行文本; When the sliding direction is the fourth direction, restore the entire line of text deleted in the previous step;
其中, 所述第四方向与所述第三方向相反。 Wherein, the fourth direction is opposite to the third direction.
20、 根据权利要求 15或 16所述的终端设备, 其特征在于, 当所述信息为 信息组时, 所述处理器具体执行如下操作: 20. The terminal device according to claim 15 or 16, characterized in that when the information is an information group, the processor specifically performs the following operations:
监测所述触摸轨迹的标记点以及滑动操作。 Monitor the mark points of the touch track and the sliding operation.
21、 根据权利要求 20所述的终端设备, 其特征在于, 所述处理器具体执 行如下操作: 21. The terminal device according to claim 20, characterized in that the processor specifically performs the following operations:
当所述滑动操作为向第四方向滑动时,按照所述位置关系删除滑动中经过 所述标记点的信息组; When the sliding operation is sliding in the fourth direction, delete the information group that passes the mark point during sliding according to the position relationship;
当所述滑动操作为向第三方向滑动时,按照所述位置关系恢复滑动中经过 所述标记点的上一步删除的信息组; When the sliding operation is sliding in the third direction, the information group deleted in the previous step of sliding through the mark point is restored according to the position relationship;
其中, 所述第四方向与所述第三方向相反。 Wherein, the fourth direction is opposite to the third direction.
+ +
PCT/CN2014/072249 2014-02-19 2014-02-19 Information processing method and terminal device WO2015123823A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2014/072249 WO2015123823A1 (en) 2014-02-19 2014-02-19 Information processing method and terminal device
CN201480000713.6A CN104169862B (en) 2014-02-19 2014-02-19 A kind of information processing method and terminal device
CN201711212839.1A CN108153720A (en) 2014-02-19 2014-02-19 A kind of information processing method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/072249 WO2015123823A1 (en) 2014-02-19 2014-02-19 Information processing method and terminal device

Publications (1)

Publication Number Publication Date
WO2015123823A1 true WO2015123823A1 (en) 2015-08-27

Family

ID=51912344

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/072249 WO2015123823A1 (en) 2014-02-19 2014-02-19 Information processing method and terminal device

Country Status (2)

Country Link
CN (2) CN108153720A (en)
WO (1) WO2015123823A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183310A (en) * 2015-08-26 2015-12-23 深圳市金立通信设备有限公司 Information editing method and terminal
CN105528157B (en) * 2015-12-10 2019-10-25 Oppo广东移动通信有限公司 A kind of multimedia content management method and user terminal
CN106775380A (en) * 2016-11-24 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Prevent error correction method, device and the mobile terminal of maloperation
CN107526520B (en) * 2017-07-31 2020-12-18 江苏知链科技有限公司 Search interaction method and device and computer readable storage medium
CN110209332A (en) * 2019-05-31 2019-09-06 维沃移动通信有限公司 A kind of information processing method and terminal device
CN110347318B (en) * 2019-06-27 2022-08-16 广州视睿电子科技有限公司 Handwriting drawing method, device, equipment and storage medium
CN110471600A (en) * 2019-08-22 2019-11-19 浙江诺诺网络科技有限公司 A kind of method for editing text, device and text editor
CN112612400B (en) * 2020-12-28 2022-05-24 维沃移动通信有限公司 Text content processing method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090066668A1 (en) * 2006-04-25 2009-03-12 Lg Electronics Inc. Terminal and method for entering command in the terminal
CN102331907A (en) * 2011-09-13 2012-01-25 中兴通讯股份有限公司 Character deleting method and device for terminal having touch screen, and terminal
CN102981765A (en) * 2012-11-26 2013-03-20 中兴通讯股份有限公司 Text processing method and terminal
CN103116461A (en) * 2013-01-25 2013-05-22 中兴通讯股份有限公司 Character handling method and terminal based on touch screen

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101429278B1 (en) * 2007-08-08 2014-08-11 삼성전자주식회사 Apparatus and method for providing character delete function
CN102053768A (en) * 2009-11-06 2011-05-11 康佳集团股份有限公司 Device and method for realizing character editing on touch equipment
WO2011055412A1 (en) * 2009-11-06 2011-05-12 Hitachi, Ltd. File management sub-system and file migration control method in hierarchical file system
CN102419683A (en) * 2010-09-28 2012-04-18 英业达股份有限公司 Editing operation system and method of pure text content
CN102609404A (en) * 2012-02-08 2012-07-25 刘津立 Document editing method realized through two-point touch technology
CN102866827B (en) * 2012-08-21 2016-03-23 刘炳林 The document edit method of a kind of human-computer interaction device and device
CN103136180A (en) * 2013-02-25 2013-06-05 北京极兴莱博信息科技有限公司 Text segment copying and pasting method and device and terminal for implementing same
CN103488392A (en) * 2013-09-03 2014-01-01 小米科技有限责任公司 Editing method and device used for editable content of touch screen, and terminal
CN103558985A (en) * 2013-11-14 2014-02-05 华为技术有限公司 Character recovery method and terminal equipment
CN103577052A (en) * 2013-11-15 2014-02-12 惠州Tcl移动通信有限公司 Method and system for conducting batched selection in information list through mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090066668A1 (en) * 2006-04-25 2009-03-12 Lg Electronics Inc. Terminal and method for entering command in the terminal
CN102331907A (en) * 2011-09-13 2012-01-25 中兴通讯股份有限公司 Character deleting method and device for terminal having touch screen, and terminal
CN102981765A (en) * 2012-11-26 2013-03-20 中兴通讯股份有限公司 Text processing method and terminal
CN103116461A (en) * 2013-01-25 2013-05-22 中兴通讯股份有限公司 Character handling method and terminal based on touch screen

Also Published As

Publication number Publication date
CN108153720A (en) 2018-06-12
CN104169862B (en) 2017-12-05
CN104169862A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
WO2015123823A1 (en) Information processing method and terminal device
US8686955B2 (en) Device, method, and graphical user interface for performing character entry
WO2019128732A1 (en) Icon management method and device
US8683363B2 (en) Device, method, and graphical user interface for managing user interface content and user interface elements
AU2023201816A1 (en) Device, method, and graphical user interface for managing concurrently open software applications
US8621379B2 (en) Device, method, and graphical user interface for creating and using duplicate virtual keys
US10606469B2 (en) Device, method, and graphical user interface for managing multiple display windows
KR101718253B1 (en) Device, method, and graphical user interface for entering characters
EP3683591B1 (en) Battery usage tracking user interface
AU2011323375B2 (en) Device, method, and graphical user interface for manipulating soft keyboards
US8347238B2 (en) Device, method, and graphical user interface for managing user interface content and user interface elements by dynamic snapping of user interface elements to alignment guides
WO2017054623A1 (en) Method and device for starting application program, and electronic device
US20110074830A1 (en) Device, Method, and Graphical User Interface Using Mid-Drag Gestures
US20110163967A1 (en) Device, Method, and Graphical User Interface for Changing Pages in an Electronic Document
WO2014206101A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
KR20150016415A (en) Gesture based graphical user interface for managing concurrently open software applications
WO2014003876A1 (en) Device, method, and graphical user interface for displaying a virtual keyboard
WO2020073980A1 (en) Method and device for processing guest application, and computer-readable storage medium
US20110074696A1 (en) Device, Method, and Graphical User Interface Using Mid-Drag Gestures
US9026951B2 (en) Device, method, and graphical user interface for selection of views in a three-dimensional map based on gesture inputs
CN102216897A (en) Apparatus and method for conditionally enabling or disabling soft buttons
EP3283941B1 (en) Avoiding accidental cursor movement when contacting a surface of a trackpad
CN104951227A (en) Electronic device of messaging and method thereof
WO2019218684A1 (en) Application partition processing method, device, and computer readable storage medium
WO2020227402A1 (en) Systems and methods for delete key gestures and providing continuous-path gestures at a touch-sensitive keyboard

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: 14883010

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14883010

Country of ref document: EP

Kind code of ref document: A1