CN104298437A - Text selection method, device and terminal - Google Patents

Text selection method, device and terminal Download PDF

Info

Publication number
CN104298437A
CN104298437A CN201310296326.9A CN201310296326A CN104298437A CN 104298437 A CN104298437 A CN 104298437A CN 201310296326 A CN201310296326 A CN 201310296326A CN 104298437 A CN104298437 A CN 104298437A
Authority
CN
China
Prior art keywords
text
text block
block
icon
selection mode
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.)
Pending
Application number
CN201310296326.9A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201310296326.9A priority Critical patent/CN104298437A/en
Priority to JP2016526412A priority patent/JP6448639B2/en
Priority to PCT/CN2014/071711 priority patent/WO2014154055A1/en
Publication of CN104298437A publication Critical patent/CN104298437A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a text selection method, device and terminal. The method comprises the following steps: in a text selection mode, selecting more than two discontinuous text blocks; and only when an operation icon is triggered, exiting the text selection mode. More than two discontinuous texts can be selected in the text selection mode.

Description

A kind of text selection method, device and terminal
Technical field
The present invention relates to touch screen terminal technology, particularly relate to a kind of text selection method, device and terminal.
Background technology
For touch screen terminal (such as smart mobile phone), existing touch operation is suitable for content-browsing (such as browsing webpage), is but unsuitable for content processing and process.Such as, from the webpage browsed, copying passage share to good friend, needing adopting the touch screen terminal of iOS or Android operation system to carry out following operation:
Enter text selection mode instruction by long by text filed sending, enter text selection mode, text filed appearance two cursors, are respectively starting point cursor and terminal cursor;
Drag cursor, determine the position of starting point cursor and terminal cursor, the text between starting point cursor and terminal cursor is for choosing text; Tap text filed meeting to send and exit text selection mode instruction, exit text selection mode, cancel and choose text and text can not be selected again; Only have again vice-minister by text filed, reenter text selection mode, again could select text;
Tap handle icon (handle icon comprise copy, the icon such as short message sending), then to choosing text to carry out corresponding operating.
The major defect of aforesaid operations gesture is in text selection mode, to choose multistage, discrete text.Suppose that one section of article comprises altogether three sections, user wants to copy first paragraph and the 3rd section in mail, can only entirely select three sections, be pasted onto in mail and delete second segment again by current mechanism; Or, operate at twice, once copy one section.No matter which kind of mode, it is all very inconvenient that portable terminal device operates.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of text selection method, device and terminal, can choose more than two sections, discrete text in text selection mode.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of text selection method, described method comprises:
In text selection mode, selected two or more text block, described text block is discontinuous;
Only when handle icon is triggered, exit text selection mode.
Preferably, described handle icon is that text-processing icon or pattern exit icon.
Preferably, described selected two or more text block is:
The coordinate of the point that real-time detection and record touch-screen are triggered, text block is selected in the set according to described coordinate points.
Preferably, described method comprises:
Mark described text block.
Preferably, described method comprises:
When length is positioned at text block scope by region, cancels described text block and select.
Preferably, described method comprises:
When the point within the scope of text block is triggered again, cancel the selected of described some corresponding content.
The invention provides a kind of text selecting device, described device comprises:
Text block selectes unit, in text selection mode, and selected two or more text block, described text block is discontinuous;
Pattern exits unit, only when handle icon is triggered, exits text selection mode.
Preferably, described handle icon is that text-processing icon or pattern exit icon.
Preferably, described text block selectes unit, and specifically for detecting and record the coordinate of the point that touch-screen is triggered in real time, text block is selected in the set according to described coordinate points.
Preferably, described device also comprises:
Text block indexing unit, selectes the selected text block of unit for marking described text block.
Preferably, described device also comprises:
Text block cancels unit, for when length is positioned at text block scope by region, cancels described text block and selectes.
Preferably, described device also comprises:
Content cancels unit, for when the point within the scope of text block is triggered again, cancels the selected of described some corresponding content.
The invention provides a kind of terminal, the text selecting device described in the above-mentioned any one of described terminal.
As from the foregoing, technical scheme of the present invention comprises: in text selection mode, selected two or more text block, and described text block is discontinuous; Only when handle icon is triggered, exit text selection mode.Because tap text filed can not sending to exit text selection mode instruction, therefore, it is possible in text selection mode, choose more than two sections, discrete text.
Accompanying drawing explanation
The realization flow schematic diagram of the text selection method that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 is the structural representation at the interface under embodiment of the present invention text selection mode;
Fig. 3 is the structural representation of embodiment of the present invention finger motion track;
Fig. 4 is the structural representation of the text block that the embodiment of the present invention is selected;
Fig. 5 is the structural representation of character in embodiment of the present invention text;
Fig. 6 is the realization flow schematic diagram cancelling text block in the embodiment of the present invention;
The structural representation of the text selecting device that Fig. 7 provides for the embodiment of the present invention;
Fig. 8 is the structural representation of embodiment of the present invention finger motion track;
Fig. 9 is the structural representation of the text block that the embodiment of the present invention is selected.
Embodiment
A kind of text selection method provided by the invention, as shown in Figure 1, described method comprises:
Step 101, in text selection mode, selected two or more text block, described text block is discontinuous;
Step 102, only when handle icon is triggered, exit text selection mode.
Here, possible under text selection mode interface as shown in Figure 2.Interface is made up of three regions:
Text filed; Non-textual region, such as scroll bar position; Operational zone, the option of operation that the selected text of display can carry out, can comprise some handle icon, such as, the text-processing icon such as to copy, share, and pattern exits icon.
Preferably, described selected two or more text block is:
The coordinate of the point that real-time detection and record touch-screen are triggered, text block is selected in the set according to described coordinate points.
Specifically describe the process determining a text block below:
When step 1011, finger sliding, the real-time location coordinates of finger goes on record, and is stored in array A{ [x in order i, y i]; As shown in Figure 3, the position coordinates of finger is with the text filed upper left corner for initial point, and under the X axis right side, Y-axis, the coordinate of first position is [x 0, y 0], the coordinate of last position is [x n, y n].
Step 1012, coordinate according to finger position, on screen, real-time rendering goes out the track of finger movement;
Aforesaid operations can by User Interface(user interface, UI) program execution.
Step 1013, when finger leaves touch-screen, according to above-mentioned coordinate set, calculate the scope choosing text block, and mark described text block;
Here, can with text block described in obvious color mark.
Here, as shown in Figure 4, aforesaid operations can be performed by UI program the scope of text block;
Concrete, can calculate by following steps the scope choosing text block:
Step 1013A, from coordinate set A, find out the minimum value y of y minwith maximal value y max;
Step 1013B, respectively according to coordinate [x 0, y min], [x n, y max], calculate the bebinning character sequence number i1 and the final character sequence number i2 that choose text block;
The formula being calculated sequence number i by coordinate [x, y] is as follows:
i=floor(y÷(H+I v))×NUM+floor(x÷(W+I h))
For the purpose of describing simply, above-mentioned formula draws based on following hypothesis:
In text, the height of each character (comprising space and punctuation mark etc.) is equal with width, is respectively H and W, and as shown in Figure 5, the distance between each character is I h, and line-spacing is I v; In text filed, often row textual data is NUM.
Step 1013C, character (comprising space and punctuation mark) between bebinning character sequence number i1 and final character sequence number i2 are formed chooses text block;
Text block information is preserved by UI program, comprising bebinning character sequence number i1 and final character sequence number i2; And the described text block of highlighted display.
Under text selection mode, user can slip over text filed multiple parts with finger, and UI program repeats above-mentioned steps 1011 to 1013, realizes the selection of multiple text-independent block.
Preferably, described method comprises: when length is positioned at text block scope by region, cancels described text block and selectes;
In actual applications, under text selection mode, user can also be recalled " cancellation text block " option by modes such as the text block chosen and perform by long, thus cancels the selection to a text block; Specifically, as shown in Figure 6, can comprise the following steps:
Step 601, to obtain with the text filed coordinate [x of the head of a household by the several seconds n, y n];
Step 602, coordinates computed [x n, y n] the sequence number i of corresponding character n;
Step 603, judge i-th nwhether individual character belongs to any one text block chosen;
Judgment criterion is: for the text block playing, stop character ordinal number difference i1 and i2, judge i1<i nwhether <i2 sets up; For any one text block, if above-mentioned criterion is set up, then i nbelong to a text block; Otherwise do not belong to any text block
Step 604, when i-th nindividual character belongs to any one text block chosen, and ejects " cancellation text block " option;
Step 605, when user click " cancellation text block " option, then cancel i nthe selected state of the text block at place, comprising the highlighted display cancelling this region, and deletes i1 and i2 from storer.
Preferably, described method comprises:
When the point within the scope of text block is triggered again, cancel the selected of described some corresponding content.
Here, when finger touch coordinate corresponding to region be the content be selected time, that cancels this coordinate corresponding content is selected.
Aforesaid operations can be performed by UI program.
A kind of text selecting device provided by the invention, as shown in Figure 7, described device comprises:
Text block selectes unit, in text selection mode, and selected two or more text block, described text block is discontinuous;
Pattern exits unit, only when handle icon is triggered, exits text selection mode.
Preferably, described handle icon is that text-processing icon or pattern exit icon.
Preferably, described text block selectes unit, and specifically for detecting and record the coordinate of the point that touch-screen is triggered in real time, text block is selected in the set according to described coordinate points.
Preferably, described device also comprises: text block indexing unit, selectes the selected text block of unit for marking described text block.
Preferably, described device also comprises:
Text block cancels unit, for when length is positioned at text block scope by region, cancels described text block and selectes.
Preferably, described device also comprises:
Content cancels unit, for when the point within the scope of text block is triggered again, cancels the selected of described some corresponding content.
Concrete, when finger touch coordinate corresponding to region be the content be selected time, that cancels this coordinate corresponding content is selected.
The invention provides a kind of terminal, described terminal comprises text selecting device mentioned above.
Be introduced below in conjunction with Fig. 8,9 pairs of embodiments of the invention.In the present embodiment, user can these two text block of A-B and N-W totally 15 characters in disposable selection Fig. 8, and the F-M between them can not be selected.
Cardinal principle, the step of the present embodiment are as follows:
Steps A, long by text filed in the current application (such as browser), application enters text selection mode;
Step B, user smear with finger the character treated in range of choice, but do not require that all characters are all coated onto on screen, point the track smeared and show with obvious color on screen;
Step C, finger be when leaving touch screen interface, in the character be applied to, go up most and the most left character and the rightest and all characters between the character of lower-left by selected, form a text block, with highlighted display;
Such as, user presses finger on alphabetical A, lifts finger after dragging to letter e always, then these 5 characters of A-E are selected, as shown in Figure 9, forms first selected text block (text clip No.1);
User can repeat step 602-603, chooses more text block.Such as, user presses finger again on alphabetical N, lifts finger after dragging to letter w always, then these 10 letters of N-W are by selected, as shown in Figure 9, forms second selected text block (text clip No.2);
User can grow and cancel selection to it by some text block;
When the pattern that user clicks text filed top exits icon, text selection mode is exited in application (such as browser);
Step D, user click the handle icon such as " sharing ", " copying " of text filed top, operate the text chosen (comprising all text block).Meanwhile, apply (such as browser) and exit text selection mode.
To sum up, adopt the present invention, user can word intuitively, accurately needed for way selection; For large section word, user only need point and insweptly just can to choose, and without the need to dragging cursor line by line, operating speed can obviously promote; Further, multiple discontinuous text block can once be selected.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (13)

1. a text selection method, is characterized in that, described method comprises:
In text selection mode, selected two or more text block, described text block is discontinuous;
Only when handle icon is triggered, exit text selection mode.
2. method according to claim 1, is characterized in that, described handle icon is that text-processing icon or pattern exit icon.
3. method according to claim 1, is characterized in that, described selected two or more text block is:
The coordinate of the point that real-time detection and record touch-screen are triggered, text block is selected in the set according to described coordinate points.
4. the method according to claim 1,2 or 3, is characterized in that, described method comprises:
Mark described text block.
5. the method according to claim 1,2 or 3, is characterized in that, described method comprises:
When length is positioned at text block scope by region, cancels described text block and select.
6. the method according to claim 1,2 or 3, is characterized in that, described method comprises:
When the point within the scope of text block is triggered again, cancel the selected of described some corresponding content.
7. a text selecting device, is characterized in that, described device comprises:
Text block selectes unit, in text selection mode, and selected two or more text block, described text block is discontinuous;
Pattern exits unit, only when handle icon is triggered, exits text selection mode.
8. device according to claim 7, is characterized in that, described handle icon is that text-processing icon or pattern exit icon.
9. device according to claim 7, is characterized in that, described text block selectes unit, and specifically for detecting and record the coordinate of the point that touch-screen is triggered in real time, text block is selected in the set according to described coordinate points.
10. the device according to claim 7,8 or 9, is characterized in that, described device also comprises:
Text block indexing unit, selectes the selected text block of unit for marking described text block.
11. devices according to claim 7,8 or 9, it is characterized in that, described device also comprises:
Text block cancels unit, for when length is positioned at text block scope by region, cancels described text block and selectes.
12. devices according to claim 7,8 or 9, it is characterized in that, described device also comprises:
Content cancels unit, for when the point within the scope of text block is triggered again, cancels the selected of described some corresponding content.
13. 1 kinds of terminals, is characterized in that, described terminal comprises the text selecting device described in any one of claim 6 to 10.
CN201310296326.9A 2013-07-15 2013-07-15 Text selection method, device and terminal Pending CN104298437A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201310296326.9A CN104298437A (en) 2013-07-15 2013-07-15 Text selection method, device and terminal
JP2016526412A JP6448639B2 (en) 2013-07-15 2014-01-28 Text selection method, apparatus and terminal
PCT/CN2014/071711 WO2014154055A1 (en) 2013-07-15 2014-01-28 Method, apparatus and terminal for selecting text

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310296326.9A CN104298437A (en) 2013-07-15 2013-07-15 Text selection method, device and terminal

Publications (1)

Publication Number Publication Date
CN104298437A true CN104298437A (en) 2015-01-21

Family

ID=51622442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310296326.9A Pending CN104298437A (en) 2013-07-15 2013-07-15 Text selection method, device and terminal

Country Status (3)

Country Link
JP (1) JP6448639B2 (en)
CN (1) CN104298437A (en)
WO (1) WO2014154055A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653179A (en) * 2015-07-31 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Character processing method and apparatus
WO2016173305A1 (en) * 2015-04-29 2016-11-03 中兴通讯股份有限公司 Text selection method and device, and text processing method and device
CN106406687A (en) * 2015-07-31 2017-02-15 东莞酷派软件技术有限公司 An input control method and device
CN106610780A (en) * 2015-10-27 2017-05-03 中兴通讯股份有限公司 Text selection method and intelligent terminal
CN106959941A (en) * 2016-01-11 2017-07-18 北京国双科技有限公司 Web page form delet method and device
CN107765967A (en) * 2017-10-18 2018-03-06 北京小米移动软件有限公司 The choosing method and device of text
JP2018075390A (en) * 2017-12-13 2018-05-17 株式会社セガゲームス Information processor and program
CN108475176A (en) * 2016-01-06 2018-08-31 三星电子株式会社 The equipment and its screen picture configuration method of user interface are provided by using pressure sensor
CN114265525A (en) * 2021-12-27 2022-04-01 咪咕数字传媒有限公司 Text selection method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004152171A (en) * 2002-10-31 2004-05-27 Niigata Canotec Co Inc Information processor, method and program for object selection, and recording medium
CN101504579A (en) * 2008-02-04 2009-08-12 德信智能手机技术(北京)有限公司 Copying and pasting mechanism of editor
JP2010217998A (en) * 2009-03-13 2010-09-30 Fujitsu Ltd Mobile terminal device
CN103136180A (en) * 2013-02-25 2013-06-05 北京极兴莱博信息科技有限公司 Text segment copying and pasting method and device and terminal for implementing same

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0736869A (en) * 1993-07-23 1995-02-07 Canon Inc Document editor
JPH07191990A (en) * 1993-12-27 1995-07-28 Sharp Corp Document processor with specifying function for area
JPH11306177A (en) * 1998-04-20 1999-11-05 Sharp Corp Character string storage/retrieval device and recording medium recorded with character string storage/ retrieval program
JP2004334300A (en) * 2003-04-30 2004-11-25 Casio Comput Co Ltd Data processor and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004152171A (en) * 2002-10-31 2004-05-27 Niigata Canotec Co Inc Information processor, method and program for object selection, and recording medium
CN101504579A (en) * 2008-02-04 2009-08-12 德信智能手机技术(北京)有限公司 Copying and pasting mechanism of editor
JP2010217998A (en) * 2009-03-13 2010-09-30 Fujitsu Ltd Mobile terminal device
CN103136180A (en) * 2013-02-25 2013-06-05 北京极兴莱博信息科技有限公司 Text segment copying and pasting method and device and terminal for implementing same

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016173305A1 (en) * 2015-04-29 2016-11-03 中兴通讯股份有限公司 Text selection method and device, and text processing method and device
CN106201294A (en) * 2015-04-29 2016-12-07 中兴通讯股份有限公司 Text selection method and apparatus, text handling method and device
CN105653179A (en) * 2015-07-31 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Character processing method and apparatus
CN106406687A (en) * 2015-07-31 2017-02-15 东莞酷派软件技术有限公司 An input control method and device
CN106610780A (en) * 2015-10-27 2017-05-03 中兴通讯股份有限公司 Text selection method and intelligent terminal
CN108475176A (en) * 2016-01-06 2018-08-31 三星电子株式会社 The equipment and its screen picture configuration method of user interface are provided by using pressure sensor
CN106959941A (en) * 2016-01-11 2017-07-18 北京国双科技有限公司 Web page form delet method and device
CN107765967A (en) * 2017-10-18 2018-03-06 北京小米移动软件有限公司 The choosing method and device of text
JP2018075390A (en) * 2017-12-13 2018-05-17 株式会社セガゲームス Information processor and program
CN114265525A (en) * 2021-12-27 2022-04-01 咪咕数字传媒有限公司 Text selection method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
JP6448639B2 (en) 2019-01-09
JP2016532941A (en) 2016-10-20
WO2014154055A1 (en) 2014-10-02

Similar Documents

Publication Publication Date Title
CN104298437A (en) Text selection method, device and terminal
US11487426B2 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
CN102681774B (en) Method and device for controlling application interface through gesture and mobile terminal
CN102681786B (en) Method and device for text selection
CN102866827B (en) The document edit method of a kind of human-computer interaction device and device
CN103076982B (en) The method and device that in a kind of mobile terminal, cursor controls
CN103513878A (en) Touch input method and device
CN104657062A (en) Graph editing method and electronic device
CN102385475B (en) Electronic device and interactive method thereof
CN102455869B (en) Method and device for editing characters by using gestures
CN103150093B (en) The method of a kind of operation indicating identifier movement, device and terminal
CN104423869A (en) Text erasing method and device
CN103116446B (en) A kind of list interactive method for touch portable device
CN104346066A (en) Information processing method and electronic equipment
CN103809886B (en) A kind of cursor positioning method and mobile terminal
CN102654818B (en) A kind of keyboard display method of touch-screen electronic equipment and device
CN107179875B (en) The method and apparatus of window adjustment
CN101876865B (en) Method for judging gesture of touch device
CN113703631A (en) Writing control method and device, electronic equipment and storage medium
CN103455258A (en) Touch input identification method and electronic device
CN103502921A (en) Text indicator method and electronic device
CN113360035B (en) Icon sorting method and device and electronic equipment
JP2015022524A (en) Terminal device and system
JP6615491B2 (en) Pen input system, touch pen, and pen input method
CN103870013A (en) Method and device for information processing and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150121

RJ01 Rejection of invention patent application after publication