WO2016173305A1 - 文本选取方法和装置、文本处理方法和装置 - Google Patents

文本选取方法和装置、文本处理方法和装置 Download PDF

Info

Publication number
WO2016173305A1
WO2016173305A1 PCT/CN2016/071979 CN2016071979W WO2016173305A1 WO 2016173305 A1 WO2016173305 A1 WO 2016173305A1 CN 2016071979 W CN2016071979 W CN 2016071979W WO 2016173305 A1 WO2016173305 A1 WO 2016173305A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
touch point
sliding
display area
touch
Prior art date
Application number
PCT/CN2016/071979
Other languages
English (en)
French (fr)
Inventor
杜霁轩
马骏
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016173305A1 publication Critical patent/WO2016173305A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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 application relates to, but is not limited to, the field of terminal technologies, and in particular, to a text selection method and apparatus, a text processing method and apparatus.
  • the embodiment of the invention provides a text selection method and device, a text processing method and a device, which can solve the technical problem that the user operation with the current text selection method is cumbersome and the user experience is poor.
  • An embodiment of the present invention provides a text selection method, including the following steps:
  • the text content covered by the first sliding track is selected.
  • the first sliding track comprises: one or more sliding tracks formed by the first touch point sliding in the text display area, and/or a new second touch point in the text One or more sliding tracks formed by sliding in the display area.
  • the method further includes:
  • the second sliding track is selected to be covered. Text content.
  • the newly added touch point is: a third touch point added after the text content covered by the first sliding track is selected;
  • the second sliding track includes: one or more sliding tracks formed by the third touch point sliding in the text display area.
  • the newly added touch point is: the second touch point, or new after the text content covered by the first sliding track is selected
  • the third touch point includes: one or more sliding tracks formed by the second touch point sliding in the text display area, and/or the third touch point is in the The text displays one or more sliding tracks formed by sliding within the area.
  • the embodiment of the invention further provides a text processing method, comprising the following steps:
  • the extracted text content is processed.
  • the step of processing the extracted text content includes:
  • the embodiment of the invention further provides a text selection device, comprising: a detection module and a selection module;
  • the detecting module is configured to: when the terminal displays the text, detecting whether there are at least two first touch points located in the text display area of the terminal on the touch screen of the current terminal; and present at the at least one of the first touch points Detecting whether there is a first sliding track in the text display area during the period;
  • the selecting module is configured to: when the detecting module detects that there are at least two first touch points located in the text display area of the terminal, when at least one of the first touch points exists, when detecting When there is a first sliding track in the text display area, the text content covered by the first sliding track is selected.
  • the first sliding track comprises: one or more sliding tracks formed by the first touch point sliding in the text display area, and/or a new second touch point in the text One or more sliding tracks formed by sliding in the display area.
  • the selecting module is further configured to:
  • the second sliding track is selected to be covered. Text content.
  • the newly added touch point is: a third touch point added after the text content covered by the first sliding track is selected;
  • the second sliding track includes: one or more sliding tracks formed by the third touch point sliding in the text display area.
  • the newly added touch point is: the second touch point, or new after the text content covered by the first sliding track is selected
  • the third touch point includes: one or more sliding tracks formed by the second touch point sliding in the text display area, and/or the third touch point is in the The text displays one or more sliding tracks formed by sliding within the area.
  • the embodiment of the invention further provides a text processing device, comprising: a text selection device, an extraction module and a processing module as described above;
  • the extraction module is configured to: when all the touch points disappear, extract the text content selected by the text selection device;
  • the processing module is configured to process text content extracted by the extraction module.
  • an embodiment of the present invention further provides a terminal, including: a display, a sensor, and a processor.
  • the sensor is configured to detect a touch of the current display when the display displays text Whether there are at least two first touch points located in the text display area of the display on the screen; and detecting whether there is a first sliding track in the text display area during the existence of the at least one of the first touch points;
  • the processor is configured to: after the sensor detects that at least two first touch points in the text display area of the terminal are present on the touch screen of the terminal, during the presence of at least one of the first touch points
  • the text content covered by the first sliding track is selected when the sensor detects that there is a first sliding track in the text display area.
  • an embodiment of the present invention further provides a terminal, including: a display, a sensor, and a processor.
  • the sensor is configured to: when the display displays text, detect whether there are at least two first touch points located in the text display area of the display on the touch screen of the current display; and presence at the at least one of the first touch points During the period, detecting whether there is a first sliding track in the text display area;
  • the processor is configured to: after the sensor detects that at least two first touch points in the text display area of the terminal are present on the touch screen of the terminal, during the presence of at least one of the first touch points After the sensor detects that there is a first sliding track in the text display area, the text content covered by the first sliding track is selected, and when all touch points disappear, the selected text content is extracted, The extracted text content is processed.
  • an embodiment of the present invention further provides a computer readable storage medium, where computer executable instructions are stored, and the text selection method is implemented when the computer executable instructions are executed.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, the text processing method being implemented when the computer executable instructions are executed.
  • the method for selecting a text includes: when the terminal displays text, detecting whether there are at least two first touch points located in the text display area of the terminal on the touch screen of the current terminal; if yes, at least During a period in which the first touch point exists, when it is detected that there is a first sliding track in the text display area, the text content covered by the first sliding track is selected.
  • the text selection method provided by the embodiment of the present invention relies on a multi-touch technology, can support a user to perform a multi-touch operation, and selects a desired text content by a user's sliding operation; applying the present invention
  • the text selection method provided by the embodiment may be used for the user to select the discrete pieces of text content at one time, and the user may perform the corresponding sliding operation to select the piece of text content when selecting a piece of text content; the text provided by the embodiment of the present invention
  • the selection method simplifies the user operation of selecting text content, improves the efficiency of text content selection, and improves the user experience.
  • FIG. 1 is a schematic flowchart of a text selection method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of a text processing method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic diagram of text displayed by a terminal according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic diagram of a touch point in a text display area according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic diagram of a touch point sliding and marking text according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic diagram of adding a touch point in a text display area according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram of a new touch point sliding and markup text according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic structural diagram of a text selection apparatus according to Embodiment 3 of the present invention.
  • FIG. 9 is a schematic structural diagram of a text processing apparatus according to Embodiment 3 of the present invention.
  • the present embodiment provides a text selection method, as shown in FIG. 1 , including the following steps:
  • Step 101 When the terminal displays the text, it is detected whether there are at least two first touch points located in the text display area of the terminal on the touch screen of the current terminal; if yes, step 102 is performed. No, go to step 103.
  • this step includes:
  • the terminal When the terminal displays the text, when it is detected that there are at least two first touch points on the touch screen of the current terminal, acquiring the position information of the at least two first touch points on the touch screen and the text display area of the current terminal are Position information on the touch screen; for example, acquiring coordinate information of the first touch point on the touch screen and coordinate information of the text display area on the touch screen;
  • the triggering terminal when it is detected that there are at least two first touch points located in the text display area of the terminal on the touch screen of the current terminal, the triggering terminal performs a text selection function, that is, the terminal enters a text selection mode.
  • the touch point can be formed by clicking or pressing the touch screen.
  • the text display area can display one or more pages of text.
  • Step 102 During a period in which at least one of the first touch points exists, when it is detected that there is a first sliding track in the text display area, the text content covered by the first sliding track is selected.
  • the first sliding track includes: a plurality of sliding tracks formed by the first touch point sliding in the text display area, and/or the added second touch point is in the The text displays a plurality of sliding tracks formed by sliding in the area.
  • the first type is a plurality of sliding tracks formed by the sliding of the previous first touch point
  • the second type is newly added.
  • the plurality of sliding tracks formed by the sliding of the second touch point, and the third are a plurality of sliding tracks formed by the sliding of the first touch point and a plurality of sliding tracks formed by the sliding of the added second touch point.
  • the plurality of sliding tracks represent one or more sliding tracks, that is, at least one sliding track.
  • This step is a text content selection process performed after the user triggers the terminal to perform the text selection function.
  • the user forms three touch points A, touch points B, and touch points C located in the text display area by clicking the touch screen;
  • the user keeps the touch point A unchanged, and slides the touch point B in the text display area to form a sliding track BW.
  • the terminal selects the text content covered by the sliding track BW;
  • the user keeps the touch point A unchanged, and sequentially slides the touch point B and the touch point C to form a sliding track BW and a sliding track CW in the text display area.
  • the terminal sequentially selects the sliding track BW and the sliding track respectively.
  • the user keeps the touch point A unchanged, and sequentially slides the touch point B and the touch point C to form a sliding track BW and a sliding track CW in the text display area.
  • the terminal sequentially selects the sliding track BW and the sliding track respectively.
  • the text content covered by the CW after that, the touched point B or C after the sliding is kept unchanged, and the sliding point A is swept in the text display area to form a sliding track AW.
  • the terminal also selects the text content covered by the sliding track AW. ;
  • the user keeps the touch point A unchanged, and sequentially slides the touch point B and the touch point C to form a sliding track BW and a sliding track CW in the text display area.
  • the terminal sequentially selects the sliding track BW and the sliding track respectively.
  • the text content covered by the CW after that, the user cancels the touch point B and the touch point C, forms a new touch point D on the touch screen by pressing or clicking, and then slides the touch point D in the text display area to form a sliding track DW.
  • the terminal also needs to select the text content covered by the sliding track DW;
  • the user cancels the touch points B and C, and only slides the touch point A in the text display area to form a sliding track AW.
  • the terminal selects the text content covered by the sliding track AW.
  • any text content covered by the sliding track in the text display area can be selected.
  • the sliding track in the text display area may be a track formed by sliding the first touch point in the foregoing step 101, or may be a track formed by the newly added touch point.
  • the shape of the sliding track may be various, and may be a regular shape such as a straight line, a circle, a rectangle, or the like, or may be an irregular shape, such as an irregular curved shape or the like.
  • the shape of the sliding track and the text content that the user needs to select are in the text. The position within the display area is related.
  • Step 103 Do nothing.
  • the text selection method of the embodiment is dependent on the multi-touch technology, and can support the user to perform multi-touch operation and select the desired text content by the user's sliding operation; the text selection method of the embodiment can be selected by the user at one time. Discrete multi-segment text content, and only need the user to perform a corresponding sliding operation to select a piece of text content when selecting a piece of text content; the text selection method in this embodiment simplifies the selection of text content compared with the prior art User operation, and improve the efficiency of text content selection, improving the user experience.
  • the method of the embodiment further includes:
  • the second sliding track is selected to be covered. Text content.
  • the method provided in this embodiment may be in a period in which at least one new touch point exists, and all the first touch points disappear, for example, the terminal detects that at least one new touch point exists, and the user removes all formations.
  • the terminal detects whether there is a sliding track in the text display area during the existence of the at least one new touch point, and if so, selects the text content covered by the sliding track.
  • the second sliding track is different from the first sliding track
  • the first sliding track is a sliding track detected during the existence of the at least one first touch point
  • the second sliding track is added in at least one A sliding trajectory detected in the case where the touch point exists and all of the first touch points disappear.
  • the newly added touch point may be: a second touch point added before, or a third touch point added after the text content covered by the first slide track is selected.
  • the newly added touch point may be a third touch point added after the text content covered by the first sliding track is selected;
  • the second sliding track includes: a plurality of sliding tracks formed by the third touch point sliding in the text display area.
  • the user forms three touch points A, touch points B, and touch points C located in the text display area by clicking the touch screen;
  • the user keeps the touch point A unchanged, and sequentially slides the touch point B and the touch point C to form a sliding track BW and a sliding track CW in the text display area.
  • the terminal sequentially selects the sliding track BW and the sliding track CW respectively.
  • the user presses or clicks to form a touch point D on the touch screen, and cancels the touch point A, the touch point B, and the touch point C
  • the user keeps the touch point D unchanged, and adds a touch point E
  • the touch point E is swept in the text display area to form a sliding track EW.
  • the terminal selects the text content covered by the sliding track EW.
  • the terminal will select the text content covered by the sliding track FW.
  • the newly added touch point is: the second touch point, or, in the selection of the first sliding track, a third touch point added after the text content;
  • the second sliding track includes: a plurality of sliding tracks formed by the second touch point sliding in the text display area, and/or a plurality of sliding points formed by the third touch point in the text display area Strip sliding track.
  • the method of the embodiment may detect whether there is a sliding track in the text display area during the existence of the at least one second touch point, and if so, Then, the text content covered by the sliding track is selected; at this time, the detected sliding track may include: a plurality of sliding tracks formed by the second touch point and/or a plurality of sliding tracks formed by the added third touch point.
  • the method of the embodiment may detect during the existence of the at least one third touch point or the second touch point. Whether there is a sliding track in the text display area, if any, the text content covered by the sliding track is selected; at this time, the detected sliding track may include: a plurality of sliding tracks formed by the second touch point and/or added A plurality of sliding tracks formed by the third touch point.
  • the user forms three touch points A, touch points B, and touch points C located in the text display area by clicking the touch screen;
  • the user keeps the touch point A unchanged, and sequentially slides the touch point B and the touch point C to form a sliding track BW and a sliding track CW in the text display area. At this time, the terminal sequentially selects the sliding track BW and the sliding track CW respectively. After the user presses or clicks to form touch points D1 and D2 on the touch screen, the user touches the touch point D1 in the text display area to form a sliding track D1W. At this time, the terminal selects the text covered by the sliding track D1W.
  • the terminal selects the text content covered by the sliding track EW; or, keeps the touch point D1 unchanged, and slides the touch point D2 in the text display area to form a sliding track D2W. At this time, the terminal will select the sliding track D2W to cover. Text content.
  • the terminal selects the text content covered by the sliding track FW.
  • this embodiment provides a text processing method, including the following steps:
  • Step 201 Select the text content by using the text selection method described in Embodiment 1.
  • the text content covered by the first sliding track is selected, or the text content covered by the first sliding track and the second sliding track is selected.
  • Step 202 Extract the selected text content when all the touch points disappear.
  • the selected text is extracted, or when all of the first touch points, the second touch points, and the third touch points disappear, the selected text is extracted.
  • the selected text content is extracted.
  • Step 203 Process the extracted text content.
  • the extracted text content is copied and the copied text content is stored.
  • the extracted text content is copied and the copied text content is stored.
  • the first step as shown in FIG. 4, the terminal detects that there are multiple touch points in the current screen, where the first touch point A is at the position S302 and the second touch point B is at the position S303;
  • Step 2 The terminal determines whether both touch points fall within the text display area, and if yes, performs the next step;
  • the third step as shown in FIG. 5, the user operates on the screen such that the first touch point A and the second touch point B slide on the screen respectively, and the terminal detects that the first touch point A and the second touch point B are in the text display area.
  • the trajectories S304 and S305 formed on S301 are then marked with the characters "1234567890” and "0987654321" respectively covered by the trajectories S304, S305;
  • the first touch point A and the second touch point B are always present. Therefore, when the terminal detects the tracks S304 and S305, the character string covered by the tracks S304 and S305 is marked;
  • the fourth step as shown in FIG. 6, the second touch point B after the sliding is kept unchanged (at the position S306), and the user clicks or presses on the screen to form a new third touch point C, the third touch point C. Located at the beginning of the segment S307 of the third string "1122334455";
  • Step 5 As shown in FIG. 7, the user operates on the screen to make the third touch point C slide on the screen to form a track covering “1122334455”, and the terminal marks the string “1122334455”; at this time, all three strings are successfully marked;
  • Step 6 After the second touch point B and the third touch point C disappear, the terminal extracts and copies the three character strings "1234567890", “0987654321” and "1122334455", and saves them in the cache.
  • the embodiment provides a text selection device, including: a detection module and a selection module;
  • the detecting module is configured to: when the terminal displays text, detect a touch screen of the current terminal Whether there are at least two first touch points located in the text display area of the terminal; and detecting whether there is a first sliding track in the text display area during the existence of the at least one of the first touch points;
  • the selecting module is configured to: when the detecting module detects that there are multiple first touch points located in the text display area of the terminal, when the at least one of the first touch points exists, when the detecting When the module detects that there is a first sliding track in the text display area, the text content covered by the first sliding track is selected.
  • the first sliding track includes: a plurality of sliding tracks formed by the first touch point sliding in the text display area, and/or a new second touch point in the text display area Several sliding tracks formed by internal sliding.
  • the selecting module is further configured to:
  • the second sliding track is selected to be covered. Text content.
  • the newly added touch point is a third touch point added after the text content covered by the first sliding track is selected;
  • the two sliding tracks include: a plurality of sliding tracks formed by the third touch point sliding in the text display area.
  • the newly added touch point is: the second touch point, or new after the text content covered by the first sliding track is selected An increased third touch point;
  • the second sliding track includes: a plurality of sliding tracks formed by the second touch point sliding in the text display area, and/or the third touch point is in the text A plurality of sliding tracks formed by sliding in the display area.
  • the embodiment further provides a text processing apparatus, including: a text selection apparatus, an extraction module, and a processing module as described above;
  • the extraction module is configured to: when all the touch points disappear, extract the text content selected by the text selection device;
  • the processing module is configured to process text content extracted by the extraction module.
  • the text selection device of this embodiment relies on the multi-touch technology, and can support the user to perform a multi-touch operation and select the desired text content by the user's sliding operation; the text selection device of the embodiment can be selected by the user at one time. Discrete multi-segment text content, and only a user can perform a corresponding sliding operation to select a piece of text content when selecting a piece of text content; the text selection device of the embodiment simplifies user operations for selecting text content, and improves The efficiency of text content selection improves the user experience.
  • an embodiment of the present invention further provides a terminal, including: a display, a sensor, and a processor.
  • the sensor is configured to: when the display displays text, detect whether there are at least two first touch points located in the text display area of the display on the touch screen of the current display; and presence at the at least one of the first touch points During the period, detecting whether there is a first sliding track in the text display area;
  • the processor is configured to: after the sensor detects that at least two first touch points in the text display area of the terminal are present on the touch screen of the terminal, during the presence of at least one of the first touch points
  • the text content covered by the first sliding track is selected when the sensor detects that there is a first sliding track in the text display area.
  • an embodiment of the present invention further provides a terminal, including: a display, a sensor, and a processor.
  • the sensor is configured to: when the display displays text, detect whether there are at least two first touch points located in the text display area of the display on the touch screen of the current display; and presence at the at least one of the first touch points During the period, detecting whether there is a first sliding track in the text display area;
  • the processor is configured to: after the sensor detects that at least two first touch points in the text display area of the terminal are present on the touch screen of the terminal, during the presence of at least one of the first touch points After the sensor detects that there is a first sliding track in the text display area, the text content covered by the first sliding track is selected, and when all touch points disappear, the selected text content is extracted, The extracted text content is processed.
  • an embodiment of the present invention further provides a computer readable storage medium, where a computer can be stored. Executing instructions that implement the text selection method when the computer executable instructions are executed.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, the text processing method being implemented when the computer executable instructions are executed.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the embodiment of the invention provides a text selection method and device, a text processing method and a device, which can support a user to perform a multi-touch operation and select a desired text content by a user's sliding operation;
  • the discrete multi-segment text content is selected, and the user can perform the corresponding sliding operation to select the text content when selecting a certain text content;
  • the user operation of selecting the text content is simplified, and the efficiency of text content selection is improved. , improved user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种文本选取方法,包括:在终端显示文本时,检测当前所述终端的触摸屏上是否有至少两个位于终端的文本显示区域内的第一触摸点;若有,则在至少一个所述第一触摸点存在的期间内,当检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。该文本选取方法能够解决采用目前文本选取方法选取文本内容存在的用户操作比较繁琐和用户体验较差的技术问题。

