CN106648371A - Method and device for moving text based on text file - Google Patents

Method and device for moving text based on text file Download PDF

Info

Publication number
CN106648371A
CN106648371A CN201611249565.9A CN201611249565A CN106648371A CN 106648371 A CN106648371 A CN 106648371A CN 201611249565 A CN201611249565 A CN 201611249565A CN 106648371 A CN106648371 A CN 106648371A
Authority
CN
China
Prior art keywords
text
target
target text
edit control
pressing operation
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
CN201611249565.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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611249565.9A priority Critical patent/CN106648371A/en
Publication of CN106648371A publication Critical patent/CN106648371A/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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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
    • 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)

Abstract

The invention provides a method and a device for moving a text based on a text file, and belongs to the technical field of terminals. The method comprises the following steps: in the display process of a text editing interface of the text file, and when the chosen operation of any part of the text in the text file is detected, determining the chosen text to be a target text; when appointed pressing operation for the target text is selected, setting the target text in a to-be-cut condition; and if moving operation for the target text is detected, cutting the target text and sticking to a target position on the text editing interface according to the moving operation. According to the method and the device, the moving operation is carried out on the basis of the appointed pressing operation of the user, namely the movement of a block of text from one position in the text file to the other position can be realized, and a moving method with high operation efficiency is provided.

Description

