WO2014169597A1 - Text erasure method and device - Google Patents

Text erasure method and device Download PDF

Info

Publication number
WO2014169597A1
WO2014169597A1 PCT/CN2013/085187 CN2013085187W WO2014169597A1 WO 2014169597 A1 WO2014169597 A1 WO 2014169597A1 CN 2013085187 W CN2013085187 W CN 2013085187W WO 2014169597 A1 WO2014169597 A1 WO 2014169597A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
touch point
erased
touch
erasing
Prior art date
Application number
PCT/CN2013/085187
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 中兴通讯股份有限公司
Publication of WO2014169597A1 publication Critical patent/WO2014169597A1/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Definitions

  • the present invention relates to the field of communications, and in particular to a text erasing method and apparatus.
  • text editing software in the related art generally adopts a method of first selecting a cursor to a specific location to be erased, and then clicking a preset delete button on a physical keyboard or a virtual keyboard. Each time you click, the cursor rolls back one space and erases one character.
  • a large number of characters need to be deleted on the display screen, there are multiple locations to be modified, for example: the user opens a text editing software on the IPAD and has edited a large amount of text, but subsequent discovery needs Fully modified, there will be a situation where the touch media moves back and forth on the touch screen.
  • the present invention provides a text erasing method and apparatus for solving at least the problems of cumbersome operation, low efficiency, and poor user experience when a mobile terminal in a related art performs text erasing in a text editing state. According to an aspect of the invention, a text erasing method is provided.
  • the text erasing method of the present invention includes: acquiring a first touch point on the touch screen, wherein the first touch point is a position where the cursor is located; and acquiring the second touch when the first touch point continuously keeps touching the touch screen Controlling the point, and determining to enter the text erasure mode according to the first touch point and the second touch point; acquiring a sliding track starting from the position of the first touch point in the text erasing mode, and according to the sliding track Determine the text to be erased for erasing.
  • a text erasing apparatus is provided.
  • the text erasing device of the present invention includes: an obtaining module, configured to acquire a first touch point on the touch screen, wherein the first touch point is a position of the cursor; and the determining module is configured to continuously maintain the touch at the first touch point When the touch screen is touched, the second touch point is obtained, and the text erase mode is determined according to the first touch point and the second touch point.
  • the erasing module is configured to acquire a sliding track starting from a position where the first touch point is located in the text erasing mode, and determine the text to be erased according to the sliding track to perform erasing.
  • the first touch point is obtained on the touch screen, and the first touch point is the position of the cursor; and the second touch point is obtained when the first touch point continues to touch the touch screen.
  • determining to enter the text erasure mode according to the first touch point and the second touch point acquiring a sliding track with the first touch point as a starting position in the text erasing mode, and determining to be wiped according to the sliding track
  • the erased text is erased, that is, the position of the cursor is first determined, and then the first touch point and the second touch point are successively touched by the touch screen to determine the entry into the text erase mode, and then follow the first touch point.
  • the text to be erased is determined for the sliding track of the starting position to be erased, thereby solving the problem that the mobile terminal in the related art performs text erasing in the text editing state, the operation is cumbersome and inefficient, and the user experience is relatively low. Poor problem, which enables users to erase text by multi-touch, improve the efficiency of text editing, and enhance user body. .
  • BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
  • FIG. 1 is a flow chart of a text erasing method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of text erasure based on multi-touch according to a preferred embodiment of the present invention
  • FIG. 4 is a block diagram showing the structure of a text erasing apparatus according to an embodiment of the present invention
  • FIG. 5 is a block diagram of a text erasing apparatus according to a preferred embodiment of the present invention
  • Step S102 Acquire a first touch point on a touch screen, where the first touch point is a location where the cursor is located
  • Step S104 Acquire a second touch point when the first touch point continues to touch the touch screen, and determine to enter the text erase mode according to the first touch point and the second touch point
  • Step S106 In the text In the erasing mode, a sliding track with the position of the first touch point as a starting position is obtained, and the text to be erased is determined according to the sliding track to be erased.
  • the operation is cumbersome, inefficient, and the user experience is poor.
  • the first touch point is obtained on the touch screen, and the first touch point is the position of the cursor; and the second touch is obtained when the first touch point continues to touch the touch screen.
  • Pointing and determining to enter the text erasure mode according to the first touch point and the second touch point; acquiring a sliding track starting from the position of the first touch point in the text erasing mode, and determining according to the sliding track
  • the text to be erased is erased, that is, the position of the cursor is first determined, and then the text erase mode is determined when the first touch point and the second touch point successively touch the touch screen, and then the first touch is followed.
  • the control point is determined by the sliding track of the starting position to erase the text to be erased, thereby solving the problem that the mobile terminal in the related art performs text erasing in the text editing state, and the operation is cumbersome and inefficient, and the user is Experience poorer problems, enabling users to erase text by multi-touch, improve the efficiency of text editing, and enhance user experience.
  • step S106 acquiring the sliding track, and determining the text to be erased according to the sliding track may include the following operations: Step S1: calculating first coordinate information of the starting position relative to the preset coordinate origin; Step S2: calculating The second coordinate information of the end position of the sliding track relative to the preset coordinate origin; Step S3: determining the text to be erased according to the first coordinate information and the second coordinate information.
  • Step S1 calculating first coordinate information of the starting position relative to the preset coordinate origin
  • Step S2 calculating The second coordinate information of the end position of the sliding track relative to the preset coordinate origin
  • Step S3 determining the text to be erased according to the first coordinate information and the second coordinate information.
  • the cursor is moved to the vicinity of the text area to be erased.
  • another finger for example, the thumb
  • the screen enters the text erase mode because the screen senses multi-touch.
  • erasing the text to be erased may include the following steps: Step S4: determining whether the first touch point and/or the second touch point leave the touch screen; Step S5: If yes, the text to be erased is erased, or it is determined that the text to be erased is in the selected state.
  • the above-described action when any of the two fingers of the operator in contact with the touch screen leaves the screen, the above-described action, once sensed by the screen, performs an exit text erase mode operation. Eventually, the text erase operation that the user has performed is officially in effect. Of course, the operator can also remove any one of the two fingers from the screen. After the above action is detected by the screen, it is determined that the text to be erased is selected and not actually erased, and waits for two. After the finger leaves the screen, the selected text is actually erased, which is no longer visible to the operator.
  • step S106 after the sliding track is acquired, and the text to be erased is determined according to the sliding track, the following operations may also be included: Step S6: acquiring a backtrack, wherein the backtrack is terminated from the sliding track The position starts to slide and is opposite to the direction of the sliding track; Step S7: Redisplay part or all of the text content in the text to be erased on the touch screen according to the retreat trajectory, or determine that part or all of the text content is in an unselected state.
  • the index finger after entering the text erasure mode, can be used to traverse a certain number of characters or a certain number of characters to be erased, whereby the above-mentioned characters enter an erased state.
  • the above characters are no longer visible, but the characters are not completely deleted, but are stored in the memory of the mobile terminal, so that the user's erroneous operation can be effectively prevented.
  • the index finger may simply perform the rollback operation according to the erased trajectory. The text that has been erased will be redisplayed.
  • acquiring the first touch point may include the following steps: Step S8: determining whether the contact time of the touch medium and the specific position in the text editing area exceeds a preset duration in the text editing state; Step S9: If yes, move the cursor to a specific location and determine the specific location as the first touchpoint.
  • a text editing state for example, SMS editing
  • a finger of the user for example, an index finger
  • the fingertip is touched.
  • the cursor is displayed nearby, and an enlarged area is displayed to display the text content near the cursor and its location. At this time, the position of the cursor is the first touch point.
  • FIG. 2 is a schematic diagram of text erasure based on multi-touch according to a preferred embodiment of the present invention.
  • the operator's right hand 102 is located above the text edit box 101, and the operator uses the index finger 104 to select the fine adjustment to place the cursor 105 in the proper position (ie, the operator wants Erase the text near the cursor position, which is equivalent to the first touch point above.
  • the position 108 of the current cursor can be more clearly seen.
  • the current position of the cursor can be finely adjusted by the small sliding of the index finger 104 (the first touch point changes accordingly).
  • the touch screen When the operator's thumb 103 touches the touch screen (here equivalent to the second touch point described above), the touch screen thereby determines to enter the text erase (delete) mode.
  • the operator's index finger 104 slides to the left to select the text area 107 to be deleted, that is, equivalent to successively tapping the Backspace key back. If the user finds that the deleted text is more internal than the number of words that he wants to erase (for example: the original operator wants to delete the text as "one side down the world, there should be”, but the actual operation will cause a misoperation.
  • the operator can slide the character in the opposite direction at the current position of the cursor (ie, perform the retracting operation) to redisplay the character that has just been erased, or to be in the unselected state again.
  • the mobile terminal can obtain the text content selected by the operator for erasing by calculating the coordinates (xl, y l ) of the starting position of the sliding operation and the coordinates (x2, y2) of the current stopping position of the sliding operation.
  • FIG. 3 is a schematic diagram of state transition based on multi-touch text erasure in accordance with a preferred embodiment of the present invention.
  • a normal mode ie, a common text editing interface presented to the user
  • a location selection mode ie, by the user touching the screen with one finger and fine-tuning the movement at the fingertips
  • the text erase mode ie, by the user touching the screen with one finger and fine-tuning the movement at the fingertips
  • the technical solution provided by the embodiment of the present invention is to perform conversion between the above three different modes.
  • the specific conversion process is as follows:
  • FIG. 4 is a block diagram showing the structure of a text erasing apparatus according to an embodiment of the present invention. As shown in FIG.
  • the text erasing apparatus may include: an acquiring module 10, configured to acquire a first touch point on the touch screen, wherein the first touch point is a location of the cursor; and the determining module 20 is set to be in the first When the touch point continues to touch the touch screen, the second touch point is obtained, and the text erase mode is determined according to the first touch point and the second touch point; the erasing module 30 is set to wipe in the text In addition to the mode, a sliding track with the position of the first touch point as a starting position is obtained, and the text to be erased is determined according to the sliding track to be erased.
  • an acquiring module 10 configured to acquire a first touch point on the touch screen, wherein the first touch point is a location of the cursor
  • the determining module 20 is set to be in the first
  • the erasing module 30 is set to wipe in the text
  • a sliding track with the position of the first touch point as a starting position is obtained, and the text to be erased is determined according to the sliding track to be
  • the touch method realizes the erasing operation of the text, improves the efficiency of the user for text editing, and improves the user experience.
  • FIG. 4 illustrates the problem that the mobile terminal in the related art performs the text erasing in the text editing state, the operation is cumbersome, the efficiency is low, and the user experience is poor, thereby enabling the user to pass multiple points.
  • the touch method realizes the erasing operation of the text, improves the efficiency of the user for text editing, and improves the user experience.
  • the erasing module 30 may include: a first calculating unit 300 configured to calculate first coordinate information of a starting position relative to a preset coordinate origin; and a second calculating unit 302 configured to calculate a sliding The second coordinate information of the end position of the track relative to the origin of the preset coordinate; the first determining unit 304 is configured to determine the text to be erased according to the first coordinate information and the second coordinate information.
  • a first calculating unit 300 configured to calculate first coordinate information of a starting position relative to a preset coordinate origin
  • a second calculating unit 302 configured to calculate a sliding The second coordinate information of the end position of the track relative to the origin of the preset coordinate
  • the first determining unit 304 is configured to determine the text to be erased according to the first coordinate information and the second coordinate information.
  • the erasing module 30 may include: a first determining unit 306, configured to determine whether the first touch point and/or the second touch point leave the touch screen; and the erasing unit 308 is configured to be in When the output of the first judging unit is YES, the text to be erased is erased, or it is determined that the text to be erased is in the selected state.
  • a first determining unit 306 configured to determine whether the first touch point and/or the second touch point leave the touch screen
  • the erasing unit 308 is configured to be in When the output of the first judging unit is YES, the text to be erased is erased, or it is determined that the text to be erased is in the selected state.
  • the erasing module 30 may include: an acquiring unit 310 configured to acquire a retreating trajectory, wherein the retreating trajectory starts to slide from the end position of the sliding trajectory and is opposite to the direction of the sliding trajectory;
  • the unit 312 is configured to redisplay part or all of the text content in the text to be erased on the touch screen according to the rewinding track, or to determine that part or all of the text content is in an unselected state.
  • an acquiring unit 310 configured to acquire a retreating trajectory, wherein the retreating trajectory starts to slide from the end position of the sliding trajectory and is opposite to the direction of the sliding trajectory
  • the unit 312 is configured to redisplay part or all of the text content in the text to be erased on the touch screen according to the rewinding track, or to determine that part or all of the text content is in an unselected state.
  • the obtaining module 10 may further include: a second determining unit 102 configured to determine, in the text editing state, whether the contact time of the touch medium with a specific position in the text editing area exceeds a preset time
  • the second determining unit 104 is configured to move the cursor to the specific position when the output of the second determining unit is YES, and determine the specific position as the first touch point.
  • a text erasing method and apparatus provided by an embodiment of the present invention have the following beneficial effects: enabling a user to perform a text erasing operation by means of multi-touch, thereby improving the efficiency of text editing by a user At the same time, enhance the user experience.