Description

文本选取方法和装置、文本处理方法和装置 技术领域
本申请涉及但不限于终端技术领域,尤其涉及一种文本选取方法和装置、文本处理方法和装置。
背景技术
目前在触摸屏设备中,用户对文本的操作往往通过单点触摸操作来完成。在触摸屏设备显示的文本页面中,如果用户需要去选中和复制大量的文本内容,往往面临着繁琐的操作。现有文本选取和复制技术通常是:通过长按等方式,触发两个游标,分别代表段首和段尾,用户需要分别移动两个游标,去确定选择的文本范围,然后通过二级菜单来选择复制等操作。同时,如果用户想同时选择离散的多段文字,则只能逐个依次进行选择、复制、粘贴,操作繁琐,且依赖于单点触摸。
由此可见,采用现有文本选取方法选取文本内容存在用户操作比较繁琐、用户体验较差的问题。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供一种文本选取方法和装置、文本处理方法和装置,能够解决采用目前文本选取方法选取文本内容存在的用户操作比较繁琐和用户体验较差的技术问题。
本发明实施例提供一种文本选取方法,包括如下步骤:
在终端显示文本时,检测当前所述终端的触摸屏上是否有至少两个位于终端的文本显示区域内的第一触摸点;
若有,则在至少一个所述第一触摸点存在的期间内,当检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。
可选地,所述第一滑动轨迹包括:所述第一触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹,和/或,新增的第二触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
可选地,所述方法还包括:
当在至少一个新增的触摸点存在的期间内,所述第一触摸点消失后,如果检测到在所述文本显示区域内有第二滑动轨迹,则选中所述第二滑动轨迹所覆盖的文本内容。
可选地,在不存在所述第二触摸点的情况下,所述新增的触摸点为:在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;所述第二滑动轨迹包括:所述第三触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
可选地,在存在新增的第二触摸点的情况下,所述新增的触摸点为:所述第二触摸点,或者,在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;所述第二滑动轨迹包括:所述第二触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹,和/或,所述第三触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
本发明实施例还提供了一种文本处理方法,包括下步骤:
利用如上所述的文本选取方法选中文本内容;
在所有触摸点消失时,提取选中的文本内容;
对提取的文本内容进行处理。
可选地,所述对提取的文本内容进行处理的步骤包括:
对提取的文本内容进行复制并存储复制的文本内容。
本发明实施例还提供了一种文本选取装置,包括:检测模块和选取模块;
所述检测模块设置为:在终端显示文本时,检测当前所述终端的触摸屏上是否有至少两个位于终端的文本显示区域内的第一触摸点;以及在至少一个所述第一触摸点存在的期间内,检测在所述文本显示区域内是否有第一滑动轨迹;
所述选取模块设置为:在所述检测模块检测到有至少两个位于终端的文本显示区域内的第一触摸点时,则在至少一个所述第一触摸点存在的期间内,当检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。
可选地,所述第一滑动轨迹包括:所述第一触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹,和/或,新增的第二触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
可选地,所述选取模块,还设置为:
当在至少一个新增的触摸点存在的期间内,所述第一触摸点消失后,如果检测到在所述文本显示区域内有第二滑动轨迹,则选中所述第二滑动轨迹所覆盖的文本内容。
可选地,在不存在所述第二触摸点的情况下,所述新增的触摸点为:在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;所述第二滑动轨迹包括:所述第三触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
可选地,在存在新增的第二触摸点的情况下,所述新增的触摸点为:所述第二触摸点,或者,在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;所述第二滑动轨迹包括:所述第二触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹,和/或,所述第三触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
本发明实施例还提供了一种文本处理装置,包括:如上所述的文本选取装置、提取模块和处理模块;
所述提取模块设置为:在所有触摸点消失时,提取所述文本选取装置选中的文本内容;
所述处理模块设置为对所述提取模块提取的文本内容进行处理。
此外,本发明实施例还提供一种终端,包括:显示器、传感器以及处理器,
所述传感器设置为:在显示器显示文本时,检测当前所述显示器的触摸 屏上是否有至少两个位于显示器的文本显示区域内的第一触摸点;以及在至少一个所述第一触摸点存在的期间内,检测在所述文本显示区域内是否有第一滑动轨迹;
所述处理器设置为:在所述传感器检测到当前所述终端的触摸屏上有至少两个位于终端的文本显示区域内的第一触摸点后,在至少一个所述第一触摸点存在的期间内,当所述传感器检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。
此外,本发明实施例还提供一种终端,包括:显示器、传感器以及处理器,
所述传感器设置为:在显示器显示文本时,检测当前所述显示器的触摸屏上是否有至少两个位于显示器的文本显示区域内的第一触摸点;以及在至少一个所述第一触摸点存在的期间内,检测在所述文本显示区域内是否有第一滑动轨迹;
所述处理器设置为:在所述传感器检测到当前所述终端的触摸屏上有至少两个位于终端的文本显示区域内的第一触摸点后,在至少一个所述第一触摸点存在的期间内,当所述传感器检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容,并在所有触摸点消失时,提取选中的文本内容,对提取的文本内容进行处理。
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述文本选取方法。
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述文本处理方法。
本发明实施例提供的文本选取方法,包括:在终端显示文本时,检测当前所述终端的触摸屏上是否有至少两个位于终端的文本显示区域内的第一触摸点;若有,则在至少一个所述第一触摸点存在的期间内,当检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。本发明实施例提供的文本选取方法依赖于多点触摸技术,可支持用户进行多点触摸操作且通过用户的滑动操作来选取所需的文本内容;应用本发明 实施例提供的文本选取方法可以供用户一次性选取离散的多段文本内容,且在选取某段文本内容时只需用户进行对应的滑动操作即可选中该段文本内容;本发明实施例提供的文本选取方法与现有技术相比,简化了对文本内容选取的用户操作,并且提升了文本内容选取的效率,提升了用户体验。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例一提供的一种文本选取方法的流程示意图;
图2为本发明实施例二提供的一种文本处理方法的流程示意图;
图3为本发明实施例二提供的一种终端显示的文本的示意图;
图4为本发明实施例二提供的一种在文本显示区域内触摸点的示意图;
图5为本发明实施例二提供的一种触摸点滑动和标记文本的示意图;
图6为本发明实施例二提供的一种在文本显示区域内新增触摸点的示意图;
图7为本发明实施例二提供的一种新增触摸点滑动和标记文本的示意图;
图8为本发明实施例三提供的一种文本选取装置的结构示意图;
图9为本发明实施例三提供的一种文本处理装置的结构示意图。
本发明的实施方式
下面通过具体实施方式结合附图对本申请作进一步详细说明。
实施例一
考虑到采用目前文本选取方法选取文本内容存在的用户操作比较繁琐和用户体验较差的技术问题,本实施例提供了一种文本选取方法,如图1所示,包括如下步骤:
步骤101:在终端显示文本时,检测当前所述终端的触摸屏上是否有至少两个位于终端的文本显示区域内的第一触摸点;若有,执行步骤102,若 没有,执行步骤103。
可选地,本步骤包括:
在终端显示文本时,当检测到当前所述终端的触摸屏上有至少两个第一触摸点时,获取所述至少两个第一触摸点在触摸屏上的位置信息和当前终端的文本显示区域在触摸屏上的位置信息;例如获取第一触摸点在触摸屏上的坐标信息和文本显示区域在触摸屏上的坐标信息;
根据第一触摸点的位置信息和文本显示区域的位置信息判断所述至少两个第一触摸点是否在所述文本显示区域内,
若是,则判定有至少两个位于终端的文本显示区域内的第一触摸点。
本实施例在检测到当前所述终端的触摸屏上有至少两个位于终端的文本显示区域内的第一触摸点时,触发终端执行文本选取功能,即终端进入文本选取模式。
在本实施例中,触摸点可以通过点击或者按压触摸屏的方式形成。
在本实施例中,文本显示区域可以显示一页或者多页文本。
步骤102:在至少一个所述第一触摸点存在的期间内,当检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。
可选地,在本实施例中,第一滑动轨迹包括:所述第一触摸点在所述文本显示区域内滑动形成的若干条滑动轨迹,和/或,新增的第二触摸点在所述文本显示区域内滑动形成的若干条滑动轨迹。在本实施例中,在至少一个触摸点存在的期间内,可能存在三种类型的滑动轨迹:第一种是由之前第一触摸点滑动形成的若干条滑动轨迹,第二种是由新增的第二触摸点滑动形成的若干条滑动轨迹,第三种是由之前第一触摸点滑动形成的若干条滑动轨迹和由新增的第二触摸点滑动形成的若干条滑动轨迹。
在本实施例及下面所述实施例中,若干条滑动轨迹表示一条或者多条滑动轨迹,即至少一条滑动轨迹。
本步骤是在用户触发了终端执行文本选取功能之后进行的文字内容选取过程。
下面以三个触摸点为例来介绍文本内容选取的过程。
例如,用户通过点击触摸屏的方式形成三个位于文本显示区域内的触摸点A、触摸点B、触摸点C;
用户保持触摸点A不变,在文本显示区域内滑动触摸点B形成滑动轨迹BW,此时,终端就会选中滑动轨迹BW所覆盖的文字内容;
又或者,用户保持触摸点A不变,在文本显示区域内先后分别滑动触摸点B和触摸点C形成滑动轨迹BW和滑动轨迹CW,此时,终端就会先后分别选中滑动轨迹BW和滑动轨迹CW所覆盖的文字内容;
又或者,用户保持触摸点A不变,在文本显示区域内先后分别滑动触摸点B和触摸点C形成滑动轨迹BW和滑动轨迹CW,此时,终端就会先后分别选中滑动轨迹BW和滑动轨迹CW所覆盖的文字内容;之后,保持滑动后的触摸点B或C不变,在文本显示区域内滑动触摸点A形成滑动轨迹AW,此时,终端还会选中滑动轨迹AW所覆盖的文字内容;
又或者,用户保持触摸点A不变,在文本显示区域内先后分别滑动触摸点B和触摸点C形成滑动轨迹BW和滑动轨迹CW,此时,终端就会先后分别选中滑动轨迹BW和滑动轨迹CW所覆盖的文字内容;之后,用户取消触摸点B和触摸点C,通过按压或者点击方式在触摸屏上形成一个新的触摸点D,然后,在文本显示区域内滑动触摸点D形成滑动轨迹DW,此时,终端还需要选中滑动轨迹DW所覆盖的文字内容;
又或者,用户取消触摸点B和C,仅仅在文本显示区域内滑动触摸点A形成滑动轨迹AW,此时,终端选中滑动轨迹AW所覆盖的文字内容。
在本实施例中,只要有至少一个步骤101中的触摸点存在,就可以选中任何在文本显示区域内的滑动轨迹所覆盖的文字内容。该任何在文本显示区域内的滑动轨迹可以为滑动前述步骤101中的第一触摸点形成的轨迹,也可以为新增的触摸点形成的轨迹。
可选地,在本实施例中,滑动轨迹的形状可以为多种,其可以为规则的形状例如直线、圆形、长方形等,也可以为不规矩的形状,例如不规则弯曲形状等。在本实施例中,滑动轨迹的形状与用户需要选中的文字内容在文本 显示区域内的位置相关。
步骤103:不做任何处理。
本实施例的文本选取方法依赖于多点触摸技术,可支持用户进行多点触摸操作且通过用户的滑动操作来选取所需的文本内容;应用本实施例的文本选取方法可以供用户一次性选取离散的多段文本内容,且在选取某段文本内容时只需用户进行对应的滑动操作即可选中该段文本内容;本实施例的文本选取方法与现有技术相比,简化了对文本内容选取的用户操作,而且提升了文本内容选取的效率,提升了用户体验。
可选地,为了进一步方便用户选取文本并提升用户体验,本实施例方法在上述基础上还包括:
当在至少一个新增的触摸点存在的期间内,所述第一触摸点消失后,如果检测到在所述文本显示区域内有第二滑动轨迹,则选中所述第二滑动轨迹所覆盖的文本内容。
本实施例提供的方法可以在至少一个新增的触摸点存在的期间内,且所有第一触摸点消失的情况下,例如终端检测到存在至少一个新增的触摸点,且用户撤掉所有形成第一触摸点的按压,那么终端在至少一个新增的触摸点存在的期间内,检测在文本显示区域内是否有滑动轨迹,若有,则选中滑动轨迹所覆盖的文本内容。
在本实施例中,第二滑动轨迹与第一滑动轨迹不同,第一滑动轨迹为在至少一个第一触摸点存在期间内检测到的滑动轨迹,而第二滑动轨迹为在至少一个新增的触摸点存在期间内且第一触摸点全部消失情况下检测到的滑动轨迹。
在本实施例中,新增的触摸点可以为:之前新增的第二触摸点,也可以在选中第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点。
可选地,在不存在新增的第二触摸点的情况下,上述新增的触摸点可以为在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;
所述第二滑动轨迹包括:所述第三触摸点在所述文本显示区域内滑动形成的若干条滑动轨迹。
例如,用户通过点击触摸屏的方式形成三个位于文本显示区域内的触摸点A、触摸点B、触摸点C;
用户保持触摸点A不变,在文本显示区域内先后分别滑动触摸点B和触摸点C形成滑动轨迹BW和滑动轨迹CW,此时,终端就会先后分别选中滑动轨迹BW和滑动轨迹CW所覆盖的文字内容;之后,用户通过按压或者点击的方式在触摸屏上形成触摸点D,且取消触摸点A、触摸点B和触摸点C,用户保持触摸点D不变,新增一个触摸点E,然后在文本显示区域内滑动触摸点E形成滑动轨迹EW,此时,终端会选中滑动轨迹EW所覆盖的文本内容。
又例如,在上述选中滑动轨迹EW所覆盖的文本内容之后,保持触摸点D和/或触摸点E不变,新增一个触摸点F,然后,在文本显示区域内滑动触摸点F形成滑动轨迹FW,此时,终端会选中滑动轨迹FW所覆盖的文本内容。
可选地,在存在新增的第二触摸点的情况下,在本实施例中,新增的触摸点为:所述第二触摸点,或者,在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;
所述第二滑动轨迹包括:所述第二触摸点在所述文本显示区域内滑动形成的若干条滑动轨迹,和/或,所述第三触摸点在所述文本显示区域内滑动形成的若干条滑动轨迹。
在存在新增的第二触摸点,且所有第一触摸点消失情况下,本实施例方法可以在至少一个第二触摸点存在期间内,检测在文本显示区域内是否有滑动轨迹,若有,则选中滑动轨迹所覆盖的文本内容;此时,检测到的滑动轨迹可能包括:第二触摸点形成的若干条滑动轨迹和/或新增的第三触摸点形成的若干条滑动轨迹。
在存在新增的第二触摸点和新增的第三触摸点,且所有第一触摸点消失情况下,本实施例方法可以在至少一个第三触摸点或者第二触摸点存在期间内,检测在文本显示区域内是否有滑动轨迹,若有,则选中滑动轨迹所覆盖的文本内容;此时,检测到的滑动轨迹可能包括:第二触摸点形成的若干条滑动轨迹和/或新增的第三触摸点形成的若干条滑动轨迹。
例如,用户通过点击触摸屏的方式形成三个位于文本显示区域内的触摸点A、触摸点B、触摸点C;
用户保持触摸点A不变,在文本显示区域内先后分别滑动触摸点B和触摸点C形成滑动轨迹BW和滑动轨迹CW,此时,终端就会先后分别选中滑动轨迹BW和滑动轨迹CW所覆盖的文字内容;之后,用户通过按压或者点击的方式在触摸屏上形成触摸点D1和D2、在文本显示区域内滑动触摸点D1形成滑动轨迹D1W,此时,终端会选中滑动轨迹D1W所覆盖的文本内容;接着,用户取消触摸点A、触摸点B和触摸点C,用户保持触摸点D1或者D2不变,新增一个触摸点E,然后在文本显示区域内滑动触摸点E形成滑动轨迹EW,此时,终端会选中滑动轨迹EW所覆盖的文本内容;又或者,保持触摸点D1不变,在文本显示区域内滑动触摸点D2形成滑动轨迹D2W,此时,终端会选中滑动轨迹D2W所覆盖的文本内容。
又例如,在上述选中滑动轨迹EW所覆盖的文本内容之后,保持触摸点D1、D2和触摸点E中至少一个触摸点不变,新增一个触摸点F,然后,在文本显示区域内滑动触摸点F形成滑动轨迹FW,此时,终端会选中滑动轨迹FW所覆盖的文本内容。
实施例二
如图2所示,本实施例提供了一种文本处理方法,包括如下步骤:
步骤201:利用实施例一所述的文本选取方法选中文本内容。
例如,选中第一滑动轨迹所覆盖的文字内容,或者,选中第一滑动轨迹和第二滑动轨迹所覆盖的文字内容。
步骤202:在所有触摸点消失时,提取选中的文本内容。
例如,在所有第一触摸点和第二触摸点消失时,提取选中的文本,或者,在所有第一触摸点、第二触摸点和第三触摸点消失时,提取选中的文本。
可选地,在本实施例中,可以在所有触摸点消失后预定时间内若没有检测到新增触摸点,则提取选中的文本内容。
步骤203:对提取的文本内容进行处理。
可选地,对提取的文本内容进行复制并存储复制的文本内容。当然还可 以对提取的文本内容进行其他操作。
下面以对文本选取复制为例来介绍本实施例的文本处理方法。
如图3所示,当前屏幕中存在一文本显示区域S301,现通过用户需要去复制整段文本里面的三条字符串“1234567890”、“0987654321”“1122334455”。
第一步:如图4所示,终端检测到当前屏幕中同时存在多个触摸点,其中,第一触摸点A在位置S302处、第二触摸点B在位置S303处;
第二步:终端判断两个触摸点是否均落在文本显示区域内,若是,则执行步骤下一步;
第三步:如图5所示,用户在屏幕上操作使第一触摸点A和第二触摸点B分别在屏幕滑动,终端检测到第一触摸点A和第二触摸点B在文本显示区域S301上形成的轨迹S304、S305,然后标记轨迹S304、S305分别覆盖的字符串“1234567890”、“0987654321”;
此时,第一触摸点A和第二触摸点B始终存在,因此,终端检测到轨迹S304、S305时就会标记轨迹S304、S305分别覆盖的字符串;
第四步:如图6所示,保持滑动后的第二触摸点B(在位置S306处)不变,用户在屏幕上点击或者按压形成新的第三触摸点C,该第三触摸点C位于第三条字符串“1122334455”的段首位置S307处;
第五步:如图7所示,用户在屏幕上操作使第三触摸点C在屏幕上滑动形成覆盖“1122334455”的轨迹,终端标记字符串“1122334455”;此时三条字符串均成功标记;
第六步:在第二触摸点B和第三触摸点C消失后,终端提取并复制标记的三条字符串“1234567890”、“0987654321”“1122334455”,并保存在缓存中。
实施例三
如图8所示,本实施例提供了一种文本选取装置,包括:检测模块和选取模块;
所述检测模块设置为:在终端显示文本时,检测当前所述终端的触摸屏 上是否有至少两个位于终端的文本显示区域内的第一触摸点;以及在至少一个所述第一触摸点存在的期间内,检测在所述文本显示区域内是否有第一滑动轨迹;
所述选取模块设置为:在所述检测模块检测到有多个位于终端的文本显示区域内的第一触摸点时,则在至少一个所述第一触摸点存在的期间内,当所述检测模块检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。
可选地,所述第一滑动轨迹包括:所述第一触摸点在所述文本显示区域内滑动形成的若干条滑动轨迹,和/或,新增的第二触摸点在所述文本显示区域内滑动形成的若干条滑动轨迹。
可选地,所述选取模块,还设置为:
当在至少一个新增的触摸点存在的期间内,所述第一触摸点消失后,如果检测到在所述文本显示区域内有第二滑动轨迹,则选中所述第二滑动轨迹所覆盖的文本内容。
可选地,在不存在所述第二触摸点的情况下,所述新增的触摸点为在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;所述第二滑动轨迹包括:所述第三触摸点在所述文本显示区域内滑动形成的若干条滑动轨迹。
可选地,在存在新增的第二触摸点的情况下,所述新增的触摸点为:所述第二触摸点,或者,在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;所述第二滑动轨迹包括:所述第二触摸点在所述文本显示区域内滑动形成的若干条滑动轨迹,和/或,所述第三触摸点在所述文本显示区域内滑动形成的若干条滑动轨迹。
如图9所示,本实施例还提供了一种文本处理装置,包括:如上所述的文本选取装置、提取模块和处理模块;
所述提取模块设置为:在所有触摸点消失时,提取所述文本选取装置选中的文本内容;
所述处理模块设置为对所述提取模块提取的文本内容进行处理。
本实施例的文本选取装置依赖于多点触摸技术,可支持用户进行多点触摸操作且通过用户的滑动操作来选取所需的文本内容;应用本实施例的文本选取装置可以供用户一次性选取离散的多段文本内容,且在选取某段文本内容时只需用户进行对应的滑动操作即可选中该段文本内容;本实施例的文本选取装置简化了对文本内容选取的用户操作,并且提升了文本内容选取的效率,提升了用户体验。
此外,本发明实施例还提供一种终端,包括:显示器、传感器以及处理器,
所述传感器设置为:在显示器显示文本时,检测当前所述显示器的触摸屏上是否有至少两个位于显示器的文本显示区域内的第一触摸点;以及在至少一个所述第一触摸点存在的期间内,检测在所述文本显示区域内是否有第一滑动轨迹;
所述处理器设置为:在所述传感器检测到当前所述终端的触摸屏上有至少两个位于终端的文本显示区域内的第一触摸点后,在至少一个所述第一触摸点存在的期间内,当所述传感器检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。
此外,本发明实施例还提供一种终端,包括:显示器、传感器以及处理器,
所述传感器设置为:在显示器显示文本时,检测当前所述显示器的触摸屏上是否有至少两个位于显示器的文本显示区域内的第一触摸点;以及在至少一个所述第一触摸点存在的期间内,检测在所述文本显示区域内是否有第一滑动轨迹;
所述处理器设置为:在所述传感器检测到当前所述终端的触摸屏上有至少两个位于终端的文本显示区域内的第一触摸点后,在至少一个所述第一触摸点存在的期间内,当所述传感器检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容,并在所有触摸点消失时,提取选中的文本内容,对提取的文本内容进行处理。
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可 执行指令,所述计算机可执行指令被执行时实现上述文本选取方法。
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述文本处理方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。
以上内容是结合具体的实施方式对本申请所作的进一步详细说明,不能认定本申请的具体实施只局限于这些说明。对于本申请所属技术领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本申请的保护范围。
工业实用性
本发明实施例提供一种文本选取方法和装置、文本处理方法和装置,基于多点触摸技术,可支持用户进行多点触摸操作且通过用户的滑动操作来选取所需的文本内容;供用户一次性选取离散的多段文本内容,且在选取某段文本内容时只需用户进行对应的滑动操作即可选中该段文本内容;简化了对文本内容选取的用户操作,而且提升了文本内容选取的效率,提升了用户体验。

