WO2015043192A1 - 一种选取文字的方法、装置和终端设备 - Google Patents

一种选取文字的方法、装置和终端设备 Download PDF

Info

Publication number
WO2015043192A1
WO2015043192A1 PCT/CN2014/077098 CN2014077098W WO2015043192A1 WO 2015043192 A1 WO2015043192 A1 WO 2015043192A1 CN 2014077098 W CN2014077098 W CN 2014077098W WO 2015043192 A1 WO2015043192 A1 WO 2015043192A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
text
contact point
text node
contact
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2014/077098
Other languages
English (en)
French (fr)
Inventor
左景龙
徐国市
张少伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to RU2015123449A priority Critical patent/RU2612598C2/ru
Priority to KR1020147021395A priority patent/KR101600999B1/ko
Priority to MX2014008739A priority patent/MX348965B/es
Priority to JP2015538284A priority patent/JP6068660B2/ja
Priority to BR112014017601-9A priority patent/BR112014017601B1/pt
Priority to US14/334,670 priority patent/US9377949B2/en
Publication of WO2015043192A1 publication Critical patent/WO2015043192A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present invention is based on a Chinese patent application with the application number 201310452543.2 and the application date being September 27, 2013, and claims the priority of the Chinese patent application, the entire Chinese patent application The contents are incorporated herein by reference.
  • the present disclosure relates to the field of computer technology, and in particular, to a method, an apparatus, and a terminal device for selecting characters. Background technique
  • the touch gesture can be used to select the text of the corresponding position.
  • Common touch gestures for selecting text are, for example, long press gestures, double tap gestures, or click gestures.
  • the purpose of the present disclosure is to propose a method of selecting a character, which is capable of accurately selecting a character according to a user's touch gesture.
  • the present disclosure provides a method of selecting a text, the method comprising the steps of:
  • the text closest to the contact in the searched text node is used as the text selected by the contact.
  • the text closest to the contact point in the text node closest to the contact is used as the text of the contact selection, thus realizing the touch.
  • the text selected by the touch screen operation can also be provided, which avoids the user repeatedly selecting and providing convenience for the user.
  • the searching for the text node closest to the contact includes:
  • step by step Starting from the node where the contact is located, step by step to find whether there is a text node until the text node is found; calculating the distance between the contact and each of the found text nodes; the text node having the smallest calculated distance Determines the text node that is the closest to the contact found.
  • the step-by-step search method can improve search efficiency. Starting from the node where the contact is located, step by step to find out whether there is a text node until the text node is found, including:
  • the parent node of the node where the contact is located is used as the node where the contact is located, and the execution is repeated.
  • the step of finding a text node in the sibling node of the parent node of the node where the contact is located until the text node is found.
  • the method further includes: determining whether the node where the contact is located is a subject node; if the node where the contact is located is a subject node, stopping searching for the text node.
  • the calculating a distance between the contact and the found text node includes:
  • a distance between the contact and the found text node is calculated based on the area of the contact around the found text node. Can improve the efficiency of the search.
  • the area around the found text node includes an upper side area, a lower side area, a left side area, a right side area, an upper left area, an upper right area, a lower left area, and a lower right area of the found text node;
  • Calculating a distance between the contact and the found text node according to the area where the contact is located around the found text node including:
  • the coordinates of the contact are (m, n), the coordinates of the lower left vertex of the found text node are (xl, yl), the coordinates of the upper left vertex are (xl, y2), and the coordinates of the upper right vertex are (x2, y2).
  • the coordinates of the lower right vertex are (x2, yl)
  • the distance between the contact and the text node is ⁇ ( _ ) 2 +( «- 2 ) 2 ; when the contact is in the left area of the text node, the contact and the text node The distance is
  • the distance between the contact and the text node is ⁇ ( - f + ⁇ - ⁇ ) 2 ;
  • the distance between the contact and the text node is ⁇ ( - m ) 2 + (y 2 -nf ; when the contact is in the upper area of the text node, the contact and the text node The distance is
  • Determining, in the searched text node, the text closest to the contact as the text selected by the contact including: determining, according to the area around the searched text node, the searched text node The closest text position to the contact; The text at the text position is determined as the text selected by the contact.
  • Determining, according to the area around the searched text node, the text position of the searched text node that is closest to the contact including:
  • the coordinates of the contact are (m, n), the coordinates of the lower left vertex of the searched text node are (xl, yl), the coordinates of the upper left vertex are (xl, y2), and the coordinates of the upper right vertex are (x2, y2).
  • the coordinates of the lower right vertex are (x2, yl), the character width is w, and the character height is h;
  • the abscissa of the text position closest to the contact in the searched text node is: + xw ; the ordinate is: y 2 + xh ;
  • the abscissa of the text position closest to the contact in the searched text node is: The ordinate is: n .
  • the abscissa of the text position closest to the contact in the searched text node is: The ordinate is: yr ⁇ xh;
  • the abscissa of the text position closest to the contact in the searched text node is: m; the ordinate is: yr xh;
  • the abscissa of the text position closest to the contact in the searched text node is: -
  • the ordinate is: yi - ⁇ xh ;
  • the abscissa coordinates of the text position closest to the contact in the searched text node are: _ ⁇ w ; the ordinate is: n ;
  • the abscissa of the text position closest to the contact in the searched text node is: _ ⁇ w ; the ordinate is: y 2 + xh ;
  • the abscissa of the text position closest to the contact in the searched text node is: m ; the ordinate is: y 2 + ⁇ xh.
  • the text node is a visible text node. 2
  • the present disclosure also provides an apparatus for selecting a text, the apparatus comprising:
  • a detecting module configured to detect whether a contact of the touch screen operation of the selected text falls in the text node
  • a search module when the contact does not fall in the text node, searching for a text node that is closest to the contact;
  • a selection module configured to use the text closest to the contact in the searched text node as The text selected by the contact.
  • the search module includes:
  • a searching unit configured to search for a text node step by step from the node where the contact is located, until a text node is found
  • a calculating unit configured to calculate a distance between the contact and each of the found text nodes
  • a determining unit configured to determine the text node having the smallest calculated distance as the searched text node closest to the contact.
  • the search unit is used to: Finding whether there is a text node in the node where the contact is located;
  • the parent node of the node where the contact is located is used as the node where the contact is located, and the execution is repeated.
  • the step of finding a text node in the sibling node of the parent node of the node where the contact is located until the text node is found.
  • the search module further includes: a determining unit, configured to determine whether the node where the contact is located is a subject node; if the node where the contact is located is a subject node, stopping searching for the text node.
  • the computing unit includes:
  • Determining an area subunit configured to determine, according to coordinates of the contact and coordinates of the found text node, an area in which the contact is around the found text node;
  • a calculating subunit configured to calculate a distance between the contact and the found text node according to the area where the contact is around the found text node.
  • the area around the found text node includes an upper side area, a lower side area, a left side area, a right side area, an upper left area, an upper right area, a lower left area, and a lower right area of the found text node;
  • the calculation subunit is used to:
  • the coordinates of the contact are (m, n), the coordinates of the lower left vertex of the found text node are (xl, yl), the coordinates of the upper left vertex are (xl, y2), and the coordinates of the upper right vertex are (x2, y2).
  • the coordinates of the lower right vertex are (x2, yl)
  • the distance between the contact and the text node is ⁇ ( _ ) 2 + ( « _ 2 ) 2 ; when the contact is in the left area of the text node, the contact and the text node The distance is
  • the distance between the contact and the text node is ⁇ ( - f + ⁇ - ⁇ ) 2 ;
  • the distance between the contact and the text node is ⁇ - m f + ⁇ 2 - n f ;
  • the distance between the contact and the text node is
  • the selection module includes:
  • Determining a text position unit configured to determine, according to the area around the searched text node that the contact is located, a text position closest to the contact in the searched text node;
  • a selecting unit configured to determine the text at the text position as the text selected by the contact.
  • the determined text position unit is used to:
  • the coordinates of the contact are (m, n), the coordinates of the lower left vertex of the searched text node are (xl, yl), the coordinates of the upper left vertex are (xl, y2), and the coordinates of the upper right vertex are (x2, y2).
  • the coordinates of the lower right vertex are (x2, yl) and the width of the character is w.
  • the character height is h;
  • the abscissa of the text position closest to the contact in the searched text node is: ordinate is: y 2 + xh ;
  • the abscissa of the text position closest to the contact in the searched text node is: + ⁇ w ; the ordinate is: n ;
  • the abscissa of the text position closest to the contact in the searched text node is: + xw ; the ordinate is: yr ⁇ xh;
  • the abscissa of the text position closest to the contact in the searched text node is: m; the ordinate is: yr xh;
  • the abscissa of the text position closest to the contact in the searched text node is: - xw; the ordinate is: yi - ⁇ xh ;
  • the abscissa coordinates of the text position closest to the contact in the searched text node are: x 2 _ ⁇ w ; the ordinate is: n ;
  • the abscissa of the text position closest to the contact in the searched text node is: _ ⁇ w ; the ordinate is: y 2 + xh ;
  • the abscissa of the text position closest to the contact in the searched text node is: m ; the ordinate is: y 2 + ⁇ xh.
  • the text node is a visible text node. 2
  • the present disclosure also provides a terminal device, the terminal device including a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more Executing the one or more programs includes instructions for performing the following operations:
  • the text closest to the contact in the searched text node is used as the text selected by the contact.
  • FIG. 1 is a schematic flow chart of a main method of selecting characters in the present disclosure
  • FIG. 2 is a schematic flow chart of a detailed method for selecting a text by searching a text node step by step in the present disclosure
  • 3 is a schematic diagram of searching a text node step by step in the present disclosure
  • FIG. 5 is a schematic diagram of area division around a text node represented in a Cartesian coordinate system in the present disclosure
  • FIG. 6 is a schematic diagram of selecting text from a text node in the present disclosure
  • FIG. 7 is a schematic diagram showing the main structure of an apparatus for selecting characters in the present disclosure.
  • FIG. 8 is a schematic structural diagram of a search module in an apparatus for selecting characters in the present disclosure
  • FIG. 9 is a schematic structural diagram of another example of a search module in an apparatus for selecting characters in the present disclosure.
  • FIG. 10 is a schematic structural diagram of a calculation unit of a search module in a device for selecting characters in the present disclosure
  • FIG. 11 is a schematic structural diagram of a selection module in a device for selecting characters in the present disclosure
  • FIG. 12 is a schematic structural diagram of a terminal device proposed in the present disclosure.
  • the method for selecting text proposed by the present disclosure is mainly used for providing a touch terminal implementation of text selection.
  • the method of selecting text in the present disclosure is as follows:
  • Step S101 Detect whether the contact of the touch screen operation of the selected text falls in the text node.
  • Step S102 When the contact does not fall in the text node, search for a text node that is closest to the contact.
  • the text node is a visible text node.
  • the text closest to the contact point in the text node closest to the contact is used as the text of the contact selection, thus realizing the touch.
  • the text selected by the touch screen operation can also be provided, which avoids the user repeatedly selecting and providing convenience for the user.
  • the method for selecting a text proposed in the present disclosure when searching for a text node closest to the contact, may start from the node where the contact is located, and search for a text node step by step until a text node is found; The distance between the contact and the found text node; the text node that minimizes the calculated distance is determined as the searched text node closest to the contact. Searching by level according to the level of the node can improve search efficiency. In addition, the level can be further restricted, so that the balance between the search speed and the search degree can be obtained.
  • the text node is searched step by step from the node where the contact is located, to the sibling node of the node where the contact is located, to the sibling node of the parent node of the node where the contact is located, thereby obtaining the contact selection.
  • Text For example, detailed The detailed method flow is as follows:
  • Step S201 Receive a touch screen operation of the user selecting the text.
  • Step S202 Determine a contact of the touch screen operation.
  • Step S203 Detect whether the contact falls in the text node; if yes, go to step S204; if no, go to step S205.
  • Step S204 The text of the position of the contact in the text node is used as the text selected by the contact.
  • Step S205 Find whether there is a text node in the node where the contact is located; if yes, go to step S209; if no, go to step S206.
  • Step S206 Find whether there is a text node in the sibling node of the node where the contact is located; if yes, go to step S209; if no, go to step S207.
  • Step S207 Find whether there is a text node in the sibling node of the parent node of the node where the contact is located; if yes, go to step S209; if no, go to step S208.
  • Step S208 After the parent node of the node where the contact is located is the node where the contact is located, step S207 o is performed.
  • Step S209 Calculate the distance between the contact and the found text node.
  • Step S210 Determine the text node with the smallest calculated distance as the searched text node closest to the contact.
  • Step S211 The text of the searched text node closest to the contact is used as the text selected by the contact.
  • the searching steps 205, 206, and 207 it is also possible to first determine whether the current node is a subject node (Body node), and when the current node is a subject node, stop searching.
  • a subject node Body node
  • This embodiment enables an exhaustive lookup when looking up a text node. For example, as shown in FIG. 3, in the interface, when the contact 301 does not fall in the text node, the node 302 where the contact is located is searched for whether there is a text node, and if the nodes 303 and 304 in the node 302 are not text nodes, In the sibling node 305 of the node 302, it is searched for whether there is a text node; if there is no text node in the node 305, then the sibling nodes 307 and 308 of the parent node 306 of the node 302 are searched for whether there is a text node; When there is still no text node in 308, the parent node 306 of the node 302 where the contact is located is used as the node where the contact is located, and the brother nodes 310 and 311 of the parent node 309 of the node 306 are searched for the presence of text. node.
  • step S209 of the above embodiment the contact is located in the area around the found text node according to the coordinates of the contact and the coordinates of the found text node, and then the contact is located around the found text node.
  • a region calculates a distance between the contact and the found text node. Since different distances can be used depending on the area where the contacts are located, the calculation efficiency can be improved. In the following, an example will be given of how to calculate the distance of a contact from a text node based on the area around the text node where the contact is located.
  • the nodes in the web page occupy a rectangular area. According to the coordinates of the contacts and the coordinates of the vertices of the nodes, it is possible to determine which area of the node the contact is located on. As shown in Figure 4, in this example, around the rectangular text node The area is divided into eight areas, namely: an upper left area 401, a left side area 402, a lower left area 403, a lower side area 404, a lower right area 405, a right side area 406, an upper right area 407, and an upper side area 408. Based on the coordinates of the four vertices of the text node and the coordinates of the contact, it is determined which of the above eight regions the contact is in.
  • the coordinates of the four vertices of the rectangular text node are A(xl, yl), B(xl, y2), C(x2, y2, respectively. ), D(x2, yl).
  • the coordinates of the contact P are P(m, n).
  • the coordinates of the contact point and the coordinates of the rectangular area are compared to determine which area the contact is in, and then different algorithms are selected according to different areas to calculate the distance of the contact to the text node.
  • the contact P is in the upper left area 401 of the text node.
  • the distance S between the contact P and the text node is (x") 2 + ("__y 2 ) 2 ;
  • the contact P When m ⁇ xl, y2 n yl, the contact P is in the left area 402 of the text node, and at this time, the distance S between the contact P and the text node is
  • the contact P is in the lower side region 404 of the text node, and at this time, the distance S between the contact P and the text node is
  • the contact P is in the lower right area 405 of the text node.
  • the distance S between the contact P and the text node is (-) 2 + (_y "") 2 ;
  • the contact P is in the right area 406 of the text node, and the distance S between the contact P and the text node is
  • the contact P is in the upper region 408 of the text node, and at this time, the distance S between the contact P and the text node is
  • step S211 of the above embodiment it is also possible to first determine, according to the coordinates of the contact point and the coordinates of the searched text node, the area around the searched text node, and then according to the contact being around the searched text node. The area to determine the position of the text in the searched text node that is closest to the contact.
  • determining the area where the contact is located around the searched text node may use the above method of determining the area where the contact is located, and details are not described herein. Take the area shown in Figure 5 as an example:
  • the abscissa of the text position closest to the contact in the searched text node is: + ⁇ w ; the ordinate is: n ;
  • the abscissa of the text position closest to the contact in the searched text node is: + xw; the ordinate is: yr xh;
  • the distance is found in the searched text node
  • the abscissa of the nearest text position is: m ; the ordinate is: yr xh ;
  • the abscissa of the text position closest to the contact in the searched text node is: - ⁇ w ; the ordinate is: yr ⁇ xh;
  • the abscissa coordinates of the text position closest to the contact in the searched text node are: x 2 _ xw ; the ordinate is: n ⁇ '
  • the abscissa of the text position closest to the contact in the searched text node is: x 2 _ ⁇ w ; the ordinate is: y 2 + xh ;
  • the abscissa of the text position closest to the contact in the searched text node is: m ; the ordinate is: y 2 + xh.
  • the present disclosure further provides an apparatus for selecting a text, the apparatus comprising: a detecting module 701, configured to detect whether a contact of a touch screen operation of selecting a text falls within a text node; 702, when the contact does not fall in the text node, search for a text node that is closest to the contact; a selection module 703, configured to use the text closest to the contact in the searched text node as the The text selected by the contact.
  • a detecting module 701 configured to detect whether a contact of a touch screen operation of selecting a text falls within a text node
  • 702 when the contact does not fall in the text node, search for a text node that is closest to the contact
  • a selection module 703 configured to use the text closest to the contact in the searched text node as the The text selected by the contact.
  • the search module 702 includes:
  • the searching unit 801 is configured to, according to the node where the contact is located, step by step to find whether there is a text node until a text node is found;
  • a calculating unit 802 configured to calculate a distance between the contact and each of the found text nodes
  • the determining unit 803 determines a text node for minimizing the calculated distance as the searched text node closest to the contact.
  • the searching unit 801 is configured to:
  • the search module 702 further includes:
  • the determining unit 804 is configured to determine whether the node where the contact is located is a subject node; if the node where the contact is located is a subject node, stop searching for the text node.
  • the calculating unit 802 includes:
  • the calculating subunit 1002 is configured to calculate a distance between the contact and the found text node according to the area where the contact is around the found text node.
  • the area around the found text node includes an upper side area, a lower side area, a left side area, a right side area, an upper left area, an upper right area, a lower left area, and a lower right area of the found text node;
  • the calculation subunit 1002 is used to:
  • the coordinates of the contact are (m, n), the coordinates of the lower left vertex of the found text node are (xl, yl), the coordinates of the upper left vertex are (xl, y2), and the coordinates of the upper right vertex are (x2, y2).
  • the coordinates of the lower right vertex are (x2, yl)
  • the distance between the contact and the text node is ⁇ ( _ ⁇ ) 2 +( «_ 2 ) 2 ; when the contact is in the left area of the text node, the contact and the text node The distance is
  • the distance between the contact and the text node is ⁇ ( - f + ⁇ - ⁇ ) 2 ;
  • the distance between the contact and the text node is
  • the distance between the contact and the text node is ⁇ -m ⁇ + ⁇ yi -n) 2 ;
  • the contact and the text node The distance is
  • the distance between the contact and the text node is ⁇ ( - m ) 2 +(y 2 - n ) 2 ;
  • the contact and text The distance of the node is
  • the selection module 703 includes:
  • Determining a text position unit 1101, configured to determine, according to the area around the searched text node that the contact is located, a text position closest to the contact in the searched text node;
  • the selecting unit 1102 is configured to determine the character at the character position as the character selected by the contact.
  • the determined text position unit 1101 is used to:
  • the coordinates of the contact are (m, n), the coordinates of the lower left vertex of the searched text node are (xl, yl), the coordinates of the upper left vertex are (xl, y2), and the coordinates of the upper right vertex are (x2, y2).
  • the coordinates of the lower right vertex are (x2, yl), the character width is w, and the character height is h;
  • the abscissa of the text position closest to the contact in the searched text node is: ordinate is: y 2 + xh ;
  • the abscissa of the text position closest to the contact in the searched text node is: + ⁇ w ; the ordinate is: n ;
  • the abscissa of the text position closest to the contact in the searched text node is: + ⁇ xw; the ordinate is: yi - ⁇ xh;
  • the abscissa of the text position closest to the contact in the searched text node is: m; the ordinate is: yr xh;
  • the abscissa of the text position closest to the contact in the searched text node is: - xw ; the ordinate is: yi - ⁇ xh ;
  • the abscissa coordinates of the text position closest to the contact in the searched text node are: x 2 _ ⁇ w ; the ordinate is: n ⁇ '
  • the abscissa of the text position closest to the contact in the searched text node is: _ ⁇ w ; the ordinate is: y 2 + xh ;
  • the abscissa of the text position closest to the contact in the searched text node is: m ; the ordinate is: y 2 + xh.
  • the text node is a visible text node.
  • FIG. 12 is a schematic structural diagram of a terminal device provided by the present disclosure.
  • the terminal device can be used to implement the method for selecting characters provided in the foregoing embodiment.
  • the terminal device 1 100 may include a communication unit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, WiFi (wireless fidelity, wireless fidelity;
  • the module 170 includes a processor 180 having one or more processing cores, and a power supply 190 and the like. It will be understood by those skilled in the art that the terminal device structure shown in FIG. 12 does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • the communication unit 1 10 can be used for transmitting and receiving information or receiving and transmitting signals during a call.
  • the communication unit 10 can be a network communication device such as an RF (Radio Frequency) circuit, a router, a modem, or the like.
  • RF Radio Frequency
  • the communication unit 110 is an RF circuit
  • the downlink information of the base station is received, and then processed by one or more processors 180; in addition, data related to the uplink is transmitted to the base station.
  • RF circuits as communication units include, but are not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and a LNA (Low Noise Amplifier, low) Noise amplifier), duplexer, etc.
  • SIM Subscriber Identity Module
  • the communication unit 110 can also communicate with the network and other devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data (such as audio data, phone book, etc.) created by the use of the terminal device 1 100.
  • the memory 120 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, or Other volatile solid-state storage devices. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • Input unit 130 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • Input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 may include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • Other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 140 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of terminal device 1100, which can be comprised of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal device 1100 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 and/or when the terminal device 1100 moves to the ear.
  • Backlighting As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; other devices such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can be configured for the terminal device lieo, here No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 1100.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, and then passed through the RF circuit 110. It is sent to, for example, another terminal device, or the audio data is output to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal device 1100.
  • the terminal device may be configured with a wireless communication unit 170, which may be a WiFi module.
  • WiFi is a short-range wireless transmission technology
  • the terminal device 700 can help users to send and receive emails, browse web pages, and access streaming media through the wireless communication unit 170, which provides users with wireless broadband Internet access.
  • FIG. 12 shows the wireless communication unit 170, it can be understood that it does not belong to the essential configuration of the terminal device 1100, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the terminal device 1100 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120.
  • the various functions and processing data of the terminal device 1100 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; in an embodiment, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal device 1100 also includes a power source 190 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 180 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal device 1100 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal device is a touch screen display
  • the terminal device further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be one or more
  • the processor executing the one or more programs includes instructions for performing the following operations:
  • the text closest to the contact in the searched text node is used as the text selected by the contact.
  • the mobile terminal of the present disclosure may be a variety of handheld terminal devices, such as mobile phones, personal digital assistants (PDAs), etc., and thus the scope of protection of the present disclosure should not be limited to a particular type of mobile terminal.
  • PDAs personal digital assistants
  • the method according to the present disclosure may also be implemented as a computer program executed by a CPU.
  • the computer program is executed by the CPU, the above-described functions defined in the method of the present disclosure are performed.
  • the above method steps and system elements can also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the above described steps or unit functions.
  • non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM;), electrically erasable programmable ROM (EEPROM) or fast Flash memory.
  • Volatile memory A random access memory (RAM) can be included, which can act as an external cache memory.
  • RAM can be obtained in a variety of forms, such as synchronous RAM (DRAM;), dynamic RAM (DRAM;), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (E). SDRAM), Synchronous Link DRAM (SLDRAM) and direct Rambus RAM (DRRAM;).
  • DRAM synchronous RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • E enhanced SDRAM
  • SDRAM Synchronous Link DRAM
  • DRRAM direct Rambus RAM
  • Storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
  • DSP digital signal processor
  • ASIC dedicated An integrated circuit
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller or state machine.
  • the processor can also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
  • the software module can reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from or write information to the storage medium.
  • the storage medium can be integrated with the processor.
  • the processor and storage media can reside in an ASIC.
  • the ASIC can reside in the user terminal.
  • the processor and the storage medium may reside as discrete components in the user terminal.
  • the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
  • the computer readable medium may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, disk storage device or other magnetic storage device, or may be used for carrying or storing a form of instructions Or the required program code of the data structure and any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor. Also, any connection is properly termed a computer-readable medium.
  • a magnetic disk and an optical disk include a compact disk (CD), a laser disk, an optical disk, a digital versatile disk (DVD), a floppy disk, a Blu-ray disk, in which a disk generally reproduces data magnetically, and an optical disk optically reproduces data using a laser. . Combinations of the above should also be included within the scope of computer readable media.

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)
  • Input From Keyboards Or The Like (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本公开提供了一种选取文字的方法、装置和终端设备。其中,方法包括以下步骤:检测选取文字的触屏操作的触点是否落在文本节点中;当所述触点未落在文本节点中时,搜索距离所述触点最近的文本节点;将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的文字。本公开中,当选取文字的触屏操作的触点未落在文本节点中时,将距离触点最近的文本节点中距离触点最近的文字作为触点选取的文字,这样就实现了在触点未落在文字上时,也能提供该触屏操作所选取的文字,避免了用户反复进行选取,为用户提供了便利。

Description

一种选取文字的方法、 装置和终端设备 本申请基于申请号为 201310452543.2、 申请日为 2013年 9月 27日的中国专利申请提 出, 并要求该中国专利申请的优先权, 该中国专利申请的全部内容在此引入本申请作为参 考。 技术领域
本公开涉计算机技术领域, 更具体地, 涉及一种选取文字的方法、 装置和终端设备。 背景技术
随着移动终端技术的不断发展, 智能手机、 平板电脑等移动设备在人们的日常生活中 越来越普及。 目前, 绝大部分移动终端都配备触摸屏, 用户通过在触摸屏上执行各种手势 来对移动终端进行操作。
例如, 用户在移动终端上浏览网页时, 可能会遇到一些比较好的文章或者是句子、 短 语需要复制, 这时, 就可以通过触摸手势来选择相应位置的文字。 常见的选取文字的触摸 手势例如为长按手势、 双击手势或单击手势。
但是, 当触屏上显示的文字太小或用户无法精准控制手势的触点时, 这种选取文字的 方法可能使得用户无法准确地使用触摸手势来选取文字。例如, 当触屏上显示的文字太小 时, 用户的长按操作的触点很有可能落在两行文字之间或者是其他空白区域。 这时, 移动 终端就因为用户的触点未落在文字上而无法为用户选取文字。 发明内容
有鉴于此, 本公开的目的是提出一种选取文字的方法, 能够根据用户的触摸手势精准 地选取文字。
一方面, 本公开提出一种选取文字的方法, 所述方法包括以下步骤:
检测选取文字的触屏操作的触点是否落在文本节点中;
当所述触点未落在文本节点中时, 搜索距离所述触点最近的文本节点;
将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的文字。
本公开中, 当选取文字的触屏操作的触点未落在文本节点中时, 将距离触点最近的文 本节点中距离触点最近的文字作为触点选取的文字, 这样就实现了在触点未落在文字上 时, 也能提供该触屏操作所选取的文字, 避免了用户反复进行选取, 为用户提供了便利。
所述搜索距离所述触点最近的文本节点, 包括:
从所述触点所在的节点开始, 逐级査找是否存在文本节点, 直到査找到文本节点; 计 算所述触点与査找到的各个文本节点之间的距离;将计算出的距离最小的文本节点确定为 搜索到的距离所述触点最近的文本节点。 逐级査找的方式可以提高搜索效率。 所述从所述触点所在的节点开始,逐级査找是否存在文本节点,直到査找到文本节点, 包括:
在所述触点所在的节点中査找是否存在文本节点;
当在所述触点所在的节点中未査找到文本节点时,在所述触点所在的节点的兄弟节点 中査找是否存在文本节点;
当在所述触点所在的节点的兄弟节点中未査找到文本节点时,在所述触点所在的节点 的父节点的兄弟节点中査找是否存在文本节点;
当在所述触点所在的节点的父节点的兄弟节点中未査找到文本节点时,将所述触点所 在的节点的父节点作为所述触点所在的节点后,重复执行所述在所述触点所在的节点的父 节点的兄弟节点中査找是否存在文本节点的步骤, 直到査找到文本节点。
所述方法还包括: 判断所述触点所在的节点是否为主体节点; 若所述触点所在的节点 为主体节点, 则停止査找文本节点。
所述计算所述触点与査找到的文本节点之间的距离, 包括:
根据所述触点的坐标和所述査找到的文本节点的坐标,确定所述触点处于所述査找到 的文本节点周围的区域;
根据所述触点处于所述査找到的文本节点周围的区域,计算所述触点与所述査找到的 文本节点之间的距离。 可以提高査找的效率。
所述査找到的文本节点周围的区域包括所述査找到的文本节点的上侧区域、 下侧区 域、 左侧区域、 右侧区域、 左上区域、 右上区域、 左下区域和右下区域;
所述根据所述触点处于所述査找到的文本节点周围的区域,计算所述触点与所述査找 到的文本节点之间的距离, 包括:
触点的坐标为 (m,n) , 査找到的文本节点的左下顶点的坐标为 (xl,yl), 左上顶点的 坐标为 (xl,y2), 右上顶点的坐标为 (x2,y2), 右下顶点的坐标为 (x2,yl)时,
当触点处于文本节点的左上区域时, 触点与文本节点的距离为^ ( _ )2+(«- 2)2; 当触点处于文本节点的左侧区域时, 触点与文本节点的距离为 |xl-m|;
当触点处于文本节点的左下区域时, 触点与文本节点的距离为^ ( - f +^- ^)2 ; 当触点处于文本节点的下侧区域时, 触点与文本节点
当触点处于文本节点的右下区域时, 触点与文本节点
Figure imgf000003_0001
; 当触点处于文本节点的右侧区域时, 触点与文本节点的距离为 |m-x2|;
当触点处于文本节点的右上区域时, 触点与文本节点的距离为^ ( -m)2 +(y2-nf ; 当触点处于文本节点的上侧区域时, 触点与文本节点的距离为 |n-y2|。
所述将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的文字, 包 括- 根据所述触点处于搜索到的文本节点周围的区域,确定搜索到的文本节点中距离所述 触点最近的文字位置; 将处于该文字位置的文字确定为所述触点选取的文字。
所述根据所述触点处于搜索到的文本节点周围的区域,确定搜索到的文本节点中距离 所述触点最近的文字位置, 包括:
触点的坐标为 (m,n) , 搜索到的文本节点的左下顶点的坐标为 (xl,yl), 左上顶点的 坐标为 (xl,y2), 右上顶点的坐标为 (x2,y2), 右下顶点的坐标为 (x2, yl), 字符宽度为 w, 字符高度为 h;
当触点处于搜索到的文本节点的左上区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: + xw ; 纵坐标为: y2+ xh ;
当触点处于搜索到的文本节点的左侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: 纵坐标为: n .,
当触点处于搜索到的文本节点的左下区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: 纵坐标为: yr^xh;
当触点处于搜索到的文本节点的下侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: m; 纵坐标为: yr xh;
当触点处于搜索到的文本节点的右下区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: - 纵坐标为: yi-^xh;
当触点处于搜索到的文本节点的右侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标坐标为: _ <w ; 纵坐标为: n
当触点处于搜索到的文本节点的右上区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: _ <w; 纵坐标为: y2+ xh ;
当触点处于搜索到的文本节点的上侧区域时,搜索到的文本节点中距离触点最近的文 字位置的横坐标为: m; 纵坐标为: y2+丄 xh。
所述文本节点为可见文本节点。 2
另一方面, 本公开还提出一种选取文字的装置, 所述装置包括:
检测模块, 用于检测选取文字的触屏操作的触点是否落在文本节点中;
搜索模块, 当所述触点未落在文本节点中时, 搜索距离所述触点最近的文本节点; 选取模块,用于将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的 文字。
所述搜索模块包括:
査找单元, 用于从所述触点所在的节点开始, 逐级査找是否存在文本节点, 直到査找 到文本节点;
计算单元, 用于计算所述触点与査找到的各个文本节点之间的距离;
确定单元,用于将计算出的距离最小的文本节点确定为搜索到的距离所述触点最近的 文本节点。
所述査找单元用于: 在所述触点所在的节点中査找是否存在文本节点;
当在所述触点所在的节点中未査找到文本节点时,在所述触点所在的节点的兄弟节点 中査找是否存在文本节点;
当在所述触点所在的节点的兄弟节点中未査找到文本节点时,在所述触点所在的节点 的父节点的兄弟节点中査找是否存在文本节点;
当在所述触点所在的节点的父节点的兄弟节点中未査找到文本节点时,将所述触点所 在的节点的父节点作为所述触点所在的节点后,重复执行所述在所述触点所在的节点的父 节点的兄弟节点中査找是否存在文本节点的步骤, 直到査找到文本节点。
所述搜索模块还包括: 判断单元, 用于判断所述触点所在的节点是否为主体节点; 若 所述触点所在的节点为主体节点, 则停止査找文本节点。
所述计算单元包括:
确定区域子单元, 用于根据所述触点的坐标和所述査找到的文本节点的坐标, 确定所 述触点处于所述査找到的文本节点周围的区域;
计算子单元, 用于根据所述触点处于所述査找到的文本节点周围的区域, 计算所述触 点与所述査找到的文本节点之间的距离。
所述査找到的文本节点周围的区域包括所述査找到的文本节点的上侧区域、 下侧区 域、 左侧区域、 右侧区域、 左上区域、 右上区域、 左下区域和右下区域; 所述计算子单元 用于:
触点的坐标为 (m, n) , 査找到的文本节点的左下顶点的坐标为 (xl, yl), 左上顶点的 坐标为 (xl, y2), 右上顶点的坐标为 (x2, y2), 右下顶点的坐标为 (x2, yl)时,
当触点处于文本节点的左上区域时, 触点与文本节点的距离为^ ( _ )2 + (« _ 2 )2; 当触点处于文本节点的左侧区域时, 触点与文本节点的距离为 |xl-m|;
当触点处于文本节点的左下区域时, 触点与文本节点的距离为^ ( - f + ^ - ^ )2 ; 当触点处于文本节点的下侧区域时, 触点与文本节点
当触点处于文本节点的右下区域时, 触点与文本节点
Figure imgf000005_0001
. 当触点处于文本节点的右侧区域时, 触点与文本节点的距离为 |m- x2| ;
当触点处于文本节点的右上区域时, 触点与文本节点的距离为^ -mf +^2-nf ; 当触点处于文本节点的上侧区域时, 触点与文本节点的距离为 |n-y2|。
所述选取模块包括:
确定文字位置单元, 用于根据所述触点处于搜索到的文本节点周围的区域, 确定搜索 到的文本节点中距离所述触点最近的文字位置;
选取单元, 用于将处于该文字位置的文字确定为所述触点选取的文字。
所述确定文字位置单元用于:
触点的坐标为 (m, n) , 搜索到的文本节点的左下顶点的坐标为 (xl, yl), 左上顶点的 坐标为 (xl, y2), 右上顶点的坐标为 (x2, y2), 右下顶点的坐标为 (x2, yl), 字符宽度为 w, 字符高度为 h;
当触点处于搜索到的文本节点的左上区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: 纵坐标为: y2+ xh ;
当触点处于搜索到的文本节点的左侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: + <w ; 纵坐标为: n
当触点处于搜索到的文本节点的左下区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: + xw ; 纵坐标为: yr^xh;
当触点处于搜索到的文本节点的下侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: m; 纵坐标为: yr xh;
当触点处于搜索到的文本节点的右下区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: - xw; 纵坐标为: yi-^xh;
当触点处于搜索到的文本节点的右侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标坐标为: x2_ <w; 纵坐标为: n
当触点处于搜索到的文本节点的右上区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: _ <w; 纵坐标为: y2+ xh ;
当触点处于搜索到的文本节点的上侧区域时,搜索到的文本节点中距离触点最近的文 字位置的横坐标为: m; 纵坐标为: y2+丄 xh。
所述文本节点为可见文本节点。 2
再一方面, 本公开还提出一种终端设备, 所述终端设备包括有存储器, 以及一个或者 一个以上的程序, 其中一个或者一个以上程序存储于存储器中, 且经配置以由一个或者一 个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
检测选取文字的触屏操作的触点是否落在文本节点中;
当所述触点未落在文本节点中时, 搜索距离所述触点最近的文本节点;
将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的文字。
本公开的其它特征和优点将在随后的说明书中阐述, 并且, 部分地从说明书中变得显 而易见, 或者通过实施本公开而了解。 本公开的目的和其他优点可通过在所写的说明书、 权利要求书、 以及附图中所特别指出的结构来实现和获得。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。 下面通过附图和实施例, 对本公开的技术方案做进一步的详细描述。 附图说明
附图用来提供对本公开的进一步理解, 并且构成说明书的一部分, 与本公开的实施例 一起用于解释本公开, 并不构成对本公开的限制。 在附图中:
图 1是本公开中选取文字的主要方法示意性流程图;
图 2是本公开中通过逐级査找文本节点来选取文字的详细方法示意性流程图; 图 3是本公开中逐级査找文本节点的示意图;
图 4是本公开中文本节点周围的区域划分的示意图;
图 5是本公开中在直角坐标系中表示的文本节点周围的区域划分的示意图; 图 6是本公开中从文本节点中选取文字的示意图;
图 7是本公开中选取文字的装置的主要结构示意图;
图 8是本公开中选取文字的装置中的搜索模块的结构示意图;
图 9是本公开中选取文字的装置中的搜索模块的另一示例的结构示意图;
图 10是本公开中选取文字的装置中的搜索模块的计算单元的结构示意图; 图 11是本公开中选取文字的装置中的选取模块的结构示意图;
图 12是本公开中提出的终端设备的结构示意图。
通过上述附图, 已示出本公开明确的实施例, 后文中将有更详细的描述。 这些附图和 文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本 领域技术人员说明本公开的概念。 具体实施方式
为使本公开的目的、 技术方案和优点更加清楚明白, 下面结合实施方式和附图, 对本 公开做进一步详细说明。 在此, 本公开的示意性实施方式及其说明用于解释本公开, 但并 不作为对本公开的限定。
本公开提出的选取文字的方法主要用于提供文字选择的触摸终端实现。 参见图 1, 在 一个实施例中, 本公开中选取文字的方法流程如下:
步骤 S101 : 检测选取文字的触屏操作的触点是否落在文本节点中。
步骤 S102: 当所述触点未落在文本节点中时, 搜索距离所述触点最近的文本节点。 步骤 S103 : 将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的文 字。
其中, 所述文本节点为可见文本节点。
本公开中, 当选取文字的触屏操作的触点未落在文本节点中时, 将距离触点最近的文 本节点中距离触点最近的文字作为触点选取的文字, 这样就实现了在触点未落在文字上 时, 也能提供该触屏操作所选取的文字, 避免了用户反复进行选取, 为用户提供了便利。
本公开中提出的选取文字的方法, 在搜索距离所述触点最近的文本节点时, 可以从所 述触点所在的节点开始, 逐级査找是否存在文本节点, 直到査找到文本节点; 然后计算所 述触点与査找到的文本节点之间的距离;将计算出的距离最小的文本节点确定为搜索到的 距离所述触点最近的文本节点。按照节点的级别进行逐级査找,可以提高搜索效率。另外, 还可以进一步地对级别进行限制, 这样可以根据获取査找速度和査找程度之间的平衡。
参见图 2, 以从触点所在的节点开始, 到触点所在的节点的兄弟节点, 到触点所在的 节点的父节点的兄弟节点为例来逐级査找文本节点, 从而得到触点选取的文字。 例如, 详 细方法流程如下:
步骤 S201 : 接收用户选取文字的触屏操作。
步骤 S202: 确定所述触屏操作的触点。
步骤 S203 : 检测该触点是否落在文本节点中; 若是, 执行步骤 S204; 若否, 执行步 骤 S205。
步骤 S204: 将文本节点中的该触点所在位置的文字作为该触点选取的文字。
步骤 S205 : 在该触点所在的节点中査找是否存在文本节点; 若是, 执行步骤 S209; 若否, 执行步骤 S206。
步骤 S206: 在该触点所在的节点的兄弟节点中査找是否存在文本节点; 若是, 执行 步骤 S209; 若否, 执行步骤 S207。
步骤 S207: 在该触点所在的节点的父节点的兄弟节点中査找是否存在文本节点; 若 是, 执行步骤 S209; 若否, 执行步骤 S208。
步骤 S208 : 将该触点所在的节点的父节点作为所述触点所在的节点后, 执行步骤 S207 o
步骤 S209: 计算该触点与査找到的文本节点之间的距离。
步骤 S210: 将计算出的距离最小的文本节点确定为搜索到的距离该触点最近的文本 节点。
步骤 S211 : 将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的文 字。
在执行査找步骤 205、 206、 207之前, 还可以先判断当前节点是否为主体节点 (Body 节点) , 当当前节点为主体节点时, 则停止査找。
该实施例在査找文本节点时, 能够实现穷尽的査找。 例如如图 3所示为界面中, 触点 301未落在文本节点中时,在该触点所在的节点 302中査找是否存在文本节点,若节点 302 中的节点 303和 304均非文本节点时,在节点 302的兄弟节点 305中査找是否存在文本节 点;若节点 305中也不存在文本节点时,则在节点 302的父节点 306的兄弟节点 307和 308 中査找是否存在文本节点; 若节点 307和 308中还是不存在文本节点时, 将该触点所在的 节点 302的父节点 306作为所述触点所在的节点后,在节点 306的父节点 309的兄弟节点 310和 311中査找是否存在文本节点。
在上述实施例的步骤 S209中, 可以先根据触点的坐标和査找到的文本节点的坐标, 确定触点处于査找到的文本节点周围的区域,然后根据触点处于査找到的文本节点周围的 区域来计算所述触点与所述査找到的文本节点之间的距离。 由于根据触点所处区域的不 同, 可以采用不同的计算距离的方法, 可以提高计算效率。 以下, 将举例说明如何根据触 点所处的文本节点周围的区域来计算触点与文本节点的距离。
网页中的节点都是占据一个矩形区域 ,根据触点的坐标以及节点的各个顶点的坐标, 就可确定触点位于节点的哪个区域。 如图 4所示, 在本示例中, 将矩形的文本节点周围的 区域分成 8个区域, 分别为: 左上区域 401、左侧区域 402、左下区域 403、 下侧区域 404、 右下区域 405、右侧区域 406、右上区域 407和上侧区域 408。根据文本节点的四个顶点的 坐标和触点的坐标, 确定触点处于上述 8个区域中的哪个区域。
例如, 以图 5所示的坐标系为例, 在该坐标系中, 矩形的文本节点的四个顶点的坐标 分别为 A(xl,yl), B(xl,y2), C(x2, y2), D(x2,yl)。 触点 P的坐标为 P(m, n)。 通过比较触 点的坐标和矩形区域的坐标来确定触点位于哪个区域中,然后根据不同的区域选择不同的 算法来计算触点到文本节点的距离。 例如:
当m<xl, n<y2时, 触点 P处于文本节点的左上区域 401, 此时, 触点 P与文本节 点的距离 S为 (x「 )2+("__y2)2
当m<xl, y2 n yl时, 触点 P处于文本节点的左侧区域 402, 此时, 触点 P与文 本节点的距离 S为 |xl-m|;
m<xl, n〉yl时, 触点 P处于文本节点的左下区域 403, 此时, 触点 P与文本节 点的距离 S ^{Xi-m)2 +{n-yif ;
当 xl m x2, n〉yl时, 触点 P处于文本节点的下侧区域 404, 此时, 触点 P与文 本节点的距离 S为 |yl-n|;
当 m〉x2, n〉yl时, 触点 P处于文本节点的右下区域 405, 此时, 触点 P与文本节 点的距离 S为 ( - )2+(_y「")2
当 m〉x2, y2 n yl时, 触点 P处于文本节点的右侧区域 406, 此时, 触点 P与文 本节点的距离 S为 |m- x2|;
当 m〉x2, n<y2时, 触点 P处于文本节点的右上区域 407, 此时, 触点 P与文本节 点的距离 S ^{x2-m)2 +{y2-n)2
当 xl m x2, n<y2时, 触点 P处于文本节点的上侧区域 408, 此时, 触点 P与文 本节点的距离 S为 |n-y2|。
在上述实施例的步骤 S211中,也可以先根据触点的坐标和搜索到的文本节点的坐标, 确定触点处于搜索到的文本节点周围的区域,然后根据触点处于搜索到的文本节点周围的 区域来确定搜索到的文本节点中距离所述触点最近的文字位置。
其中,确定触点处于搜索到的文本节点周围的区域可以使用上述确定触点所处区域的 方法, 在此不在赘述。 以图 5所示的区域划分为例:
当触点处于搜索到的文本节点的左上区域 401时,搜索到的文本节点中距离所述触点 最近的文字位置的横坐标为: + <w; 纵坐标为: y2+^xh ; 如图 6所示的 E点。
当触点处于搜索到的文本节点的左侧区域 402时,搜索到的文本节点中距离所述触点 最近的文字位置的横坐标为: + <w; 纵坐标为: n
当触点处于搜索到的文本节点的左下区域 403时,搜索到的文本节点中距离所述触点 最近的文字位置的横坐标为: + xw; 纵坐标为: yr xh;
当触点处于搜索到的文本节点的下侧区域 404时,搜索到的文本节点中距离所述触点 最近的文字位置的横坐标为: m ; 纵坐标为: yr x h ;
当触点处于搜索到的文本节点的右下区域 405时,搜索到的文本节点中距离所述触点 最近的文字位置的横坐标为: - <w ; 纵坐标为: yr^xh ;
当触点处于搜索到的文本节点的右侧区域 406时,搜索到的文本节点中距离所述触点 最近的文字位置的横坐标坐标为: x2 _ xw ; 纵坐标为: n ·'
当触点处于搜索到的文本节点的右上区域 407时,搜索到的文本节点中距离所述触点 最近的文字位置的横坐标为: x2 _ <w ; 纵坐标为: y2+ xh ;
当触点处于搜索到的文本节点的上侧区域 408时,搜索到的文本节点中距离触点最近 的文字位置的横坐标为: m; 纵坐标为: y2+ xh。
其中, w为字符宽度, h为字符高度。 采用上述确定文字位置的方法, 由于考虑了终 端在显示文本节点时的字符高度和字符宽度, 因此, 可以保证该位置上显示有文字, 从而 能够提供触点选取的文字。
应当注意的是, 本公开中所举的上述关于坐标的示例, 仅用于举例说明, 并非是对本 公开的限制。 本领域技术人员可以根据上述实施例的基本思想进行变动, 例如, 可以使用 其他坐标系, 或者改变坐标轴的方向等等。
相应的, 如图 7所示, 本公开还提出一种选取文字的装置, 所述装置包括: 检测模块 701, 用于检测选取文字的触屏操作的触点是否落在文本节点中; 搜索模块 702, 当所述触点未落在文本节点中时,搜索距离所述触点最近的文本节点; 选取模块 703, 用于将搜索到的文本节点中距离所述触点最近的文字作为所述触点选 取的文字。
如图 8所示, 所述搜索模块 702包括:
査找单元 801, 用于从所述触点所在的节点开始, 逐级査找是否存在文本节点, 直到 査找到文本节点;
计算单元 802, 用于计算所述触点与査找到的各个文本节点之间的距离;
确定单元 803, 用于将计算出的距离最小的文本节点确定为搜索到的距离所述触点最 近的文本节点。
所述査找单元 801用于:
在所述触点所在的节点中査找是否存在文本节点;
当在所述触点所在的节点中未査找到文本节点时,在所述触点所在的节点的兄弟节点 中査找是否存在文本节点;
当在所述触点所在的节点的兄弟节点中未査找到文本节点时,在所述触点所在的节点 的父节点的兄弟节点中査找是否存在文本节点;
当在所述触点所在的节点的父节点的兄弟节点中未査找到文本节点时,将所述触点所 在的节点的父节点作为所述触点所在的节点后,重复执行所述在所述触点所在的节点的父 节点的兄弟节点中査找是否存在文本节点的步骤, 直到査找到文本节点。 如图 9所示, 所述搜索模块 702还包括:
判断单元 804, 用于用于判断所述触点所在的节点是否为主体节点; 若所述触点所在 的节点为主体节点, 则停止査找文本节点。
如图 10所示, 所述计算单元 802包括:
确定区域子单元 1001,用于根据所述触点的坐标和所述査找到的文本节点的坐标,确 定所述触点处于所述査找到的文本节点周围的区域;
计算子单元 1002,用于根据所述触点处于所述査找到的文本节点周围的区域,计算所 述触点与所述査找到的文本节点之间的距离。
所述査找到的文本节点周围的区域包括所述査找到的文本节点的上侧区域、 下侧区 域、 左侧区域、 右侧区域、 左上区域、 右上区域、 左下区域和右下区域; 所述计算子单元 1002用于:
触点的坐标为 (m,n) , 査找到的文本节点的左下顶点的坐标为 (xl,yl), 左上顶点的 坐标为 (xl,y2), 右上顶点的坐标为 (x2,y2), 右下顶点的坐标为 (x2,yl)时,
当触点处于文本节点的左上区域时, 触点与文本节点的距离为^ ( _^)2+(«_ 2)2; 当触点处于文本节点的左侧区域时, 触点与文本节点的距离为 |xl-m|;
当触点处于文本节点的左下区域时, 触点与文本节点的距离为^ ( - f +^- ^)2 ; 当触点处于文本节点的下侧区域时, 触点与文本节点的距离为 |y^
当触点处于文本节点的右下区域时, 触点与文本节点的距离为^ -m† +{yi-n)2; 当触点处于文本节点的右侧区域时, 触点与文本节点的距离为 |m-x2|;
当触点处于文本节点的右上区域时, 触点与文本节点的距离为^ ( -m)2 +(y2-n)2; 当触点处于文本节点的上侧区域时, 触点与文本节点的距离为 |n-y2|。
如图 11所示, 所述选取模块 703包括:
确定文字位置单元 1101,用于根据所述触点处于搜索到的文本节点周围的区域,确定 搜索到的文本节点中距离所述触点最近的文字位置;
选取单元 1102, 用于将处于该文字位置的文字确定为所述触点选取的文字。
所述确定文字位置单元 1101用于:
触点的坐标为 (m,n) , 搜索到的文本节点的左下顶点的坐标为 (xl,yl), 左上顶点的 坐标为 (xl,y2), 右上顶点的坐标为 (x2,y2), 右下顶点的坐标为 (x2,yl), 字符宽度为 w, 字符高度为 h;
当触点处于搜索到的文本节点的左上区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: 纵坐标为: y2+ xh ;
当触点处于搜索到的文本节点的左侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: + <w ; 纵坐标为: n
当触点处于搜索到的文本节点的左下区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: +^xw ; 纵坐标为: yi -丄 xh;
2 2 当触点处于搜索到的文本节点的下侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: m ; 纵坐标为: yr x h ;
当触点处于搜索到的文本节点的右下区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: - x w ; 纵坐标为: yi-^x h ;
当触点处于搜索到的文本节点的右侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标坐标为: x2 _ < w ; 纵坐标为: n ·'
当触点处于搜索到的文本节点的右上区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: _ < w ; 纵坐标为: y2 + x h ;
当触点处于搜索到的文本节点的上侧区域时,搜索到的文本节点中距离触点最近的文 字位置的横坐标为: m; 纵坐标为: y2 + x h。
在一个实施例中, 所述文本节点为可见文本节点。
本公开还提出一种终端设备, 图 12是本公开提供的一种终端设备结构示意图。 参见 图 12, 该终端设备可以用于实施上述实施例中提供的选取文字的方法。
终端设备 1 100可以包括通信单元 1 10、包括有一个或一个以上计算机可读存储介质的 存储器 120、输入单元 130、显示单元 140、传感器 150、音频电路 160、 WiFi(wireless fidelity, 无线保真;)模块 170、 包括有一个或者一个以上处理核心的处理器 180、 以及电源 190等部 件。本领域技术人员可以理解, 图 12中示出的终端设备结构并不构成对终端设备的限定, 可以包括比图示更多或更少的部件, 或者组合某些部件, 或者不同的部件布置。 其中: 通信单元 1 10可用于收发信息或通话过程中, 信号的接收和发送, 该通信单元 1 10可 以为 RF (Radio Frequency, 射频) 电路、 路由器、 调制解调器、 等网络通信设备。 特别 地, 当通信单元 1 10为 RF电路时, 将基站的下行信息接收后, 交由一个或者一个以上处 理器 180处理; 另外, 将涉及上行的数据发送给基站。 通常, 作为通信单元的 RF电路包 括但不限于天线、 至少一个放大器、 调谐器、 一个或多个振荡器、 用户身份模块 (SIM) 卡、 收发信机、 耦合器、 LNA (Low Noise Amplifier, 低噪声放大器) 、 双工器等。 此外, 通信单元 1 10还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通 信标准或协议, 包括但不限于 GSM(Global System of Mobile communication, 全球移动通 讯系统)、 GPRS(General Packet Radio Service, 通用分组无线服务)、 CDMA(Code Division Multiple Access, 码分多址)、 WCDMA(Wideband Code Division Multiple Access, 宽带码分 多址)、 LTE(Long Term Evolution,长期演进)、 电子邮件、 SMS(Short Messaging Service, 短 消息服务)等。 存储器 120可用于存储软件程序以及模块, 处理器 180通过运行存储在存 储器 120的软件程序以及模块, 从而执行各种功能应用以及数据处理。存储器 120可主要 包括存储程序区和存储数据区, 其中, 存储程序区可存储操作系统、 至少一个功能所需的 应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端设备 1 100 的使用所创建的数据 (比如音频数据、 电话本等)等。 此外, 存储器 120可以包括高速随 机存取存储器, 还可以包括非易失性存储器, 例如至少一个磁盘存储器件、 闪存器件、 或 其他易失性固态存储器件。 相应地, 存储器 120还可以包括存储器控制器, 以提供处理器 180和输入单元 130对存储器 120的访问。
输入单元 130可用于接收输入的数字或字符信息, 以及产生与用户设置以及功能控制 有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。输入单元 130可包括触敏表面 131 以及其他输入设备 132。 触敏表面 131, 也称为触摸显示屏或者触控板, 可收集用户在其 上或附近的触摸操作 (比如用户使用手指、 触笔等任何适合的物体或附件在触敏表面 131 上或在触敏表面 131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的, 触敏表面 131可包括触摸检测装置和触摸控制器两个部分。其中, 触摸检测装置检测用户 的触摸方位, 并检测触摸操作带来的信号, 将信号传送给触摸控制器; 触摸控制器从触摸 检测装置上接收触摸信息, 并将它转换成触点坐标, 再送给处理器 180, 并能接收处理器 180发来的命令并加以执行。 此外, 可以采用电阻式、 电容式、 红外线以及表面声波等多 种类型实现触敏表面 131。除了触敏表面 131,输入单元 130还可以包括其他输入设备 132。 其他输入设备 132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、 轨迹球、 鼠标、 操作杆等中的一种或多种。
显示单元 140可用于显示由用户输入的信息或提供给用户的信息以及终端设备 1100 的各种图形用户接口, 这些图形用户接口可以由图形、 文本、 图标、 视频和其任意组合来 构成。 显示单元 140可包括显示面板 141, 可选的, 可以采用 LCD(Liquid Crystal Display, 液晶显示器)、 OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板 141。进一步的, 触敏表面 131可覆盖显示面板 141, 当触敏表面 131检测到在其上或附近 的触摸操作后, 传送给处理器 180以确定触摸事件的类型, 随后处理器 180根据触摸事件 的类型在显示面板 141上提供相应的视觉输出。 虽然在图 12中, 触敏表面 131与显示面 板 141是作为两个独立的部件来实现输入和输入功能, 但是在某些实施例中, 可以将触敏 表面 131与显示面板 141集成而实现输入和输出功能。
终端设备 1100还可包括至少一种传感器 150, 比如光传感器、运动传感器以及其他传 感器。 光传感器可包括环境光传感器及接近传感器, 其中, 环境光传感器可根据环境光线 的明暗来调节显示面板 141的亮度, 接近传感器可在终端设备 1100移动到耳边时, 关闭 显示面板 141 和 /或背光。 作为运动传感器的一种, 重力加速度传感器可检测各个方向上 (一般为三轴)加速度的大小, 静止时可检测出重力的大小及方向, 可用于识别手机姿态 的应用 (比如横竖屏切换、 相关游戏、 磁力计姿态校准) 、 振动识别相关功能 (比如计步 器、 敲击) 等; 至于终端设备 lioo还可配置的陀螺仪、 气压计、 湿度计、 温度计、 红外 线传感器等其他传感器, 在此不再赘述。
音频电路 160、扬声器 161,传声器 162可提供用户与终端设备 1100之间的音频接口。 音频电路 160可将接收到的音频数据转换后的电信号, 传输到扬声器 161, 由扬声器 161 转换为声音信号输出; 另一方面, 传声器 162将收集的声音信号转换为电信号, 由音频电 路 160接收后转换为音频数据, 再将音频数据输出处理器 180处理后, 经 RF电路 110以 发送给比如另一终端设备, 或者将音频数据输出至存储器 120以便进一步处理。 音频电路 160还可能包括耳塞插孔, 以提供外设耳机与终端设备 1100的通信。
为了实现无线通信,该终端设备上可以配置有无线通信单元 170,该无线通信单元 170 可以为 WiFi模块。 WiFi属于短距离无线传输技术, 终端设备 700通过无线通信单元 170 可以帮助用户收发电子邮件、 浏览网页和访问流式媒体等, 它为用户提供了无线的宽带互 联网访问。虽然图 12示出了无线通信单元 170, 但是可以理解的是, 其并不属于终端设备 1100的必须构成, 完全可以根据需要在不改变发明的本质的范围内而省略。
处理器 180是终端设备 1100的控制中心, 利用各种接口和线路连接整个手机的各个 部分, 通过运行或执行存储在存储器 120 内的软件程序和 /或模块, 以及调用存储在存储 器 120内的数据, 执行终端设备 1100的各种功能和处理数据, 从而对手机进行整体监控。 可选的, 处理器 180可包括一个或多个处理核心; 在一个实施例中, 处理器 180可集成应 用处理器和调制解调处理器, 其中, 应用处理器主要处理操作系统、 用户界面和应用程序 等, 调制解调处理器主要处理无线通信。 可以理解的是, 上述调制解调处理器也可以不集 成到处理器 180中。
终端设备 1100还包括给各个部件供电的电源 190 (比如电池), 在一个实施例中, 电 源可以通过电源管理系统与处理器 180逻辑相连, 从而通过电源管理系统实现管理充电、 放电、 以及功耗管理等功能。 电源 190还可以包括一个或一个以上的直流或交流电源、 再 充电系统、 电源故障检测电路、 电源转换器或者逆变器、 电源状态指示器等任意组件。
尽管未示出, 终端设备 1100还可以包括摄像头、 蓝牙模块等, 在此不再赘述。 在本 实施例中, 终端设备的显示单元是触摸屏显示器, 终端设备还包括有存储器, 以及一个或 者一个以上的程序, 其中一个或者一个以上程序存储于存储器中, 且经配置以由一个或者 一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
检测选取文字的触屏操作的触点是否落在文本节点中;
当所述触点未落在文本节点中时, 搜索距离所述触点最近的文本节点;
将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的文字。
此外, 典型地, 本公开所述的移动终端可为各种手持终端设备, 例如手机、 个人数字 助理 (PDA) 等, 因此本公开的保护范围不应限定为某种特定类型的移动终端。
此外, 根据本公开的方法还可以被实现为由 CPU执行的计算机程序。 在该计算机程 序被 CPU执行时, 执行本公开的方法中限定的上述功能。
此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上 述步骤或单元功能的计算机程序的计算机可读存储设备实现。
此外, 应该明白的是, 本文所述的计算机可读存储设备(例如, 存储器) 可以是易失 性存储器或非易失性存储器, 或者可以包括易失性存储器和非易失性存储器两者。作为例 子而非限制性的, 非易失性存储器可以包括只读存储器 (ROM)、 可编程 ROM(PROM)、 电 可编程 ROM(EPROM;)、 电可擦写可编程 ROM(EEPROM) 或快闪存储器。 易失性存储器 可以包括随机存取存储器 (RAM), 该 RAM 可以充当外部高速缓存存储器。作为例子而非 限制性的, RAM 可以以多种形式获得, 比如同步 RAM(DRAM;)、 动态 RAM(DRAM;)、 同 步 DRAM(SDRAM)、 双数据速率 SDRAM(DDR SDRAM)、 增强 SDRAM(E SDRAM)、 同 步链路 DRAM(SLDRAM) 以及直接 RambusRAM(DRRAM;)。 所公开的方面的存储设备意 在包括但不限于这些和其它合适类型的存储器。
本领域技术人员还将明白的是, 结合这里的公开所描述的各种示例性逻辑块、 模块、 电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。 为了清楚地说明硬件 和软件的这种可互换性, 已经就各种示意性组件、 方块、 模块、 电路和步骤的功能对其进 行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加 给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现所述的 功能, 但是这种实现决定不应被解释为导致脱离本公开的范围。
结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行 这里所述功能的下列部件来实现或执行: 通用处理器、 数字信号处理器 (DSP)、 专用集成 电路 (ASIC)、 现场可编程门阵列 (FPGA) 或其它可编程逻辑器件、 分立门或晶体管逻辑、 分立的硬件组件或者这些部件的任何组合。 通用处理器可以是微处理器, 但是可替换地, 处理器可以是任何传统处理器、 控制器、 微控制器或状态机。 处理器也可以被实现为计算 设备的组合, 例如, DSP 和微处理器的组合、 多个微处理器、 一个或多个微处理器结合 DSP 核、 或任何其它这种配置。
结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的 软件模块中或这两者的组合中。软件模块可以驻留在 RAM存储器、快闪存储器、 ROM存 储器、 EPROM 存储器、 EEPROM存储器、 寄存器、 硬盘、 可移动盘、 CD-ROM、 或本 领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器, 使得处理器 能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中, 所述存储介 质可以与处理器集成在一起。 处理器和存储介质可以驻留在 ASIC 中。 ASIC 可以驻留在 用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。
在一个或多个示例性设计中,所述功能可以在硬件、软件、固件或其任意组合中实现。 如果在软件中实现,则可以将所述功能作为一个或多个指令或代码存储在计算机可读介质 上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质, 该通 信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以 是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的, 该计算机可读 介质可以包括 RAM、 ROM、 EEPROM ^ CD-ROM 或其它光盘存储设备、 磁盘存储设备 或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码 并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外, 任何连 接都可以适当地称为计算机可读介质。 例如, 如果使用同轴线缆、 光纤线缆、 双绞线、 数 字用户线路 (DSL) 或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程 源发送软件, 则上述同轴线缆、 光纤线缆、 双绞线、 DSL 或诸如红外先、 无线电和微波 的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘 (CD)、激光盘、 光盘、 数字多功能盘 (DVD)、 软盘、 蓝光盘, 其中磁盘通常磁性地再现数据, 而光盘利用 激光光学地再现数据。 上述内容的组合也应当包括在计算机可读介质的范围内。
尽管前面公开的内容示出了本公开的示例性实施例, 但是应当注意, 在不背离权利要 求限定的本公开的范围的前提下, 可以进行多种改变和修改。根据这里描述的公开实施例 的方法权利要求的功能、 步骤和 /或动作不需以任何特定顺序执行。 此外, 尽管本公开的 元素可以以个体形式描述或要求, 但是也可以设想多个, 除非明确限制为单数。
以上所述的具体实施方式, 对本公开的目的、 技术方案和有益效果进行了进一步详细 说明, 所应理解的是, 以上所述仅为本公开的具体实施方式而已, 并不用于限定本公开的 保护范围, 凡在本公开的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均应包 含在本公开的保护范围之内。

Claims

权利要求
1、 一种选取文字的方法, 其特征在于, 所述方法包括:
检测选取文字的触屏操作的触点是否落在文本节点中;
当所述触点未落在文本节点中时, 搜索距离所述触点最近的文本节点;
将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的文字。
2、 根据权利要求 1所述的方法, 其特征在于, 所述搜索距离所述触点最近的文本节 点, 包括:
从所述触点所在的节点开始, 逐级査找是否存在文本节点, 直到査找到文本节点; 计算所述触点与査找到的各个文本节点之间的距离;
将计算出的距离最小的文本节点确定为搜索到的距离所述触点最近的文本节点。
3、 根据权利要求 2所述的方法, 其特征在于, 所述从所述触点所在的节点开始, 逐 级査找是否存在文本节点, 直到査找到文本节点, 包括:
在所述触点所在的节点中査找是否存在文本节点;
当在所述触点所在的节点中未査找到文本节点时,在所述触点所在的节点的兄弟节点 中査找是否存在文本节点;
当在所述触点所在的节点的兄弟节点中未査找到文本节点时,在所述触点所在的节点 的父节点的兄弟节点中査找是否存在文本节点;
当在所述触点所在的节点的父节点的兄弟节点中未査找到文本节点时,将所述触点所 在的节点的父节点作为所述触点所在的节点后,重复执行所述在所述触点所在的节点的父 节点的兄弟节点中査找是否存在文本节点的步骤, 直到査找到文本节点。
4、 根据权利要求 2或 3所述的方法, 其特征在于, 所述方法还包括: 判断所述触点 所在的节点是否为主体节点; 若所述触点所在的节点为主体节点, 则停止査找文本节点。
5、 根据权利要求 2所述的方法, 其特征在于, 所述计算所述触点与査找到的文本节 点之间的距离, 包括:
根据所述触点的坐标和所述査找到的文本节点的坐标,确定所述触点处于所述査找到 的文本节点周围的区域;
根据所述触点处于所述査找到的文本节点周围的区域,计算所述触点与所述査找到的 文本节点之间的距离。
6、 根据权利要求 5所述的方法, 其特征在于, 所述査找到的文本节点周围的区域包 括所述査找到的文本节点的上侧区域、 下侧区域、 左侧区域、 右侧区域、 左上区域、 右上 区域、 左下区域和右下区域;
所述根据所述触点处于所述査找到的文本节点周围的区域,计算所述触点与所述査找 到的文本节点之间的距离, 包括:
触点的坐标为(m, n), 査找到的文本节点的左下顶点的坐标为 (xl, yl), 左上顶点的 坐标为 (xl, y2), 右上顶点的坐标为 (x2, y2), 右下顶点的坐标为 (x2, yl)时, 当触点处于文本节点的左上区域时, 触点与文本节点的距离为
Figure imgf000018_0001
; 当触点处于文本节点的左侧区域时 , 触点与文本节点的距离为 |xl -m|;
当触点处于文本节点的左下区域时 , 触点与文本节点的距离为^ Λ)2; 当触点处于文本节点的下侧区域时 , 触点与文本节点
当触点处于文本节点的右下区域时 , 触点与文本节点
Figure imgf000018_0002
; 当触点处于文本节点的右侧区域时, 触点与文本节点的距离为 |m-x2|;
当触点处于文本节点的右上区域时, 触点与文本节点的距离为^ -mf +(y2 -n)2; 当触点处于文本节点的上侧区域时, 触点与文本节点的距离为 |n-y2|。
7、 根据权利要求 2所述的方法, 其特征在于, 所述将搜索到的文本节点中距离所述 触点最近的文字作为所述触点选取的文字, 包括:
根据所述触点处于搜索到的文本节点周围的区域,确定搜索到的文本节点中距离所述 触点最近的文字位置;
将处于该文字位置的文字确定为所述触点选取的文字。
8、 根据权利要求 7所述的方法, 其特征在于, 所述根据所述触点处于搜索到的文本 节点周围的区域, 确定搜索到的文本节点中距离所述触点最近的文字位置, 包括:
触点的坐标为(m,n) , 搜索到的文本节点的左下顶点的坐标为 (xl,yl), 左上顶点的 坐标为 (xl,y2), 右上顶点的坐标为 (x2,y2), 右下顶点的坐标为 (x2,yl), 字符宽度为 w, 字符高度为 h;
当触点处于搜索到的文本节点的左上区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: + xw ; 纵坐标为: y2+ xh ;
当触点处于搜索到的文本节点的左侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: 纵坐标为: n .,
当触点处于搜索到的文本节点的左下区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: +^xw ; 纵坐标为: yi-^xh ;
当触点处于搜索到的文本节点的下侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: m; 纵坐标为: yr xh;
当触点处于搜索到的文本节点的右下区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: _ <w; 纵坐标为: yi-^xh ;
当触点处于搜索到的文本节点的右侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标坐标为: x2- xw; 纵坐标为: n
当触点处于搜索到的文本节点的右上区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: _ <w; 纵坐标为: y2+ xh ;
当触点处于搜索到的文本节点的上侧区域时,搜索到的文本节点中距离触点最近的文 字位置的横坐标为: m; 纵坐标为: y2+ xh。
9、 根据权利要求 1所述的方法, 其特征在于, 所述文本节点为可见文本节点。
10、 一种选取文字的装置, 其特征在于, 所述装置包括:
检测模块, 用于检测选取文字的触屏操作的触点是否落在文本节点中;
搜索模块, 当所述触点未落在文本节点中时, 搜索距离所述触点最近的文本节点; 选取模块,用于将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的 文字。
11、 根据权利要求 10所述的装置, 其特征在于, 所述搜索模块包括:
査找单元, 用于从所述触点所在的节点开始, 逐级査找是否存在文本节点, 直到査找 到文本节点;
计算单元, 用于计算所述触点与査找到的各个文本节点之间的距离;
确定单元,用于将计算出的距离最小的文本节点确定为搜索到的距离所述触点最近的 文本节点。
12、 根据权利要求 11所述的装置, 其特征在于, 所述査找单元用于:
在所述触点所在的节点中査找是否存在文本节点;
当在所述触点所在的节点中未査找到文本节点时,在所述触点所在的节点的兄弟节点 中査找是否存在文本节点;
当在所述触点所在的节点的兄弟节点中未査找到文本节点时,在所述触点所在的节点 的父节点的兄弟节点中査找是否存在文本节点;
当在所述触点所在的节点的父节点的兄弟节点中未査找到文本节点时,将所述触点所 在的节点的父节点作为所述触点所在的节点后,重复执行所述在所述触点所在的节点的父 节点的兄弟节点中査找是否存在文本节点的步骤, 直到査找到文本节点。
13、 根据权利要求 11或 12所述的装置, 其特征在于, 所述搜索模块还包括: 判断单 元, 用于判断所述触点所在的节点是否为主体节点; 若所述触点所在的节点为主体节点, 则停止査找文本节点。
14、 根据权利要求 11所述的装置, 其特征在于, 所述计算单元包括:
确定区域子单元,用于根据所述触点的坐标和所述査找到的文本节点的坐标,确定所 述触点处于所述査找到的文本节点周围的区域;
计算子单元,用于根据所述触点处于所述査找到的文本节点周围的区域,计算所述触 点与所述査找到的文本节点之间的距离。
15、 根据权利要求 14所述的装置, 其特征在于, 所述査找到的文本节点周围的区域 包括所述査找到的文本节点的上侧区域、 下侧区域、 左侧区域、 右侧区域、 左上区域、 右 上区域、 左下区域和右下区域; 所述计算子单元用于:
触点的坐标为(m, n), 査找到的文本节点的左下顶点的坐标为 (xl, yl), 左上顶点的 坐标为 (xl, y2), 右上顶点的坐标为 (x2, y2), 右下顶点的坐标为 (x2, yl)时,
当触点处于文本节点的左上区域时, 触点与文本节点的距离为^ ( — f + ( - 2 )2; 当触点处于文本节点的左侧区域时, 触点与文本节点的距离为 |xl-m|; 当触点处于文本节点的左下区域时, 触点与文本节点的距离为^ (A- f +^- )2 ; 当触点处于文本节点的下侧区域时, 触点与文本节点
当触点处于文本节点的右下区域时, 触点与文本节点 ;
Figure imgf000020_0001
当触点处于文本节点的右侧区域时, 触点与文本节点的距离为 |m-x2|;
当触点处于文本节点的右上区域时, 触点与文本节点的距离为^ -m†+{y2 -nf ; 当触点处于文本节点的上侧区域时, 触点与文本节点的距离为 |n-y2|。
16、 根据权利要求 11所述的装置, 其特征在于, 所述选取模块包括:
确定文字位置单元,用于根据所述触点处于搜索到的文本节点周围的区域,确定搜索 到的文本节点中距离所述触点最近的文字位置;
选取单元, 用于将处于该文字位置的文字确定为所述触点选取的文字。
17、 根据权利要求 16所述的装置, 其特征在于, 所述确定文字位置单元用于: 触点的坐标为(m,n) , 搜索到的文本节点的左下顶点的坐标为 (xl,yl), 左上顶点的 坐标为 (xl,y2), 右上顶点的坐标为 (x2,y2), 右下顶点的坐标为 (x2,yl), 字符宽度为 w, 字符高度为 h;
当触点处于搜索到的文本节点的左上区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: + xw; 纵坐标为: y2+ xh ;
当触点处于搜索到的文本节点的左侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: + xw; 纵坐标为: n .,
当触点处于搜索到的文本节点的左下区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: + <w; 纵坐标为: yr xh;
当触点处于搜索到的文本节点的下侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: m; 纵坐标为: yr xh;
当触点处于搜索到的文本节点的右下区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: - ^xw; 纵坐标为: yi-^xh;
当触点处于搜索到的文本节点的右侧区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标坐标为: - xw; 纵坐标为: n .,
当触点处于搜索到的文本节点的右上区域时,搜索到的文本节点中距离所述触点最近 的文字位置的横坐标为: _ <w; 纵坐标为: y2+ xh ;
当触点处于搜索到的文本节点的上侧区域时,搜索到的文本节点中距离触点最近的文 字位置的横坐标为: m; 纵坐标为: y2+ xh。
18、 根据权利要求 10所述的装置, 其特征在于, 所述文本节点为可见文本节点。
19、 一种终端设备, 其特征在于, 所述终端设备包括有存储器, 以及一个或者一个以 上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上 处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
检测选取文字的触屏操作的触点是否落在文本节点中; 当所述触点未落在文本节点中时, 搜索距离所述触点最近的文本节点; 将搜索到的文本节点中距离所述触点最近的文字作为所述触点选取的文字。
PCT/CN2014/077098 2013-09-27 2014-05-09 一种选取文字的方法、装置和终端设备 Ceased WO2015043192A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
RU2015123449A RU2612598C2 (ru) 2013-09-27 2014-05-09 Способ, и аппаратура, и терминальное устройство выбора символов
KR1020147021395A KR101600999B1 (ko) 2013-09-27 2014-05-09 문자를 선택하는 방법, 장치, 단말기장치, 프로그램 및 기록매체
MX2014008739A MX348965B (es) 2013-09-27 2014-05-09 Metodo, aparato y dispositivo terminal para seleccionar un caracter.
JP2015538284A JP6068660B2 (ja) 2013-09-27 2014-05-09 文字選出方法、文字選出装置、端末装置、プログラム及び記録媒体
BR112014017601-9A BR112014017601B1 (pt) 2013-09-27 2014-05-09 método, aparelho e dispositivo de terminal para a seleção de caractere
US14/334,670 US9377949B2 (en) 2013-09-27 2014-07-18 Method and terminal device for selecting character

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310452543.2 2013-09-27
CN201310452543.2A CN103472998B (zh) 2013-09-27 2013-09-27 一种选取文字的方法、装置和终端设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/334,670 Continuation-In-Part US9377949B2 (en) 2013-09-27 2014-07-18 Method and terminal device for selecting character

Publications (1)

Publication Number Publication Date
WO2015043192A1 true WO2015043192A1 (zh) 2015-04-02

Family

ID=49797877

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077098 Ceased WO2015043192A1 (zh) 2013-09-27 2014-05-09 一种选取文字的方法、装置和终端设备

Country Status (9)

Country Link
US (1) US9792019B2 (zh)
EP (1) EP2854012B1 (zh)
JP (1) JP6068660B2 (zh)
KR (1) KR101600999B1 (zh)
CN (1) CN103472998B (zh)
BR (1) BR112014017601B1 (zh)
MX (1) MX348965B (zh)
RU (1) RU2612598C2 (zh)
WO (1) WO2015043192A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103472998B (zh) * 2013-09-27 2017-03-15 小米科技有限责任公司 一种选取文字的方法、装置和终端设备
US9377949B2 (en) 2013-09-27 2016-06-28 Xiaomi Inc. Method and terminal device for selecting character
CN104461348B (zh) * 2014-10-31 2018-09-04 小米科技有限责任公司 信息选取方法及装置
US20170371515A1 (en) 2014-11-19 2017-12-28 Honda Motor Co., Ltd. System and method for providing absolute and zone coordinate mapping with graphic animations
US9727231B2 (en) 2014-11-19 2017-08-08 Honda Motor Co., Ltd. System and method for providing absolute coordinate and zone mapping between a touchpad and a display screen
CN107368465B (zh) * 2016-05-13 2020-03-03 北京京东尚科信息技术有限公司 一种用于流式文档的截图类笔记处理的系统及方法
CN106909296A (zh) * 2016-06-07 2017-06-30 阿里巴巴集团控股有限公司 数据的提取方法、装置及终端设备
CN106325688B (zh) * 2016-08-17 2020-01-14 北京字节跳动网络技术有限公司 一种文本处理方法及装置
CN107423273B (zh) * 2017-05-09 2020-05-05 北京字节跳动网络技术有限公司 一种文本编辑方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504579A (zh) * 2008-02-04 2009-08-12 德信智能手机技术(北京)有限公司 编辑器复制及粘贴机制
CN103076982A (zh) * 2013-01-24 2013-05-01 优视科技有限公司 一种移动终端中光标控制的方法及装置
CN103472998A (zh) * 2013-09-27 2013-12-25 小米科技有限责任公司 一种选取文字的方法、装置和终端设备

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE443946T1 (de) * 1999-05-27 2009-10-15 Tegic Communications Inc Tastatursystem mit automatischer korrektur
US7821503B2 (en) * 2003-04-09 2010-10-26 Tegic Communications, Inc. Touch screen and graphical user interface
US7728821B2 (en) * 2004-08-06 2010-06-01 Touchtable, Inc. Touch detecting interactive display
TW200919317A (en) 2007-10-23 2009-05-01 Inventec Appliances Corp Text selecting method
US8650507B2 (en) * 2008-03-04 2014-02-11 Apple Inc. Selecting of text using gestures
US9104312B2 (en) * 2010-03-12 2015-08-11 Nuance Communications, Inc. Multimodal text input system, such as for use with touch screens on mobile phones
JP2011242821A (ja) * 2010-05-14 2011-12-01 Sony Corp 情報処理装置および方法、並びにプログラム
US8890818B2 (en) 2010-09-22 2014-11-18 Nokia Corporation Apparatus and method for proximity based input
US8442998B2 (en) * 2011-01-18 2013-05-14 Apple Inc. Storage of a document using multiple representations
US8549399B2 (en) * 2011-01-18 2013-10-01 Apple Inc. Identifying a selection of content in a structured document
CN103034411B (zh) * 2011-10-09 2016-01-27 中国移动通信集团公司 针对触摸屏的文本选择方法和装置
CN103207742A (zh) 2012-01-13 2013-07-17 深圳富泰宏精密工业有限公司 物件选取方法及系统
CN103294232A (zh) * 2012-02-22 2013-09-11 华为终端有限公司 一种触摸操作的处理方法及终端
CN102880418A (zh) * 2012-09-14 2013-01-16 广州市动景计算机科技有限公司 基于触摸屏式移动终端的文本选择方法及装置
CN102937864B (zh) * 2012-10-31 2015-11-25 百度在线网络技术(北京)有限公司 一种用于在触摸终端上确定所选文本的方法与设备
CN103135901B (zh) 2013-02-04 2016-01-20 广东欧珀移动通信有限公司 移动终端中精确选择文本文字的方法及该移动终端
CN103294361B (zh) 2013-06-26 2016-08-03 珠海金山办公软件有限公司 一种在触屏设备上快速选择文字的方法、系统及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504579A (zh) * 2008-02-04 2009-08-12 德信智能手机技术(北京)有限公司 编辑器复制及粘贴机制
CN103076982A (zh) * 2013-01-24 2013-05-01 优视科技有限公司 一种移动终端中光标控制的方法及装置
CN103472998A (zh) * 2013-09-27 2013-12-25 小米科技有限责任公司 一种选取文字的方法、装置和终端设备

Also Published As

Publication number Publication date
MX2014008739A (es) 2015-05-28
BR112014017601A8 (pt) 2017-07-11
EP2854012A1 (en) 2015-04-01
BR112014017601A2 (zh) 2017-06-20
CN103472998B (zh) 2017-03-15
KR20150046765A (ko) 2015-04-30
MX348965B (es) 2017-07-04
BR112014017601B1 (pt) 2021-03-09
CN103472998A (zh) 2013-12-25
RU2612598C2 (ru) 2017-03-09
JP2016500178A (ja) 2016-01-07
KR101600999B1 (ko) 2016-03-08
EP2854012B1 (en) 2019-04-03
JP6068660B2 (ja) 2017-01-25
US9792019B2 (en) 2017-10-17
RU2015123449A (ru) 2017-01-10
US20160077713A1 (en) 2016-03-17

Similar Documents

Publication Publication Date Title
CN111984165B (zh) 一种显示消息的方法、装置及终端设备
WO2015043192A1 (zh) 一种选取文字的方法、装置和终端设备
CN106331213B (zh) 一种域名系统dns处理方法及装置
WO2015043194A1 (zh) 虚拟键盘显示方法、装置及终端
WO2014067421A1 (zh) 选择文件的方法和终端
CN105975190B (zh) 一种图形界面的处理方法、装置及系统
WO2013135169A1 (zh) 一种输入法键盘的调整方法及其移动终端
WO2015043188A1 (zh) 一种用于耳机插头的连接部件、耳机插孔及终端
WO2015000429A1 (zh) 智能选词的方法和装置
WO2014206138A1 (zh) 一种更新网页数据的方法、装置和终端设备
WO2015074387A1 (zh) 滑动操作响应方法、装置及终端设备
CN108958606A (zh) 分屏显示方法、装置、存储介质和电子设备
WO2015000430A1 (zh) 智能选词的方法和装置
WO2019011335A1 (zh) 一种移动终端及其控制方法和可读存储介质
WO2015067142A1 (zh) 网页显示方法及装置
CN103677417B (zh) 一种检测手势的方法、装置及终端设备
WO2015089980A1 (zh) 一种页面的适配方法、装置和终端设备
WO2015014135A1 (zh) 鼠标指针的控制方法、装置及终端设备
CN109032487A (zh) 电子设备控制方法、装置、存储介质和电子设备
CN106092058B (zh) 信息数据的处理方法、装置及终端
CN105045522A (zh) 手持终端的触摸控制方法及装置
WO2017128986A1 (zh) 多媒体菜单项的选择方法、装置及存储介质
CN107145386A (zh) 数据迁移方法、终端设备及计算机可读存储介质
CN105718141A (zh) 桌面图标的移动方法及移动终端
WO2013152656A1 (zh) 一种绘制滑动轨迹的方法及移动终端

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: MX/A/2014/008739

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2015538284

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20147021395

Country of ref document: KR

Kind code of ref document: A

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

Ref document number: 14848973

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112014017601

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 2015123449

Country of ref document: RU

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14848973

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 112014017601

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20140717