Abstract

Disclosed are a text erasure method and device. The method comprises: acquiring a first touch control point on a touchscreen, wherein the first touch control point is a location where a cursor is located; in the case that the first touch control point continuously keeps touching the touchscreen, acquiring a second touch control point, and determining to enter a text erasure mode according to the first touch control point and the second touch control point; and in the text erasure mode, acquiring a sliding track which takes the location where the first touch control point is located as a start location, and determining text to be erased for erasure according to the sliding track. According to the technical solution provided in the present invention, a user is enabled to realize a text erasure operation in a multipoint touch control manner, thereby improving the efficiency for the user to perform text editing, and improving the user experience at the same time.

Description

文本擦除方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种文本擦除方法及装置。 背景技术 目前, 相关技术中的文本编辑软件在进行文本擦除时, 通常采用的方式是先将光 标选中到待擦除的具体位置, 然后再点击物理键盘或虚拟键盘上预设的删除按键, 每 点击一次, 光标即回退一格, 进而擦除一个字符。 然而, 上述方式在遇到显示屏上有 大段字符需要删除的情况下, 即存在多处位置需要修改, 例如: 用户在 IPAD上打开 文本编辑软件已经编辑了一大段文字, 但后续发现需要全面修改, 此时即会出现触摸 介质在触摸屏上来回移动的情况, 对于操作者而言, 会感到其操作十分繁琐且效率低 下, 用户体验较差。 由此可见, 相关技术中的移动终端在文本编辑状态下进行文本擦除时, 其操作较 为繁琐、 效率低下, 用户体验较差。 发明内容 本发明提供了一种文本擦除方法及装置, 以至少解决相关技术中的移动终端在文 本编辑状态下进行文本擦除时, 其操作较为繁琐、 效率低下, 用户体验较差的问题。 根据本发明的一个方面, 提供了一种文本擦除方法。 本发明的文本擦除方法包括: 在触摸屏上获取第一触控点, 其中, 第一触控点为 光标所在位置; 在第一触控点持续保持触碰触摸屏的情况下, 获取第二触控点, 并根 据第一触控点和第二触控点确定进入文本擦除模式; 在文本擦除模式下获取以第一触 控点所在位置为起始位置的滑动轨迹, 并根据滑动轨迹确定待擦除的文本进行擦除。 根据本发明的另一方面, 提供了一种文本擦除装置。 本发明的文本擦除装置包括: 获取模块, 设置为在触摸屏上获取第一触控点, 其 中, 第一触控点为光标所在位置; 确定模块, 设置为在第一触控点持续保持触碰触摸 屏的情况下, 获取第二触控点, 并根据第一触控点和第二触控点确定进入文本擦除模 式; 擦除模块, 设置为在文本擦除模式下获取以第一触控点所在位置为起始位置的滑 动轨迹, 并根据滑动轨迹确定待擦除的文本进行擦除。 通过本发明实施例, 采用在触摸屏上获取第一触控点, 该第一触控点为光标所在 位置; 在第一触控点持续保持触碰触摸屏的情况下, 获取第二触控点, 并根据第一触 控点和第二触控点确定进入文本擦除模式; 在文本擦除模式下获取以第一触控点所在 位置为起始位置的滑动轨迹, 并根据滑动轨迹确定待擦除的文本进行擦除, 即首先确 定光标所在位置, 其次在第一触控点和第二触控点相继触碰触摸屏的情况下确定进入 文本擦除模式, 然后再按照从第一触控点为起始位置的滑动轨迹确定待擦除的文本从 而进行擦除, 由此解决了相关技术中的移动终端在文本编辑状态下进行文本擦除时, 其操作较为繁琐、 效率低下, 用户体验较差的问题, 进而使用户能够通过多点触控的 方式实现文本的擦除操作, 提高用户进行文本编辑的效率, 同时提升用户体验。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的文本擦除方法的流程图; 图 2是根据本发明优选实施例的基于多点触控进行文本擦除的示意图; 图 3是根据本发明优选实施例的基于多点触控进行文本擦除的状态迁移示意图; 图 4是根据本发明实施例的文本擦除装置的结构框图; 图 5是根据本发明优选实施例的文本擦除装置的结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 图 1是根据本发明实施例的文本擦除方法的流程图。 如图 1所示, 该方法可以包 括以下处理步骤: 步骤 S102: 在触摸屏上获取第一触控点, 其中, 第一触控点为光标所在位置; 步骤 S104: 在第一触控点持续保持触碰触摸屏的情况下, 获取第二触控点, 并根 据第一触控点和第二触控点确定进入文本擦除模式; 步骤 S106: 在文本擦除模式下获取以第一触控点所在位置为起始位置的滑动轨 迹, 并根据滑动轨迹确定待擦除的文本进行擦除。 相关技术中, 移动终端在文本编辑状态下进行文本擦除时, 其操作较为繁琐、 效 率低下, 用户体验较差。 采用如图 1所示的方法, 在触摸屏上获取第一触控点, 该第 一触控点为光标所在位置; 在第一触控点持续保持触碰触摸屏的情况下, 获取第二触 控点, 并根据第一触控点和第二触控点确定进入文本擦除模式; 在文本擦除模式下获 取以第一触控点所在位置为起始位置的滑动轨迹, 并根据滑动轨迹确定待擦除的文本 进行擦除, 即首先确定光标所在位置, 其次在第一触控点和第二触控点相继触碰触摸 屏的情况下确定进入文本擦除模式, 然后再按照从第一触控点为起始位置的滑动轨迹 确定待擦除的文本从而进行擦除, 由此解决了相关技术中的移动终端在文本编辑状态 下进行文本擦除时, 其操作较为繁琐、 效率低下, 用户体验较差的问题, 进而使用户 能够通过多点触控的方式实现文本的擦除操作, 提高用户进行文本编辑的效率, 同时 提升用户体验。 优选地, 在步骤 S106中, 获取滑动轨迹, 并根据滑动轨迹确定待擦除的文本可以 包括以下操作: 步骤 S1 : 计算起始位置相对于预设坐标原点的第一坐标信息; 步骤 S2: 计算滑动轨迹的终止位置相对于预设坐标原点的第二坐标信息; 步骤 S3: 根据第一坐标信息和第二坐标信息确定待擦除的文本。 在优选实施例中, 当需要擦除某几段文字或者某几个文字时, 只要将光标移动到 需要擦除的文字区域附近。 此时, 再使用另外一根手指(例如: 大姆指)触碰触摸屏, 由于屏幕感应到多点触控, 因而进入到文本擦除模式。 在文本擦除模式下, 移动终端 可以通过计算滑动操作起始位置的坐标信息 (xl, yl ) 以及滑动操作当前停止位置的 坐标信息 (x2, y2) 从而获取操作者选中的文本内容作为待擦除的文本。 优选地, 在步骤 S106中, 对待擦除的文本进行擦除可以包括以下步骤: 步骤 S4: 判断第一触控点和 /或第二触控点是否离开触摸屏; 步骤 S5 : 如果是, 则对待擦除的文本进行擦除, 或者, 确定待擦除的文本处于选 中状态。 在优选实施例中, 当操作者与触摸屏接触的两根手指中的任一根手指离开屏幕, 上述动作一旦被屏幕感应到以后, 即会执行退出文本擦除模式操作。 最终, 用户已经 执行的文本擦除操作正式生效。 当然还可以在操作者将两根手指中的任一根手指离开 屏幕, 上述动作一旦被屏幕感应到以后, 先确定待擦除的文本处于选中状态而并未被 真正擦除, 而等到两根手指均离开屏幕之后, 被选中的文本才被真正擦除, 即对操作 者不再可见。 优选地, 在步骤 S106中, 在获取滑动轨迹, 并根据滑动轨迹确定待擦除的文本之 后, 还可以包括以下操作: 步骤 S6: 获取回退轨迹, 其中, 回退轨迹是从滑动轨迹的终止位置开始滑动并且 与滑动轨迹的方向相反; 步骤 S7:根据回退轨迹重新在触摸屏上显示待擦除的文本中的部分或全部文本内 容, 或者, 确定部分或全部文本内容处于未选中状态。 在优选实施例中, 当进入文本擦除模式之后, 可以使用食指划过想要擦除的某几 段文字或者某几个文字, 由此上述文字即进入擦除状态。 此时对于操作者而言, 上述 文字不再可见, 但是这些文字并没有被彻底删除, 而是被存储在移动终端的内存中, 从而能够有效地防止用户的误操作。 当由于用户的误操作造成原本希望保留的文字被 一同擦除时, 如果用户想要还原前一时刻多余擦除的文字, 只需将食指按照擦除的轨 迹执行回退操作即可, 此时原本已经被擦除的文字又会重新显示出来。 优选地, 在步骤 S102中, 获取第一触控点可以包括以下步骤: 步骤 S8:在文本编辑状态下判断触摸介质与文本编辑区域内的特定位置的接触时 间是否超过预设时长; 步骤 S9: 如果是, 则将光标移动至特定位置, 并将特定位置确定为第一触控点。 在优选实施例中, 当移动终端的触摸屏处于文本编辑状态下 (例如: 短信编辑), 当用户的一根手指 (例如: 食指) 长按文本编辑框内的特定位置, 即会在指尖触摸附 近显示光标, 并且产生一个放大区域显示光标及其所在位置附近的文本内容。 此时光 标所在位置即为上述第一触控点。 作为本发明的一个优选实施方式, 图 2是根据本发明优选实施例的基于多点触控 进行文本擦除的示意图。 如图 2所示, 在该优选实施例中, 操作者的右手 102位于文 本编辑框 101的上方, 该操作者使用食指 104通过选中微调以使光标 105处于合适的 位置 (即该操作者想要擦除光标所在位置附近的文字, 此处相当于上述第一触控点)。 在放大区域显示中, 可以更清楚地看到当前光标所处位置 108, 此时, 通过食指 104 的小幅滑动, 可以对光标当前的位置加以微调(上述第一触控点随之变动)。 当操作者 的大姆指 103触碰到触摸屏时(此处相当于上述第二触控点),触摸屏由此确定进入文 本擦除 (删除) 模式。 在该优选实施例中, 操作者的食指 104向左滑动选中待删除的 文本区域 107, 即相当于连续敲击多次 Backspace键回档。如果用户发现已删除的文本 内部多于想要擦除的文字数量(例如: 原本操作者想要删除的文字为"一面降赦天下罪 囚, 应有", 但实际操作过程中产生误操作将": "也一同擦除)。 此时, 操作者可以通 过在光标当前所在位置向相反方向滑动 (即执行回退操作) 以使刚才被误擦除的字符 得以重新显示, 或者重新处于不被选中的状态。 在文本擦除模式下, 移动终端可以通 过计算滑动操作起始位置的坐标 (xl, yl ) 以及滑动操作当前停止位置的坐标 (x2, y2) 从而获取操作者选中的文本内容进行擦除。 当触摸屏感应到大拇指和食指中的任 一根手指离开屏幕时, 随即退出擦除模式, 操作者之前选中的文字得以擦除或者之前 已经擦除的文字得以确认。 从另一个角度看, 图 3是根据本发明优选实施例的基于多点触控进行文本擦除的 状态迁移示意图。 如图 3所示, 在该优选实施例中, 存在普通模式 (即常见的呈现给 用户的文本编辑界面)、位置选择模式(即通过用户采用一根手指触碰屏幕并微调移动 会在指尖触摸附近显示光标, 并且产生一个放大区域显示光标及其所在位置附近的文 本内容) 以及文本擦除模式。 本发明实施例所提供的技术方案即为在上述三种不同模 式之间进行转换。 具体转换过程如下: The present invention relates to the field of communications, and in particular to a text erasing method and apparatus. BACKGROUND OF THE INVENTION Currently, text editing software in the related art generally adopts a method of first selecting a cursor to a specific location to be erased, and then clicking a preset delete button on a physical keyboard or a virtual keyboard. Each time you click, the cursor rolls back one space and erases one character. However, in the case that a large number of characters need to be deleted on the display screen, there are multiple locations to be modified, for example: the user opens a text editing software on the IPAD and has edited a large amount of text, but subsequent discovery needs Fully modified, there will be a situation where the touch media moves back and forth on the touch screen. For the operator, the operation is very cumbersome and inefficient, and the user experience is poor. It can be seen that when the mobile terminal in the related art performs text erasing in the text editing state, the operation is cumbersome, inefficient, and the user experience is poor. SUMMARY OF THE INVENTION The present invention provides a text erasing method and apparatus for solving at least the problems of cumbersome operation, low efficiency, and poor user experience when a mobile terminal in a related art performs text erasing in a text editing state. According to an aspect of the invention, a text erasing method is provided. The text erasing method of the present invention includes: acquiring a first touch point on the touch screen, wherein the first touch point is a position where the cursor is located; and acquiring the second touch when the first touch point continuously keeps touching the touch screen Controlling the point, and determining to enter the text erasure mode according to the first touch point and the second touch point; acquiring a sliding track starting from the position of the first touch point in the text erasing mode, and according to the sliding track Determine the text to be erased for erasing. According to another aspect of the present invention, a text erasing apparatus is provided. The text erasing device of the present invention includes: an obtaining module, configured to acquire a first touch point on the touch screen, wherein the first touch point is a position of the cursor; and the determining module is configured to continuously maintain the touch at the first touch point When the touch screen is touched, the second touch point is obtained, and the text erase mode is determined according to the first touch point and the second touch point. The erasing module is configured to acquire a sliding track starting from a position where the first touch point is located in the text erasing mode, and determine the text to be erased according to the sliding track to perform erasing. According to the embodiment of the present invention, the first touch point is obtained on the touch screen, and the first touch point is the position of the cursor; and the second touch point is obtained when the first touch point continues to touch the touch screen. And determining to enter the text erasure mode according to the first touch point and the second touch point; acquiring a sliding track with the first touch point as a starting position in the text erasing mode, and determining to be wiped according to the sliding track The erased text is erased, that is, the position of the cursor is first determined, and then the first touch point and the second touch point are successively touched by the touch screen to determine the entry into the text erase mode, and then follow the first touch point. The text to be erased is determined for the sliding track of the starting position to be erased, thereby solving the problem that the mobile terminal in the related art performs text erasing in the text editing state, the operation is cumbersome and inefficient, and the user experience is relatively low. Poor problem, which enables users to erase text by multi-touch, improve the efficiency of text editing, and enhance user body. . BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a flow chart of a text erasing method according to an embodiment of the present invention; FIG. 2 is a schematic diagram of text erasure based on multi-touch according to a preferred embodiment of the present invention; FIG. 4 is a block diagram showing the structure of a text erasing apparatus according to an embodiment of the present invention; FIG. 5 is a block diagram of a text erasing apparatus according to a preferred embodiment of the present invention; Structure diagram. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. 1 is a flow chart of a text erasing method in accordance with an embodiment of the present invention. As shown in FIG. 1 , the method may include the following processing steps: Step S102: Acquire a first touch point on a touch screen, where the first touch point is a location where the cursor is located; Step S104: Acquire a second touch point when the first touch point continues to touch the touch screen, and determine to enter the text erase mode according to the first touch point and the second touch point; Step S106: In the text In the erasing mode, a sliding track with the position of the first touch point as a starting position is obtained, and the text to be erased is determined according to the sliding track to be erased. In the related art, when the mobile terminal performs text erasing in the text editing state, the operation is cumbersome, inefficient, and the user experience is poor. Using the method shown in FIG. 1 , the first touch point is obtained on the touch screen, and the first touch point is the position of the cursor; and the second touch is obtained when the first touch point continues to touch the touch screen. Pointing, and determining to enter the text erasure mode according to the first touch point and the second touch point; acquiring a sliding track starting from the position of the first touch point in the text erasing mode, and determining according to the sliding track The text to be erased is erased, that is, the position of the cursor is first determined, and then the text erase mode is determined when the first touch point and the second touch point successively touch the touch screen, and then the first touch is followed. The control point is determined by the sliding track of the starting position to erase the text to be erased, thereby solving the problem that the mobile terminal in the related art performs text erasing in the text editing state, and the operation is cumbersome and inefficient, and the user is Experience poorer problems, enabling users to erase text by multi-touch, improve the efficiency of text editing, and enhance user experience. Preferably, in step S106, acquiring the sliding track, and determining the text to be erased according to the sliding track may include the following operations: Step S1: calculating first coordinate information of the starting position relative to the preset coordinate origin; Step S2: calculating The second coordinate information of the end position of the sliding track relative to the preset coordinate origin; Step S3: determining the text to be erased according to the first coordinate information and the second coordinate information. In a preferred embodiment, when it is desired to erase a certain number of characters or a certain number of characters, the cursor is moved to the vicinity of the text area to be erased. At this time, another finger (for example, the thumb) is touched on the touch screen, and the screen enters the text erase mode because the screen senses multi-touch. In the text erasing mode, the mobile terminal can obtain the text content selected by the operator as the object to be erased by calculating the coordinate information (xl, yl ) of the start position of the sliding operation and the coordinate information (x2, y2) of the current stop position of the sliding operation. Except the text. Preferably, in step S106, erasing the text to be erased may include the following steps: Step S4: determining whether the first touch point and/or the second touch point leave the touch screen; Step S5: If yes, the text to be erased is erased, or it is determined that the text to be erased is in the selected state. In a preferred embodiment, when any of the two fingers of the operator in contact with the touch screen leaves the screen, the above-described action, once sensed by the screen, performs an exit text erase mode operation. Eventually, the text erase operation that the user has performed is officially in effect. Of course, the operator can also remove any one of the two fingers from the screen. After the above action is detected by the screen, it is determined that the text to be erased is selected and not actually erased, and waits for two. After the finger leaves the screen, the selected text is actually erased, which is no longer visible to the operator. Preferably, in step S106, after the sliding track is acquired, and the text to be erased is determined according to the sliding track, the following operations may also be included: Step S6: acquiring a backtrack, wherein the backtrack is terminated from the sliding track The position starts to slide and is opposite to the direction of the sliding track; Step S7: Redisplay part or all of the text content in the text to be erased on the touch screen according to the retreat trajectory, or determine that part or all of the text content is in an unselected state. In a preferred embodiment, after entering the text erasure mode, the index finger can be used to traverse a certain number of characters or a certain number of characters to be erased, whereby the above-mentioned characters enter an erased state. At this time, for the operator, the above characters are no longer visible, but the characters are not completely deleted, but are stored in the memory of the mobile terminal, so that the user's erroneous operation can be effectively prevented. When the text originally intended to be retained is erased together due to the user's misoperation, if the user wants to restore the erased text at the previous moment, the index finger may simply perform the rollback operation according to the erased trajectory. The text that has been erased will be redisplayed. Preferably, in step S102, acquiring the first touch point may include the following steps: Step S8: determining whether the contact time of the touch medium and the specific position in the text editing area exceeds a preset duration in the text editing state; Step S9: If yes, move the cursor to a specific location and determine the specific location as the first touchpoint. In a preferred embodiment, when the touch screen of the mobile terminal is in a text editing state (for example, SMS editing), when a finger of the user (for example, an index finger) presses a specific position in the text edit box, the fingertip is touched. The cursor is displayed nearby, and an enlarged area is displayed to display the text content near the cursor and its location. At this time, the position of the cursor is the first touch point. As a preferred embodiment of the present invention, FIG. 2 is a schematic diagram of text erasure based on multi-touch according to a preferred embodiment of the present invention. As shown in FIG. 2, in the preferred embodiment, the operator's right hand 102 is located above the text edit box 101, and the operator uses the index finger 104 to select the fine adjustment to place the cursor 105 in the proper position (ie, the operator wants Erase the text near the cursor position, which is equivalent to the first touch point above. In the enlarged area display, the position 108 of the current cursor can be more clearly seen. At this time, the current position of the cursor can be finely adjusted by the small sliding of the index finger 104 (the first touch point changes accordingly). When the operator's thumb 103 touches the touch screen (here equivalent to the second touch point described above), the touch screen thereby determines to enter the text erase (delete) mode. In the preferred embodiment, the operator's index finger 104 slides to the left to select the text area 107 to be deleted, that is, equivalent to successively tapping the Backspace key back. If the user finds that the deleted text is more internal than the number of words that he wants to erase (for example: the original operator wants to delete the text as "one side down the world, there should be", but the actual operation will cause a misoperation. ": " Also erased together.) At this time, the operator can slide the character in the opposite direction at the current position of the cursor (ie, perform the retracting operation) to redisplay the character that has just been erased, or to be in the unselected state again. In the text erasing mode, the mobile terminal can obtain the text content selected by the operator for erasing by calculating the coordinates (xl, y l ) of the starting position of the sliding operation and the coordinates (x2, y2) of the current stopping position of the sliding operation. When the touch screen senses that any of the thumb and forefinger leaves the screen, the erase mode is exited, and the previously selected text of the operator is erased or the previously erased text is confirmed. Viewed from another perspective, FIG. 3 is a schematic diagram of state transition based on multi-touch text erasure in accordance with a preferred embodiment of the present invention. As shown in FIG. 3, in the preferred embodiment, there is a normal mode (ie, a common text editing interface presented to the user), a location selection mode (ie, by the user touching the screen with one finger and fine-tuning the movement at the fingertips) Touch the nearby display cursor and generate an enlarged area to display the text content near the cursor and its location) and the text erase mode. The technical solution provided by the embodiment of the present invention is to perform conversion between the above three different modes. The specific conversion process is as follows:
( 1 )从普通模式转换至位置选择模式: 通过用户采用食指触碰屏幕并微调移动便 会从普通模式转换至位置选择模式, 此时, 会在指尖触摸附近显示光标, 并且产生一 个放大区域显示光标及其所在位置附近的文本内容; (1) Switching from normal mode to position selection mode: When the user touches the screen with the index finger and fine-tunes the movement, it switches from the normal mode to the position selection mode. At this time, the cursor is displayed near the fingertip touch, and an enlarged area is generated. Display the text content near the cursor and its location;
(2)从位置选择模式转换至普通模式: 当用户将食指移开屏幕之后, 便会从位置 选择模式转换至普通模式; (2) Switching from the position selection mode to the normal mode: When the user moves the index finger away from the screen, the mode is switched from the position selection mode to the normal mode;
( 3 )从位置选择模式转换至文本擦除模式: 在用户使用食指触碰屏幕的同时, 又 使用另外一根手指 (例如: 大拇指) 触碰触摸屏, 由于屏幕感应到多点触控, 因而从 位置选择模式转换至文本擦除模式; (4)从文本擦除模式转换至位置选择模式: 当用户与触摸屏接触的两根手指中的 任一根手指离开屏幕, 上述动作一旦被屏幕感应到以后, 即会执行退出文本擦除模式 操作; 在该优选实施例中, 假设用户的食指继续保持触碰屏幕的状态, 而大拇指先离 开屏幕, 此时, 便会从文本擦除模式转换至位置选择模式; ( 5 )从文本擦除模式转换至普通模式: 在该优选实施例中, 假设用户的大拇指继 续保持触碰屏幕的状态, 而食指先离开屏幕, 此时, 便会从文本擦除模式转换至普通 模式。 图 4是根据本发明实施例的文本擦除装置的结构框图。 如图 4所示, 该文本擦除 装置可以包括: 获取模块 10, 设置为在触摸屏上获取第一触控点, 其中, 第一触控点 为光标所在位置; 确定模块 20, 设置为在第一触控点持续保持触碰触摸屏的情况下, 获取第二触控点, 并根据第一触控点和第二触控点确定进入文本擦除模式; 擦除模块 30, 设置为在文本擦除模式下获取以第一触控点所在位置为起始位置的滑动轨迹, 并 根据滑动轨迹确定待擦除的文本进行擦除。 采用如图 4所示的装置, 解决了相关技术中的移动终端在文本编辑状态下进行文 本擦除时, 其操作较为繁琐、 效率低下, 用户体验较差的问题, 进而使用户能够通过 多点触控的方式实现文本的擦除操作, 提高用户进行文本编辑的效率, 同时提升用户 体验。 优选地, 如图 5所示, 擦除模块 30可以包括: 第一计算单元 300, 设置为计算起 始位置相对于预设坐标原点的第一坐标信息; 第二计算单元 302, 设置为计算滑动轨 迹的终止位置相对于预设坐标原点的第二坐标信息; 第一确定单元 304, 设置为根据 第一坐标信息和第二坐标信息确定待擦除的文本。 优选地, 如图 5所示, 擦除模块 30可以包括: 第一判断单元 306, 设置为判断第 一触控点和 /或第二触控点是否离开触摸屏; 擦除单元 308, 设置为在第一判断单元输 出为是时, 对待擦除的文本进行擦除, 或者, 确定待擦除的文本处于选中状态。 优选地, 如图 5所示, 擦除模块 30可以包括: 获取单元 310, 设置为获取回退轨 迹, 其中, 回退轨迹是从滑动轨迹的终止位置开始滑动并且与滑动轨迹的方向相反; 处理单元 312, 设置为根据回退轨迹重新在触摸屏上显示待擦除的文本中的部分或全 部文本内容, 或者, 确定部分或全部文本内容处于未选中状态。 优选地, 如图 5所示, 获取模块 10可以包括: 第二判断单元 102, 设置为在文本 编辑状态下判断触摸介质与文本编辑区域内的特定位置的接触时间是否超过预设时 长; 第二确定单元 104, 设置为在第二判断单元输出为是时, 将光标移动至特定位置, 并将特定位置确定为第一触控点。 从以上的描述中, 可以看出, 上述实施例实现了如下技术效果 (需要说明的是这 些效果是某些优选实施例可以达到的效果):本发明实施例所提供的通过采用多点触控 的方式实现文本擦除的功能, 使得整个操作过程更加流畅自然, 特别是针对在移动终 端的触摸屏上出现大量字符需要更改的情况下, 其文本擦除效果尤为明显。 工业实用性 如上所述, 本发明实施例提供的一种文本擦除方法及装置具有以下有益效果: 使 用户能够通过多点触控的方式实现文本的擦除操作, 提高用户进行文本编辑的效率, 同时提升用户体验。 通过采用多点触控的方式实现文本擦除的功能, 使得整个操作过 程更加流畅自然,特别是针对在移动终端的触摸屏上出现大量字符需要更改的情况下, 其文本擦除效果尤为明显。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 (3) Switching from the position selection mode to the text erasure mode: When the user touches the screen with the index finger, the user touches the touch screen with another finger (for example, a thumb), because the screen senses multi-touch, Switch from position selection mode to text erase mode; (4) Switching from the text erase mode to the position selection mode: When any one of the two fingers that the user touches the touch screen leaves the screen, the above-mentioned action is performed after the screen is sensed, and the exit text erase mode operation is performed. In the preferred embodiment, it is assumed that the user's index finger continues to touch the state of the screen, and the thumb leaves the screen first, and then the text erase mode is switched to the position selection mode; (5) erasing from text Mode Switching to Normal Mode: In the preferred embodiment, it is assumed that the user's thumb continues to remain in touch with the screen, and the index finger leaves the screen first, at which point the text erase mode is switched to the normal mode. 4 is a block diagram showing the structure of a text erasing apparatus according to an embodiment of the present invention. As shown in FIG. 4, the text erasing apparatus may include: an acquiring module 10, configured to acquire a first touch point on the touch screen, wherein the first touch point is a location of the cursor; and the determining module 20 is set to be in the first When the touch point continues to touch the touch screen, the second touch point is obtained, and the text erase mode is determined according to the first touch point and the second touch point; the erasing module 30 is set to wipe in the text In addition to the mode, a sliding track with the position of the first touch point as a starting position is obtained, and the text to be erased is determined according to the sliding track to be erased. The device shown in FIG. 4 solves the problem that the mobile terminal in the related art performs the text erasing in the text editing state, the operation is cumbersome, the efficiency is low, and the user experience is poor, thereby enabling the user to pass multiple points. The touch method realizes the erasing operation of the text, improves the efficiency of the user for text editing, and improves the user experience. Preferably, as shown in FIG. 5, the erasing module 30 may include: a first calculating unit 300 configured to calculate first coordinate information of a starting position relative to a preset coordinate origin; and a second calculating unit 302 configured to calculate a sliding The second coordinate information of the end position of the track relative to the origin of the preset coordinate; the first determining unit 304 is configured to determine the text to be erased according to the first coordinate information and the second coordinate information. Preferably, as shown in FIG. 5, the erasing module 30 may include: a first determining unit 306, configured to determine whether the first touch point and/or the second touch point leave the touch screen; and the erasing unit 308 is configured to be in When the output of the first judging unit is YES, the text to be erased is erased, or it is determined that the text to be erased is in the selected state. Preferably, as shown in FIG. 5, the erasing module 30 may include: an acquiring unit 310 configured to acquire a retreating trajectory, wherein the retreating trajectory starts to slide from the end position of the sliding trajectory and is opposite to the direction of the sliding trajectory; The unit 312 is configured to redisplay part or all of the text content in the text to be erased on the touch screen according to the rewinding track, or to determine that part or all of the text content is in an unselected state. Preferably, as shown in FIG. 5, the obtaining module 10 may further include: a second determining unit 102 configured to determine, in the text editing state, whether the contact time of the touch medium with a specific position in the text editing area exceeds a preset time The second determining unit 104 is configured to move the cursor to the specific position when the output of the second determining unit is YES, and determine the specific position as the first touch point. From the above description, it can be seen that the foregoing embodiment achieves the following technical effects (it is required that the effects are achievable by some preferred embodiments): the multi-touch is adopted by the embodiment of the present invention. The method of text erasing makes the whole operation process smoother and more natural, especially for the case where a large number of characters need to be changed on the touch screen of the mobile terminal, the text erasing effect is particularly obvious. INDUSTRIAL APPLICABILITY As described above, a text erasing method and apparatus provided by an embodiment of the present invention have the following beneficial effects: enabling a user to perform a text erasing operation by means of multi-touch, thereby improving the efficiency of text editing by a user At the same time, enhance the user experience. The function of text erasure is realized by adopting multi-touch method, which makes the whole operation process smoother and more natural, especially for the case where a large number of characters need to be changed on the touch screen of the mobile terminal, the text erasing effect is particularly obvious. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种文本擦除方法, 包括: 1. A text erasing method, comprising:
在触摸屏上获取第一触控点, 其中, 所述第一触控点为光标所在位置; 在所述第一触控点持续保持触碰所述触摸屏的情况下, 获取所述第二触控 点, 并根据所述第一触控点和所述第二触控点确定进入文本擦除模式;  Obtaining a first touch point on the touch screen, wherein the first touch point is a position where the cursor is located; and when the first touch point continues to touch the touch screen, acquiring the second touch Pointing, and determining to enter the text erase mode according to the first touch point and the second touch point;
在所述文本擦除模式下获取以所述第一触控点所在位置为起始位置的滑动 轨迹, 并根据所述滑动轨迹确定待擦除的文本进行擦除。  And acquiring a sliding track with the position of the first touch point as a starting position in the text erasing mode, and determining, according to the sliding track, the text to be erased for erasing.
2. 根据权利要求 1所述的方法, 其中, 获取所述滑动轨迹, 并根据所述滑动轨迹 确定所述待擦除的文本包括: 2. The method according to claim 1, wherein the obtaining the sliding track and determining the text to be erased according to the sliding track comprises:
计算所述起始位置相对于预设坐标原点的第一坐标信息;  Calculating first coordinate information of the starting position relative to a preset coordinate origin;
计算所述滑动轨迹的终止位置相对于所述预设坐标原点的第二坐标信息; 根据所述第一坐标信息和所述第二坐标信息确定所述待擦除的文本。  Calculating second coordinate information of an end position of the sliding track relative to the preset coordinate origin; determining the text to be erased according to the first coordinate information and the second coordinate information.
3. 根据权利要求 1所述的方法, 其中, 对所述待擦除的文本进行擦除包括: 判断所述第一触控点和 /或所述第二触控点是否离开所述触摸屏; 如果是, 则对所述待擦除的文本进行擦除, 或者, 确定所述待擦除的文本 处于选中状态。 The method of claim 1 , wherein the erasing the text to be erased comprises: determining whether the first touch point and/or the second touch point leave the touch screen; If yes, the text to be erased is erased, or the text to be erased is determined to be in a selected state.
4. 根据权利要求 1所述的方法, 其中, 在获取所述滑动轨迹, 并根据所述滑动轨 迹确定所述待擦除的文本之后, 还包括: The method according to claim 1, wherein, after the sliding track is acquired, and the text to be erased is determined according to the sliding track, the method further includes:
获取回退轨迹, 其中, 所述回退轨迹是从所述滑动轨迹的终止位置开始滑 动并且与所述滑动轨迹的方向相反;  Obtaining a retreat trajectory, wherein the retreating trajectory starts to slide from an end position of the sliding trajectory and is opposite to a direction of the sliding trajectory;
根据所述回退轨迹重新在所述触摸屏上显示所述待擦除的文本中的部分或 全部文本内容, 或者, 确定所述部分或全部文本内容处于未选中状态。  And displaying some or all of the text content in the text to be erased on the touch screen according to the fallback track, or determining that the part or all of the text content is in an unselected state.
5. 根据权利要求 1至 4中任一项所述的方法, 其中, 获取所述第一触控点包括: 在文本编辑状态下判断触摸介质与文本编辑区域内的特定位置的接触时间 是否超过预设时长; 如果是, 则将所述光标移动至所述特定位置, 并将所述特定位置确定为所 述第一触控点。 The method according to any one of claims 1 to 4, wherein acquiring the first touch point comprises: determining whether a contact time of the touch medium and a specific position in the text editing area exceeds a time in a text editing state Preset time; If yes, the cursor is moved to the specific location, and the specific location is determined as the first touch point.
6. 一种文本擦除装置, 包括: 6. A text erasing device comprising:
获取模块, 设置为在触摸屏上获取第一触控点, 其中, 所述第一触控点为 光标所在位置;  The acquiring module is configured to acquire a first touch point on the touch screen, where the first touch point is a position where the cursor is located;
确定模块, 设置为在所述第一触控点持续保持触碰所述触摸屏的情况下, 获取所述第二触控点, 并根据所述第一触控点和所述第二触控点确定进入文本 擦除模式;  a determining module, configured to acquire the second touch point when the first touch point continues to touch the touch screen, and according to the first touch point and the second touch point Make sure to enter the text erase mode;
擦除模块, 设置为在所述文本擦除模式下获取以所述第一触控点所在位置 为起始位置的滑动轨迹, 并根据所述滑动轨迹确定待擦除的文本进行擦除。  And an erasing module, configured to acquire a sliding track starting from a position of the first touch point in the text erasing mode, and determining, according to the sliding track, the text to be erased for erasing.
7. 根据权利要求 6所述的装置, 其中, 所述擦除模块包括: 7. The device according to claim 6, wherein the erasing module comprises:
第一计算单元, 设置为计算所述起始位置相对于预设坐标原点的第一坐标 信息;  a first calculating unit, configured to calculate first coordinate information of the starting position relative to a preset coordinate origin;
第二计算单元, 设置为计算所述滑动轨迹的终止位置相对于所述预设坐标 原点的第二坐标信息;  a second calculating unit, configured to calculate second coordinate information of an ending position of the sliding track relative to the preset coordinate origin;
第一确定单元, 设置为根据所述第一坐标信息和所述第二坐标信息确定所 述待擦除的文本。  The first determining unit is configured to determine the text to be erased according to the first coordinate information and the second coordinate information.
8. 根据权利要求 6所述的装置, 其中, 所述擦除模块包括: 8. The device according to claim 6, wherein the erasing module comprises:
第一判断单元,设置为判断所述第一触控点和 /或所述第二触控点是否离开 所述触摸屏;  The first determining unit is configured to determine whether the first touch point and/or the second touch point are away from the touch screen;
擦除单元, 设置为在所述第一判断单元输出为是时, 对所述待擦除的文本 进行擦除, 或者, 确定所述待擦除的文本处于选中状态。  And an erasing unit, configured to erase the text to be erased when the output of the first determining unit is YES, or to determine that the text to be erased is in a selected state.
9. 根据权利要求 6所述的装置, 其中, 所述擦除模块包括: 9. The device according to claim 6, wherein the erasing module comprises:
获取单元, 设置为获取回退轨迹, 其中, 所述回退轨迹是从所述滑动轨迹 的终止位置开始滑动并且与所述滑动轨迹的方向相反;  An acquiring unit, configured to acquire a retreat trajectory, wherein the retreating trajectory starts to slide from an end position of the sliding trajectory and is opposite to a direction of the sliding trajectory;
处理单元, 设置为根据所述回退轨迹重新在所述触摸屏上显示所述待擦除 的文本中的部分或全部文本内容, 或者, 确定所述部分或全部文本内容处于未 选中状态。 The processing unit is configured to redisplay part or all of the text content in the text to be erased on the touch screen according to the fallback track, or determine that the part or all of the text content is in an unselected state.
0. 根据权利要求 6至 9中任一项所述的装置, 其中, 所述获取模块包括: 第二判断单元, 设置为在文本编辑状态下判断触摸介质与文本编辑区域内 的特定位置的接触时间是否超过预设时长; The apparatus according to any one of claims 6 to 9, wherein the acquisition module comprises: a second determining unit configured to determine, in a text editing state, contact of the touch medium with a specific position within the text editing area Whether the time exceeds the preset duration;
第二确定单元, 设置为在所述第二判断单元输出为是时, 将所述光标移动 至所述特定位置, 并将所述特定位置确定为所述第一触控点。  The second determining unit is configured to: when the output of the second determining unit is YES, move the cursor to the specific position, and determine the specific position as the first touch point.
PCT/CN2013/085187 2013-09-09 2013-10-14 Text erasure method and device WO2014169597A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310408151.6 2013-09-09
CN201310408151.6A CN104423869A (en) 2013-09-09 2013-09-09 Text erasing method and device