Text moving method and device based on text
Technical field
It relates to field of terminal technology, more particularly to a kind of text moving method and device based on text.
Background technology
As the use of terminal is more and more frequent, people are gradually accustomed to carrying out text editing, for example, Yong Huke in terminal Using the text editing application in terminal, such as note, notepad plain text editor application, to come newly-built text, and base Text editing is carried out in this article presents, and during text editing, is often related to enter style of writing in this article presents The process of this movement.
At present, so that terminal is as mobile phone as an example, the process of text movement is carried out in text can be included:User is in office Target text is chosen on the text editing interface of one text, the target text is the part text or whole of this article presents Text, and the target text is grown by operation, shearing option is selected in the menu bar for ejecting, and then in text editor Grown at any position on interface by operation, selected Paste in the menu bar for ejecting, you can by the target text The position is moved to, so as to realize moving process of the target text in this article presents.
The content of the invention
To overcome problem present in correlation technique, the disclosure provide a kind of text moving method based on text and Device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of text moving method based on text, including:
During the display at the text editing interface of text, any portion in detecting to the text When choosing operation of text, by the selected text target text is defined as;
When the specified pressing operation to the target text is detected, the target text is set to into shape to be sheared State, the pressure value of the specified pressing operation is more than or equal to specified threshold;
If detecting the moving operation to the target text, according to the moving operation, by the target text The target location on the text editing interface is sheared and affixes to, the target location is the position at the end of the moving operation Put.
The method that the embodiment of the present disclosure is provided, when the specified pressing operation to target text is detected, by the target text Originally it is set to treat shearing condition, and then according to the moving operation for detecting, target location is sheared and affixed to the target text, So that user is on the basis of specified pressing operation is carried out, then operation is moved, i.e., one section of text can be realized from text text A kind of movement of one position of part to another position, there is provided moving method with high operating efficiency.
In the first implementation of first aspect, methods described also includes:
When the specified pressing operation is detected, the edit control of the target text is shown, the edit control is used Shearing condition is treated in indicating that the target text is in.
The method that the embodiment of the present disclosure is provided, when specified pressing operation is detected, the edit control of display target text, Allow user intuitively to learn that the target text is currently at and treat shearing condition.
In second implementation of first aspect, the edit control for showing the target text includes:
Create blank edit control;
Extract from the target text and specify the text of number of words, and the text of the specified number of words is retrieved as into the mesh The summary of mark text;
The summary is added in the blank edit control, and the background of the blank edit control is set, obtained The edit control of the target text;
On the text editing interface, the edit control of the target text is shown.
The method that the embodiment of the present disclosure is provided, the edit control shown on text editing interface includes plucking for target text Will so that user is according to the edit control, you can learn the content information of the target text.
In the third implementation of first aspect, methods described also includes:
During the moving operation, along the motion track of the moving operation, the target text is shown The moving process of edit control.
The method that the embodiment of the present disclosure is provided, by the edit control of target text as the motion track of moving operation is carried out Show so that user can be during whole moving operation, even if motion track is very long, it is also possible to which at any time basis should be along shifting The edit control that dynamic rail mark shows, knows the content information of the target text.
It is described according to the moving operation in the 4th kind of implementation of first aspect, by target text shearing And affix to after the target location on the text editing interface, methods described also includes:
Hide display of the edit control on the text editing interface.
The method that the embodiment of the present disclosure is provided, after mobile end of the target text in text, no longer showing should The edit control of target text, it is to avoid the wasting of resources that terminal is caused due to the display to unnecessary content.
In the 5th kind of implementation of first aspect, the acquisition process of the specified threshold includes:
During the display that pressure value arranges interface, when the setting operation to pressure value is detected, will be set Pressure value is retrieved as the specified threshold.
The method that the embodiment of the present disclosure is provided, can provide pressure value and arrange function so that user can make according to itself It is arranged with custom carries out specifying the pressure value applied needed for pressing operation, so as to reduce the probability of maloperation, improves operation Success rate.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of text moving method based on text, including:
During the display at the text editing interface of text, any portion in detecting to the text When choosing operation of text, by the selected text target text is defined as;
When the specified pressing operation to the target text is detected, the target text, the specified pressing are sheared The pressure value of operation is more than or equal to specified threshold;
If detecting the specified pressing operation to target location, the target text is affixed to into the target position Put, the target location is any position on the text editing interface.
The method that the embodiment of the present disclosure is provided, when the specified pressing operation to target text is detected, shears the target Text, and then when the specified pressing operation to target location is detected, the target text is affixed to into the target location.So that User only need to twice be specified pressing operation, you can realize one section of text from a position of text to another position Movement, there is provided a kind of moving method with high operating efficiency.Long range particularly with text in text is moved Dynamic, operating efficiency is high.
In the first implementation of second aspect, methods described also includes:
When the specified pressing operation is detected, the edit control of the target text is shown, the edit control is used In the instruction target text in shearing condition.
The method that the embodiment of the present disclosure is provided, when specified pressing operation is detected, the edit control of display target text, User is allowd intuitively to learn that the target text is currently at shearing condition.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of text mobile device based on text, including:
Determining module, for during the display at the text editing interface of text, when detecting to the text When choosing operation of any portion text in file, by the selected text target text is defined as;
Setup module, for when the specified pressing operation to the target text is detected, the target text being set It is set to and treats shearing condition, the pressure value of the specified pressing operation is more than or equal to specified threshold;
Shear module, if for detecting the moving operation to the target text, according to the moving operation, will The target location on the text editing interface is sheared and affixed to the target text, and the target location is the mobile behaviour Position at the end of work.
In the first implementation of the third aspect, described device also includes:
Display module, for when the specified pressing operation is detected, showing the edit control of the target text, institute State edit control and treat shearing condition for indicating that the target text is in.
In second implementation of the third aspect, the display module includes:
Submodule is created, for creating blank edit control;
Acquisition submodule, for obtaining the text for specifying number of words is extracted from the target text, and by the designated word Several texts is retrieved as the summary of the target text;
Submodule is set, for the summary to be added in the blank edit control, and the blank editor is set The background of control, obtains the edit control of the target text;
Display sub-module, at the text editing interface, showing to the edit control of the target text.
In the third implementation of the third aspect, the display module is additionally operable to the process in the moving operation In, along the motion track of the moving operation, show the moving process of the edit control of the target text.
In the 4th kind of implementation of the third aspect, described device also includes:
Hidden module, for hiding display of the edit control on the text editing interface.
In the 5th kind of implementation of the third aspect, described device also includes:
Acquisition module, for during the display that pressure value arranges interface, operating when the setting to pressure value is detected When, set pressure value is retrieved as into the specified threshold.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of text mobile device based on text, including:
Determining module, for during the display at the text editing interface of text, when detecting to the text When choosing operation of any portion text in file, by the selected text target text is defined as;
Shear module, for when the specified pressing operation to the target text is detected, shearing the target text, The pressure value of the specified pressing operation is more than or equal to specified threshold;
Stickup module, if for detecting the specified pressing operation to target location, the target text pasted To the target location, the target location is any position on the text editing interface.
In the first implementation of fourth aspect, described device also includes:
Display module, for when the specified pressing operation is detected, showing the edit control of the target text, institute Edit control is stated for indicating the target text in shearing condition.
According to the 5th aspect of the embodiment of the present disclosure, there is provided a kind of text mobile device based on text, including:
Processor;
For storing the memory of the executable instruction of processor;
Wherein, the processor is configured to:
During the display at the text editing interface of text, any portion in detecting to the text When choosing operation of text, by the selected text target text is defined as;
When the specified pressing operation to the target text is detected, the target text is set to into shape to be sheared State, the pressure value of the specified pressing operation is more than or equal to specified threshold;
If detecting the moving operation to the target text, according to the moving operation, by the target text The target location on the text editing interface is sheared and affixes to, the target location is the position at the end of the moving operation Put.
According to the 6th aspect of the embodiment of the present disclosure, there is provided a kind of text mobile device based on text, including:
Processor;
For storing the memory of the executable instruction of processor;
Wherein, the processor is configured to:
During the display at the text editing interface of text, any portion in detecting to the text When choosing operation of text, by the selected text target text is defined as;
When the specified pressing operation to the target text is detected, the target text, the specified pressing are sheared The pressure value of operation is more than or equal to specified threshold;
If detecting the specified pressing operation to target location, the target text is affixed to into the target position Put, the target location is any position on the text editing interface.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the enforcement for meeting the disclosure Example, and be used to explain the principle of the disclosure together with specification.
Fig. 1 is a kind of flow chart of the text moving method based on text according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the text moving method based on text according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of the text moving method based on text according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of the text mobile device based on text according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of the text mobile device based on text according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the display module 404 according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the text mobile device based on text according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of the text mobile device based on text according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the text mobile device based on text according to an exemplary embodiment.
Figure 10 is a kind of frame of the text mobile device 1000 based on text according to an exemplary embodiment Figure.
Specific embodiment
To make purpose, technical scheme and the advantage of the disclosure clearer, below in conjunction with accompanying drawing to disclosure embodiment party Formula is described in further detail.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the text moving method based on text according to an exemplary embodiment, As shown in figure 1, the text moving method based on text is used in terminal, comprise the following steps:
In a step 101, during the display at the text editing interface of text, when detecting to this article presents When choosing operation of middle any portion text, by the selected text target text is defined as.
In a step 102, when the specified pressing operation to the target text is detected, the target text is set to treat Shearing condition, the pressure value of the specified pressing operation is more than or equal to specified threshold.
In step 103, if detecting the moving operation to the target text, according to the moving operation, by the mesh The target location on text editing interface is sheared and affixed to mark text, and the target location is the position at the end of the moving operation Put.
In the embodiment of the present disclosure, when the specified pressing operation to target text is detected, the target text is set to Shearing condition is treated, and then according to the moving operation for detecting, target location is sheared and affixed to the target text so that user On the basis of specified pressing operation is carried out, then operation is moved, i.e., can realize one of one section of text from text A kind of movement of the individual position to another position, there is provided moving method with high operating efficiency.
In a kind of possible implementation, the method also includes:
When the specified pressing operation is detected, the edit control of the target text is shown, the edit control is used to indicate The target text is in and treats shearing condition.
In a kind of possible implementation, the edit control of the display target text includes:
Create blank edit control;
Extract from the target text and specify the text of number of words, and the text of the specified number of words is retrieved as into the target text Summary;
The summary is added in the blank edit control, and the background of the blank edit control is set, obtain the target The edit control of text;
On text editing interface, the edit control of the target text is shown.
In a kind of possible implementation, the method also includes:
During the moving operation, along the motion track of the moving operation, editor's control of the target text is shown The moving process of part.
In a kind of possible implementation, the text is sheared and affixed to the target text by this according to the moving operation After target location on editing interface, the method also includes:
Hide display of the edit control on text editing interface.
In a kind of possible implementation, the acquisition process of the specified threshold includes:
During the display that pressure value arranges interface, when the setting operation to pressure value is detected, will be set Pressure value is retrieved as the specified threshold.
Above-mentioned all optional technical schemes, can adopt the alternative embodiment for arbitrarily combining to form the disclosure, and here is no longer Repeat one by one.
Fig. 2 is a kind of flow chart of the text moving method based on text according to an exemplary embodiment, As shown in Fig. 2 the text moving method based on text is used in terminal, comprise the following steps:
In step 201, during the display at the text editing interface of text, when detecting to this article presents When choosing operation of middle any portion text, by the selected text target text is defined as.
In step 202., when the specified pressing operation to the target text is detected, the target text is sheared, this refers to The pressure value for determining pressing operation is more than or equal to specified threshold.
In step 203, if detecting the specified pressing operation to target location, the target text is affixed to into this Target location, the target location is any position on text editing interface.
In the embodiment of the present disclosure, when the specified pressing operation to target text is detected, the target text is sheared, and then When the specified pressing operation to target location is detected, the target text is affixed to into the target location.So that user only needs Pressing operation is specified twice, you can realize a position of one section of text from text to the shifting of another position It is dynamic, there is provided a kind of moving method with high operating efficiency.Long range movement particularly with text in text, behaviour Make efficiency high.
In a kind of possible implementation, the method also includes:
When the specified pressing operation is detected, the edit control of the target text is shown, the edit control is used to indicate The target text is in shearing condition.
Fig. 3 is a kind of flow chart of the text moving method based on text according to an exemplary embodiment, As shown in figure 3, the text moving method based on text is used in terminal, the terminal carries touch-screen or touch pad, for example, The terminal can be the mobile terminals such as mobile phone, panel computer, or the notebook computer of touch pad is configured with, can also be It is configured with the desktop computer of touch-screen display.The method is comprised the following steps:
In step 301, during the display at the text editing interface of text, when detecting to this article presents When choosing operation of middle any portion text, by the selected text target text is defined as.
Wherein, this article presents can be the text of establishment in text editing application of the user in terminal, this article This editor application can be the plain text editors such as note, notepad application, and this article presents can include character, picture etc. arbitrarily The text of form.Text editing interface refers to the interface that can enter edlin to the text in this article presents.
In the embodiment of the present disclosure, user can carry out trigger action to the arbitrary text in terminal, when terminal detection During to trigger action to this article presents, the text editing interface of this article presents can be shown.With the terminal as mobile phone, put down As a example by the mobile terminals such as plate computer, the trigger action can be click on operation, and such as user uses finger, pointer contact matchmaker It is situated between, the operation clicked on to this article presents in terminal, the embodiment of the present disclosure is not limited this.
During the display of text editing interface, user can be on text editing interface to this article presents Any portion text carries out choosing operation, when terminal detects this chooses operation, can be defined as in the selected text Target text.Wherein, this chooses operation to refer to the long operation that can realize choosing text by operation or slide etc., The selected text can be the character string of single character, or multiple characters composition, can also be picture etc., this public affairs Open embodiment not limit this.
In step 302, when the specified pressing operation to the target text is detected, the target text is set to treat Shearing condition, and the edit control of the target text is shown, the pressure value of the specified pressing operation is more than or equal to specified threshold, The edit control treats shearing condition for indicating that the target text is in.
In the embodiment of the present disclosure, user can carry out pressing operation after target text is chosen to the target text, work as end When end detects the pressing operation, the pressing operation pressure applied value can be carried out with user in real, if the pressure When value is more than or equal to the specified threshold, then the pressing operation is can determine to specify pressing operation.It is determined that user is to the mesh Mark text carries out specifying after pressing operation, and terminal can be set to the target text treat shearing condition, for example, the shape to be sheared State may refer to target text and be shown as suspended state.
Additionally, when terminal detects the specified pressing operation to the target text, the target text can also be shown Edit control.Showing the edit control of the target text can include:Create blank edit control;Extract from the target text The text of specified number of words, and the text of the specified number of words is retrieved as into the summary of the target text;The summary is added to into the sky In white edit control, and the background of the blank edit control is set, the edit control of the target text is obtained;In text editor On interface, the edit control of the target text is shown.For example, terminal can be in the form of floating window, by editor's control Part is displayed on text editing interface, as shown in the vicinity of the target text.By the display target on text editing interface The edit control of text so that user can intuitively learn that the target text is currently at and treat shearing condition, and the editor Control can also include the summary of target text so that user is according to the edit control, you can learn the content of the target text Information.
It can be seen from foregoing description, it is intended that threshold value is the basis for estimation that terminal-pair specifies pressing operation.Wherein, the specified threshold Value can be the preset value of terminal system, it is of course also possible to be configured to pressure value in terminal by user, terminal is by user Used as specified threshold, correspondingly, the acquisition process of the specified threshold can include the pressure value of setting:In pressure value, interface is set Display during, when detect the setting of pressure value is operated when, set pressure value is retrieved as into the specified threshold.
For example, terminal can provide pressure value setting options on interface is arranged, and user can arrange choosing to the pressure value Item carries out trigger action, when terminal detects the trigger action, can show that pressure value arranges interface.User can be in the pressure Force value arranges input pressure value on interface, when terminal detects the pressure value of user input, the pressure value is retrieved as into this and is referred to Determine threshold value.Certainly, the pressure value to be arranged and can also provide multiple pressure values on interface, and user can therefrom select any one pressure The pressure value that user selects is retrieved as the specified threshold by value, terminal.It should be noted that the pressure value arranges what interface provided Pressure value can be specific numerical value, or it is strong, in, the degree value for representing pressure size such as weak, the disclosure implemented Example is not limited this.Function is set by providing pressure value, user can arrange it and be referred to according to itself use habit Determine the pressure value applied needed for pressing operation, so as to reduce the probability of maloperation, improve operation success rate.
It should be noted that:The embodiment of the present disclosure is with when terminal detects the specified pressing operation to the target text When, illustrate as a example by the edit control for showing the target text, in fact, terminal can not also be to the editor of the target text Control is shown.
In step 303, if detecting the moving operation to the target text, according to the moving operation, by the mesh The target location on text editing interface is sheared and affixed to mark text, and the target location is the position at the end of the moving operation Put.
In the embodiment of the present disclosure, in target text in the case for the treatment of shearing condition, user can enter to the target text Row moving operation, when terminal detects the moving operation, can draw and show the moving operation according to the moving operation Motion track, for example, the motion track can be shown as target text and move with the movement of user's finger.Work as moving operation At the end of, terminal can be sheared to target text, and the target text that shearing is obtained is affixed to into the target location.It is logical Crossing shirtsleeve operation can realize a position of one section of text from text to the movement of another position, operation effect Rate is high.
Additionally, in order to allow user to be intuitive to see the status information of the target text, during the moving operation, eventually End can show the moving process of the edit control of the target text along the motion track of the moving operation.
For example, during the display of text editing interface, when user is carried out by finger on the touch-screen of terminal During specified pressing operation, it is corresponding in text editor circle that terminal can in real time get user's finger contact point on the touchscreen The starting point coordinate in face.And then when user carries out moving operation on the touch-screen of terminal, terminal can record movement behaviour The motion track that each contact point coordinates producing during work, corresponding to text editing interface is constituted, it is possible to edge The motion track, the moving process of the edit control of the target text is shown.Wherein, the touch-screen can be mobile phone, flat board Touch-screen on the mobile terminals such as computer, or the touch pad configured on notebook computer, can also be for outside desktop computer Touch-screen display for connecing etc., the embodiment of the present disclosure is not limited this.By by the edit control of target text with movement The motion track of operation is shown so that user is during whole moving operation, even if motion track is very long, it is also possible to When the edit control that track shows is moved along according to this, know the content information of the target text.
In step 304, display of the edit control on text editing interface is hidden.
In the embodiment of the present disclosure, terminal, can be with after by step 303 is sheared target text and affix to target location Hide display of the edit control on text editing interface.After mobile end of the target text in text, eventually Hold and no longer the edit control of the target text is shown, terminal can be avoided to cause due to the display to unnecessary content The wasting of resources.
Above-mentioned steps 301 to step 304 is a kind of text movement side based on text that the embodiment of the present disclosure is provided Method, the method is that the movement of text is realized by moving operation, the short-distance movement particularly with text in text, The moving method has high operating efficiency.
In another embodiment of the present disclosure, there is provided the method that another kind carries out text movement in text, the party Method may comprise steps of a to step c:
Step a, during the display at the text editing interface of text, it is arbitrary in detecting to this article presents When choosing operation of part text, by the selected text target text is defined as.
Step a in the same manner, will not be described here with step 301.
Step b, when the specified pressing operation to the target text is detected, shear the target text, the specified pressing The pressure value of operation is more than or equal to specified threshold.
User can carry out specifying pressing operation to target text, to trigger the shear history to the specified text, work as end When end detects the specified pressing operation, target text is sheared to shear plate, to realize the shearing of target text so that target Text temporarily will not be shown on terminal interface.Wherein, terminal-pair specifies basis for estimation and the step 302 of pressing operation in the same manner.
If step c, detecting the specified pressing operation to target location, the target text is affixed to into the target position Put, the target location is any position on text editing interface.
After the shearing for realizing target text, user can again be specified in the target location on text editing interface Pressing operation, with taping process of the triggering terminal to the specified text, when terminal detects the specified pressing operation, from shear plate Middle taking-up target text, and the target text is affixed to into the target location.
It should be noted that:The another embodiment of the present disclosure can also show to the edit control of the target text Show, i.e., in above-mentioned steps b, when terminal detects the specified pressing operation to target text, the target text can also be shown This edit control, the edit control is used to indicate the target text in shearing condition.Wherein, the display of the edit control Process in the same manner, will not be described here with step 302.By the edit control of display target text so that user can be intuitively Learn that the target text is currently at shearing condition, and the edit control can also include the summary of target text so that Even if user is in the case where the target text is sheared, it is also possible to according to the edit control, know the interior of the target text Appearance information.Correspondingly, terminal is affixed to the target text behind the target location by performing step c, can be hidden to compiling Collect the display of control.
The method that another embodiment of the present disclosure is provided, when the specified pressing operation to target text is detected, shearing The target text, and then when the specified pressing operation to target location is detected, the target text is affixed to into the target position Put.So that user only need to twice be specified pressing operation, you can realize a position of one section of text from text to A kind of movement of another position, there is provided moving method with high operating efficiency.The method is by specifying pressing operation To realize the movement of text, the long range movement particularly with text in text, operating efficiency is high.
In the embodiment of the present disclosure, when the specified pressing operation to target text is detected, the target text is set to Shearing condition is treated, and then according to the moving operation for detecting, target location is sheared and affixed to the target text so that user On the basis of specified pressing operation is carried out, then operation is moved, i.e., can realize one of one section of text from text A kind of movement of the individual position to another position, there is provided moving method with high operating efficiency.
Additionally, when terminal detects the specified pressing operation to the target text, the target text can also be shown Edit control so that user can intuitively learn that the target text is currently at and treat shearing condition.And by the target text Edit control is shown with the motion track of moving operation so that user is during whole moving operation, even if movement Track is very long, it is also possible to moves along the edit control that track shows according to this at any time, knows the content information of the target text.
Fig. 4 is a kind of block diagram of the text mobile device based on text according to an exemplary embodiment.Ginseng According to Fig. 4, the device includes determining module 401, setup module 402 and shear module 403.
The determining module 401 is configured to during the display at the text editing interface of text, right when detecting When choosing operation of any portion text in this article presents, by the selected text target text is defined as;
When the setup module 402 is configured as detecting the specified pressing operation to the target text, by the target text Originally it is set to treat shearing condition, the pressure value of the specified pressing operation is more than or equal to specified threshold;
If the shear module 403 is configured to detect the moving operation to the target text, according to movement behaviour Make, the target location on text editing interface is sheared and affixed to the target text, the target location is the moving operation At the end of position.
In a kind of possible implementation, referring to Fig. 5, the device also includes:
Display module 404, when being configured as detecting the specified pressing operation, shows editor's control of the target text Part, the edit control treats shearing condition for indicating that the target text is in.
In a kind of possible implementation, referring to Fig. 6, the display module 404 includes:
Submodule is created, is configured to create blank edit control;
Acquisition submodule, is configured to obtain and the text for specifying number of words is extracted from the target text, and by the designated word Several texts is retrieved as the summary of the target text;
Submodule is set, is configured to that the summary is added in the blank edit control, and blank editor's control is set The background of part, obtains the edit control of the target text;
Display sub-module, is configured on text editing interface, and the edit control of the target text is shown.
In a kind of possible implementation, the display module 404 is additionally operable to during the moving operation, along this The motion track of moving operation, shows the moving process of the edit control of the target text.
In a kind of possible implementation, referring to Fig. 7, the device also includes:
Hidden module 405, is configured to hide display of the edit control on text editing interface.
With regard to the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 8 is a kind of block diagram of the text mobile device based on text according to an exemplary embodiment.Ginseng According to Fig. 8, the device includes determining module 801, shear module 802 and stickup module 803.
The determining module 801 is configured to during the display at the text editing interface of text, right when detecting When choosing operation of any portion text in this article presents, by the selected text target text is defined as;
When the shear module 802 is configured as detecting the specified pressing operation to the target text, the target is sheared Text, the pressure value of the specified pressing operation is more than or equal to specified threshold;
If the stickup module 803 is configured to detect the specified pressing operation to target location, by the target text Originally the target location is affixed to, the target location is any position on text editing interface.
In a kind of possible implementation, referring to Fig. 9, the device also includes:
Display module 804, when being configured as detecting the specified pressing operation, shows editor's control of the target text Part, the edit control is used to indicate the target text in shearing condition.
Figure 10 is a kind of frame of the text mobile device 1000 based on text according to an exemplary embodiment Figure.For example, device 1000 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game console is put down Board device, Medical Devices, body-building equipment, personal digital assistant etc..
With reference to Figure 10, device 1000 can include following one or more assemblies:Process assembly 1002, memory 1004, Power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensor cluster 1014, and communication component 1016.
The integrated operation of the usual control device 1000 of process assembly 1002, such as with display, call, data communication, The associated operation of camera operation and record operation.Process assembly 1002 can include one or more processors 1020 to perform Instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 1002 can include one or more moulds Block, the interaction being easy between process assembly 1002 and other assemblies.For example, process assembly 1002 can include multi-media module, To facilitate the interaction between multimedia groupware 1008 and process assembly 1002.
Memory 1004 is configured to store various types of data to support the operation in device 1000.These data Example include on device 1000 operate any application program or method instruction, contact data, telephone book data, Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they Combination realizes, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of device 1000.Power supply module 1006 can include power management System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 1000.
Multimedia groupware 1008 is included in the screen of one output interface of offer between device 1000 and user.At some In embodiment, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Touch-screen is may be implemented as, to receive the input signal from user.Touch panel includes one or more touch sensors With the gesture on sensing touch, slip and touch panel.Touch sensor can not only sensing touch or sliding action border, But also the detection duration related to touch or slide and pressure.In certain embodiments, multimedia groupware 1008 Including a front-facing camera and/or post-positioned pick-up head.When device 1000 is in operator scheme, such as screening-mode or video mode When, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and rearmounted shooting Head can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 1010 is configured to output and/or input audio signal.For example, audio-frequency assembly 1010 includes a wheat Gram wind (MIC), when device 1000 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The audio signal for being received can be further stored in memory 1004 or via communication Component 1016 sends.In certain embodiments, audio-frequency assembly 1010 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1012 are that interface, above-mentioned peripheral interface module are provided between process assembly 1002 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented Estimate.For example, sensor cluster 1014 can detect the opening/closed mode of device 1000, such as relative positioning of component, group Part is the display and keypad of device 1000, and sensor cluster 1014 can be with 1,000 1 groups of detection means 1000 or device The position of part changes, and user is presence or absence of with what device 1000 was contacted, the orientation of device 1000 or acceleration/deceleration and device 1000 temperature change.Sensor cluster 1014 can include proximity transducer, be configured to connect without any physics The presence of object nearby is detected when tactile.Sensor cluster 1014 can also include optical sensor, and such as CMOS or ccd image are sensed Device, for used in imaging applications.In certain embodiments, the sensor cluster 1014 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress Putting 1000 can access based on the wireless network of communication standard, such as WiFi, 2G or 3G, or combinations thereof.It is exemplary at one In embodiment, communication component 1016 receives the broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 1016 also includes near-field communication (NFC) module, to promote junction service. For example, RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, above-mentioned based on text for performing Text moving method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided Such as include the memory 1004 of instruction, above-mentioned instruction can be performed to complete said method by the processor 1020 of device 1000.Example Such as, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium is additionally provided, when in storage medium Instruction by mobile terminal computing device when so that mobile terminal is able to carry out the above-mentioned text based on text and moves Method.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And can without departing from the scope carry out various modifications and changes.The scope of the present disclosure is only limited by appended claim.

