CN105095170A - Text deleting method and device - Google Patents

Text deleting method and device Download PDF

Info

Publication number
CN105095170A
CN105095170A CN201510463075.8A CN201510463075A CN105095170A CN 105095170 A CN105095170 A CN 105095170A CN 201510463075 A CN201510463075 A CN 201510463075A CN 105095170 A CN105095170 A CN 105095170A
Authority
CN
China
Prior art keywords
operation information
editor unit
text
delete
touch
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
CN201510463075.8A
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 Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510463075.8A priority Critical patent/CN105095170A/en
Publication of CN105095170A publication Critical patent/CN105095170A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a text deleting method and device, and belongs to the technical field of text processing. The method includes the steps of obtaining operation information of user operation, and determining an edit unit corresponding to the operation information according to the operation information, wherein the edit unit is selected from an edit unit set, and the edit unit set comprises at least one of characters, words, sentences, paragraphs and full texts; deleting the text of the edit unit. The operation information of user operation is obtained, the edit unit corresponding to the operation information is determined according to the operation information, the text of the edit unit is deleted, the edit unit is selected from the edit unit set, the edit unit set comprises at least one of characters, words, sentences, paragraphs and full texts, and therefore a corresponding number of characters can be deleted at a time for different demands of a user, the operation amount is greatly decreased for the user, the method and device are conveniently used by the user, and user experience is good.

Description