Publications (1)

Publication Number Publication Date
WO2014169597A1 true WO2014169597A1 (en) 2014-10-23

Family

ID=51730738

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/085187 WO2014169597A1 (en) 2013-09-09 2013-10-14 Text erasure method and device

Country Status (2)

Country Link
CN (1) CN104423869A (en)
WO (1) WO2014169597A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634440A (en) * 2019-01-25 2019-04-16 努比亚技术有限公司 A kind of exchange method and device, mobile terminal and readable storage medium storing program for executing of input method
CN112052650A (en) * 2020-09-10 2020-12-08 湖南新云网科技有限公司 File loading method, device and equipment and computer readable storage medium
CN113593420A (en) * 2021-08-12 2021-11-02 武汉华星光电半导体显示技术有限公司 Flexible display device and driving method thereof

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6546455B2 (en) * 2015-06-12 2019-07-17 シャープ株式会社 Eraser device and instruction input system
CN105389022B (en) * 2015-11-18 2017-11-03 广东欧珀移动通信有限公司 A kind of processing method and processing device for deleting upper screen content
CN105808516B (en) * 2016-03-07 2020-02-04 联想(北京)有限公司 Information processing method and electronic equipment
CN105824568B (en) * 2016-03-30 2020-01-24 苏州佳世达电通有限公司 Electronic device and operation method thereof
CN106775286B (en) * 2016-11-14 2019-11-29 广东小天才科技有限公司 A kind of erasure detection method and device of screen area
CN106648436A (en) * 2016-12-30 2017-05-10 维沃移动通信有限公司 Text message processing method and mobile terminal
CN106843727B (en) * 2017-01-05 2020-06-09 北京数科网维技术有限责任公司 Method and system for preventing character from being deleted by mistake
CN110806828B (en) * 2018-08-02 2023-11-07 珠海金山办公软件有限公司 Method and device for erasing PDF document content
CN110222322A (en) * 2019-05-05 2019-09-10 深圳传音控股股份有限公司 Edit methods, computer readable storage medium and terminal
CN114003145B (en) * 2021-11-01 2024-01-09 深圳市康冠商用科技有限公司 Touch screen writing and erasing method and device, electronic whiteboard and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116461A (en) * 2013-01-25 2013-05-22 中兴通讯股份有限公司 Character handling method and terminal based on touch screen
CN103136180A (en) * 2013-02-25 2013-06-05 北京极兴莱博信息科技有限公司 Text segment copying and pasting method and device and terminal for implementing same

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591549B (en) * 2011-01-06 2016-03-09 海尔集团公司 Touch-control delete processing system and method
CN102722334B (en) * 2012-06-06 2016-02-24 中兴通讯股份有限公司 The control method of touch screen and device
CN102981765A (en) * 2012-11-26 2013-03-20 中兴通讯股份有限公司 Text processing method and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116461A (en) * 2013-01-25 2013-05-22 中兴通讯股份有限公司 Character handling method and terminal based on touch screen
CN103136180A (en) * 2013-02-25 2013-06-05 北京极兴莱博信息科技有限公司 Text segment copying and pasting method and device and terminal for implementing same

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634440A (en) * 2019-01-25 2019-04-16 努比亚技术有限公司 A kind of exchange method and device, mobile terminal and readable storage medium storing program for executing of input method
CN112052650A (en) * 2020-09-10 2020-12-08 湖南新云网科技有限公司 File loading method, device and equipment and computer readable storage medium
CN113593420A (en) * 2021-08-12 2021-11-02 武汉华星光电半导体显示技术有限公司 Flexible display device and driving method thereof
CN113593420B (en) * 2021-08-12 2022-08-23 武汉华星光电半导体显示技术有限公司 Flexible display device and driving method thereof

