CN104679408B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN104679408B
CN104679408B CN201510124646.5A CN201510124646A CN104679408B CN 104679408 B CN104679408 B CN 104679408B CN 201510124646 A CN201510124646 A CN 201510124646A CN 104679408 B CN104679408 B CN 104679408B
Authority
CN
China
Prior art keywords
boundary
input operation
input
area
content
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.)
Active
Application number
CN201510124646.5A
Other languages
Chinese (zh)
Other versions
CN104679408A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510124646.5A priority Critical patent/CN104679408B/en
Publication of CN104679408A publication Critical patent/CN104679408A/en
Application granted granted Critical
Publication of CN104679408B publication Critical patent/CN104679408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a data processing method and a data processing device, wherein the method comprises the following steps: displaying the object content in the display area; receiving selection of at least part of the object content, and marking a selected content selection area in the object content; acquiring a first input operation in the display area; when the first input operation meets a preset selected area adjusting condition, determining a boundary to be adjusted of the content selected area according to the input position of the first input operation; and the input position of the first input operation meeting the selected area adjusting condition is different from the position of any boundary of the content selected area. The method and the device can improve the convenience of selecting the displayed content object and reduce misoperation.

Description

Data processing method and device
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a data processing method and apparatus.
Background
When a document or a page containing text is presented using an electronic device, it is often necessary to select a content object presented in the current screen. The selected content area is generally marked to distinguish the non-selected content area, and a start cursor and an end cursor are generally respectively present at the start point and the end point of the selected area. For example, after a word document is opened in an electronic device, when a user may need to copy a part of text content in the document, a corresponding text region is selected through text selection, a start point and an end point of the selected text region may be marked by a cursor in the form of a vertical line or an arrow, and the text region is changed into gray.
If the currently selected content region is not the region that the user finally wishes to select, the user may also adjust the size of the selected content region by dragging a start cursor of a start point or an end cursor of an end point in the selected content region to adjust the range of the selected content region. However, when the electronic device is a touch screen, if the starting point and the ending point of the currently selected content area are close to each other, and if the user wishes to adjust the size of the selected content area, it may be difficult for the user to accurately position the starting cursor and the ending point cursor using a finger, so that the internal area cannot be accurately adjusted; even the content area may not be adjusted because the start cursor and the end cursor are occluded by the finger, so that the complexity of selecting the content area is high, and misoperation is easy to occur.
Disclosure of Invention
In view of this, the present application provides a data processing method and apparatus, so as to improve convenience of selecting a displayed content object and reduce misoperation.
In order to achieve the above purpose, the present application provides the following technical solutions: a method of data processing, the method comprising:
displaying the object content in the display area;
receiving selection of at least part of the object content, and marking a selected content selection area in the object content;
acquiring a first input operation in the display area;
when the first input operation meets a preset selected area adjusting condition, determining a boundary to be adjusted of the content selected area according to the input position of the first input operation; and the input position of the first input operation meeting the selected area adjusting condition is different from the position of any boundary of the content selected area.
Preferably, the determining a boundary to be adjusted of the content selected area according to the input position of the first input operation includes:
and determining at least one target boundary line to be subjected to position transferring from the boundary lines of the content selected area according to the input position of the first input operation.
Preferably, after determining the boundary to be adjusted of the content selected area, the method further includes:
acquiring a second input operation input in the display area;
and adjusting the position of the boundary to be adjusted according to the second input operation to change the area range of the area selected by the content, wherein the second input operation is different from the first input operation.
Preferably, when it is determined that the boundary to be adjusted of the content selected area is at least one target boundary line whose position is to be adjusted, which is determined from the boundary lines of the content selected area, the adjusting the position of the boundary to be adjusted according to the second input operation includes:
and adjusting the position of the target boundary line according to the second input operation so as to change the area range of the area selected by the content.
Preferably, the method further comprises the following steps:
when the input position of the first input operation is located on the boundary of the content selected area, taking the boundary where the input position of the first input operation is located as a target boundary to be subjected to position transferring;
when a second input operation that the input starting point is located on the target boundary is detected, the position of the target boundary is adjusted according to the second input operation.
Preferably, the first input operation meeting the preset selected area adjustment condition is input always to the same position point in the display area.
Preferably, the first input operation satisfying the preset selected area adjustment condition is a tapping operation in which the frequency of the sound input in the display area is a preset audio frequency.
Preferably, the first input operation is a first part of the input operation for triggering the adjustment of the position of the boundary to be adjusted, the second input operation is a second part of the input operation for triggering the adjustment of the position of the boundary to be adjusted, the input operation is a continuous input, and the first input operation and the second input operation are two parts of the continuous input that are mutually connected.
In another aspect, the present application further provides a data processing apparatus, including:
an object display unit for displaying object content within a display area;
the area selection unit is used for receiving selection of at least part of the object contents and marking a selected content selection area in the object contents;
a first operation acquisition unit configured to acquire a first input operation within the display area;
the first boundary determining unit is used for determining a boundary to be adjusted of the content selected area according to the input position of the first input operation when the first input operation meets a preset selected area adjusting condition; and the input position of the first input operation meeting the selected area adjusting condition is different from the position of any boundary of the content selected area.
Preferably, the first boundary determining unit includes:
and the first boundary determining subunit is used for determining at least one target boundary line to be subjected to position transferring from the boundary lines of the content selected area according to the input position of the first input operation.
Preferably, the apparatus further comprises:
the second operation acquisition unit is used for acquiring a second input operation input in the display area after the boundary determination unit determines the boundary to be adjusted;
and the first area adjusting unit is used for adjusting the position of the boundary to be adjusted according to the second input operation so as to change the area range of the area selected by the content, wherein the second input operation is different from the first input operation.
Preferably, when the first boundary determining unit includes the first boundary determining subunit, the first region adjusting unit includes:
and the first area adjusting subunit is used for adjusting the position of the target boundary line according to the second input operation so as to change the area range of the area selected by the content.
Preferably, the method further comprises the following steps:
a second boundary determining unit, configured to, when the input position of the first input operation is on the boundary of the content selected area, take the boundary where the input position of the first input operation is located as a target boundary to be subjected to position mobilization;
and the second area adjusting unit is used for adjusting the position of the target boundary according to the second input operation when the second input operation that the input starting point is positioned on the target boundary is detected.
Preferably, the first input operation satisfying the preset selected region adjustment condition in the first boundary determination unit is input always to the same position point within the display region.
Preferably, the first input operation satisfying the preset selected area adjustment condition is a tapping operation in which the frequency of the sound input in the display area is a preset audio frequency.
According to the technical scheme, when the selected content region in the content object needs to be adjusted, the first input operation meeting the region adjustment condition is carried out outside the boundary of the selected content region, and the boundary needing to be adjusted can be determined according to the position of the first input operation. Therefore, under the condition that the distance between each boundary of the content selection area is close to the position, misoperation caused by directly clicking the boundary to select the boundary is avoided, and convenience of adjusting the content selection area is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
FIG. 1 is a flow chart illustrating an embodiment of a data processing method of the present application;
FIG. 2 is a diagram illustrating a region selected for text;
FIG. 3 is a schematic flow chart diagram illustrating another embodiment of a data processing method of the present application;
FIG. 4 is a schematic flow chart diagram illustrating another embodiment of a data processing method of the present application;
FIG. 5a is a schematic diagram showing a relative position relationship between an input position of a first input operation and a boundary of a text selection area in the present application;
FIG. 5b is a schematic diagram showing an input position and direction of a second input operation and an adjusted text selected area in the present application;
FIG. 6 is a schematic block diagram illustrating an embodiment of a data processing apparatus according to the present application;
fig. 7 is a schematic structural diagram of another embodiment of a data processing apparatus according to the present application.
Detailed Description
The embodiment of the application provides a data processing method and device, so that after displayed object contents are selected, the range of the selected content area can be conveniently adjusted, the convenience of selecting the object contents can be improved, and misoperation can be reduced.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
First, a data processing method according to an embodiment of the present application is described.
Referring to fig. 1, which shows a schematic flow chart of an embodiment of a data processing method according to the present application, the method of the present embodiment may include:
101, displaying the object content in the display area.
In the embodiment of the present application, the object content is an object that can select a part of content through a selection operation. For example, the object content may be one or more of text, image, and the like.
And 102, receiving selection of at least part of the object content, and marking a selected content selection area in the object content.
In practical applications, it is often necessary to select contents included in the object contents to select part or all of the contents. For example, when the object content is a text, a sentence in a paragraph in the text may need to be selected, so as to copy, delete or cut the sentence. For another example, when the object content is an image, a cropping operation may need to be performed on the image, and then a reserved or cropped portion needs to be selected from the image.
In order to perform a region with the unselected content of the object content, it is generally necessary to mark the selected region of the selected content. The manner of identifying the selected area of the content may be various, and any identification manner is applicable to the embodiment of the present application, which is not limited herein. For example, in the case of text, when a paragraph in the text is selected and lags behind, the paragraph may be set to be blackened.
103, acquiring the first input operation in the display area.
104, when the first input operation meets the preset selected area adjusting condition, determining the boundary to be adjusted of the content selected area according to the input position of the input operation.
And the input position of the first input operation meeting the selected area adjusting condition is different from the position of any boundary of the content selected area.
When the user wants to adjust the size of the currently selected content selection area, the user can perform an input operation in the display area, wherein the input operation meets the preset selection area adjustment condition. In order to avoid the situation that the boundary which is expected to be adjusted cannot be accurately selected when the distance between the boundary of the selected area is close to the position, in the embodiment of the application, the position of the first input operation which meets the adjustment condition of the selected area is different from the position of any boundary of the content selected area, so that a user can input at any position in the display area, and the boundary which is required to be adjusted can be determined according to the input position, and therefore the user does not need to pay attention to the position of the boundary of the content selected area, and the situation that misoperation occurs when the boundary is directly selected is avoided.
It is to be understood that the first input operation in the embodiment of the present application is only for distinguishing from other input operations that follow. Accordingly, the boundary to be adjusted is only the boundary which needs to be adjusted in the boundary representing the selected area of the content.
It should be noted that, in the embodiment of the present application, the boundary refers to a boundary capable of characterizing a coverage area of the selected area of the content. One or more boundaries to be adjusted can be determined, for example, only one boundary can be determined for the ordinary text content; for the text selected by the rectangle selection method, the selected region of the text is a rectangle, and at this time, two boundaries to be adjusted need to be determined to adjust the rectangular region, or for example, when the size of the cutting region needs to be adjusted, the two boundaries need to be actually adjusted, so that the two boundaries to be adjusted need to be determined according to the input position.
In the embodiment of the application, when the selected content region in the content object needs to be adjusted, a first input operation meeting the region adjustment condition is performed outside the boundary of the selected content region, so that the boundary needing to be adjusted can be determined according to the position of the first input operation. Therefore, under the condition that the distance between each boundary of the content selection area is close to the position, misoperation caused by directly clicking the boundary to select the boundary is avoided, and convenience of adjusting the content selection area is improved.
In any embodiment of the present application, the preset selected area adjustment condition may be set as needed. Optionally, the preset selected area adjustment condition is that the first input operation is input always for the same position point in the display area. If the preset selected area adjustment condition is that the first input operation is to touch and press a preset time length in the editing area of which the display area does not belong to the object content. For example, taking a word document as an example, the first input operation may be to touch a header area for a specified duration, or touch a window editing area at the top of the word document for a specified duration.
In order to further improve the identifiability of the input, in the embodiment of the present application, the input to the same position point in the display area may be optionally a tapping operation in which the frequency of the sound input in the display area is a preset frequency. The tap operation is actually one or more clicks on the same location point within the display area. Wherein, in order to distinguish from the point touch input operation in the existing touch screen, the tapping operation is a tapping operation with a preset voice frequency segment. If the sound frequency range of the display area tapped by the finger nail is tested in advance and then is set to a preset frequency, the user can tap the display area of the display unit by using the finger nail to realize the input operation meeting the area adjustment condition.
In the embodiment of the application, a vibration sensor may be arranged in the electronic device, the vibration sensor may be a contact microphone arranged at a lower layer of the display unit, when there is a tapping operation on the electronic device, the vibration sensor may detect a sound frequency that triggers the electronic device to vibrate due to the tapping operation, and determine whether the current operation is a preset operation based on the sound frequency.
The method and the device can also detect the sound audio segment triggering the knocking operation of the electronic equipment vibration through a microphone collecting the sound signals of the user in the electronic equipment, and further judge whether the knocking operation of the preset sound audio segment exists at present.
In the embodiment of the present application, there may be a variety of ways to determine the boundary to be adjusted of the content selected area according to the input position according to the first input operation.
For example, a boundary closer to the input position of the first input operation may be selected as the boundary to be adjusted from the boundaries of the content selection area. For example, taking a text as an example, when the input position of the first input operation is closer to the starting boundary of the selected area of the text in the text, the starting boundary is determined to be a boundary to be adjusted, where the position needs to be adjusted. Meanwhile, considering the specificity of image cropping selection, determining the boundary to be adjusted may be: two boundaries that are closer in distance to the input position of the first input operation are determined, wherein the two boundaries are adjacent boundaries.
For another example, the boundary to be adjusted may be preset. When the first input operation is detected, the boundary to be adjusted of the content selection area is fixed no matter where the input position is. For example, still taking a text as an example, in consideration of a selection habit of a user on the text, a general user may accurately position a start point of a region to be selected in the text, and after selecting the text by dragging, an end point boundary of a selected region of content may not be a position that the user wishes to select. The cropping and the selection of the image are similar to the text, for example, the boundaries of the right side and the lower side in the selected image area in the image can be set as the boundaries to be adjusted.
Referring to fig. 2, which shows a schematic flow chart of another embodiment of the data processing method of the present application, the embodiment of the present application may include:
object content is displayed in a display area 201.
202, receiving selection of at least part of the object content, and marking the selected content selection area in the object content.
And 203, acquiring a first input operation in the display area.
And 204, when the first input operation meets the preset selected area adjusting condition, determining a boundary to be adjusted of the content selected area according to the input position of the input operation.
And the input position of the first input operation meeting the selected area adjusting condition is different from the position of any boundary of the content selected area.
The operations of step 201 to step 204 are described in the previous embodiments, and are not described herein again.
205, a second input operation input in the display area is acquired.
Wherein the second input operation is different from the first input operation.
After determining the boundary to be adjusted, which needs to be adjusted in position, in the content selection area, the user may continue to input a second input operation for triggering adjustment of the boundary to be adjusted in the display area, so as to trigger subsequent change of the position of the boundary to be adjusted according to the second input operation.
It can be understood that the second input operation in the present application is used for triggering the trigger operation of changing the position of the boundary to be adjusted, and is referred to as the second input operation for the convenience of distinguishing from the first input operation of triggering the determination of the boundary to be adjusted.
206, according to the second input operation, adjusting the position of the boundary to be adjusted to change the area range of the content selected area.
After the second input operation is detected, the boundary to be adjusted is adjusted according to the second input operation, so that the area position of the content selection area can be changed.
It will be appreciated that this second input operation may also be set as desired. For example, in a manner similar to the existing manner of adjusting the content selection area, after the boundary to be adjusted is selected, the sliding operation is performed with the position of the boundary to be adjusted as a starting point, and the second input operation may also be a sliding operation on the display interface, so that the position point to which the boundary to be adjusted is finally adjusted may be determined according to the trajectory of the second input operation. It should be noted that, in the present embodiment, since the boundary to be adjusted is already determined, when the second input operation is a sliding operation, the starting point of the sliding operation may be any position of the display area, and there is no need to pay more specific attention to the position of the input starting point of the second input operation, and only the track direction and the track length of the sliding operation need to be paid attention to in order to determine the direction and distance that the boundary to be adjusted needs to be adjusted according to the track direction and the track length.
For another example, the second input operation may be a touch, a slide, or a click in the object content, and then the position point of the touch, the start point of the slide, or the click is the target position point to which the boundary to be adjusted needs to be moved.
Of course, the second input operation may be performed in other manners as long as a point to be moved can be determined according to the second input operation.
Optionally, according to the second input operation, the adjusting the position of the boundary to be adjusted may be determining a moving direction of the boundary to be adjusted according to the input direction of the second input operation, and determining a moving distance of the boundary to be adjusted according to a trajectory moving amount of the second input operation.
Optionally, when the second input operation is an input operation in the object content, adjusting the position of the boundary to be adjusted according to the second input operation may also be: and taking the end position of the second input operation as a position point to which the boundary to be adjusted needs to be moved. The starting point and the end point of the second input operation may be the same or different, and the second input operation may be always performed on the same point. For example, when the user clicks a certain position in the object content after the boundary to be adjusted is determined, the boundary to be adjusted moves to the position point.
It can be understood that, in practical applications, after the selected content selection area is identified, the boundary of the selected content selection area generally exists in the form of a boundary line, for example, taking a text as an example, the boundary of the selected text selection area in the text may be identified by a cursor or a special symbol, as shown in fig. 3, which is a schematic diagram in the text selection area, it can be seen that the text of the text selection area 301 is changed into gray, and two boundaries are identified by a special graphic 302. Therefore, in any of the above embodiments, the determining the boundary to be adjusted at the input position according to the first input operation may be: and determining at least one target boundary line to be subjected to position transferring from the boundary lines of the content selected area according to the input position of the first input operation.
Correspondingly, according to the second input operation, adjusting the position of the boundary to be adjusted may be: and adjusting the position of the target boundary line according to the second input operation so as to change the area range of the content selected area.
Referring to fig. 4, which shows a schematic flow chart of another embodiment of the data processing method of the present application, the method of the present embodiment may include:
401, the object content is displayed in the display area.
402, a selection of at least a portion of the subject content is received and a selected content selection area is marked in the subject content.
403, acquiring the first input operation in the display area
404, when the first input operation satisfies the preset selected area adjustment condition, determining a boundary to be adjusted of the content selected area according to the input position of the input operation, and executing step 405.
And the input position of the first input operation meeting the selected area adjusting condition is different from the position of any boundary line of the content selected area.
And 405, adjusting the position of the boundary to be adjusted according to a second input operation input in the display interface so as to change the area range of the content selected area.
Wherein the second input operation is different from the first input operation.
The operations in steps 401 to 405 may refer to the related descriptions of the previous embodiments, and are not described herein again.
406, when the input position of the first input operation is on the boundary of the content selected area, taking the boundary where the input position of the first input operation is as the target boundary to be subjected to position transferring, and executing step 407.
In practical application, the input position of the first input operation may be just on the boundary of the content selection area, and in this case, the boundary where the first input operation is located may also be used as the target boundary of the position to be moved. It can be seen that, when the first input operation is at a certain boundary of the content selected area, the processing manner of the present application is similar to the existing determination of the boundary to be adjusted, except that the first input operation in the embodiment of the present application may be different from the existing input operation. For example, the first input operation may be a tap operation with a nail in the display interface, instead of a touch click directly with a finger on the display interface.
It is understood that the input position of the first input operation in this step is on a certain boundary in this embodiment, and therefore does not satisfy the preset area adjustment condition, but the manner of the first input operation may be the same as that described in the previous embodiment, and of course, the existing operation of touching and clicking the boundary may also be the same, so that the determination of the boundary to be adjusted can be triggered when the first input operation satisfies the preset area adjustment condition, and the manner of triggering the determination of the boundary to be adjusted when the input position of the first input operation is on a certain boundary can also be supported.
And 407, when a second input operation with the input starting point on the target boundary is detected, adjusting the position of the target boundary according to the second input operation.
Correspondingly, when the input position of the first input operation is located on a certain boundary of the content selection area, the position of the boundary can be used as an input starting point to input a second input operation so as to adjust the position of the target boundary. Of course, in this case, the second input operation may be considered as two front and rear portions of the same continuous input operation as the first input operation. For example, after the input position of the input operation is on the target boundary, the touch slide is continuously performed at the position to drag the target boundary, changing the position of the target boundary.
The method and the device can support the first input operation which is different from the boundary position of the content selection area through the input position and meets the preset area adjustment condition, so that when the boundary of the content selection area is adjacent and close, the boundary to be adjusted, which needs to be adjusted, can be accurately positioned; meanwhile, a first input operation with the input position being the same as the boundary position of the content selected area is supported, so that the boundary corresponding to the input position of the first input operation is determined as the boundary to be adjusted. According to the embodiment of the application, the user can select different input modes to determine the boundary to be adjusted according to actual needs, and the input flexibility is improved.
In any embodiment of the present application, the first input operation and the second input operation that are input may be two input operations, that is, after the first input operation is terminated, the second input operation is input after a certain delay.
Optionally, the first input operation is a first part of the input operation for triggering the adjustment of the position of the boundary to be adjusted, the second input operation is a second part of the input operation for triggering the adjustment of the position of the boundary to be adjusted, the input operation is a continuous input, and the first input operation and the second input operation are two parts that are mutually connected in the continuous input. That is, the input end point of the first input operation is the same as the input start point of the second input operation, and the input end point of the first input operation is the same as the input start point of the second input operation.
In order to facilitate understanding of implementation of the embodiments of the present application, an example is described below, and it should be understood that the example is only one preferred implementation of the method of the present application, but not the only implementation. The text selection area shown in fig. 3 is still taken as an example. When the user taps the display interface with a fingernail on the display area, the electronic device determines a tapping position of the tapping operation based on a vibration sensor of the electronic device, judges which boundary of the selected text area the tapping position is closer to, and determines the boundary closer to the tapping position as a boundary to be adjusted. Referring to fig. 5a, a schematic diagram showing a position relationship between an input position of a first input operation and a boundary position of the text selected area is shown. In fig. 5a, the position of the circle 501 represents the input position of the tap input operation, and it can be seen that the input position is closer to the starting boundary of the selected region of the text, and the starting boundary is determined as the boundary to be adjusted.
When the user performs a sliding operation at any position of the display area to input a second input operation, the electronic device determines a moving direction of the start boundary according to a sliding direction corresponding to a sliding track of the second input operation, and determines a moving distance of the start boundary based on a distance between a start point and an end point of the second input operation. Fig. 5b shows a schematic diagram of adjusting the boundary to be adjusted according to the second input operation. In fig. 5b, the long arrow 502 outside the area where the text is located represents the path of the second input operation, and the arrow direction represents the sliding direction of the second input operation, so that the starting boundary is translated to the left by a certain distance according to the sliding direction of the second input operation, and the position of the ending boundary is not changed. It can be seen that the selected area of the content is enlarged, as shown by the increased gray fonts in fig. 5 b.
The application also provides a data processing device corresponding to the data processing method.
Referring to fig. 6, which shows a schematic structural diagram of an embodiment of a data processing apparatus according to the present application, the apparatus of the embodiment may include:
an object display unit 601 for displaying object content within a display area;
a region selection unit 602, configured to receive a selection of at least a part of the object content, and mark a selected content selection region in the object content;
a first operation acquisition unit 603 configured to acquire a first input operation in the display area;
a first boundary determining unit 604, configured to determine, according to an input position of the first input operation, a boundary to be adjusted of the content selected area when the first input operation satisfies a preset selected area adjustment condition; and the input position of the first input operation meeting the selected area adjusting condition is different from the position of any boundary of the content selected area.
The boundary refers to a boundary capable of representing the coverage range of the selected area of the content. One or more boundaries to be adjusted may be determined.
It is to be understood that the first input operation in the embodiment of the present application is only for distinguishing from other input operations that follow. Accordingly, the boundary to be adjusted is only the boundary which needs to be adjusted in the boundary representing the selected area of the content.
In the embodiment of the application, when the selected content region in the content object needs to be adjusted, a first input operation meeting the region adjustment condition is performed outside the boundary of the selected content region, so that the boundary needing to be adjusted can be determined according to the position of the first input operation. Therefore, under the condition that the distance between each boundary of the content selection area is close to the position, misoperation caused by directly clicking the boundary to select the boundary is avoided, and convenience of adjusting the content selection area is improved.
Optionally, the first boundary determining unit may include:
and the first boundary determining subunit is used for determining at least one target boundary line to be subjected to position transferring from the boundary lines of the content selected area according to the input position of the first input operation.
Referring to fig. 7, a schematic structural diagram of another embodiment of a data processing apparatus according to the present application is shown, in which the data processing apparatus includes, in addition to: the object display unit 601, the area selection unit 602, the first operation acquisition unit 603, and the first boundary determination unit 604 further include:
a second operation obtaining unit 605, configured to obtain a second input operation input in the display area after the boundary determining unit determines the boundary to be adjusted;
a first region adjusting unit 606, configured to adjust a position of the boundary to be adjusted according to the second input operation, so as to change a region range of the region selected by the content, where the second input operation is different from the first input operation.
The object display unit 601, the area selection unit 602, the first operation obtaining unit 603, and the first boundary determination unit 604 may refer to the related descriptions of the foregoing embodiments, and are not described herein again.
In the embodiment, after the boundary to be adjusted is determined, the first area adjusting unit adjusts the position of the boundary to be adjusted based on the second input operation acquired by the second operation acquiring unit, so that the purpose of conveniently adjusting the area range of the area selected by the content is achieved.
Further, when the first boundary determining unit includes the first boundary determining subunit, optionally, the first region adjusting unit may include:
and the first area adjusting subunit is used for adjusting the position of the target boundary line according to the second input operation so as to change the area range of the area selected by the content.
Optionally, on the basis of any one of the above embodiments, the apparatus according to the embodiment of the present application may further include:
a second boundary determining unit, configured to, when the input position of the first input operation is on the boundary of the content selected area, take the boundary where the input position of the first input operation is located as a target boundary to be subjected to position mobilization;
and the second area adjusting unit is used for adjusting the position of the target boundary according to the second input operation when the second input operation that the input starting point is positioned on the target boundary is detected.
Optionally, in any one of the above embodiments, the first input operation in the first boundary determining unit, which satisfies the preset selected area adjustment condition, is input always to the same position point in the display area.
Further, the first input operation meeting the preset selected area adjustment condition may be a tapping operation in which the frequency of the sound input in the display area is a preset audio frequency.
Optionally, in the above embodiment, the first input operation is a first part of an input operation for triggering the adjustment of the position of the boundary to be adjusted, the second input operation is a second part of the input operation for triggering the adjustment of the position of the boundary to be adjusted, the input operation is a continuous input, and the first input operation and the second input operation are two parts that are consecutive to each other in the continuous input.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A method of data processing, the method comprising:
displaying the object content in the display area;
receiving selection of at least part of the object content, and marking a selected content selection area in the object content;
acquiring a first input operation in the display area;
when the first input operation meets a preset selected area adjusting condition, determining a boundary to be adjusted of the content selected area according to the input position of the first input operation; wherein the input position of the first input operation is any position in the display area; the input position of the first input operation meeting the selected area adjusting condition is different from the position of any boundary of the content selected area;
the first input operation meeting the preset selected area adjusting condition is a knocking operation with the sound frequency input in the display area being a preset sound frequency.
2. The method according to claim 1, wherein the determining the boundary to be adjusted of the content selected area according to the input position of the first input operation comprises:
and determining at least one target boundary line to be subjected to position transferring from the boundary lines of the content selected area according to the input position of the first input operation.
3. The method according to claim 1 or 2, further comprising, after determining the boundary to be adjusted of the content selection area:
acquiring a second input operation input in the display area;
and adjusting the position of the boundary to be adjusted according to the second input operation to change the area range of the area selected by the content, wherein the second input operation is different from the first input operation.
4. The method according to claim 3, wherein when determining that the boundary to be adjusted of the content selected area is a target boundary line of which at least one position is to be adjusted is determined from the boundary lines of the content selected area, the adjusting the position of the boundary to be adjusted according to the second input operation comprises:
and adjusting the position of the target boundary line according to the second input operation so as to change the area range of the area selected by the content.
5. The method of claim 1, further comprising:
when the input position of the first input operation is located on the boundary of the content selected area, taking the boundary where the input position of the first input operation is located as a target boundary to be subjected to position transferring;
when a second input operation that the input starting point is located on the target boundary is detected, the position of the target boundary is adjusted according to the second input operation.
6. The method according to claim 1, wherein the first input operation satisfying the preset selected region adjustment condition is an input always for the same position point within the display region.
7. The method according to claim 3, wherein the first input operation is a first part of an input operation for triggering the adjustment of the position of the boundary to be adjusted, the second input operation is a second part of the input operation for triggering the adjustment of the position of the boundary to be adjusted, the input operation is a continuous input, and the first input operation and the second input operation are two parts of the continuous input that are mutually connected.
8. A data processing apparatus, the apparatus comprising:
an object display unit for displaying object content within a display area;
the area selection unit is used for receiving selection of at least part of the object contents and marking a selected content selection area in the object contents;
a first operation acquisition unit configured to acquire a first input operation within the display area;
the first boundary determining unit is used for determining a boundary to be adjusted of the content selected area according to the input position of the first input operation when the first input operation meets a preset selected area adjusting condition; wherein the input position of the first input operation is any position in the display area; the input position of the first input operation meeting the selected area adjusting condition is different from the position of any boundary of the content selected area;
the first input operation meeting the preset selected area adjusting condition is a knocking operation with the sound frequency input in the display area being a preset sound frequency.
9. The apparatus of claim 8, wherein the first boundary determining unit comprises:
and the first boundary determining subunit is used for determining at least one target boundary line to be subjected to position transferring from the boundary lines of the content selected area according to the input position of the first input operation.
10. The apparatus of claim 8 or 9, further comprising:
the second operation acquisition unit is used for acquiring a second input operation input in the display area after the boundary determination unit determines the boundary to be adjusted;
and the first area adjusting unit is used for adjusting the position of the boundary to be adjusted according to the second input operation so as to change the area range of the area selected by the content, wherein the second input operation is different from the first input operation.
11. The apparatus of claim 10, wherein when the first boundary determining unit comprises the first boundary determining subunit, then the first region adjusting unit comprises:
and the first area adjusting subunit is used for adjusting the position of the target boundary line according to the second input operation so as to change the area range of the area selected by the content.
12. The apparatus of claim 8, further comprising:
a second boundary determining unit, configured to, when the input position of the first input operation is on the boundary of the content selected area, take the boundary where the input position of the first input operation is located as a target boundary to be subjected to position mobilization;
and the second area adjusting unit is used for adjusting the position of the target boundary according to the second input operation when the second input operation that the input starting point is positioned on the target boundary is detected.
13. The apparatus according to claim 8, wherein the first input operation in the first boundary determination unit satisfying a preset selected region adjustment condition is an input always for the same position point within the display region.
CN201510124646.5A 2015-03-20 2015-03-20 Data processing method and device Active CN104679408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510124646.5A CN104679408B (en) 2015-03-20 2015-03-20 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510124646.5A CN104679408B (en) 2015-03-20 2015-03-20 Data processing method and device