Claims (15)

  1. 一种文本选取方法,包括如下步骤:
    在终端显示文本时,检测当前所述终端的触摸屏上是否有至少两个位于终端的文本显示区域内的第一触摸点;
    若有,则在至少一个所述第一触摸点存在的期间内,当检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。
  2. 如权利要求1所述的文本选取方法,其中,所述第一滑动轨迹包括:所述第一触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹,和/或,新增的第二触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
  3. 如权利要求2所述的文本选取方法,所述方法还包括:
    当在至少一个新增的触摸点存在的期间内,所述第一触摸点消失后,如果检测到在所述文本显示区域内有第二滑动轨迹,则选中所述第二滑动轨迹所覆盖的文本内容。
  4. 如权利要求3所述的文本选取方法,其中,
    在不存在所述第二触摸点的情况下,所述新增的触摸点为在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;
    所述第二滑动轨迹包括:所述第三触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
  5. 如权利要求3所述的文本选取方法,其中,
    在存在新增的第二触摸点的情况下,所述新增的触摸点为:所述第二触摸点,或者在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;
    所述第二滑动轨迹包括:所述第二触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹,和/或,所述第三触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
  6. 一种文本处理方法,包括下步骤:
    利用如权利要求1-5任一项所述的文本选取方法选中文本内容;
    在所有触摸点消失时,提取选中的文本内容;
    对提取的文本内容进行处理。
  7. 如权利要求6所述的方法,其中,所述对提取的文本内容进行处理的步骤包括:
    对提取的文本内容进行复制并存储复制的文本内容。
  8. 一种文本选取装置,包括:检测模块和选取模块;
    所述检测模块设置为:在终端显示文本时,检测当前所述终端的触摸屏上是否有至少两个位于终端的文本显示区域内的第一触摸点;以及在至少一个所述第一触摸点存在的期间内,检测在所述文本显示区域内是否有第一滑动轨迹;
    所述选取模块设置为:在所述检测模块检测到当前所述终端的触摸屏上有至少两个位于终端的文本显示区域内的第一触摸点时,则在至少一个所述第一触摸点存在的期间内,当所述检测模块检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。
  9. 如权利要求8所述的文本选取装置,其中,所述第一滑动轨迹包括:所述第一触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹,和/或,新增的第二触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
  10. 如权利要求9所述的文本选取装置,其中,所述选取模块,还设置为:
    当在至少一个新增的触摸点存在的期间内,所述第一触摸点消失后,如果检测到在所述文本显示区域内有第二滑动轨迹,则选中所述第二滑动轨迹所覆盖的文本内容。
  11. 如权利要求10所述的文本选取装置,其中,
    在不存在所述第二触摸点的情况下,所述新增的触摸点为在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;
    所述第二滑动轨迹包括:所述第三触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
  12. 如权利要求10所述的文本选取装置,其中,
    在存在新增的第二触摸点的情况下,所述新增的触摸点为:所述第二触摸点,或者,在选中所述第一滑动轨迹所覆盖的文本内容之后新增的第三触摸点;
    所述第二滑动轨迹包括:所述第二触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹,和/或,所述第三触摸点在所述文本显示区域内滑动形成的一条或多条滑动轨迹。
  13. 一种文本处理装置,其特征在于,包括:如权利要求8-12任一项所述的文本选取装置、提取模块和处理模块;
    所述提取模块设置为:在所有触摸点消失时,提取所述文本选取装置选中的文本内容;
    所述处理模块设置为:对所述提取模块提取的文本内容进行处理。
  14. 一种终端,包括:显示器、传感器以及处理器,
    所述传感器设置为:在显示器显示文本时,检测当前所述显示器的触摸屏上是否有至少两个位于显示器的文本显示区域内的第一触摸点;以及在至少一个所述第一触摸点存在的期间内,检测在所述文本显示区域内是否有第一滑动轨迹;
    所述处理器设置为:在所述传感器检测到当前所述终端的触摸屏上有至少两个位于终端的文本显示区域内的第一触摸点后,在至少一个所述第一触摸点存在的期间内,当所述传感器检测到在所述文本显示区域内有第一滑动轨迹时,选中所述第一滑动轨迹所覆盖的文本内容。
  15. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现权利要求1-5任一项所述的文本选取方法。