The method and apparatus of text suppression
Technical field
The disclosure relates to word processing technical field, particularly relates to a kind of method and apparatus of text suppression.
Background technology
Along with the intellectuality of mobile phone and panel computer, the use of mobile terminal is more and more general.User, in the process using mobile terminal (mobile phone, panel computer etc.), often can relate to the editor of text, as added, deleting.
In correlation technique, when text deleted by needs, user clicks delete key, and terminal is just deleted text in units of character.
If user needs the character quantity of deletion more, then the operational ton of user increases thereupon, for user causes inconvenience, and poor user experience.
Summary of the invention
There is for overcoming in correlation technique the problem that user operation amount experiences greatly difference, the disclosure provides a kind of method and apparatus of text suppression.
According to the first aspect of disclosure embodiment, a kind of method of text suppression is provided, comprises:
Obtain the operation information of user operation;
According to described operation information, determine the editor unit that described operation information is corresponding, described editor unit is selected from the set of editor unit, and the set of described editor unit comprises at least one in character, word, sentence, section and full text;
Delete the text of a described editor unit.
In a kind of possible implementation of first aspect, described user operation is touch operation or key tap.
In the another kind of possible implementation of first aspect, when described user operation is touch operation, described operation information comprises touch track and at least one in the touch time; When described user operation is key tap, described operation information comprises the some buttons knocked.
In another possible implementation of first aspect, described touch track comprises point, straight line, curve.
In another possible implementation of first aspect, described according to described operation information, determine to comprise the editor unit that described operation information is corresponding with at least one under type:
When described operation information is the first operation information, determine that described editor unit is character;
When described operation information is the second operation information, determine that described editor unit is word;
When described operation information is the 3rd operation information, determine that described editor unit is sentence;
When described operation information is the 4th operation information, determine the described editor unit section of being;
When described operation information is the 5th operation information, determine that described editor unit is for full text;
Wherein, described first operation information, described second operation information, described 3rd operation information, described 4th operation information, described 5th operation information are different.
In another possible implementation of first aspect, described first operation information, described second operation information, described 3rd operation information, described 4th operation information, described 5th operation information are selected from following operation information respectively:
Described touch track is the point at delete key place, and the described touch time is less than setting duration;
Described touch track is the point at delete key place, and the described touch time is not less than setting duration;
Described touch track is the straight line or curve that are extended left by delete key;
Described touch track is the straight line or curve that are extended to the right by delete key;
Described touch track is the straight line or curve that are upwards extended by delete key;
Described touch track is to the straight line of downward-extension or curve by delete key.
In another possible implementation of first aspect, the text of the described editor unit of described deletion one, comprising:
Determine the position at cursor place;
Delete the text of a described editor unit, the text of deletion comprises the previous character of described cursor.
In another possible implementation of first aspect, when described editor unit is word, the text of the described editor unit of described deletion one, comprising:
Adopt participle technique, determine the text of a described editor unit;
Delete the text of the described editor unit determined.
According to the second aspect of disclosure embodiment, a kind of device of text suppression is provided, comprises:
Acquisition module, for obtaining the operation information of user operation;
Determination module, for according to described operation information, determine the editor unit that described operation information is corresponding, described editor unit is selected from the set of editor unit, and the set of described editor unit comprises at least one in character, word, sentence, section and full text;
Removing module, for deleting the text of a described editor unit.
In a kind of possible implementation of second aspect, described user operation is touch operation or key tap.
In the another kind of possible implementation of second aspect, when described user operation is touch operation, described operation information comprises touch track and at least one in the touch time; When described user operation is key tap, described operation information comprises the some buttons knocked.
In another possible implementation of second aspect, described touch track comprises point, straight line, curve.
In another possible implementation of second aspect, described determination module is for realizing with at least one under type:
When described operation information is the first operation information, determine that described editor unit is character;
When described operation information is the second operation information, determine that described editor unit is word;
When described operation information is the 3rd operation information, determine that described editor unit is sentence;
When described operation information is the 4th operation information, determine the described editor unit section of being;
When described operation information is the 5th operation information, determine that described editor unit is for full text;
Wherein, described first operation information, described second operation information, described 3rd operation information, described 4th operation information, described 5th operation information are different.
In another possible implementation of second aspect, described first operation information, described second operation information, described 3rd operation information, described 4th operation information, described 5th operation information are selected from following operation information respectively:
Described touch track is the point at delete key place, and the described touch time is less than setting duration;
Described touch track is the point at delete key place, and the described touch time is not less than setting duration;
Described touch track is the straight line or curve that are extended left by delete key;
Described touch track is the straight line or curve that are extended to the right by delete key;
Described touch track is the straight line or curve that are upwards extended by delete key;
Described touch track is to the straight line of downward-extension or curve by delete key.
In another possible implementation of second aspect, described removing module comprises:
Determine submodule, for determining the position at cursor place;
Delete submodule, for deleting the text of a described editor unit, the text of deletion comprises the previous character of described cursor.
In another possible implementation of second aspect, described deletion submodule is used for,
When described editor unit is word, adopts participle technique, determine the text of a described editor unit;
Delete the text of the described editor unit determined.
According to the third aspect of disclosure embodiment, a kind of device of text suppression is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the operation information of user operation;
According to described operation information, determine the editor unit that described operation information is corresponding, described editor unit is selected from the set of editor unit, and the set of described editor unit comprises at least one in character, word, sentence, section and full text;
Delete the text of a described editor unit.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: by obtaining the operation information of user operation, the editor unit corresponding according to operation information determination operation information, and delete the text of an editor unit, editor unit is selected from the set of editor unit, the set of editor unit comprises at least one in character, word, sentence, section and full text, thus for the different demands of user, once delete the character of respective numbers, greatly reduce the operational ton of user, convenient for users, Consumer's Experience is good.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the application scenarios figure of the method for text suppression according to an exemplary embodiment;
Fig. 2 is the process flow diagram of the method for a kind of text suppression according to an exemplary embodiment;
Fig. 3 is the process flow diagram of the method for a kind of text suppression according to an exemplary embodiment;
Fig. 4 is the block diagram of the device of a kind of text suppression according to an exemplary embodiment;
Fig. 5 is the block diagram of the device of a kind of text suppression according to an exemplary embodiment;
Fig. 6 is the block diagram of the device of a kind of text suppression according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
First composition graphs 1 simply introduces the application scenarios of the method for the text suppression that disclosure embodiment provides below.As shown in Figure 1, user is using mobile terminal Edit Text, as create message, inputted search keyword etc.In the process of text editing, often can run into the situation of deleting text, the delete key that now user can click on mobile terminal screen carries out text suppression.
It should be noted that, the application scenarios shown in Fig. 1 is only citing, and the disclosure is not restricted to this, as also related to the problem of deleting text on desktop computer.
Fig. 2 is the process flow diagram of the method for a kind of text suppression according to an exemplary embodiment, and as shown in Figure 2, the method that the text is deleted is used for, in terminal, comprising the following steps.
In step s 11, the operation information of user operation is obtained.
In step s 12, according to operation information, the editor unit that determination operation information is corresponding.
In the present embodiment, editor unit is selected from the set of editor unit, and the set of editor unit comprises at least one in character, word, sentence, section and full text.
In step s 13, the text of an editor unit is deleted.
Disclosure embodiment is by obtaining the operation information of user operation, the editor unit corresponding according to operation information determination operation information, and delete the text of an editor unit, editor unit is selected from the set of editor unit, the set of editor unit comprise character, word, sentence, section and in full at least one, thus for the different demands of user, once delete the character of respective numbers, greatly reduce the operational ton of user, convenient for users, Consumer's Experience is good.
Fig. 3 is the process flow diagram of the method for a kind of text suppression according to an exemplary embodiment, and as shown in Figure 3, the method that the text is deleted is used for, in terminal, comprising the following steps.
In the step s 21, the operation information of user operation is obtained.
In the first implementation of the present embodiment, this step S21 can comprise:
Collection user touches the touch signal that touch-screen produces;
According to touch signal, determination operation information.
Easily know, above-mentioned implementation is applicable to the terminal being provided with touch-screen, and as mobile phone, panel computer, touch-control notebook, touch-control all-in-one machine, because most of terminal is all provided with touch-screen, therefore above-mentioned implementation is applied widely.
In the second implementation of the present embodiment, this step S21 can comprise:
Receive the control signal that user's key tap produces;
According to control signal, determination operation information.
Easily know, most of desktop computer does not arrange touch-screen, can realize using the terminal of touch-screen to obtain the problem of operation information by the way, expand the scope of application of the present disclosure.
In step S22, according to operation information, the editor unit that determination operation information is corresponding.
In the present embodiment, editor unit is selected from the set of editor unit, and the set of editor unit comprises at least one in character, word, sentence, section and full text.
In the first implementation of the present embodiment, user operation can be touch operation.
In above-mentioned implementation, operation information can comprise touch track and at least one in the touch time.
Alternatively, touch track can comprise point, straight line, curve.
Preferably, this step S22 can comprise with at least one under type:
When operation information is the first operation information, determine that editor unit is character;
When operation information is the second operation information, determine that editor unit is word;
When operation information is the 3rd operation information, determine that editor unit is sentence;
When operation information is the 4th operation information, determine the editor unit section of being;
When operation information is the 5th operation information, determine that editor unit is for full text.
Wherein, the first operation information, the second operation information, the 3rd operation information, the 4th operation information, the 5th operation information are different.
In the present embodiment, the first operation information, the second operation information, the 3rd operation information, the 4th operation information, the 5th operation information can be respectively the one in following operation information:
Touch track is the point at delete key place, and the touch time is less than setting duration;
Touch track is the point at delete key place, and the touch time is not less than setting duration;
Touch track is the straight line or curve that are extended left by delete key;
Touch track is the straight line or curve that are extended to the right by delete key;
Touch track is the straight line or curve that are upwards extended by delete key;
Touch track is to the straight line of downward-extension or curve by delete key.
Such as, first operation information is the point at delete key place and the touch time is less than setting duration, second operation information is the straight line or curve that are extended left by delete key, 3rd operation information is the point at delete key place and the touch time is not less than setting duration, 4th operation information is touch track is the straight line or curve that are extended to the right by delete key, 5th operation information is touch track is the straight line or curve that are upwards extended by delete key, or touch track is to the straight line of downward-extension or curve by delete key.Now more easily mate with the operation of existing mobile terminal and combine, also facilitating user remember and use simultaneously.
In the second implementation of the present embodiment, user operation can be key tap.
In above-mentioned implementation, operation information can comprise the some buttons knocked.
Alternatively, the button knocked can be arranged at least one in keyboard, mouse, trace ball, Trackpad, TrackPoint, telepilot, handle, wearable device.
Alternatively, the button knocked can at least comprise delete key or backspace key.
Preferably, this step S22 can comprise with at least one under type:
When the some buttons knocked are the first key combination, determine that editor unit is character;
When the some buttons knocked are the second key combination, determine that editor unit is word;
When the some buttons knocked are the 3rd key combination, determine that editor unit is sentence;
When the some buttons knocked are the 4th key combination, determine the editor unit section of being;
When the some buttons knocked are the 5th key combination, determine that editor unit is for full text.
Wherein, the first key combination, the second key combination, the 3rd key combination, the 4th key combination, the 5th key combination are different.
In the present embodiment, the first key combination, the second key combination, the 3rd key combination, the 4th key combination, the 5th key combination can be respectively the one in following key combination:
At least one in delete key and backspace key;
At least one and the first button in delete key and backspace key;
At least one and the second button in delete key and backspace key;
At least one and the 3rd button in delete key and backspace key;
At least one and the 4th button in delete key and backspace key.
Wherein, the first button, the second button, the 3rd button, the 4th button are different.Such as, the first button is c, and the second button is j, and the 3rd button is d, and the 4th button is w.
In step S23, delete the text of an editor unit.
In the present embodiment, this step S22 can comprise:
In step S23a, determine the position at cursor place.
In the present embodiment, cursor is for representing the region of Edit Text.
In step S23b, delete the text of an editor unit, the text of deletion comprises the previous character of cursor.
Alternatively, when editor unit is character, this step S23b can comprise:
Delete the previous character of cursor.
Alternatively, when editor unit is word, this step S23b can comprise:
Adopt participle technique, determine the text of an editor unit;
Delete the text of the editor unit determined.
Preferably, participle technique can include but not limited to that string matching divides morphology, the meaning of a word divides morphology, statistical morphology, and as Ansj segmentation methods, IK segmentation methods, this is prior art, is not described in detail in this.
In actual applications, in the process can added at text, first adopt participle technique to divide in units of word the text added, when getting delete instruction, directly the word divided being deleted, saving the stand-by period of user.
Also can work as when getting delete instruction, first according to the sentence at fullstop determination cursor place, then adopt the sentence of participle technique to cursor place to divide, the word that finally will divide is deleted, and reduces the expense of terminal.
Alternatively, when editor unit is sentence, this step S23b can comprise:
The text of an editor unit is determined according to fullstop;
Delete the text of the editor unit determined.
Preferably, determine the text of an editor unit according to fullstop, can comprise:
When all having at least one fullstop before and after cursor, by fullstop nearest for distance cursor after the character between fullstop nearest for distance cursor after fullstop nearest for cursor front distance cursor and cursor and cursor, be defined as the text of an editor unit;
When there is no fullstop before cursor, and when having at least one fullstop after cursor, by fullstop nearest for distance cursor after the character between fullstop nearest for distance cursor after all characters, cursor and the cursor before cursor and cursor, be defined as the text of an editor unit;
When there being at least one fullstop before cursor, and when there is no fullstop after cursor, by the character between fullstop nearest for cursor front distance cursor and cursor, all characters after cursor, be defined as the text of an editor unit;
When all there is no fullstop before and after cursor, all characters are defined as the text of an editor unit.
Alternatively, when the editor unit section of being, this step S23b can comprise:
The text of an editor unit is determined according to paragraph marks;
Delete the text of the editor unit determined.
Preferably, determine the text of an editor unit according to paragraph marks, can comprise:
When all having at least one paragraph marks before and after cursor, by the character between paragraph marks nearest for distance cursor after paragraph marks nearest for cursor front distance cursor and cursor, be defined as the text of an editor unit;
When there is no paragraph marks before cursor, and when having at least one paragraph marks after cursor, by the character between paragraph marks nearest for distance cursor after all characters, cursor and the cursor before cursor, be defined as the text of an editor unit;
When there being at least one paragraph marks before cursor, and when there is no paragraph marks after cursor, by the character between paragraph marks nearest for cursor front distance cursor and cursor, all characters after cursor, be defined as the text of an editor unit;
When all there is no paragraph marks before and after cursor, all characters are defined as the text of an editor unit.
Alternatively, when editor unit is full text, this step S23b can comprise:
Delete all characters.
Alternatively, this step S23b can comprise:
Determine the text of an editor unit;
Highlight the text of the editor unit determined;
Receive the confirmation instruction of user's input;
According to determining instruction, delete the text of the editor unit determined.
Understandably, above-mentioned implementation can prevent user misoperation and cause unnecessary deletion.
In actual applications, when highlighting the text of an editor unit, can export to user and determining choice box, when user selects to determine, delete the text of the editor unit determined; When user selects to cancel, then do not carry out any operation.
Disclosure embodiment is by obtaining the operation information of user operation, the editor unit corresponding according to operation information determination operation information, and delete the text of an editor unit, editor unit is selected from the set of editor unit, the set of editor unit comprise character, word, sentence, section and in full at least one, thus for the different demands of user, once delete the character of respective numbers, greatly reduce the operational ton of user, convenient for users, Consumer's Experience is good.
Fig. 4 is the block diagram of the device of a kind of text suppression according to an exemplary embodiment, and with reference to Fig. 4, this device comprises acquisition module 301, determination module 302 and removing module 303.
This acquisition module 301 is configured to the operation information obtaining user operation.
This determination module 302 is configured to according to operation information, the editor unit that determination operation information is corresponding, and editor unit is selected from the set of editor unit, and the set of editor unit comprises at least one in character, word, sentence, section and full text.
This removing module 303 is configured to the text of a deletion editor unit.
Disclosure embodiment is by obtaining the operation information of user operation, the editor unit corresponding according to operation information determination operation information, and delete the text of an editor unit, editor unit is selected from the set of editor unit, the set of editor unit comprise character, word, sentence, section and in full at least one, thus for the different demands of user, once delete the character of respective numbers, greatly reduce the operational ton of user, convenient for users, Consumer's Experience is good.
Fig. 5 is the block diagram of the device of a kind of text suppression according to an exemplary embodiment, and with reference to Fig. 5, this device comprises acquisition module 401, determination module 402 and removing module 403.
This acquisition module 401 is configured to the operation information obtaining user operation.
This determination module 402 is configured to according to operation information, the editor unit that determination operation information is corresponding, and editor unit is selected from the set of editor unit, and the set of editor unit comprises at least one in character, word, sentence, section and full text.
This removing module 403 is configured to the text of a deletion editor unit.
In a kind of implementation of the present embodiment, user operation can be touch operation.
In above-mentioned implementation, operation information can comprise touch track and at least one in the touch time.
Alternatively, touch track can comprise point, straight line, curve.
Preferably, this determination module 402 can be configured to when operation information is the first operation information, determines that editor unit is character; When operation information is the second operation information, determine that editor unit is word; When operation information is the 3rd operation information, determine that editor unit is sentence; When operation information is the 4th operation information, determine the editor unit section of being; When operation information is the 5th operation information, determine that editor unit is for full text; Wherein, the first operation information, the second operation information, the 3rd operation information, the 4th operation information, the 5th operation information are different.
In the present embodiment, the first operation information, the second operation information, the 3rd operation information, the 4th operation information, the 5th operation information can be respectively the one in following operation information:
Touch track is the point at delete key place, and the touch time is less than setting duration;
Touch track is the point at delete key place, and the touch time is not less than setting duration;
Touch track is the straight line or curve that are extended left by delete key;
Touch track is the straight line or curve that are extended to the right by delete key;
Touch track is the straight line or curve that are upwards extended by delete key;
Touch track is to the straight line of downward-extension or curve by delete key.
In the another kind of implementation of the present embodiment, user operation can be key tap.
In above-mentioned implementation, operation information comprises the some buttons knocked.
In the present embodiment, this removing module 403 can comprise and determines submodule 403a and delete submodule 403b.
This determines that submodule 403a is configured to determine the position at cursor place.
This deletion submodule 403b is configured to the text of a deletion editor unit, and the text of deletion comprises the previous character of cursor.
In a kind of implementation of the present embodiment, this deletion submodule 403b can be configured to when editor unit is word, adopts participle technique, determines the text of an editor unit; Delete the text of the editor unit determined.
Disclosure embodiment is by obtaining the operation information of user operation, the editor unit corresponding according to operation information determination operation information, and delete the text of an editor unit, editor unit is selected from the set of editor unit, the set of editor unit comprise character, word, sentence, section and in full at least one, thus for the different demands of user, once delete the character of respective numbers, greatly reduce the operational ton of user, convenient for users, Consumer's Experience is good.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 6 be according to an exemplary embodiment a kind of for text suppression the block diagram of device 800.Such as, device 800 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 6, device 800 can comprise following one or more assembly: processing components 802, storer 804, electric power assembly 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor module 814, and communications component 816.
The integrated operation of the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing components 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Storer 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 806 is device 800 provide electric power.Electric power assembly 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loudspeaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 814 comprises one or more sensor, for providing the state estimation of various aspects for device 800.Such as, sensor module 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right pick-up unit 800 of sensor module 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the temperature variation of device 800 orientation or acceleration/deceleration and device 800.Sensor module 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of method of text suppression, described method comprises:
Obtain delete instruction, described delete instruction is used to indicate the text of a deletion editor unit, and described editor unit comprises character, word, sentence, section or full text;
According to described delete instruction, delete text.
In a kind of implementation of the present embodiment, described acquisition delete instruction, comprising:
Obtain the operation information of user operation;
According to described operation information, determine the editor unit that described operation information is corresponding, described editor unit is selected from the set of editor unit, and the set of described editor unit comprises at least one in character, word, sentence, section and full text;
Delete the text of a described editor unit.
In a kind of implementation of the present embodiment, described user operation is touch operation or key tap.
In the another kind of implementation of the present embodiment, when described user operation is touch operation, described operation information comprises touch track and at least one in the touch time; When described user operation is key tap, described operation information comprises the some buttons knocked.
In another implementation of the present embodiment, described touch track comprises point, straight line, curve.
In another implementation of the present embodiment, described according to described operation information, determine to comprise the editor unit that described operation information is corresponding with at least one under type:
When described operation information is the first operation information, determine that described editor unit is character;
When described operation information is the second operation information, determine that described editor unit is word;
When described operation information is the 3rd operation information, determine that described editor unit is sentence;
When described operation information is the 4th operation information, determine the described editor unit section of being;
When described operation information is the 5th operation information, determine that described editor unit is for full text;
Wherein, described first operation information, described second operation information, described 3rd operation information, described 4th operation information, described 5th operation information are different.
In another implementation of the present embodiment, described first operation information, described second operation information, described 3rd operation information, described 4th operation information, described 5th operation information are selected from following operation information respectively:
Described touch track is the point at delete key place, and the described touch time is less than setting duration;
Described touch track is the point at delete key place, and the described touch time is not less than setting duration;
Described touch track is the straight line or curve that are extended left by delete key;
Described touch track is the straight line or curve that are extended to the right by delete key;
Described touch track is the straight line or curve that are upwards extended by delete key;
Described touch track is to the straight line of downward-extension or curve by delete key.
In another implementation of the present embodiment, the text of the described editor unit of described deletion one, comprising:
Determine the position at cursor place;
Delete the text of a described editor unit, the text of deletion comprises the previous character of described cursor.
In another implementation of the present embodiment, when described editor unit is word, the text of the described editor unit of described deletion one, comprising:
Adopt participle technique, determine the text of a described editor unit;
Delete the text of the described editor unit determined.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (17)