Claims (18)

1. a kind of text moving method based on text, it is characterised in that methods described includes:
During the display at the text editing interface of text, any portion text in detecting to the text When choosing operation, the selected text is defined as into target text;
When the specified pressing operation to the target text is detected, the target text is set to treat shearing condition, institute The pressure value for stating specified pressing operation is more than or equal to specified threshold;
If detecting the moving operation to the target text, according to the moving operation, by target text shearing And the target location on the text editing interface is affixed to, the target location is the position at the end of the moving operation.
2. method according to claim 1, it is characterised in that methods described also includes:
When the specified pressing operation is detected, the edit control of the target text is shown, the edit control is used to refer to Show that the target text is in and treat shearing condition.
3. method according to claim 2, it is characterised in that the edit control of the display target text includes:
Create blank edit control;
The text for specifying number of words is extracted from the target text, and the text of the specified number of words is retrieved as into the target text This summary;
The summary is added in the blank edit control, and the background of the blank edit control is set, obtain described The edit control of target text;
On the text editing interface, the edit control of the target text is shown.
4. method according to claim 2, it is characterised in that methods described also includes:
During the moving operation, along the motion track of the moving operation, the editor of the target text is shown The moving process of control.
5. method according to claim 4, it is characterised in that described according to the moving operation, by the target text After shearing and affixing to the target location on the text editing interface, methods described also includes:
Hide display of the edit control on the text editing interface.
6. method according to claim 1, it is characterised in that the acquisition process of the specified threshold includes:
During the display that pressure value arranges interface, when the setting operation to pressure value is detected, by set pressure Value is retrieved as the specified threshold.
7. a kind of text moving method based on text, it is characterised in that methods described includes:
During the display at the text editing interface of text, any portion text in detecting to the text When choosing operation, the selected text is defined as into target text;
When the specified pressing operation to the target text is detected, the target text, the specified pressing operation are sheared Pressure value be more than or equal to specified threshold;
If detecting the specified pressing operation to target location, the target text is affixed to into the target location, institute It is any position on the text editing interface to state target location.
8. method according to claim 7, it is characterised in that methods described also includes:
When the specified pressing operation is detected, the edit control of the target text is shown, the edit control is used to refer to Show the target text in shearing condition.
9. a kind of text mobile device based on text, it is characterised in that described device includes:
Determining module, for during the display at the text editing interface of text, when detecting to the text When choosing operation of middle any portion text, by the selected text target text is defined as;
Setup module, for when the specified pressing operation to the target text is detected, the target text being set to Shearing condition is treated, the pressure value of the specified pressing operation is more than or equal to specified threshold;
Shear module, if for detecting the moving operation to the target text, according to the moving operation, will be described The target location on the text editing interface is sheared and affixed to target text, and the target location is moving operation knot Position during beam.
10. device according to claim 9, it is characterised in that described device also includes:
Display module, for when the specified pressing operation is detected, showing the edit control of the target text, the volume Collect control and treat shearing condition for indicating that the target text is in.
11. devices according to claim 10, it is characterised in that the display module includes:
Submodule is created, for creating blank edit control;
Acquisition submodule, for obtaining the text for specifying number of words is extracted from the target text, and by the specified number of words Text is retrieved as the summary of the target text;
Submodule is set, for the summary to be added in the blank edit control, and the blank edit control is set Background, obtain the edit control of the target text;
Display sub-module, at the text editing interface, showing to the edit control of the target text.
12. devices according to claim 10, it is characterised in that the display module, are additionally operable in the moving operation During, along the motion track of the moving operation, show the moving process of the edit control of the target text.
13. devices according to claim 12, it is characterised in that described device also includes:
Hidden module, for hiding display of the edit control on the text editing interface.
14. devices according to claim 9, it is characterised in that described device also includes:
Acquisition module, for during the display that pressure value arranges interface, when the setting operation to pressure value is detected, will Set pressure value is retrieved as the specified threshold.
15. a kind of text mobile devices based on text, it is characterised in that described device includes:
Determining module, for during the display at the text editing interface of text, when detecting to the text When choosing operation of middle any portion text, by the selected text target text is defined as;
Shear module, it is described for when the specified pressing operation to the target text is detected, shearing the target text The pressure value of specified pressing operation is more than or equal to specified threshold;
Stickup module, if for detecting the specified pressing operation to target location, the target text is affixed to into institute Target location is stated, the target location is any position on the text editing interface.
16. devices according to claim 15, it is characterised in that described device also includes:
Display module, for when the specified pressing operation is detected, showing the edit control of the target text, the volume Collecting control is used to indicate the target text in shearing condition.
17. a kind of text mobile devices based on text, it is characterised in that described device includes:
Processor;
For storing the memory of the executable instruction of processor;
Wherein, the processor is configured to:
During the display at the text editing interface of text, any portion text in detecting to the text When choosing operation, the selected text is defined as into target text;
When the specified pressing operation to the target text is detected, the target text is set to treat shearing condition, institute The pressure value for stating specified pressing operation is more than or equal to specified threshold;
If detecting the moving operation to the target text, according to the moving operation, by target text shearing And the target location on the text editing interface is affixed to, the target location is the position at the end of the moving operation.
18. a kind of text mobile devices based on text, it is characterised in that described device includes:
Processor;
For storing the memory of the executable instruction of processor;
Wherein, the processor is configured to:
During the display at the text editing interface of text, any portion text in detecting to the text When choosing operation, the selected text is defined as into target text;
When the specified pressing operation to the target text is detected, the target text, the specified pressing operation are sheared Pressure value be more than or equal to specified threshold;
If detecting the specified pressing operation to target location, the target text is affixed to into the target location, institute It is any position on the text editing interface to state target location.
CN201611249565.9A 2016-12-29 2016-12-29 Method and device for moving text based on text file Pending CN106648371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611249565.9A CN106648371A (en) 2016-12-29 2016-12-29 Method and device for moving text based on text file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611249565.9A CN106648371A (en) 2016-12-29 2016-12-29 Method and device for moving text based on text file