Also Published As

Publication number Publication date
CN104423869A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
WO2014169597A1 (en) Text erasure method and device
CN101937313B (en) A kind of method and device of touch keyboard dynamic generation and input
US9830072B2 (en) Method, apparatus and mobile terminal for controlling an application interface by means of a gesture
US8743058B2 (en) Multi-contact character input method and system
CN103064629B (en) It is adapted dynamically mancarried electronic aid and the method for graphical control
US9377871B2 (en) System and methods for determining keyboard input in the presence of multiple contact points
US8098879B2 (en) Information processing device, image movement instructing method, and information storage medium
US20100182264A1 (en) Mobile Device Equipped With Touch Screen
CN104317452B (en) Method for controlling large-screen intelligent device
US20130263013A1 (en) Touch-Based Method and Apparatus for Sending Information
JP2019516189A (en) Touch screen track recognition method and apparatus
EP2613236A1 (en) Mobile terminal, and method and apparatus for processing displayed information on touch screen thereof
EP3002664A1 (en) Text processing method and touchscreen device
WO2012112575A1 (en) Touch gestures for text-entry operations
CN110633044B (en) Control method, control device, electronic equipment and storage medium
US20120262405A1 (en) Method and mobile terminal for processing touch input
CN103513878A (en) Touch input method and device
WO2018001261A1 (en) Method for configuring button functions and mobile terminal
CN103853481A (en) Method and system for simulating touch screen mobile terminal keys
CN106843735A (en) A kind of terminal control method and mobile terminal
CN105630369B (en) Method for realizing one-hand operation of mobile terminal and mobile terminal
CN106990900A (en) One kind writing implementation method and device
JP2013223044A (en) Character input method and character input device
WO2018218392A1 (en) Touch operation processing method and touch keyboard
JP6183820B2 (en) Terminal and terminal control method

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

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

Country of ref document: EP

Kind code of ref document: A1