1. a method for text suppression, is characterized in that, comprising:
Obtain the operation information of user operation;
According to described operation information, determine the editor unit that described operation information is corresponding, described editor unit is selected from the set of editor unit, and the set of described editor unit comprises at least one in character, word, sentence, section and full text;
Delete the text of a described editor unit.
2. method according to claim 1, is characterized in that, described user operation is touch operation or key tap.
3. method according to claim 2, is characterized in that, when described user operation is touch operation, described operation information comprises touch track and at least one in the touch time; When described user operation is key tap, described operation information comprises the some buttons knocked.
4. method according to claim 3, is characterized in that, described touch track comprises point, straight line, curve.
5. method according to claim 3, is characterized in that, described according to described operation information, determines to comprise the editor unit that described operation information is corresponding with at least one under type:
When described operation information is the first operation information, determine that described editor unit is character;
When described operation information is the second operation information, determine that described editor unit is word;
When described operation information is the 3rd operation information, determine that described editor unit is sentence;
When described operation information is the 4th operation information, determine the described editor unit section of being;
When described operation information is the 5th operation information, determine that described editor unit is for full text;
Wherein, described first operation information, described second operation information, described 3rd operation information, described 4th operation information, described 5th operation information are different.
6. method according to claim 5, is characterized in that, described first operation information, described second operation information, described 3rd operation information, described 4th operation information, described 5th operation information are selected from following operation information respectively:
Described touch track is the point at delete key place, and the described touch time is less than setting duration;
Described touch track is the point at delete key place, and the described touch time is not less than setting duration;
Described touch track is the straight line or curve that are extended left by delete key;
Described touch track is the straight line or curve that are extended to the right by delete key;
Described touch track is the straight line or curve that are upwards extended by delete key;
Described touch track is to the straight line of downward-extension or curve by delete key.
7. the method according to any one of claim 1-6, is characterized in that, the text of the described editor unit of described deletion one, comprising:
Determine the position at cursor place;
Delete the text of a described editor unit, the text of deletion comprises the previous character of described cursor.
8. method according to claim 7, is characterized in that, when described editor unit is word, the text of the described editor unit of described deletion one, comprising:
Adopt participle technique, determine the text of a described editor unit;
Delete the text of the described editor unit determined.
9. a device for text suppression, is characterized in that, comprising:
Acquisition module, for obtaining the operation information of user operation;
Determination module, for according to described operation information, determine the editor unit that described operation information is corresponding, described editor unit is selected from the set of editor unit, and the set of described editor unit comprises at least one in character, word, sentence, section and full text;
Removing module, for deleting the text of a described editor unit.
10. device according to claim 9, is characterized in that, described user operation is touch operation or key tap.
11. devices according to claim 10, is characterized in that, when described user operation is touch operation, described operation information comprises touch track and at least one in the touch time; When described user operation is key tap, described operation information comprises the some buttons knocked.
12. devices according to claim 11, is characterized in that, described touch track comprises point, straight line, curve.
13. devices according to claim 11, is characterized in that, described determination module is for realizing with at least one under type:
When described operation information is the first operation information, determine that described editor unit is character;
When described operation information is the second operation information, determine that described editor unit is word;
When described operation information is the 3rd operation information, determine that described editor unit is sentence;
When described operation information is the 4th operation information, determine the described editor unit section of being;
When described operation information is the 5th operation information, determine that described editor unit is for full text;
Wherein, described first operation information, described second operation information, described 3rd operation information, described 4th operation information, described 5th operation information are different.
14. devices according to claim 13, is characterized in that, described first operation information, described second operation information, described 3rd operation information, described 4th operation information, described 5th operation information are selected from following operation information respectively:
Described touch track is the point at delete key place, and the described touch time is less than setting duration;
Described touch track is the point at delete key place, and the described touch time is not less than setting duration;
Described touch track is the straight line or curve that are extended left by delete key;
Described touch track is the straight line or curve that are extended to the right by delete key;
Described touch track is the straight line or curve that are upwards extended by delete key;
Described touch track is to the straight line of downward-extension or curve by delete key.
15. devices according to any one of claim 9-14, it is characterized in that, described removing module comprises:
Determine submodule, for determining the position at cursor place;
Delete submodule, for deleting the text of a described editor unit, the text of deletion comprises the previous character of described cursor.
16. devices according to claim 15, is characterized in that, described deletion submodule is used for,
When described editor unit is word, adopts participle technique, determine the text of a described editor unit;
Delete the text of the described editor unit determined.
The device of 17. 1 kinds of text suppressions, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the operation information of user operation;
According to described operation information, determine the editor unit that described operation information is corresponding, described editor unit is selected from the set of editor unit, and the set of described editor unit comprises at least one in character, word, sentence, section and full text;
Delete the text of a described editor unit.
CN201510463075.8A 2015-07-31 2015-07-31 Text deleting method and device Pending CN105095170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510463075.8A CN105095170A (en) 2015-07-31 2015-07-31 Text deleting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510463075.8A CN105095170A (en) 2015-07-31 2015-07-31 Text deleting method and device