Publications (2)

Publication Number Publication Date
CN104679408A CN104679408A (en) 2015-06-03
CN104679408B true CN104679408B (en) 2020-02-21

Family

ID=53314549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510124646.5A Active CN104679408B (en) 2015-03-20 2015-03-20 Data processing method and device

Country Status (1)

Country Link
CN (1) CN104679408B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183473A (en) * 2015-09-07 2015-12-23 广州视睿电子科技有限公司 Erasure frame range determining method and system
CN106681605A (en) * 2016-12-01 2017-05-17 深圳市金立通信设备有限公司 Character selecting method and terminal
CN107404582A (en) * 2017-07-30 2017-11-28 安徽云帮邦网络技术有限公司 A kind of cell phone system text input program
CN110032324B (en) * 2018-01-11 2024-03-05 荣耀终端有限公司 Text selection method and terminal
CN109876429B (en) * 2019-01-24 2023-01-20 吴宏琴 Direction control method based on game scene, mobile terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023789A (en) * 2009-09-22 2011-04-20 宏达国际电子股份有限公司 Data selection method and system thereof
CN104049933A (en) * 2013-03-11 2014-09-17 联想(北京)有限公司 Information processing method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102044701B1 (en) * 2013-07-10 2019-11-14 엘지전자 주식회사 Mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023789A (en) * 2009-09-22 2011-04-20 宏达国际电子股份有限公司 Data selection method and system thereof
CN104049933A (en) * 2013-03-11 2014-09-17 联想(北京)有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN104679408A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
CN104679408B (en) Data processing method and device
EP2565770B1 (en) A portable apparatus and an input method of a portable apparatus
CN110362245B (en) Touch input cursor manipulation
US11928326B2 (en) Activating a camera function within a content management application
KR101838260B1 (en) Gestures for selecting text
EP4354221A1 (en) User interface for camera effects
US9627007B2 (en) Method for displaying information and electronic device thereof
EP2430766B1 (en) Image processing method for mobile terminal
US20140310638A1 (en) Apparatus and method for editing message in mobile terminal
EP2487578A1 (en) Method for controlling screen of mobile terminal
US8542199B2 (en) Image processing apparatus, image processing method, and program
US20150248236A1 (en) Method and device for determining cursor display position
CN105607793B (en) Method for adjusting window and electronic equipment
US20130141467A1 (en) Data display method and mobile device adapted thereto
EP2613247A2 (en) Method and apparatus for displaying keypad in terminal having touch screen
KR20150124235A (en) User terminal device, and Method for controlling for User terminal device, and multimedia system thereof
EP2902897A1 (en) Word processing method and apparatus for touchscreen intelligent device
US9747020B2 (en) Information transmitting method, device and terminal
CN106201293B (en) Text selection method and device and text processing method and device
WO2014154055A1 (en) Method, apparatus and terminal for selecting text
CN109496335A (en) User interface and method for zoom function
CN109101163B (en) Long screen capture method and device and mobile terminal
US20150074595A1 (en) Electronic Book Apparatus, Page Feeding Method, and Page Feeding Program of Electronic Book
CN103259927B (en) Method for adjusting position of mobile terminal menu and mobile terminal
CN102637107A (en) Drawing operation method

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