PCT/CN2016/071979 2015-04-29 2016-01-25 文本选取方法和装置、文本处理方法和装置 WO2016173305A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510212025.2A CN106201294A (zh) 2015-04-29 2015-04-29 文本选取方法和装置、文本处理方法和装置
CN201510212025.2 2015-04-29

Publications (1)

Publication Number Publication Date
WO2016173305A1 true WO2016173305A1 (zh) 2016-11-03

Family

ID=57198089

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/071979 WO2016173305A1 (zh) 2015-04-29 2016-01-25 文本选取方法和装置、文本处理方法和装置

Country Status (2)

Country Link
CN (1) CN106201294A (zh)
WO (1) WO2016173305A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763193A (zh) * 2018-04-18 2018-11-06 Oppo广东移动通信有限公司 文字处理方法、装置、移动终端及存储介质
CN110069774A (zh) * 2019-03-15 2019-07-30 维沃移动通信有限公司 文本处理方法、装置及终端

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648436A (zh) * 2016-12-30 2017-05-10 维沃移动通信有限公司 一种文本信息处理方法及移动终端
CN108427527B (zh) * 2017-02-14 2022-01-04 阿里巴巴集团控股有限公司 信息选择方法、装置和移动终端
CN110536018A (zh) * 2019-09-02 2019-12-03 深圳市万普拉斯科技有限公司 信息提取方法、装置、电子设备及存储介质
CN110865751A (zh) * 2019-10-09 2020-03-06 上海掌门科技有限公司 一种内容选择方法及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033642A (zh) * 2009-09-29 2011-04-27 联想(北京)有限公司 一种手势识别的方法及电子设备
CN102681753A (zh) * 2011-03-15 2012-09-19 深圳晶为华悦科技有限公司 在具有多点触摸屏的设备中选取显示内容的方法及系统
US20130285928A1 (en) * 2012-04-30 2013-10-31 Research In Motion Limited Method and apparatus for text selection
CN103608760A (zh) * 2011-06-03 2014-02-26 谷歌公司 用于选择文本的手势
CN104298437A (zh) * 2013-07-15 2015-01-21 中兴通讯股份有限公司 一种文本选择方法、装置和终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324440B (zh) * 2013-07-05 2016-06-08 广东欧珀移动通信有限公司 一种利用多点触控选择文字内容的方法
CN104516662A (zh) * 2013-09-26 2015-04-15 诺基亚公司 用于在触屏设备中输入内容的方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033642A (zh) * 2009-09-29 2011-04-27 联想(北京)有限公司 一种手势识别的方法及电子设备
CN102681753A (zh) * 2011-03-15 2012-09-19 深圳晶为华悦科技有限公司 在具有多点触摸屏的设备中选取显示内容的方法及系统
CN103608760A (zh) * 2011-06-03 2014-02-26 谷歌公司 用于选择文本的手势
US20130285928A1 (en) * 2012-04-30 2013-10-31 Research In Motion Limited Method and apparatus for text selection
CN104298437A (zh) * 2013-07-15 2015-01-21 中兴通讯股份有限公司 一种文本选择方法、装置和终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763193A (zh) * 2018-04-18 2018-11-06 Oppo广东移动通信有限公司 文字处理方法、装置、移动终端及存储介质
CN110069774A (zh) * 2019-03-15 2019-07-30 维沃移动通信有限公司 文本处理方法、装置及终端