Publications (1)

Publication Number Publication Date
CN105095170A true CN105095170A (en) 2015-11-25

Family

ID=54575644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510463075.8A Pending CN105095170A (en) 2015-07-31 2015-07-31 Text deleting method and device

Country Status (1)

Country Link
CN (1) CN105095170A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573650A (en) * 2015-12-15 2016-05-11 魅族科技(中国)有限公司 Data elimination method and terminal
CN105912252A (en) * 2016-03-31 2016-08-31 宇龙计算机通信科技(深圳)有限公司 Text erasing method and device
CN107423273A (en) * 2017-05-09 2017-12-01 北京锤子数码科技有限公司 A kind of method for editing text and device
CN107479786A (en) * 2017-07-28 2017-12-15 珠海市魅族科技有限公司 A kind of method, apparatus, computer installation and computer-readable recording medium for deleting text
CN108632465A (en) * 2018-04-27 2018-10-09 维沃移动通信有限公司 A kind of method and mobile terminal of voice input

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101410781A (en) * 2006-01-30 2009-04-15 苹果公司 Gesturing with a multipoint sensing device
CN103176594A (en) * 2011-12-23 2013-06-26 联想(北京)有限公司 Method and system for text operation
US20140173494A1 (en) * 2007-09-13 2014-06-19 Apple Inc. Input Methods for Device Having Multi-Language Environment
CN103914248A (en) * 2012-12-31 2014-07-09 Lg电子株式会社 Mobile terminal and control method thereof
CN104102452A (en) * 2014-07-11 2014-10-15 厦门美图移动科技有限公司 Enhancement mode text selection method of touch screen
US20150193410A1 (en) * 2014-01-08 2015-07-09 Electronics And Telecommunications Research Institute System for editing a text of a portable terminal and method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101410781A (en) * 2006-01-30 2009-04-15 苹果公司 Gesturing with a multipoint sensing device
US20140173494A1 (en) * 2007-09-13 2014-06-19 Apple Inc. Input Methods for Device Having Multi-Language Environment
CN103176594A (en) * 2011-12-23 2013-06-26 联想(北京)有限公司 Method and system for text operation
CN103914248A (en) * 2012-12-31 2014-07-09 Lg电子株式会社 Mobile terminal and control method thereof
US20150193410A1 (en) * 2014-01-08 2015-07-09 Electronics And Telecommunications Research Institute System for editing a text of a portable terminal and method thereof
CN104102452A (en) * 2014-07-11 2014-10-15 厦门美图移动科技有限公司 Enhancement mode text selection method of touch screen

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573650A (en) * 2015-12-15 2016-05-11 魅族科技(中国)有限公司 Data elimination method and terminal
CN105912252A (en) * 2016-03-31 2016-08-31 宇龙计算机通信科技(深圳)有限公司 Text erasing method and device
CN107423273A (en) * 2017-05-09 2017-12-01 北京锤子数码科技有限公司 A kind of method for editing text and device
CN107423273B (en) * 2017-05-09 2020-05-05 北京字节跳动网络技术有限公司 Text editing method and device
CN107479786A (en) * 2017-07-28 2017-12-15 珠海市魅族科技有限公司 A kind of method, apparatus, computer installation and computer-readable recording medium for deleting text
CN108632465A (en) * 2018-04-27 2018-10-09 维沃移动通信有限公司 A kind of method and mobile terminal of voice input

