CN105117159B - A kind of character processing method and terminal - Google Patents
A kind of character processing method and terminal Download PDFInfo
- Publication number
- CN105117159B CN105117159B CN201510542490.2A CN201510542490A CN105117159B CN 105117159 B CN105117159 B CN 105117159B CN 201510542490 A CN201510542490 A CN 201510542490A CN 105117159 B CN105117159 B CN 105117159B
- Authority
- CN
- China
- Prior art keywords
- displayed
- screen
- area
- pressing operation
- editing
- 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.)
- Expired - Fee Related
Links
- 238000003672 processing method Methods 0.000 title abstract description 11
- 238000003825 pressing Methods 0.000 claims abstract description 154
- 238000000034 method Methods 0.000 claims abstract description 40
- 238000001514 detection method Methods 0.000 claims abstract description 11
- 238000012545 processing Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 5
- 230000001960 triggered effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000012905 input function Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a kind of character processing method and terminal, method therein includes:The pressing operation for treating the input of screen editing area is received, it is described to treat that display needs upper screen character symbol in screen editing area;The pressure value of the pressing operation is detected, judges whether the pressure value of the pressing operation is more than preset pressure threshold value;If so, the slide of screen editing area input is treated in detection for described in, the target sliding trace of the slide is detected;The corresponding relation instructed according to preset sliding trace and character editing, searches the target character edit instruction corresponding to the target sliding trace;For it is described treat to show in upper screen editing area described in treat that upper screen character symbol performs the target character edit instruction found.Using the present invention, the treatment effeciency that terminal treats upper screen character symbol is improved.
Description
Technical Field
The present invention relates to the field of information processing, and in particular, to a character processing method and a terminal.
Background
With the development of electronic technology, the function of the input method has gradually become one of the common functions of electronic devices. The user can use the input method to input character content, when a long sentence is input, the input character can be added to a region to be edited on a screen in the display interface of the input method, if the user needs to process the character in the region to be edited on the screen, the user needs to trigger the start of an editing mode through long-press operation, then select the character to be displayed on the screen through a selection box, and then click and select a character editing instruction to be executed, so that the selection operation of the user is complicated, and the processing efficiency of the terminal on the character to be displayed is reduced.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and a terminal for processing a word, so as to improve the processing efficiency of the terminal on a screen character.
In a first aspect, an embodiment of the present invention provides a character processing method, where the method includes:
receiving a pressing operation input for a to-be-displayed editing area, wherein characters to be displayed are displayed in the to-be-displayed editing area;
detecting the pressure value of the pressing operation, and judging whether the pressure value of the pressing operation is greater than a preset pressure threshold value or not;
if so, detecting a sliding operation input aiming at the area to be edited on the screen, and detecting a target sliding track of the sliding operation;
searching a target character editing instruction corresponding to the target sliding track according to the corresponding relation between the preset sliding track and the character editing instruction;
and executing the searched target character editing instruction according to the characters to be displayed on the screen and displayed in the editing area to be displayed on the screen.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the target character editing instruction is a delete instruction, a copy instruction, a cut instruction, a send instruction, or an information display instruction, and the executing the searched target character editing instruction on the character to be displayed in the area to be edited on the screen includes:
deleting the characters to be displayed on the screen displayed in the editing area to be displayed on the screen from the editing area to be displayed on the screen; or,
copying the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
cutting the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
sending the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
and displaying preset information associated with the characters to be displayed on the screen, which is displayed in the editing area to be displayed on the screen.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the receiving a pressing operation input for a to-be-displayed editing area includes:
receiving a pressing operation input in a display area of the characters to be displayed in the editing area to be displayed on the screen; or,
and receiving a pressing operation input in a blank display area in the area to be edited on the screen.
With reference to the first aspect, in a third possible implementation manner of the first aspect, after detecting the pressure value of the pressing operation, and after determining whether the pressure value of the pressing operation is greater than a preset pressure threshold, detecting a sliding operation input for the area to be edited on the screen, and before detecting a target sliding trajectory of the sliding operation, the method further includes:
if the pressure value of the pressing operation is judged to be larger than the preset pressure threshold, judging whether the operation duration of the pressing operation is larger than a preset duration threshold or not;
and if so, executing the step of detecting the sliding operation input aiming at the area to be edited on the screen and detecting the target sliding track of the sliding operation.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the detecting a pressure value of the pressing operation includes:
and detecting the pressure value of the pressing operation, and displaying the pressure value in the area to be subjected to screen editing.
In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes:
the device comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving press operation input aiming at a to-be-displayed editing area, and characters to be displayed are displayed in the to-be-displayed editing area;
the first judgment module is used for detecting the pressure value of the pressing operation and judging whether the pressure value of the pressing operation is greater than a preset pressure threshold value or not;
the detection module is used for detecting the sliding operation input aiming at the area to be edited on the screen and detecting a target sliding track of the sliding operation if the first judgment module judges that the pressure value of the pressing operation is larger than the preset pressure threshold value;
the searching module is used for searching a target character editing instruction corresponding to the target sliding track according to the corresponding relation between the preset sliding track and the character editing instruction;
and the execution module is used for executing the searched target character editing instruction aiming at the characters to be displayed on the screen and displayed in the editing area to be displayed on the screen.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the target character editing instruction is a delete instruction, a copy instruction, a cut instruction, a send instruction, or an information display instruction; the execution module is specifically configured to delete the to-be-displayed character displayed in the to-be-displayed editing area from the to-be-displayed editing area; or,
copying the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
cutting the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
sending the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
and displaying preset information associated with the characters to be displayed on the screen, which is displayed in the editing area to be displayed on the screen.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the receiving module is specifically configured to receive a pressing operation input in a display area of the character to be displayed on the screen in the editing area to be displayed on the screen; or,
and receiving a pressing operation input in a blank display area in the area to be edited on the screen.
With reference to the second aspect, in a third possible implementation manner of the second aspect, the terminal further includes:
the second judgment module is used for judging whether the operation duration of the pressing operation is greater than a preset duration threshold value or not if the first judgment module judges that the pressure value of the pressing operation is greater than the preset pressure threshold value;
the detection module is specifically configured to detect a sliding operation input for the area to be edited on the screen if the second determination module determines that the operation duration of the pressing operation is greater than the preset duration threshold, and detect a target sliding track of the sliding operation.
With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the first determining module is specifically configured to detect a pressure value of the pressing operation, display the pressure value in the area to be edited on the screen, and determine whether the pressure value of the pressing operation is greater than a preset pressure threshold.
By implementing the embodiment of the invention, the terminal receives the pressing operation input aiming at the editing area to be displayed on the screen, detects the pressure value of the pressing operation, judges whether the pressure value of the pressing operation is greater than a preset pressure threshold value, if so, the terminal detects the sliding operation input aiming at the editing area to be displayed on the screen, detects the target sliding track of the sliding operation, searches the target character editing instruction corresponding to the target sliding track according to the corresponding relation between the preset sliding track and the character editing instruction, and further quickly executes the target character editing instruction aiming at the character to be displayed on the editing area to be displayed on the screen, wherein the target character editing instruction can be a deleting instruction, a copying instruction, a cutting instruction, a sending instruction or an information displaying instruction, so that the use experience of a user is improved, and the processing efficiency of the terminal on the character to be displayed on the screen is improved.
Furthermore, after the terminal detects the pressure value of the pressing operation and judges that the pressure value of the pressing operation is greater than the preset pressure threshold value, the terminal further judges whether the operation duration of the pressing operation is greater than the preset duration threshold value or not, and if so, the terminal detects the sliding operation input to the area to be edited on the screen, so that the target character editing instruction is searched according to the sliding track of the sliding operation, the misoperation of a user is avoided, and the accuracy of terminal detection is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a first embodiment of a character processing method according to an embodiment of the present invention;
FIG. 2 is a diagram of a display interface of a to-be-displayed editing area according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a character processing method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a second embodiment of the terminal according to the embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be understood that the terminology used in the embodiments of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
The embodiment of the invention provides a character processing method and a terminal, which improve the processing efficiency of the terminal on the characters to be displayed on a screen. In order to facilitate understanding of the embodiments of the present invention, a description will be given below of a character processing method according to an embodiment of the present invention.
Referring to fig. 1, a flow chart of a first embodiment of a character processing method according to an embodiment of the present invention is shown, and the method may include, but is not limited to, the following steps.
S101, receiving a pressing operation input aiming at an editing area to be displayed on a screen, wherein characters to be displayed on the screen are displayed in the editing area to be displayed on the screen.
In the embodiment of the invention, the on-screen editing area is an area where a user edits a character to be sent, the user inputs a coded character string in an input method interface, and an input method system converts the coded character string into a word candidate item of the input character according to the coded character string currently input by the user and provides the word candidate item for the user to select, wherein the coded character string is user input content directly received by the input method system, and the user can input the coded character string by adopting any input means, such as a keyboard, touch, audio and the like; the user may also use any input method, such as pinyin, five strokes, voice, handwriting, and the like, and the embodiment of the present invention is not limited specifically. The terminal receives a selection of a partial word candidate item by a user, so that the selected character can form a display interface diagram of a to-be-displayed character content in the to-be-displayed editing area, specifically, refer to fig. 2, which is provided by an embodiment of the present invention, where a is the to-be-displayed editing area, B is the to-be-displayed character displayed in the to-be-displayed editing area, the to-be-displayed character is a character edited by the user, "input method is an encoding method", C is a display area of the to-be-displayed character in the to-be-displayed editing area, D is another blank display area of the to-be-displayed editing area, and E is a segment tail display area of the to-be-displayed editing area. The terminal receives a pressing operation input by a user in the area A. The terminal may include, but is not limited to: smart phones (e.g., Android phones, iOS phones, etc.), Mobile Internet Devices (MID, Mobile Internet Devices), wearable smart Devices, and other Internet Devices having a character input function. The operation body for pressing operation may be a user finger, a capacitance pen, or the like.
Specifically, the pressing operation may be triggered in a display area of the character to be displayed on the screen in the area to be edited on the screen, may be triggered in another blank display area in the area to be edited on the screen, or may be triggered in a display area at the end of a segment of the character to be displayed on the screen in the area to be edited on the screen. Referring to fig. 2, the pressing operation may be input at C, D, and E. The embodiment of the invention takes the input at D as an example.
S103, detecting the pressure value of the pressing operation, and judging whether the pressure value of the pressing operation is larger than a preset pressure threshold value.
In the embodiment of the invention, the terminal detects the pressure value of the pressing operation, the terminal can be provided with a pressure sensor, the terminal detects the pressure value generated when a user presses the touch screen of the terminal through the pressure sensor, and the touch screen can be a pressure-sensitive touch screen. After detecting the pressure value of the pressing operation, the terminal determines whether the pressure value of the pressing operation is greater than a preset pressure threshold, if so, step S105 is executed, and if not, the terminal does not respond to the pressing operation, or ends the process. The preset pressure threshold may be set by the terminal user, or may be set by default by the terminal system, which is not limited in the embodiments of the present invention. For example, the preset pressure threshold is 1 newton, and the terminal detects that the pressure value of the pressing operation is 2 newtons, the terminal determines that the pressure value of the pressing operation is greater than the preset pressure threshold.
It should be noted that, after the terminal detects the pressure value of the pressing operation, the pressure value of the pressing operation can be displayed in the editing area to be displayed on the screen, so that the user can know the input pressure value of the pressing operation, the user can more accurately regulate and control the pressure value of the pressing operation when pressing, the use by the user is facilitated, and the user can press the screen more specifically. And the display area of the pressure value in the area to be edited on the screen may be a touch area of the pressing operation detected by the terminal, and may also be other blank display areas of the area to be edited on the screen. The display time of the pressure value in the area to be screen-edited may be set in advance, for example, the display time of the pressure value is 1 second.
And S105, detecting the sliding operation input in the area to be edited on the screen, and detecting the target sliding track of the sliding operation.
In the embodiment of the present invention, after the terminal determines that the pressure value of the pressing operation is greater than the preset pressure threshold, the terminal detects a sliding operation input for the area to be edited on the screen, and detects a target sliding trajectory of the sliding operation, where the target sliding trajectory may include but is not limited to: the target sliding track can also comprise a track sliding leftwards horizontally along the terminal touch screen, a track sliding rightwards horizontally along the terminal touch screen, a track sliding upwards vertically along the terminal touch screen, a track sliding downwards vertically along the terminal touch screen, a track sliding upwards along the upper left corner of the terminal touch screen, a track sliding downwards along the lower left corner of the terminal touch screen, a track sliding upwards along the upper right corner of the terminal touch screen, a track sliding downwards along the lower right corner of the terminal touch screen and the like. Referring to fig. 3, the sliding operation may be input at C, D, and E. The embodiment of the invention takes the sliding operation as an example to input at D. The embodiment of the invention takes the example that the target sliding track of the sliding operation is S-shaped, and the sliding operation is input at D as well.
The pressing operation and the sliding operation may be continuous operations or independent operations, that is, after the user performs the pressing operation in the area to be edited on the screen, the finger of the user may directly perform the sliding operation without departing from the area to be edited on the screen of the terminal, or after the user performs the pressing operation in the area to be edited on the screen, the finger of the user disengages from the area to be edited on the screen of the terminal, and the sliding operation is performed again.
And S107, searching a target character editing instruction corresponding to the target sliding track according to the corresponding relation between the preset sliding track and the character editing instruction.
In the embodiment of the present invention, the terminal may preset and store a corresponding relationship between a sliding track and a character editing instruction, and in specific implementation, for example: the terminal correspondingly deletes the S-shaped sliding track, correspondingly sends an instruction for the F-shaped sliding track, correspondingly cuts the J-shaped sliding track, correspondingly sends an instruction for the O-shaped sliding track, and correspondingly displays information corresponding to the D-shaped sliding track; or the terminal correspondingly deletes the sliding track as a track sliding leftwards horizontally along the terminal touch screen, correspondingly copies the sliding track as a track sliding rightwards horizontally along the terminal touch screen, correspondingly clips the sliding track as a track sliding upwards vertically along the terminal touch screen, correspondingly sends an instruction as a track sliding downwards vertically along the terminal touch screen, and correspondingly displays information as an instruction as a track sliding along the upper left corner of the terminal touch screen. When the terminal detects a target sliding track of the sliding operation, the terminal can search for a target character editing instruction corresponding to the target sliding track according to the preset corresponding relationship between the sliding track and the character editing instruction. For example, when the terminal detects that the target sliding track of the sliding operation is the S-shaped track, the target character editing instruction corresponding to the S-shaped track is found to be a deleting instruction.
And S109, executing the searched target character editing instruction according to the characters to be displayed on the screen, which are displayed in the editing area to be displayed on the screen.
In the embodiment of the invention, the terminal executes the searched target character editing instruction according to the characters to be displayed on the screen, which are displayed in the editing area to be displayed on the screen. Specifically, if the target character editing instruction is a deleting instruction, deleting the characters to be displayed from the editing area to be displayed by the terminal; or, if the target character editing instruction is a copying instruction, copying the characters to be displayed by the terminal; or if the target character editing instruction is a cutting instruction, cutting the characters to be displayed on the screen by the terminal; or if the target character editing instruction is a sending instruction, the terminal sends the characters to be displayed on the screen; or if the target character editing instruction is an information display instruction, the terminal displays preset information associated with the characters to be displayed. The preset information associated with the characters to be displayed can be concepts corresponding to the characters to be displayed, definitions or related contents matched according to the characters to be displayed. For example, referring to fig. 2, if the target character editing instruction found by the terminal is a deletion instruction, the terminal deletes the character to be displayed, "input method is a coding method," from the editing area to be displayed, thereby implementing quick deletion of the character to be displayed.
In the embodiment of the invention shown in fig. 1, the terminal detects the pressure value of the pressing operation according to the pressing operation received in the area to be edited on the screen, and determines whether the pressure value of the pressing operation is greater than a preset pressure threshold value, if so, the terminal detects the sliding operation input to the area to be edited on the screen, and detects the target sliding track of the sliding operation, so as to search for a target character editing instruction corresponding to the target sliding track, and further execute the target character editing instruction for the character to be displayed on the screen displayed in the area to be edited on the screen, thereby improving the processing efficiency of the terminal on the character to be edited on the screen.
Further, please refer to fig. 3, which is a flowchart illustrating a second embodiment of the character processing method according to the embodiment of the present invention, the method may include, but is not limited to, the following steps.
S301, receiving a pressing operation input aiming at an editing area to be displayed on a screen, wherein characters to be displayed on the screen are displayed in the editing area to be displayed on the screen.
S301 in the embodiment of the present invention can refer to S101 in the embodiment shown in fig. 1, and is not described herein again.
S303, detecting the pressure value of the pressing operation, and judging whether the pressure value of the pressing operation is greater than a preset pressure threshold value.
In the embodiment of the invention, the terminal detects the pressure value of the pressing operation, the terminal can be provided with a pressure sensor, the terminal detects the pressure value generated when a user presses the touch screen of the terminal through the pressure sensor, and the touch screen can be a pressure-sensitive touch screen. After detecting the pressure value of the pressing operation, the terminal determines whether the pressure value of the pressing operation is greater than a preset pressure threshold, if so, step S305 is executed, and if not, the terminal does not respond to the pressing operation, or ends the process. The preset pressure threshold may be set by the terminal user, or may be set by default by the terminal system, which is not limited in the embodiments of the present invention. For example, the preset pressure threshold is 1 newton, and the terminal detects that the pressure value of the pressing operation is 2 newtons, the terminal determines that the pressure value of the pressing operation is greater than the preset pressure threshold.
It should be noted that, after the terminal detects the pressure value of the pressing operation, the pressure value of the pressing operation can be displayed in the editing area to be displayed on the screen, so that the user can know the input pressure value of the pressing operation, the user can more accurately regulate and control the pressure value of the pressing operation when pressing, the use by the user is facilitated, and the user can press the screen more specifically. And the display area of the pressure value in the area to be edited on the screen may be a touch area of the pressing operation detected by the terminal, and may also be other blank display areas of the area to be edited on the screen. The display time of the pressure value in the area to be screen-edited may be set in advance, for example, the display time of the pressure value is 1 second.
S305, judging whether the operation duration of the pressing operation is greater than a preset duration threshold.
In the embodiment of the present invention, after the terminal determines that the pressure value of the pressing operation is greater than the preset pressure threshold, the terminal further determines whether the operation duration of the pressing operation is greater than the preset duration threshold, if so, step S307 is executed, and if not, the terminal does not respond to the pressing operation, so as to avoid a false touch operation of the user, thereby improving the accuracy of the terminal detection, or ending the process. The preset duration threshold may be set by the terminal user, or may be set by default by the terminal system, which is not limited in the embodiments of the present invention. For example, if the preset time threshold is 2 seconds, and the operation time of the terminal detecting the pressing operation is 3 seconds, the terminal determines that the operation time of the pressing operation is greater than the preset time threshold.
And S307, detecting the sliding operation input for the area to be edited on the screen, and detecting the target sliding track of the sliding operation.
In the embodiment of the present invention, if the terminal determines that the operation duration of the pressing operation is greater than the preset duration threshold, the terminal detects a sliding operation input for an editing area to be displayed on the screen, and detects a target sliding trajectory of the sliding operation, where the target sliding trajectory may include but is not limited to: the target sliding track can also comprise a track sliding leftwards horizontally along the terminal touch screen, a track sliding rightwards horizontally along the terminal touch screen, a track sliding upwards vertically along the terminal touch screen, a track sliding downwards vertically along the terminal touch screen, a track sliding upwards along the upper left corner of the terminal touch screen, a track sliding downwards along the lower left corner of the terminal touch screen, a track sliding upwards along the upper right corner of the terminal touch screen, a track sliding downwards along the lower right corner of the terminal touch screen and the like.
The pressing operation and the sliding operation may be continuous operations or independent operations, that is, after the user performs the pressing operation in the area to be edited on the screen, the finger of the user may directly perform the sliding operation without departing from the area to be edited on the screen of the terminal, or after the user performs the pressing operation in the area to be edited on the screen, the finger of the user disengages from the area to be edited on the screen of the terminal, and the sliding operation is performed again.
S309, searching a target character editing instruction corresponding to the target sliding track according to the corresponding relation between the preset sliding track and the character editing instruction.
S311, the searched target character editing instruction is executed according to the characters to be displayed on the screen and displayed in the editing area to be displayed on the screen.
S309 and S311 in the embodiment of the present invention can refer to S107 and S109 in the embodiment shown in fig. 1, and are not described herein again.
In the embodiment of the invention shown in fig. 3, the terminal detects the pressure value of the pressing operation according to the pressing operation received in the area to be edited on the screen, and determines whether the pressure value of the pressing operation is greater than a preset pressure threshold value, if so, the terminal detects the sliding operation input to the area to be edited on the screen, and detects the target sliding track of the sliding operation, so as to search for a target character editing instruction corresponding to the target sliding track, and further execute the target character editing instruction for the character to be displayed on the screen displayed in the area to be edited on the screen, thereby improving the processing efficiency of the terminal on the character to be edited on the screen. Further, when the terminal detects the pressure value of the pressing operation and judges that the pressure value of the pressing operation is greater than the preset pressure threshold value, the terminal further judges whether the operation duration of the pressing operation is greater than the preset duration threshold value or not, if so, the terminal detects the sliding operation aiming at the input of the to-be-screen-loaded editing area, the mistaken touch operation of a user is avoided, and the accuracy of terminal detection is improved.
While the method of the embodiment of the present invention has been described in detail, in order to better implement the above-mentioned aspects of the embodiment of the present invention, the following also provides a related terminal for implementing the above-mentioned aspects.
Referring to fig. 4, which is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention, the terminal 40 includes: a receiving module 401, a first judging module 403, a detecting module 405, a searching module 407 and an executing module 409, wherein,
a receiving module 401, configured to receive a pressing operation input for a region to be edited on a screen, where characters to be displayed on the screen are displayed in the region to be edited on the screen;
specifically, the receiving module 401 is specifically configured to receive a pressing operation input in a display area of a character to be displayed on the screen in the editing area to be displayed on the screen; or,
and receiving a pressing operation input in a blank display area in the area to be edited on the screen.
A first judging module 403, configured to detect a pressure value of the pressing operation, and judge whether the pressure value of the pressing operation is greater than a preset pressure threshold;
specifically, the first determining module 403 is specifically configured to detect a pressure value of the pressing operation, display the pressure value in the area to be edited on the screen, and determine whether the pressure value of the pressing operation is greater than a preset pressure threshold.
The detection module 405 is configured to detect a sliding operation input for the to-be-displayed editing area and detect a target sliding track of the sliding operation if the first determination module determines that the pressure value of the pressing operation is greater than a preset pressure threshold;
the searching module 407 is configured to search a target character editing instruction corresponding to the target sliding track according to a corresponding relationship between a preset sliding track and the character editing instruction;
and the executing module 409 is configured to execute the searched target character editing instruction on the characters to be displayed on the screen, which are displayed in the editing area to be displayed on the screen.
Specifically, the target character editing instruction is a deleting instruction, a copying instruction, a cutting instruction, a sending instruction or an information display instruction; the execution module 409 is specifically configured to delete the to-be-displayed characters displayed in the to-be-displayed editing area from the to-be-displayed editing area; or,
copying the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
cutting characters to be displayed on a screen displayed in the editing area to be displayed on the screen; or,
sending the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
and displaying preset information associated with the characters to be displayed on the screen, which are displayed in the editing area to be displayed on the screen.
It is understood that the functions of the functional modules of the terminal 40 of the present embodiment can be implemented according to the method of the embodiment of fig. 1, and are not described herein again.
In the embodiment of the invention shown in fig. 4, the terminal detects the pressure value of the pressing operation according to the pressing operation received in the area to be edited on the screen, and determines whether the pressure value of the pressing operation is greater than a preset pressure threshold value, if so, the terminal detects the sliding operation input to the area to be edited on the screen, and detects the target sliding track of the sliding operation, so as to search the target character editing instruction corresponding to the target sliding track, and further execute the target character editing instruction on the characters to be displayed in the area to be edited on the screen, thereby improving the processing efficiency of the terminal on the characters to be edited on the screen.
Further, please refer to fig. 5, which is a schematic structural diagram of a second embodiment of the terminal according to the embodiment of the present invention, and further describes the structure and the function of the terminal 40. The terminal 40 includes: the receiving module 401, the first determining module 403, the detecting module 405, the searching module 407, and the executing module 409 further include: a second decision module 411, wherein,
the second determining module 411 is configured to determine whether the operation duration of the pressing operation is greater than the preset duration threshold if the first determining module 403 determines that the pressure value of the pressing operation is greater than the preset pressure threshold.
The detecting module 405 is specifically configured to detect a target sliding track of a sliding operation for the sliding operation input to the area to be edited on the screen if the second determining module 411 determines that the operation duration of the pressing operation is greater than the preset duration threshold.
It is understood that the functions of the functional modules of the terminal 40 of the present embodiment can be implemented according to the method of the embodiment of the method of fig. 3, and are not described herein again.
In the embodiment of the invention shown in fig. 5, the terminal detects the pressure value of the pressing operation according to the pressing operation received in the area to be edited on the screen, and determines whether the pressure value of the pressing operation is greater than a preset pressure threshold value, if so, the terminal detects the sliding operation input to the area to be edited on the screen, and detects the target sliding track of the sliding operation, so as to search the target character editing instruction corresponding to the target sliding track, and further execute the target character editing instruction on the characters to be displayed in the area to be edited on the screen, thereby improving the processing efficiency of the terminal on the characters to be edited on the screen. Further, when the terminal detects the pressure value of the pressing operation and judges that the pressure value of the pressing operation is greater than the preset pressure threshold value, the terminal further judges whether the operation duration of the pressing operation is greater than the preset duration threshold value or not, if so, the terminal detects the sliding operation aiming at the input of the to-be-screen-loaded editing area, the mistaken touch operation of a user is avoided, and the accuracy of terminal detection is improved.
Fig. 6 is a schematic structural diagram of a terminal according to a third embodiment of the present invention. As shown in fig. 6, the terminal 60 may include: at least one processor 601, e.g., a CPU, at least one bus 602, at least one input device 603 and at least one output device 604, memory 605. Wherein the bus 602 is used for implementing communication connection among these components; the input device 603 may specifically be a touch panel of the terminal, and includes a touch screen and a touch screen, and is configured to detect an operation instruction on the touch panel of the terminal; the output device 604 may include a Display screen (Display) of the terminal for outputting and displaying images or data; the memory 605 may be a high-speed RAM display, or a non-volatile display (non-volatile memory), such as at least one disk display, and the memory 605 may optionally be at least one display device located remotely from the processor 601. As shown in fig. 6, the memory 605, which is a kind of computer display medium, may include therein an operating system, a network communication module, a user interface module, and a character processing program.
In the terminal 60 shown in fig. 6, the processor 601 may be configured to run the character processing program stored in the memory 605 and perform the following operations:
receiving a pressing operation input for a to-be-displayed editing area through an input device 603, wherein characters to be displayed are displayed in the to-be-displayed editing area;
detecting a pressure value of the pressing operation, and judging whether the pressure value of the pressing operation is greater than a preset pressure threshold value or not;
if so, detecting a sliding operation input aiming at the to-be-displayed editing area, and detecting a target sliding track of the sliding operation;
searching a target character editing instruction corresponding to the target sliding track according to the corresponding relation between the preset sliding track and the character editing instruction;
and executing the searched target character editing instruction according to the characters to be displayed on the screen displayed in the editing area to be displayed on the screen.
Further, the step of executing, by the processor 601, the found target character editing instruction for the to-be-displayed character displayed in the to-be-displayed editing area may specifically be:
deleting the characters to be displayed on the screen displayed in the editing area to be displayed on the screen from the editing area to be displayed on the screen; or,
copying the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
cutting characters to be displayed on a screen displayed in the editing area to be displayed on the screen; or,
sending the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
and displaying preset information associated with the characters to be displayed on the screen, which are displayed in the editing area to be displayed on the screen.
Further, the step of the processor 601 executing, through the input device 603, receiving a pressing operation input for the to-be-displayed editing area may specifically be:
receiving a pressing operation input in a display area of characters to be displayed on the screen in an editing area to be displayed on the screen; or,
and receiving a pressing operation input in a blank display area in the area to be edited on the screen.
Further, after the step of detecting the pressure value of the pressing operation and determining whether the pressure value of the pressing operation is greater than the preset pressure threshold value by the processor 601, before the step of detecting the target sliding track of the sliding operation for the sliding operation input to the area to be edited on the screen, the processor 601 is further configured to:
if the pressure value of the pressing operation is judged to be larger than the preset pressure threshold, judging whether the operation duration of the pressing operation is larger than the preset duration threshold or not;
if yes, the processor 601 performs a step of detecting a target sliding track of a sliding operation for the sliding operation input to the area to be edited on the screen
Further, the step of the processor 601 executing the step of detecting the pressure value of the pressing operation may specifically be:
and detecting a pressure value of the pressing operation, and displaying the pressure value in the area to be subjected to screen editing.
It is understood that the steps executed by the processor 601 can specifically refer to the content of the embodiment in fig. 1 or fig. 3, and are not described herein again.
It should be noted that the above terminals may include, but are not limited to: smart phones (e.g., Android phones, iOS phones, etc.), Mobile Internet Devices (MID, Mobile Internet Devices), wearable smart Devices, and other Internet Devices having a character input function.
In summary, by implementing the embodiments of the present invention, the terminal receives the pressing operation input for the area to be edited on the screen, detects the pressure value of the pressing operation, determines whether the pressure value of the pressing operation is greater than the preset pressure threshold value, if yes, the terminal detects a sliding operation input for the area to be edited on the screen, detects a target sliding trajectory of the sliding operation, and searching a target character editing instruction corresponding to the target sliding track according to the corresponding relation between the preset sliding track and the character editing instruction, thereby quickly executing a target character editing instruction for the characters to be displayed on the screen displayed in the editing area to be displayed on the screen, the target character editing instruction can be a deleting instruction, a copying instruction, a cutting instruction, a sending instruction or an information display instruction, so that the use experience of a user is improved, and the processing efficiency of the terminal on-screen characters is improved.
Furthermore, after the terminal detects the pressure value of the pressing operation and judges that the pressure value of the pressing operation is greater than the preset pressure threshold, the terminal further judges whether the operation duration of the pressing operation is greater than the preset duration threshold, if so, the terminal detects the sliding operation input to the area to be edited on the screen, so that the target character editing instruction is searched according to the sliding track of the sliding operation, the misoperation of a user is avoided, and the accuracy of terminal detection is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A method for character processing, the method comprising:
receiving a pressing operation input aiming at a to-be-displayed editing area, wherein characters to be displayed on the screen are displayed in the to-be-displayed editing area, the to-be-displayed editing area is an area in which an input method system converts coded character strings input by a user in an input method interface into word candidate items of the input characters, and the characters selected by the user form character contents to be displayed on the screen according to the selection of the user on partial word candidate items;
detecting the pressure value of the pressing operation, and judging whether the pressure value of the pressing operation is greater than a preset pressure threshold value or not;
if so, detecting a sliding operation input aiming at the area to be edited on the screen, and detecting a target sliding track of the sliding operation;
searching a target character editing instruction corresponding to the target sliding track according to the corresponding relation between the preset sliding track and the character editing instruction;
executing the searched target character editing instruction aiming at the characters to be displayed on the screen and displayed in the editing area to be displayed on the screen;
the receiving of the pressing operation input for the to-be-displayed editing area comprises the following steps:
receiving a pressing operation input aiming at a display area of the characters to be displayed in the editing area to be displayed on the screen; or receiving pressing operation input aiming at other blank display areas in the area to be edited on the screen; or receiving a pressing operation input aiming at a segment tail display area of the character to be displayed in the editing area to be displayed on the screen.
2. The method of claim 1, wherein the target character editing instruction is a delete instruction, a copy instruction, a cut instruction, a send instruction, or an information display instruction, and the executing the searched target character editing instruction for the character to be displayed in the area to be edited on the screen includes:
deleting the characters to be displayed on the screen displayed in the editing area to be displayed on the screen from the editing area to be displayed on the screen; or,
copying the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
cutting the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
sending the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
and displaying preset information associated with the characters to be displayed on the screen, which is displayed in the editing area to be displayed on the screen.
3. The method of claim 1, wherein receiving a press operation input for a to-be-onscreen editing region comprises:
receiving a pressing operation input in a display area of the characters to be displayed in the editing area to be displayed on the screen; or,
and receiving a pressing operation input in a blank display area in the area to be edited on the screen.
4. The method of claim 1, wherein after detecting the pressure value of the pressing operation, determining whether the pressure value of the pressing operation is greater than a preset pressure threshold value, detecting a sliding operation input for the area to be edited on the screen, and before detecting a target sliding track of the sliding operation, the method further comprises:
if the pressure value of the pressing operation is judged to be larger than the preset pressure threshold, judging whether the operation duration of the pressing operation is larger than a preset duration threshold or not;
and if so, executing the step of detecting the sliding operation input aiming at the area to be edited on the screen and detecting the target sliding track of the sliding operation.
5. The method of claim 1, wherein the detecting the pressure value of the pressing operation comprises:
and detecting the pressure value of the pressing operation, and displaying the pressure value in the area to be subjected to screen editing.
6. A terminal, characterized in that the terminal comprises:
the device comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving press operation input aiming at a to-be-displayed editing area, characters to be displayed are displayed in the to-be-displayed editing area, the to-be-displayed editing area is an area in which an input method system converts coded character strings input by a user in an input method interface into word candidate items of the input characters, and the characters selected by the user form character contents to be displayed on a screen according to selection of the user on the word candidate items;
the first judgment module is used for detecting the pressure value of the pressing operation and judging whether the pressure value of the pressing operation is greater than a preset pressure threshold value or not;
the detection module is used for detecting the sliding operation input aiming at the area to be edited on the screen and detecting a target sliding track of the sliding operation if the first judgment module judges that the pressure value of the pressing operation is larger than the preset pressure threshold value;
the searching module is used for searching a target character editing instruction corresponding to the target sliding track according to the corresponding relation between the preset sliding track and the character editing instruction;
the execution module is used for executing the searched target character editing instruction aiming at the characters to be displayed on the screen and displayed in the editing area to be displayed on the screen;
the receiving module is specifically configured to:
receiving a pressing operation input aiming at a display area of the characters to be displayed in the editing area to be displayed on the screen; or receiving pressing operation input aiming at other blank display areas in the area to be edited on the screen; or receiving a pressing operation input aiming at a segment tail display area of the character to be displayed in the editing area to be displayed on the screen.
7. The terminal according to claim 6, wherein the target character editing instruction is a delete instruction, a copy instruction, a cut instruction, a send instruction or an information presentation instruction; the execution module is specifically configured to delete the to-be-displayed character displayed in the to-be-displayed editing area from the to-be-displayed editing area; or,
copying the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
cutting the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
sending the characters to be displayed on the screen displayed in the editing area to be displayed on the screen; or,
and displaying preset information associated with the characters to be displayed on the screen, which is displayed in the editing area to be displayed on the screen.
8. The terminal of claim 6, wherein the receiving module is specifically configured to receive a pressing operation input in a display area of the character to be displayed on the screen in the editing area to be displayed on the screen; or,
and receiving a pressing operation input in a blank display area in the area to be edited on the screen.
9. The terminal of claim 6, wherein the terminal further comprises:
the second judgment module is used for judging whether the operation duration of the pressing operation is greater than a preset duration threshold value or not if the first judgment module judges that the pressure value of the pressing operation is greater than the preset pressure threshold value;
the detection module is specifically configured to detect a sliding operation input for the area to be edited on the screen if the second determination module determines that the operation duration of the pressing operation is greater than the preset duration threshold, and detect a target sliding track of the sliding operation.
10. The terminal of claim 6, wherein the first determining module is specifically configured to detect a pressure value of the pressing operation, display the pressure value in the area to be edited on the screen, and determine whether the pressure value of the pressing operation is greater than a preset pressure threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510542490.2A CN105117159B (en) | 2015-08-27 | 2015-08-27 | A kind of character processing method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510542490.2A CN105117159B (en) | 2015-08-27 | 2015-08-27 | A kind of character processing method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105117159A CN105117159A (en) | 2015-12-02 |
CN105117159B true CN105117159B (en) | 2017-11-24 |
Family
ID=54665164
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510542490.2A Expired - Fee Related CN105117159B (en) | 2015-08-27 | 2015-08-27 | A kind of character processing method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105117159B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020679A (en) * | 2016-04-29 | 2016-10-12 | 深圳市金立通信设备有限公司 | Input control method and terminal |
TWI633463B (en) * | 2016-06-20 | 2018-08-21 | 鴻海精密工業股份有限公司 | Text input method |
CN106354337A (en) * | 2016-10-21 | 2017-01-25 | 珠海市魅族科技有限公司 | Character deletion method and character deletion device |
CN108062168B (en) * | 2016-11-09 | 2021-10-15 | 北京搜狗科技发展有限公司 | Candidate word screen-on method and device and candidate word screen-on device |
CN107219933A (en) * | 2017-05-10 | 2017-09-29 | 北京百度网讯科技有限公司 | The operation processing method and device of input method, computer equipment and computer-readable recording medium |
CN107885443B (en) * | 2017-09-22 | 2021-02-19 | 创新先进技术有限公司 | Information processing method and device |
CN113867547A (en) * | 2021-09-30 | 2021-12-31 | 维沃移动通信有限公司 | Text processing method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197859A (en) * | 2012-01-09 | 2013-07-10 | 深圳富泰宏精密工业有限公司 | System and method for unlocking screen of electronic device |
CN103970460A (en) * | 2013-01-30 | 2014-08-06 | 三星电子(中国)研发中心 | Touch screen-based operation method and terminal equipment using same |
CN104007914A (en) * | 2013-02-26 | 2014-08-27 | 北京三星通信技术研究有限公司 | Method and device for operating input characters |
CN104063164A (en) * | 2013-03-22 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Method and device for screen control |
CN104572602A (en) * | 2014-12-08 | 2015-04-29 | 广州三星通信技术研究有限公司 | Method and device for displaying message |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101691478B1 (en) * | 2011-02-09 | 2016-12-30 | 삼성전자주식회사 | Operation Method based on multiple input And Portable device supporting the same |
-
2015
- 2015-08-27 CN CN201510542490.2A patent/CN105117159B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197859A (en) * | 2012-01-09 | 2013-07-10 | 深圳富泰宏精密工业有限公司 | System and method for unlocking screen of electronic device |
CN103970460A (en) * | 2013-01-30 | 2014-08-06 | 三星电子(中国)研发中心 | Touch screen-based operation method and terminal equipment using same |
CN104007914A (en) * | 2013-02-26 | 2014-08-27 | 北京三星通信技术研究有限公司 | Method and device for operating input characters |
CN104063164A (en) * | 2013-03-22 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Method and device for screen control |
CN104572602A (en) * | 2014-12-08 | 2015-04-29 | 广州三星通信技术研究有限公司 | Method and device for displaying message |
Also Published As
Publication number | Publication date |
---|---|
CN105117159A (en) | 2015-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105117159B (en) | A kind of character processing method and terminal | |
US11042290B2 (en) | Touch screen track recognition method and apparatus | |
CN105183184A (en) | Character processing method and terminal | |
CN102246126B (en) | Based on the edit pattern of gesture | |
US10248635B2 (en) | Method for inserting characters in a character string and the corresponding digital service | |
WO2016095689A1 (en) | Recognition and searching method and system based on repeated touch-control operations on terminal interface | |
US11157165B2 (en) | Permanent synchronization system for handwriting input | |
US20120102401A1 (en) | Method and apparatus for providing text selection | |
US20140129991A1 (en) | Character input prompting method and electronic device | |
CN102937864B (en) | A kind of method and apparatus for determining selected text on touch terminal | |
CN105045411A (en) | Object control method and terminal | |
US10416868B2 (en) | Method and system for character insertion in a character string | |
CN109917982B (en) | Voice input method, device, equipment and readable storage medium | |
CN103365446A (en) | Handwriting input method and device | |
EP2963565A1 (en) | Method and apparatus for processing input information | |
US10140265B2 (en) | Apparatuses and methods for phone number processing | |
CN104267867A (en) | Content input method and device | |
TWI617971B (en) | System and method for turning pages of an object through gestures | |
US20230054848A1 (en) | Structural decomposition in handwriting | |
US20140180698A1 (en) | Information processing apparatus, information processing method and storage medium | |
CN107015754B (en) | Fingerprint identification-based reading control method and device and mobile terminal | |
CN104423925B (en) | A kind of information processing method and electronic equipment | |
JP2016148887A (en) | Ladder program edition device enabling edition with gesture operation of touch panel | |
CN106293368B (en) | Data processing method and electronic equipment | |
CN105224219B (en) | A kind of method and terminal that information is shown |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171124 |
|
CF01 | Termination of patent right due to non-payment of annual fee |