Publications (1)

Publication Number Publication Date
CN106648371A true CN106648371A (en) 2017-05-10

Family

ID=58836496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611249565.9A Pending CN106648371A (en) 2016-12-29 2016-12-29 Method and device for moving text based on text file

Country Status (1)

Country Link
CN (1) CN106648371A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107748741A (en) * 2017-11-20 2018-03-02 维沃移动通信有限公司 A kind of method for editing text and mobile terminal
CN110909524A (en) * 2019-11-27 2020-03-24 维沃移动通信有限公司 Editing method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120268387A1 (en) * 2011-04-19 2012-10-25 Research In Motion Limited Text indicator method and electronic device
CN104111787A (en) * 2013-04-18 2014-10-22 三星电子(中国)研发中心 Method and device for realizing text editing on touch screen interface
CN104252309A (en) * 2013-06-29 2014-12-31 北京新媒传信科技有限公司 Method and system for realizing text editing in intelligent terminal
CN105573624A (en) * 2016-01-29 2016-05-11 深圳天珑无线科技有限公司 Method and system for rapidly completing text editing through pressure touching technology
CN105843499A (en) * 2015-09-29 2016-08-10 维沃移动通信有限公司 Display state switching method and terminal
CN106227389A (en) * 2016-08-12 2016-12-14 乐视控股(北京)有限公司 A kind of RichText Edition control call method based on screen pressure sensitive and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120268387A1 (en) * 2011-04-19 2012-10-25 Research In Motion Limited Text indicator method and electronic device
CN104111787A (en) * 2013-04-18 2014-10-22 三星电子(中国)研发中心 Method and device for realizing text editing on touch screen interface
CN104252309A (en) * 2013-06-29 2014-12-31 北京新媒传信科技有限公司 Method and system for realizing text editing in intelligent terminal
CN105843499A (en) * 2015-09-29 2016-08-10 维沃移动通信有限公司 Display state switching method and terminal
CN105573624A (en) * 2016-01-29 2016-05-11 深圳天珑无线科技有限公司 Method and system for rapidly completing text editing through pressure touching technology
CN106227389A (en) * 2016-08-12 2016-12-14 乐视控股(北京)有限公司 A kind of RichText Edition control call method based on screen pressure sensitive and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107748741A (en) * 2017-11-20 2018-03-02 维沃移动通信有限公司 A kind of method for editing text and mobile terminal
CN107748741B (en) * 2017-11-20 2021-04-23 维沃移动通信有限公司 Text editing method and mobile terminal
US11307761B2 (en) 2017-11-20 2022-04-19 Vivo Mobile Communication Co., Ltd. Text editing method and mobile terminal
CN110909524A (en) * 2019-11-27 2020-03-24 维沃移动通信有限公司 Editing method and electronic equipment
CN110909524B (en) * 2019-11-27 2023-12-26 维沃移动通信有限公司 Editing method and electronic equipment