Also Published As

Publication number Publication date
CN106201294A (zh) 2016-12-07

Similar Documents

Publication Publication Date Title
WO2016173305A1 (zh) 文本选取方法和装置、文本处理方法和装置
JP6506347B2 (ja) 電子装置及びそのホーム画面編集方法
US10809893B2 (en) System and method for re-sizing and re-positioning application windows in a touch-based computing device
US20140372923A1 (en) High Performance Touch Drag and Drop
JP5854442B2 (ja) 複数キャラクターを連続筆記する手書き入力方法
WO2016173306A1 (zh) 文本选取方法和装置、文本处理方法和装置
US10007406B1 (en) Adaptive writing interface
WO2018120084A1 (zh) 柔性显示设备的控制方法及装置
US8418077B2 (en) File content navigation using binary search
US10607574B2 (en) Information processing device and information processing method
WO2016095689A1 (zh) 基于终端界面多次触控操作进行识别搜索的方法及系统
EP2614428A1 (en) Drag-able tabs
JP6448639B2 (ja) テキスト選択方法、装置および端末
US20130246975A1 (en) Gesture group selection
US11119622B2 (en) Window expansion method and associated electronic device
WO2017101331A1 (zh) 一种信息提示方法、装置、计算机程序和存储介质
WO2014044133A1 (zh) 应用界面及控制应用界面操作的方法和装置
WO2014059677A1 (zh) 一种用户界面的处理方法和电子设备
AU2012382068B2 (en) Method and apparatus for entering symbols from a touch-sensitive screen
US20140380248A1 (en) Method and apparatus for gesture based text styling
US20140108982A1 (en) Object placement within interface
KR20140067541A (ko) 터치 스크린 디스플레이를 통해 컨텐츠를 선택하는 방법 및 장치
US9772768B2 (en) Touch page control method and system
EP3210101B1 (en) Hit-test to determine enablement of direct manipulations in response to user actions
US20150253944A1 (en) Method and apparatus for data processing

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

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

Country of ref document: EP

Kind code of ref document: A1