Similar Documents

Publication Publication Date Title
CN104731688B (en) Point out the method and device of reading progress
CN106126052A (en) Text selection method and device
CN107688399B (en) Input method and device and input device
CN104679599A (en) Application program duplicating method and device
CN105159871A (en) Text information detection method and apparatus
CN109413478B (en) Video editing method and device, electronic equipment and storage medium
CN105095170A (en) Text deleting method and device
KR101709427B1 (en) Method and device for selecting information
CN104123093A (en) Information processing method and device
CN106202150A (en) Method for information display and device
CN105447109A (en) Key word searching method and apparatus
CN104536935A (en) Calculation displaying method, calculation editing method and device
CN105550643A (en) Medical term recognition method and device
CN105608064A (en) Character replacement method and apparatus
CN106484138A (en) A kind of input method and device
CN104281703A (en) Method and device for calculating similarity among uniform resource locators (URL)
CN105335062A (en) Information editing operation processing method and apparatus
CN104571709A (en) Mobile terminal and processing method of virtual keys
CN105511777A (en) Session display method and device of touch display screen
CN105139848A (en) Data conversion method and apparatus
CN105550213A (en) Picture browsing method and device
CN104407788A (en) Image deleting method and device
CN105487799A (en) Content conversion method and device
CN104951522A (en) Searching method and device
CN104681049A (en) Prompting information display method and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20151125