Similar Documents

Publication Publication Date Title
CN103916535B (en) Mobile terminal and its control method
CN104375980B (en) Content of text selection method and device
CN104090721B (en) terminal control method and device
CN106537319A (en) Screen-splitting display method and device
CN105487749B (en) The method for sorting and device of application icon
CN105045504B (en) Picture material extracting method and device
CN107832036A (en) Sound control method, device and computer-readable recording medium
CN107066172A (en) The document transmission method and device of mobile terminal
CN106233237B (en) A kind of method and apparatus of processing and the new information of association
CN104461348B (en) Information choosing method and device
CN104598104A (en) Widget processing method and device
CN106775202A (en) A kind of method and device of information transfer
CN106802808A (en) Suspension button control method and device
CN104238853B (en) Message method and device
CN106789551A (en) Conversation message methods of exhibiting and device
CN105892869A (en) Image position adjusting method and device
CN110110315A (en) Pending item management method and device
CN107239351A (en) Method of attaching and device
CN104407788B (en) Image-erasing method and device
CN104216969B (en) Read flag method and device
CN105468281A (en) Setup interface display method and device
CN109725806A (en) Website edit methods and device
CN104778037A (en) Display method and display device for widgets of application program
CN105094297A (en) Display content zooming method and display content zooming device
CN106648371A (en) Method and device for moving text based on text file

Legal Events

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

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication