CN107885439B - Note segmentation method and mobile terminal - Google Patents

Note segmentation method and mobile terminal Download PDF

Info

Publication number
CN107885439B
CN107885439B CN201711250696.3A CN201711250696A CN107885439B CN 107885439 B CN107885439 B CN 107885439B CN 201711250696 A CN201711250696 A CN 201711250696A CN 107885439 B CN107885439 B CN 107885439B
Authority
CN
China
Prior art keywords
target
note
segmentation
determining
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
CN201711250696.3A
Other languages
Chinese (zh)
Other versions
CN107885439A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711250696.3A priority Critical patent/CN107885439B/en
Publication of CN107885439A publication Critical patent/CN107885439A/en
Application granted granted Critical
Publication of CN107885439B publication Critical patent/CN107885439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The invention provides a note segmentation method and a mobile terminal, wherein the method comprises the following steps: establishing a dividing line in the displayed target note content according to the received first dividing operation; determining intermediate segmentation content in the note content according to the position of the segmentation line; generating an operation control on the intermediate segmentation content; if a second segmentation operation on the operation control is received, determining a target segmentation character corresponding to the second segmentation operation, wherein the target segmentation character is a character in the intermediate segmentation content; and dividing the target note content by taking the target division character as a division point. The embodiment of the invention reduces the operation difficulty of note segmentation.

Description

Note segmentation method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a note segmentation method and a mobile terminal.
Background
With the development and popularization of smart phones, the functions of smart phones are increasingly powerful, and users prefer to record life drops by using a note function instead of a note. After the user performs note editing, the content of the current note may be divided into two or more notes for easy viewing. However, the existing note segmentation generally selects to copy the content of the current note part, then creates a new note, and pastes the new note, and the note segmentation operation is cumbersome.
Disclosure of Invention
The embodiment of the invention provides a note segmentation method and a mobile terminal, and aims to solve the problem that the note segmentation operation in the prior art is complex.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a note segmentation method, applied to a mobile terminal, including:
detecting a segmentation operation on the target note;
if a preset first segmentation operation is detected, determining the middle segmentation content of the target note based on the first segmentation operation;
displaying an operation control in a preset area of the middle segmentation content;
if a preset second segmentation operation is detected, determining a target segmentation character corresponding to the second segmentation operation;
dividing the target note by taking the target division character as a division point to generate a first sub note and a second sub note;
the intermediate segmentation content is characters in a target row or a target column of the target note content; the target segmentation character is a character in the intermediate segmentation content.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the detection module is used for detecting the segmentation operation on the target note;
the content determination module is used for determining the middle segmentation content of the target note based on a first segmentation operation if the preset first segmentation operation is detected;
the display module is used for displaying the operation control in the preset area of the middle segmentation content;
the character determination module is used for determining a target segmentation character corresponding to a preset second segmentation operation if the preset second segmentation operation is detected;
the processing module is used for dividing the target note by taking the target division character as a division point to generate a first sub note and a second sub note;
the intermediate segmentation content is characters in a target row or a target column of the target note content; the target segmentation character is a character in the intermediate segmentation content.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the note segmentation method described above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the above note segmentation method.
In this way, in the embodiment of the present invention, by detecting the dividing operation on the target note, and when the first dividing operation is detected, determining the intermediate divided content, then displaying the operation control in the preset area of the intermediate divided content, and detecting the second dividing operation based on the operation control, the target note is divided according to the target dividing point determined by the second dividing operation, and the first sub note and the second sub note are generated. Compared with the prior art that the content in the original note is pasted and copied to the newly-built note, the note segmentation method provided by the embodiment of the invention reduces the operation difficulty of note segmentation. Meanwhile, the note segmentation is directly carried out on the basis of the target note content, so that the error rate of note segmentation can be reduced.
Drawings
FIG. 1 is a flow chart of a note segmentation method provided by an embodiment of the present invention;
fig. 2 is one of note display interface diagrams of a note segmentation process in the note segmentation method according to the embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating bending of a screen during note segmentation in the note segmentation method according to the embodiment of the present invention;
fig. 4 is a second memo display interface diagram of a memo segmentation process in the memo segmentation method according to the embodiment of the present invention;
fig. 5 is a third memo display interface diagram in the memo segmentation process in the memo segmentation method according to the embodiment of the present invention;
fig. 6 is a fourth illustration of a note display interface of a note segmentation process in the note segmentation method according to the embodiment of the present invention;
fig. 7 is a fifth illustration of a note display interface diagram of a note segmentation process in the note segmentation method according to the embodiment of the present invention;
fig. 8 is a sixth illustration of a note display interface diagram of a note segmentation process in the note segmentation method according to the embodiment of the present invention;
fig. 9 is a seventh illustration of a note display interface diagram of a note segmentation process in the note segmentation method according to the embodiment of the present invention;
fig. 10 is an eighth memo display interface diagram of a memo segmentation process in the memo segmentation method according to the embodiment of the present invention;
FIG. 11 is a ninth illustration of a note display interface diagram of a note segmentation process in the note segmentation method according to an embodiment of the present invention;
FIG. 12 is a tenth illustration of a note display interface of a note segmentation process in the note segmentation method according to an embodiment of the present invention;
FIG. 13 is an eleventh diagram of a note display interface of a note segmentation process in the note segmentation method according to the embodiment of the present invention;
fig. 14 is one of the structural diagrams of a mobile terminal provided in an embodiment of the present invention;
fig. 15 is a second structural diagram of a mobile terminal according to an 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 some, not all, embodiments of the present invention. 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.
Referring to fig. 1, fig. 1 is a flowchart of a note segmentation method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step 101, detecting a segmentation operation on a target note.
The note segmentation method provided by the embodiment of the invention is mainly applied to the mobile terminal and is used for segmenting notes. In this step, the target note is a note that the user is viewing, specifically, the target note may be a note currently being edited, or a note stored in a local database. For example, in the process of editing the note, if a note splitting operation is detected, the note splitting process of the embodiment may be performed; in the note process of viewing history editing, if a note segmentation operation is detected, the note segmentation process in this embodiment may also be performed.
Step 102, if a preset first segmentation operation is detected, determining the middle segmentation content of the target note based on the first segmentation operation.
It should be understood that the intermediate segmented content may be a character in a target row or a target column of the target note content. When the target note content is divided, the division in the row direction and the division in the column direction are included. For example, the division may be performed first in the row direction and then in the column direction, or the division may be performed first in the column direction and then in the row direction. When firstly carrying out segmentation in the row direction and then carrying out segmentation in the column direction, taking the middle segmentation content determined according to the first segmentation operation as the character in the target row; when the division is first performed in the column direction and then performed in the row direction, the intermediate division contents determined according to the above-described first division operation are characters in the target column.
The following description will be given taking as an example a case where division is first performed in the row direction and then division is performed in the column direction in each embodiment. The intermediate division content may be a part of characters in the target line, or may be all characters in the target line.
And 103, displaying an operation control in a preset area of the middle segmentation content.
In this embodiment, the presentation form of the operation control may be set according to actual needs, and is not further limited herein, and the operation control is used for segmenting the intermediate segmentation content.
And 104, if a preset second segmentation operation is detected, determining a target segmentation character corresponding to the second segmentation operation.
In this step, the form of the second dividing operation may be set according to actual needs, and may be, for example, a moving operation, a double-click operation, or the like. Further, a combination operation of a plurality of operations is also possible. In this embodiment, the operation control is associated with each character in the intermediate segmented content.
And 105, dividing the target note by taking the target division character as a division point to generate a first sub note and a second sub note.
In this step, the target divided character is a character in the intermediate divided content. The first division operation is to divide the lines of the target note content, and the division points are divided into columns, so that the target note content is divided based on the division points to form two notes. It should be understood that the division into multiple notes is required, and the operations of steps 101 to 105 may be performed again, i.e., the division of the target note content into multiple notes may be achieved.
In this way, in the embodiment of the present invention, by detecting the dividing operation on the target note, and when the first dividing operation is detected, determining the intermediate divided content, then displaying the operation control in the preset area of the intermediate divided content, and detecting the second dividing operation based on the operation control, the target note is divided according to the target dividing point determined by the second dividing operation, and the first sub note and the second sub note are generated. Compared with the prior art that the content in the original note is pasted and copied to the newly-built note, the note segmentation method provided by the embodiment of the invention reduces the operation difficulty of note segmentation. Meanwhile, the note segmentation is directly carried out on the basis of the target note content, so that the error rate of note segmentation can be reduced.
It should be noted that the specific form of the first dividing operation can be set according to actual needs. In this embodiment, preferably, the first splitting operation is a bending operation of bending the screen of the mobile terminal, or the first splitting operation is a sliding operation on the screen of the mobile terminal. For example, in this embodiment, when the screen is a flexible screen, the first dividing operation may be a bending operation of bending the screen or a sliding operation; when the screen is not a rigid screen, the first division operation may be a sliding operation. Different segmentation operation modes are set for different screens, so that the flexibility of segmentation operation can be improved, and the application range of the note segmentation method is also improved.
The following describes in detail different ways of dividing the first division operation, taking the target note content shown in fig. 2 as an example:
for example, in the first embodiment, the first division operation is a folding operation of folding the screen, and the determining the middle division content of the target note based on the first division operation includes:
step 1021, detecting the bending operation of the operator of the mobile terminal to the screen of the mobile terminal.
In this embodiment, the screen is a flexible screen, and a user can perform bending operation on the screen. Specifically, as shown in fig. 2, after the target note is displayed, the bending operation of the operator of the mobile terminal on the screen may be detected in real time.
In step 1022, if a bending operation is detected, a bending angle of the screen is obtained.
In this step, if the bending operation is detected, a current bending angle of the flexible screen is obtained, as shown in fig. 3, where the bending angle is an included angle α between screens of the flexible screen on both sides of a folding line, and the folding line is a folding line generated by the bending operation.
And 1023, if the bending angle is smaller than a preset first threshold value, displaying a folding line in the displayed target note content.
When the bending angle is smaller than the bending angle, the folding line generated by bending is displayed, and the content of the target note is divided into two parts through the folding line. The first part of content comprises 'the note 1 to be divided is the content of a first note and becomes the first note after being divided', and the second part of content comprises 'the content of the note'. 2. This is the content of the second note, which will be the second note after segmentation ". The display form of the folding line can be set according to actual needs, for example, in the embodiment, it can be a broken line.
Step 1024 detects the straightness of the fold line.
As shown in fig. 4, the folding line is taken as a horizontal line (i.e., a line in the X direction), and is used for example description of division in the row direction. And acquiring coordinate values ydis of points on the folding line which are separated by a preset distance in the vertical direction (namely Y direction) of the folding line. As shown in fig. 4, the folding line is provided with 5 points, and coordinates of the 5 points are ydis1, ydis2, ydis3, ydis4 and ydis5, respectively. And calculating the closeness d of the acquired ydis of the point through a preset algorithm, wherein the closeness d is straightness. The proximity d is calculated, for example, by the following formula:
Figure BDA0001491665710000061
and yndis represents the coordinate value of the nth point, and the value of n is1, 2, 3.
Figure BDA0001491665710000062
And 1025, if the straightness of the folding line is detected to be smaller than a preset second threshold value, determining the middle segmentation content of the target note according to the position of the folding line.
When the straightness of the folding line is smaller than a preset value, the folding operation can be identified as effective operation, and then the middle segmentation content can be determined according to the position of the folding line.
Specifically, in one case, if the first dividing operation is a dividing operation on a line, the determining the intermediate division content of the target note according to the position of the folding line includes:
if the length direction of the folding line is consistent with the row direction of the target note content, determining a row, which is on the first side or the second side of the folding line and is closest to the folding line, in the target note content as a target row;
and determining all characters in the target line as intermediate segmentation content.
The mobile terminal establishes a rectangular coordinate system with the transverse direction as the X direction and the longitudinal direction as the Y direction, a coordinate value can be generated for the position of each character according to the content of the target note, a target row closest to the folding line can be obtained by traversing a coordinate value yndis of each row of characters in the Y direction (wherein n represents the row number, and n is1, 2, 3. cndot., n), and according to the absolute value of the difference between the yndis and the coordinate value of the dividing line in the Y direction, and all the characters of the target row are used as the intermediate dividing content. As shown in fig. 5, the coordinate value of the fold line in the Y direction is ydis, and the target line closest to the fold line is row 3, which corresponds to the coordinate value in the Y direction being Y3 dis.
In another case, if the first dividing operation is a dividing operation on a row, the determining the intermediate divided content of the target note according to the position of the folding line includes:
if the length direction of the folding line is consistent with the column direction of the target note content, determining a column, which is on the first side or the second side of the folding line and is closest to the folding line, in the target note content as a target column;
determining all characters in the target column as intermediate segmentation content;
wherein the first side and the second side are two sides of the folding line in the length direction.
Compared with the previous case, only the difference between the target row and the target column is determined, and the manner of determining the target column is consistent with that of determining the target row, which is not described in detail herein.
It should be understood that when the straightness of the folding line is greater than or equal to the preset value, the bending operation can be identified as an invalid operation, and note division is not performed. In the embodiment, the folding lines can be generated in a bending mode for the flexible screen, and the middle division content is determined according to the folding lines, so that the division of the rows or columns of the target note content is realized, and the interestingness of note division can be improved.
In a second embodiment, the first dividing operation is a sliding operation, and the determining the intermediate divided content of the target note based on the first dividing operation includes:
and step 1026, detecting a sliding operation of the operator of the mobile terminal on the target note.
Specifically, in this embodiment, the screen may be a flexible screen or a rigid screen. Specifically, as shown in fig. 6, after the target note is displayed, the sliding operation of the operator of the mobile terminal on the screen of the mobile terminal may be detected in real time.
Step 1027, if a sliding operation is detected, determining whether the length of a sliding track of the sliding operation is greater than a preset third threshold value;
step 1028, if the length of the sliding track corresponding to the sliding operation is greater than the third threshold, detecting the straightness of the sliding track;
step 1029, if the straightness of the sliding track is greater than a preset fourth threshold, determining the middle segmentation content of the target note according to the position of the sliding track.
If the operator of the mobile terminal is detected to slide from the position shown in fig. 6 to the position shown in fig. 7, the length of the slide trajectory of the sliding operation is determined. When the length of the sliding track is greater than the preset length, the straightness of the sliding track is determined, the determining method of the straightness is the same as that of the first embodiment, and specific reference may be made to the description of the first embodiment, which is not described herein again. When the straightness is greater than the preset length and the straightness is greater than the preset value, the effective segmentation operation is determined, and then the middle segmentation content of the target note can be determined according to the position of the sliding track.
Specifically, in one case, if the first dividing operation is a dividing operation on a line, determining the middle dividing content of the target note according to the position of the sliding track includes:
if the length direction of the sliding track is consistent with the row direction of the target note content, determining a row which is on the first side or the second side of the sliding track and is closest to the sliding track in the target note content as a target row;
and determining all characters in the target line as intermediate segmentation content.
The mobile terminal establishes a rectangular coordinate system with the transverse direction as the X direction and the longitudinal direction as the Y direction, a coordinate value can be generated for the position of each character according to the content of the target note, a target row closest to the folding line can be obtained by traversing a coordinate value yndis of each row of characters in the Y direction (wherein n represents the row number, and n is1, 2, 3. cndot., n), and according to the absolute value of the difference between the yndis and the coordinate value of the dividing line in the Y direction, and all the characters of the target row are used as the intermediate dividing content.
In another case, if the first dividing operation is a dividing operation on a line, determining the middle dividing content of the target note according to the position of the sliding track includes:
if the length direction of the sliding track is consistent with the column direction of the target note content, determining a column which is on the first side or the second side of the sliding track and is closest to the sliding track in the target note content as a target column;
determining all characters in the target column as intermediate segmentation content;
wherein the first side and the second side are two sides of the sliding track in the length direction.
Compared with the previous case, only the difference between the target row and the target column is determined, and the manner of determining the target column is consistent with that of determining the target row, which is not described in detail herein.
It should be understood that when the straightness of the folding line is greater than or equal to the preset value, the sliding operation can be identified as an invalid operation, and the notes are not divided. In this embodiment, the screen may obtain a sliding track in a sliding manner, and determine the middle division content according to the sliding track, so as to implement division of the row or column of the target note content, thereby improving the application range of note division.
It should be noted that the operation control may be an operation line and a selection control that are set corresponding to each character, and the forms of the second segmentation operations corresponding to different operation controls are different, which will be described in detail below.
Firstly, the method comprises the following steps: the operation control is an operation line which is arranged corresponding to each character.
The step 103 includes:
and step 1031, determining a target side edge for displaying a preset operation line based on the middle segmentation content.
In this step, the target side is a side of the middle division content, and when the middle division content is a character of a target line, the target side is an area between the target line and any adjacent line; when the middle division content is a character of a target column, the target side is an area between the target column and any adjacent column. Specifically, as shown in fig. 8, the target side is the upper side, i.e., the area between the target row and the previous row.
Step 1032, displaying corresponding operation lines on the target side of each character of the middle division content.
Wherein each character corresponds to an operation line.
Specifically, the display form of the operation line may be set according to actual needs, as shown in fig. 8, and in this embodiment, the operation line may be displayed as a dotted line. In addition, in order to facilitate the display of the operation lines, the content of the target note may be divided on the target side of the middle divided content to increase the line pitch or the column pitch between the first partial content and the second partial content which are divided by the first dividing operation.
Further, in the case where the operation line is displayed, the second division operation may be a slide operation with respect to the operation line, or a click or drag operation with respect to the operation line.
Specifically, the step 104 includes:
if the sliding operation on at least one operation line is detected, determining a character corresponding to the operation line through which the moving track of the sliding operation passes for the first time as a target segmentation character;
or if a preset first operation on a target operation line is detected, determining a character corresponding to the target operation line as a target segmentation character, wherein the first operation comprises a click operation and a drag operation.
It should be noted that the operation input form of the above-described second division operation may be determined according to the supported function (input form of operation) of the mobile terminal. For example, when the mobile terminal supports a touch operation, the second division operation may be a touch operation on a screen of the mobile terminal, and when the mobile terminal supports an idle operation, the second division operation may be an idle input operation on the screen. That is, in the present embodiment, the click operation may include a touch click operation and an empty click operation, and the drag operation may also include a touch drag operation and an empty drag operation.
In this embodiment, when the second division operation is a sliding operation, each time the sliding trajectory passes through one operation line, the operation line is controlled to cancel the display, so as to remind the operator of the operation line currently passed by the sliding. Specifically, from the position shown in fig. 9 to the position shown in fig. 10, the slide trajectory passes through the operation lines corresponding to the "2", "", "yes", and "fifth" characters in this order. At this time, the character "2" corresponding to the operation line through which the slide trajectory passes first is set as the target divided character.
And when the second segmentation operation is the operation on the target line, determining the character corresponding to the target line as the target segmentation character. For example, when the division operation is performed on the operation line corresponding to the character "2", the character "2" is determined as the target divided character.
In this embodiment, since the corresponding operation line is directly distinguished and displayed on the target side of each character of the middle division content, the division operation can be realized by operating the operation line, which is simple in operation. And can set up multiple different second segmentation mode, consequently the flexibility of cutting apart the operation is stronger, can be suitable for different users' hobby demand, and the simple operation.
Secondly, the method comprises the following steps: the operation control is a selection control.
The step 103 includes:
and 1033, if a preset second operation on the target character of the middle segmentation content is detected, displaying a character selection control on the target character.
The second operation comprises a clicking operation, a long-press operation and a sliding gesture operation.
In this embodiment, the click operation may be a single click operation or a double click operation, the long press operation is a press operation whose duration is longer than a preset duration, and the slide gesture operation is a preset graph, such as a circle or a triangle, along a trajectory corresponding to a slide gesture on the target character.
As shown in fig. 11 and 12, in this embodiment, if the operator needs to select the character "2" as the target segmentation character, the operator can press the character "2" with a long finger, and at this time, the selection control is displayed on the character "2". If the user needs to switch the currently selected character, the user can also press other characters for a long time again, so that the display state of the selection control on the character 2 is cancelled, and the selection control is displayed on other characters.
It should be understood that, in the embodiment, the selection control may be a selection frame, or may also be a sliding control bar, and the second segmentation operation corresponding to the selection control of different forms may also be different from the following detailed description.
Specifically, when the operation control is a selection control, the step 104 includes:
when the character selection control is a marquee with a preset shape, if dragging operation on the marquee is detected, determining characters contained in the marquee at the moment of finishing dragging as target segmentation characters;
when the character selection control is a preset sliding control bar, if dragging operation of a sliding block on the sliding control bar is detected, determining a character corresponding to the dragging ending position of the sliding block as a target segmentation character.
In this embodiment, when the selection control is the marquee, the second segmentation operation may be a dragging operation for the marquee, at this time, the dragging for the marquee will drive characters in the marquee to move together, and at this time, the characters included in the marquee at the end of the dragging may be determined as the target segmentation characters. Specifically, the drag operation may be an upward, downward, leftward, or rightward drag operation. As shown in fig. 12, after the user long-presses the character "2", a marquee is displayed on the character "2", a draggable direction is displayed on the marquee, and the user may drag up or down as instructed.
When the selection control is a sliding control bar, the second segmentation operation may be a dragging operation of a slider on the sliding control bar. For example, in this embodiment, the sliding control bar may cover all the characters of the middle divided content, two sliders may be respectively disposed at two ends of the sliding control bar, and all the characters of the middle divided content are located between the two sliders. And determining the character corresponding to the dragging ending position of the dragged slider as the target segmentation character by dragging any slider.
In this embodiment, since the marquee or the sliding control bar is directly displayed on the middle divided content, the division operation can be realized by dragging the marquee or the sliding control bar, which is simple in operation. And various display forms exist, so that the method can be suitable for the favorite requirements of different users, and is convenient and fast to operate.
It should be appreciated that for different forms of the second segmentation operation, the content of the corresponding generated first sub-notes and second sub-notes is also different. In this embodiment, the step 105 includes:
step 1051, according to the second segmentation operation, determining the sub-note attribution of the target segmentation character.
Wherein, the attributions of the sub notes corresponding to the target characters are different in different second segmentation operations. The following explains the manner of attribution of the sub note of the target character, which is a different form of the second division operation in the above embodiment:
in one embodiment, the second dividing operation is a sliding operation on at least one operation line;
the step 1051 includes:
if the sliding direction of the sliding operation is a first preset direction, determining the attribute of the sub-note of the target segmentation character as a first sub-note;
and if the sliding direction of the sliding operation is a second preset direction, determining the attribute of the sub-note of the target segmentation character as a second sub-note.
In this embodiment, the first predetermined direction and the second predetermined direction may be opposite to each other. If the first preset direction is leftward sliding, the second preset direction is rightward sliding: determining that the target segmentation character "2" is the content in the second sub-note if the sliding direction is the second preset direction according to the sliding process shown in fig. 6 to 7; if the sliding is reversed, the target segmentation character "2" is determined to be the content in the first sub-note.
In another embodiment, the second dividing operation is a dragging operation on a target operation line, or the second dividing operation is a dragging operation on a preset-shaped marquee, or the second dividing operation is a dragging operation on a slider on a preset slide control bar;
the step 1051 includes:
if the dragging direction of the dragging operation is a third preset direction, determining the attribute of the sub note of the target segmentation character as a first sub note;
and if the dragging direction of the dragging operation is a fourth preset direction, determining the attribute of the sub-note of the target segmentation character as a second sub-note.
In this embodiment, the third preset direction and the fourth preset direction may be opposite to each other. If the third preset direction is downward dragging, the fourth preset direction is upward dragging: as shown in fig. 12, when the selection box is dragged upward, the target division character "2" is determined as the content in the first sub-note, and when the selection box is dragged downward, the target division character "2" is determined as the content in the second sub-note.
In another embodiment, the second division operation is a click operation on a target operation line;
the step 1051 includes:
and if the second segmentation operation is a click operation on a target operation line, determining the pre-stored sub-note attribution associated with the click operation as the sub-note attribution of the target segmentation character.
In this embodiment, the sub note attribution of the target segmented character corresponding to the click operation may be set in advance. For example, in all the click operations, the target segmentation characters belong to the content of the first sub-note or the content of the second sub-note; in addition, different clicking operations can be set to correspond to different sub-note attributions, for example, clicking the corresponding target segmentation character to be the content of the first sub-note, and double clicking the corresponding target segmentation character to be the content of the second sub-note.
Step 1052, if the sub note belongs to a first sub note, determining all characters in the target note before the target segmentation character and the target segmentation character as the content of the first sub note, and determining all characters in the target note after the target segmentation character as the content of a second sub note, so as to generate a first sub note and a second sub note;
step 1053, if the sub-note belongs to a second sub-note, determining all characters in the target note before the target segmentation character as the content of the first sub-note, and determining all characters in the target note after the target segmentation character and the target segmentation character as the content of the second sub-note, so as to generate the first sub-note and the second sub-note.
Specifically, when the sliding operation shown in fig. 6 to 7 is performed or the operation of dragging down is performed in fig. 12, the target division character "2" is determined as the content in the second sub-note, and the content of the first sub-note and the second sub-note generated after division may be as shown in fig. 13, where the content in the first sub-note includes "this is one note to be divided 1, this is the content of the first note, and this is the content of the first note to be divided. "the content in the second sub note includes" 2 ", which is the content of the second note, and will be the second note after division".
In this embodiment, different second segmentation operations can be performed on display controls of different display forms, so that segmentation operations on the target notes are realized, and therefore, the note segmentation modes are diverse.
Referring to fig. 14, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
a detection module 1401 for detecting a segmentation operation on a target note;
a content determining module 1402, configured to determine, if a preset first segmentation operation is detected, intermediate segmentation content of the target note based on the first segmentation operation;
a display module 1403, configured to display an operation control in a preset region of the middle division content;
a character determining module 1404, configured to determine, if a preset second segmentation operation is detected, a target segmented character corresponding to the second segmentation operation;
a processing module 1405, configured to divide the target note using the target division character as a division point, and generate a first sub note and a second sub note;
the intermediate segmentation content is characters in a target row or a target column of the target note content; the target segmentation character is a character in the intermediate segmentation content.
Optionally, the first splitting operation is a bending operation of bending the screen of the mobile terminal, or the first splitting operation is a sliding operation on the screen of the mobile terminal.
Optionally, the first dividing operation is a bending operation of bending the screen;
the content determination module 1402 includes:
the first detection unit is used for detecting the bending operation of an operator of the mobile terminal on the screen of the mobile terminal;
the obtaining unit is used for obtaining the bending angle of the screen if the bending operation is detected;
the display unit is used for displaying a folding line in the displayed target note content if the bending angle is smaller than a preset first threshold value;
the second detection unit is used for detecting the straightness of the folding line;
and the first determining unit is used for determining the middle segmentation content of the target note according to the position of the folding line if the flatness of the folding line is detected to be smaller than a preset second threshold value.
Optionally, the first determining unit is specifically configured to: if the length direction of the folding line is consistent with the row direction of the target note content, determining a row which is on the first side or the second side of the folding line and is closest to the folding line in the target note content as a target row, and determining all characters in the target row as middle segmentation content;
if the length direction of the folding line is consistent with the column direction of the target note content, determining a column which is on the first side or the second side of the folding line and is closest to the folding line in the target note content as a target column, and determining all characters in the target column as middle segmentation content;
wherein the first side and the second side are two sides of the folding line in the length direction.
Optionally, the first splitting operation is a sliding operation;
the content determination module 1402 includes:
a third detection unit for detecting a sliding operation of an operator of the mobile terminal on the target note;
the judging unit is used for judging whether the length of a sliding track of the sliding operation is larger than a preset third threshold value or not if the sliding operation is detected;
a fourth detection unit, configured to detect a straightness of the sliding trajectory if a length of the sliding trajectory corresponding to the sliding operation is greater than the third threshold;
and the second determining unit is used for determining the middle segmentation content of the target note according to the position of the sliding track if the straightness of the sliding track is greater than a preset fourth threshold.
Optionally, the second determining unit is specifically configured to: if the length direction of the sliding track is consistent with the row direction of the target note content, determining a row which is on the first side or the second side of the sliding track and is closest to the sliding track in the target note content as a target row, and determining all characters in the target row as middle segmentation content;
if the length direction of the sliding track is consistent with the column direction of the target note content, determining a column which is on the first side or the second side of the sliding track and is closest to the sliding track in the target note content as a target column, and determining all characters in the target column as middle segmentation content;
wherein the first side and the second side are two sides of the sliding track in the length direction.
Optionally, the display module 1403 is specifically configured to: determining a target side edge for displaying a preset operation line based on the middle segmentation content; and respectively displaying corresponding operation lines on the target side of each character of the middle segmentation content; wherein each character corresponds to an operation line.
Optionally, the character determining module 1404 is specifically configured to: if the sliding operation on at least one operation line is detected, determining a character corresponding to the operation line through which the moving track of the sliding operation passes for the first time as a target segmentation character; or if a preset first operation on a target operation line is detected, determining a character corresponding to the target operation line as a target segmentation character, wherein the first operation comprises a click operation and a drag operation.
Optionally, the display module 1403 is specifically configured to: if a preset second operation on the target character of the middle segmentation content is detected, displaying a character selection control on the target character; the second operation comprises a clicking operation, a long-press operation and a sliding gesture operation.
Optionally, the character determining module 1404 is specifically configured to: when the character selection control is a marquee with a preset shape, if dragging operation on the marquee is detected, determining characters contained in the marquee at the moment of finishing dragging as target segmentation characters; and when the character selection control is a preset sliding control bar, if dragging operation of a sliding block on the sliding control bar is detected, determining a character corresponding to the dragging ending position of the sliding block as a target segmentation character.
Optionally, the processing module 1405 includes:
a third determining unit, configured to determine, according to the second segmentation operation, a sub note attribution of the target segmented character;
the processing unit is used for determining all characters positioned in front of the target segmentation character in the target note and the target segmentation character as the content of the first sub note and determining all characters positioned in back of the target segmentation character in the target note as the content of the second sub note to generate the first sub note and the second sub note if the sub note belongs to the first sub note; and if the sub-note belongs to a second sub-note, determining all characters positioned in the target note before the target segmentation character as the content of the first sub-note, determining all characters positioned in the target note after the target segmentation character and the target segmentation character as the content of the second sub-note, and generating the first sub-note and the second sub-note.
Optionally, the second dividing operation is a sliding operation on at least one operation line;
the third determining unit is specifically configured to: if the sliding direction of the sliding operation is a first preset direction, determining the attribute of the sub-note of the target segmentation character as a first sub-note; and if the sliding direction of the sliding operation is a second preset direction, determining the attribute of the sub-note of the target segmentation character as a second sub-note.
Optionally, the second segmentation operation is a dragging operation on a target operation line, or the second segmentation operation is a dragging operation on a marquee with a preset shape, or the second segmentation operation is a dragging operation on a slider on a preset sliding control bar;
the third determining unit is specifically configured to: if the dragging direction of the dragging operation is a third preset direction, determining the attribute of the sub note of the target segmentation character as a first sub note; and if the dragging direction of the dragging operation is a fourth preset direction, determining the attribute of the sub-note of the target segmentation character as a second sub-note.
Optionally, the second segmentation operation is a click operation on a target operation line;
the third determining unit is specifically configured to: and if the second segmentation operation is a click operation on a target operation line, determining the pre-stored sub-note attribution associated with the click operation as the sub-note attribution of the target segmentation character.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 13, and is not described herein again to avoid repetition.
Fig. 15 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 1500 includes, but is not limited to: a radio frequency unit 1501, a network module 1502, an audio output unit 1503, an input unit 1504, a sensor 1505, a display unit 1506, a user input unit 1507, an interface unit 1508, a memory 1509, a processor 1510, and a power supply 1511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 15 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 1510 is configured to detect a segmentation operation on the target note; if a preset first segmentation operation is detected, determining the middle segmentation content of the target note based on the first segmentation operation; displaying an operation control in a preset area of the middle segmentation content; if a preset second segmentation operation is detected, determining a target segmentation character corresponding to the second segmentation operation; dividing the target note by taking the target division character as a division point to generate a first sub note and a second sub note; the intermediate segmentation content is characters in a target row or a target column of the target note content; the target segmentation character is a character in the intermediate segmentation content.
Optionally, the first splitting operation is a bending operation of bending the screen of the mobile terminal, or the first splitting operation is a sliding operation on the screen of the mobile terminal.
Optionally, the first dividing operation is a bending operation of bending the screen;
the processor 1510 is further configured to: detecting the bending operation of an operator of the mobile terminal on a screen of the mobile terminal; if the bending operation is detected, obtaining the bending angle of the screen; if the bending angle is smaller than a preset first threshold value, displaying a folding line in the displayed target note content; detecting the flatness of the folding line; and if the straightness of the folding line is detected to be smaller than a preset second threshold value, determining the middle segmentation content of the target note according to the position of the folding line.
Optionally, the processor 1510 is further configured to:
if the length direction of the folding line is consistent with the row direction of the target note content, determining a row which is on the first side or the second side of the folding line and is closest to the folding line in the target note content as a target row, and determining all characters in the target row as middle segmentation content;
if the length direction of the folding line is consistent with the column direction of the target note content, determining a column which is on the first side or the second side of the folding line and is closest to the folding line in the target note content as a target column, and determining all characters in the target column as middle segmentation content;
wherein the first side and the second side are two sides of the folding line in the length direction.
Optionally, the first splitting operation is a sliding operation;
the processor 1510 is further configured to: detecting a sliding operation of an operator of the mobile terminal on the target note; if the sliding operation is detected, judging whether the length of a sliding track of the sliding operation is greater than a preset third threshold value; if the length of the sliding track corresponding to the sliding operation is larger than the third threshold value, detecting the straightness of the sliding track; and if the straightness of the sliding track is greater than a preset fourth threshold, determining the middle segmentation content of the target note according to the position of the sliding track.
Optionally, the processor 1510 is further configured to:
if the length direction of the sliding track is consistent with the row direction of the target note content, determining a row which is on the first side or the second side of the sliding track and is closest to the sliding track in the target note content as a target row, and determining all characters in the target row as middle segmentation content;
if the length direction of the sliding track is consistent with the column direction of the target note content, determining a column which is on the first side or the second side of the sliding track and is closest to the sliding track in the target note content as a target column, and determining all characters in the target column as middle segmentation content;
wherein the first side and the second side are two sides of the sliding track in the length direction.
Optionally, the processor 1510 is further configured to:
determining a target side edge for displaying a preset operation line based on the middle segmentation content; respectively displaying corresponding operation lines on the target side of each character of the middle segmentation content; wherein each character corresponds to an operation line.
Optionally, the processor 1510 is further configured to: if the sliding operation on at least one operation line is detected, determining a character corresponding to the operation line through which the moving track of the sliding operation passes for the first time as a target segmentation character; or if a preset first operation on a target operation line is detected, determining a character corresponding to the target operation line as a target segmentation character, wherein the first operation comprises a click operation and a drag operation.
Optionally, the processor 1510 is further configured to: if a preset second operation on the target character of the middle segmentation content is detected, displaying a character selection control on the target character; the second operation comprises a clicking operation, a long-press operation and a sliding gesture operation.
Optionally, the processor 1510 is further configured to: when the character selection control is a marquee with a preset shape, if dragging operation on the marquee is detected, determining characters contained in the marquee at the moment of finishing dragging as target segmentation characters; when the character selection control is a preset sliding control bar, if dragging operation of a sliding block on the sliding control bar is detected, determining a character corresponding to the dragging ending position of the sliding block as a target segmentation character.
Optionally, the processor 1510 is further configured to: determining the attribution of the sub notes of the target segmentation characters according to the second segmentation operation; if the sub-note belongs to a first sub-note, determining all characters positioned in front of a target segmentation character in the target note and the target segmentation character as the content of the first sub-note, determining all characters positioned in the rear of the target segmentation character in the target note as the content of a second sub-note, and generating the first sub-note and the second sub-note; and if the sub-note belongs to a second sub-note, determining all characters positioned in the target note before the target segmentation character as the content of the first sub-note, determining all characters positioned in the target note after the target segmentation character and the target segmentation character as the content of the second sub-note, and generating the first sub-note and the second sub-note.
Optionally, the second dividing operation is a sliding operation on at least one operation line; the processor 1510 is further configured to: if the sliding direction of the sliding operation is a first preset direction, determining the attribute of the sub-note of the target segmentation character as a first sub-note; and if the sliding direction of the sliding operation is a second preset direction, determining the attribute of the sub-note of the target segmentation character as a second sub-note.
Optionally, the second segmentation operation is a dragging operation on a target operation line, or the second segmentation operation is a dragging operation on a marquee with a preset shape, or the second segmentation operation is a dragging operation on a slider on a preset sliding control bar;
the processor 1510 is further configured to: if the dragging direction of the dragging operation is a third preset direction, determining the attribute of the sub note of the target segmentation character as a first sub note; and if the dragging direction of the dragging operation is a fourth preset direction, determining the attribute of the sub-note of the target segmentation character as a second sub-note.
Optionally, the second segmentation operation is a click operation on a target operation line; the processor 1510 is further configured to: and if the second segmentation operation is a click operation on a target operation line, determining the pre-stored sub-note attribution associated with the click operation as the sub-note attribution of the target segmentation character.
In this way, in the embodiment of the present invention, by detecting the dividing operation on the target note, and when the first dividing operation is detected, determining the intermediate divided content, then displaying the operation control in the preset area of the intermediate divided content, and detecting the second dividing operation based on the operation control, the target note is divided according to the target dividing point determined by the second dividing operation, and the first sub note and the second sub note are generated. Compared with the prior art that the content in the original note is pasted and copied to the newly-built note, the note segmentation method provided by the embodiment of the invention reduces the operation difficulty of note segmentation. Meanwhile, the note segmentation is directly carried out on the basis of the target note content, so that the error rate of note segmentation can be reduced.
It should be understood that, in the embodiment of the present invention, the rf unit 1501 may be configured to receive and transmit signals during a message transmission or a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1510; in addition, the uplink data is transmitted to the base station. In general, the radio frequency unit 1501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 1501 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 1502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 1503 may convert audio data received by the radio frequency unit 1501 or the network module 1502 or stored in the memory 1509 into an audio signal and output as sound. Also, the audio output unit 1503 may provide audio output related to a specific function performed by the mobile terminal 1500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1504 is used to receive audio or video signals. The input Unit 1504 may include a Graphics Processing Unit (GPU) 15041 and a microphone 15042, and the Graphics processor 15041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1506. The image frames processed by the graphic processor 15041 may be stored in the memory 1509 (or other storage medium) or transmitted via the radio frequency unit 1501 or the network module 1502. The microphone 15042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1501 in the case of the phone call mode.
The mobile terminal 1500 also includes at least one sensor 1505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 15061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 15061 and/or a backlight when the mobile terminal 1500 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); sensors 1505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 1506 is used to display information input by the user or information provided to the user. The Display unit 1506 may include a Display panel 15061, and the Display panel 15061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 1507 includes a touch panel 15071 and other input devices 15072. The touch panel 15071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 15071 (e.g., operations by a user on or near the touch panel 15071 using a finger, a stylus, or any suitable object or accessory). The touch panel 15071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1510 to receive and execute commands sent by the processor 1510. In addition, the touch panel 15071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 15071, the user input unit 1507 may include other input devices 15072. In particular, other input devices 15072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 15071 may be overlaid on the display panel 15061, and when the touch panel 15071 detects a touch operation thereon or nearby, the touch panel 15071 transmits the touch operation to the processor 1510 to determine the type of the touch event, and then the processor 1510 provides a corresponding visual output on the display panel 15061 according to the type of the touch event. Although in fig. 15, the touch panel 15071 and the display panel 15061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 15071 and the display panel 15061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 1508 is an interface for connecting external devices to the mobile terminal 1500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 1500 or may be used to transmit data between the mobile terminal 1500 and external devices.
The memory 1509 may be used to store software programs as well as various data. The memory 1509 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1509 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 1509 and calling data stored in the memory 1509, thereby monitoring the entire mobile terminal. Processor 1510 may include one or more processing units; preferably, the processor 1510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1510.
The mobile terminal 1500 may also include a power supply 1511 (such as a battery) for powering the various components, and the power supply 1511 may be logically coupled to the processor 1510 via a power management system that may be configured to manage charging, discharging, and power consumption.
In addition, the mobile terminal 1500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 1510, a memory 1509, and a computer program stored in the memory 1509 and capable of running on the processor 1510, where the computer program, when executed by the processor 1510, implements each process of the above-mentioned note segmentation method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above embodiment of the note segmentation method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (23)

1. A note segmentation method is applied to a mobile terminal and is characterized by comprising the following steps:
detecting a segmentation operation on the target note;
if a preset first segmentation operation is detected, determining the middle segmentation content of the target note based on the first segmentation operation;
displaying an operation control in a preset area of the middle segmentation content;
if a preset second segmentation operation is detected, determining a target segmentation character corresponding to the second segmentation operation;
dividing the target note by taking the target division character as a division point to generate a first sub note and a second sub note;
the intermediate segmentation content is characters in a target row or a target column of the target note content; the target segmentation character is a character in the intermediate segmentation content;
the first splitting operation is a bending operation of bending a screen of the mobile terminal;
the determining intermediate segmentation content of the target note based on the first segmentation operation comprises:
detecting the bending operation of an operator of the mobile terminal on a screen of the mobile terminal;
if the bending operation is detected, obtaining the bending angle of the screen;
if the bending angle is smaller than a preset first threshold value, displaying a folding line in the displayed target note content;
detecting the flatness of the folding line;
if the straightness of the folding line is smaller than a preset second threshold value, determining the middle segmentation content of the target note according to the position of the folding line;
alternatively, the first and second electrodes may be,
the first division operation is a sliding operation;
the determining intermediate segmentation content of the target note based on the first segmentation operation comprises:
detecting a sliding operation of an operator of the mobile terminal on the target note;
if the sliding operation is detected, judging whether the length of a sliding track of the sliding operation is greater than a preset third threshold value;
if the length of the sliding track corresponding to the sliding operation is larger than the third threshold value, detecting the straightness of the sliding track;
and if the straightness of the sliding track is greater than a preset fourth threshold, determining the middle segmentation content of the target note according to the position of the sliding track.
2. The method of claim 1, wherein determining the intermediate segmentation content of the target note based on the location of the fold line comprises:
if the length direction of the folding line is consistent with the row direction of the target note content, determining a row which is on the first side or the second side of the folding line and is closest to the folding line in the target note content as a target row, and determining all characters in the target row as middle segmentation content;
if the length direction of the folding line is consistent with the column direction of the target note content, determining a column which is on the first side or the second side of the folding line and is closest to the folding line in the target note content as a target column, and determining all characters in the target column as middle segmentation content;
wherein the first side and the second side are two sides of the folding line in the length direction.
3. The method according to claim 1, wherein the determining the intermediate segmentation content of the target note according to the position of the sliding track comprises:
if the length direction of the sliding track is consistent with the row direction of the target note content, determining a row which is on the first side or the second side of the sliding track and is closest to the sliding track in the target note content as a target row, and determining all characters in the target row as middle segmentation content;
if the length direction of the sliding track is consistent with the column direction of the target note content, determining a column which is on the first side or the second side of the sliding track and is closest to the sliding track in the target note content as a target column, and determining all characters in the target column as middle segmentation content;
wherein the first side and the second side are two sides of the sliding track in the length direction.
4. The method according to claim 1, wherein the step of displaying an operation control in the preset area of the middle split content comprises:
determining a target side edge for displaying a preset operation line based on the middle segmentation content;
respectively displaying corresponding operation lines on the target side of each character of the middle segmentation content;
wherein each character corresponds to an operation line.
5. The method according to claim 4, wherein the determining the target segmented character corresponding to the second segmentation operation if the preset second segmentation operation is detected comprises:
if the sliding operation on at least one operation line is detected, determining a character corresponding to the operation line through which the moving track of the sliding operation passes for the first time as a target segmentation character;
or if a preset first operation on a target operation line is detected, determining a character corresponding to the target operation line as a target segmentation character, wherein the first operation comprises a click operation and a drag operation.
6. The method according to claim 1, wherein the step of displaying an operation control in the preset area of the middle split content comprises:
if a preset second operation on the target character of the middle segmentation content is detected, displaying a character selection control on the target character;
the second operation comprises a clicking operation, a long-press operation and a sliding gesture operation.
7. The method of claim 6, wherein determining the target segmented character corresponding to the second segmentation operation if the second segmentation operation is detected comprises:
when the character selection control is a marquee with a preset shape, if dragging operation on the marquee is detected, determining characters contained in the marquee at the moment of finishing dragging as target segmentation characters;
when the character selection control is a preset sliding control bar, if dragging operation of a sliding block on the sliding control bar is detected, determining a character corresponding to the dragging ending position of the sliding block as a target segmentation character.
8. The method according to claim 5 or 7, wherein the dividing the target note with the target divided character as a dividing point to generate a first sub-note and a second sub-note comprises:
determining the attribution of the sub notes of the target segmentation characters according to the second segmentation operation;
if the sub-note belongs to a first sub-note, determining all characters positioned in front of a target segmentation character in the target note and the target segmentation character as the content of the first sub-note, determining all characters positioned in the rear of the target segmentation character in the target note as the content of a second sub-note, and generating the first sub-note and the second sub-note;
and if the sub-note belongs to a second sub-note, determining all characters positioned in the target note before the target segmentation character as the content of the first sub-note, determining all characters positioned in the target note after the target segmentation character and the target segmentation character as the content of the second sub-note, and generating the first sub-note and the second sub-note.
9. The method according to claim 8, wherein the second dividing operation is a sliding operation on at least one operation line;
the determining the attribution of the sub-notes of the target segmentation character according to the second segmentation operation comprises:
if the sliding direction of the sliding operation is a first preset direction, determining the attribute of the sub-note of the target segmentation character as a first sub-note;
and if the sliding direction of the sliding operation is a second preset direction, determining the attribute of the sub-note of the target segmentation character as a second sub-note.
10. The method according to claim 8, wherein the second segmentation operation is a dragging operation on a target operation line, or the second segmentation operation is a dragging operation on a marquee of a preset shape, or the second segmentation operation is a dragging operation on a slider on a preset slide control bar;
the determining the attribution of the sub-notes of the target segmentation character according to the second segmentation operation comprises:
if the dragging direction of the dragging operation is a third preset direction, determining the attribute of the sub note of the target segmentation character as a first sub note;
and if the dragging direction of the dragging operation is a fourth preset direction, determining the attribute of the sub-note of the target segmentation character as a second sub-note.
11. The method of claim 9, wherein the second segmentation operation is a click operation on a target operation line;
the determining the attribution of the sub-notes of the target segmentation character according to the second segmentation operation comprises:
and if the second segmentation operation is a click operation on a target operation line, determining the pre-stored sub-note attribution associated with the click operation as the sub-note attribution of the target segmentation character.
12. A mobile terminal, comprising:
the detection module is used for detecting the segmentation operation on the target note;
the content determination module is used for determining the middle segmentation content of the target note based on a first segmentation operation if the preset first segmentation operation is detected;
the display module is used for displaying the operation control in the preset area of the middle segmentation content;
the character determination module is used for determining a target segmentation character corresponding to a preset second segmentation operation if the preset second segmentation operation is detected;
the processing module is used for dividing the target note by taking the target division character as a division point to generate a first sub note and a second sub note;
the intermediate segmentation content is characters in a target row or a target column of the target note content; the target segmentation character is a character in the intermediate segmentation content;
the first splitting operation is a bending operation of bending a screen of the mobile terminal;
the content determination module includes:
the first detection unit is used for detecting the bending operation of an operator of the mobile terminal on the screen of the mobile terminal;
the obtaining unit is used for obtaining the bending angle of the screen if the bending operation is detected;
the display unit is used for displaying a folding line in the displayed target note content if the bending angle is smaller than a preset first threshold value;
the second detection unit is used for detecting the straightness of the folding line;
the first determining unit is used for determining the middle segmentation content of the target note according to the position of the folding line if the flatness of the folding line is detected to be smaller than a preset second threshold;
alternatively, the first and second electrodes may be,
the first division operation is a sliding operation;
the content determination module includes:
a third detection unit for detecting a sliding operation of an operator of the mobile terminal on the target note;
the judging unit is used for judging whether the length of a sliding track of the sliding operation is larger than a preset third threshold value or not if the sliding operation is detected;
a fourth detection unit, configured to detect a straightness of the sliding trajectory if a length of the sliding trajectory corresponding to the sliding operation is greater than the third threshold;
and the second determining unit is used for determining the middle segmentation content of the target note according to the position of the sliding track if the straightness of the sliding track is greater than a preset fourth threshold.
13. The mobile terminal according to claim 12, wherein the first determining unit is specifically configured to: if the length direction of the folding line is consistent with the row direction of the target note content, determining a row which is on the first side or the second side of the folding line and is closest to the folding line in the target note content as a target row, and determining all characters in the target row as middle segmentation content;
if the length direction of the folding line is consistent with the column direction of the target note content, determining a column which is on the first side or the second side of the folding line and is closest to the folding line in the target note content as a target column, and determining all characters in the target column as middle segmentation content;
wherein the first side and the second side are two sides of the folding line in the length direction.
14. The mobile terminal according to claim 12, wherein the second determining unit is specifically configured to: if the length direction of the sliding track is consistent with the row direction of the target note content, determining a row which is on the first side or the second side of the sliding track and is closest to the sliding track in the target note content as a target row, and determining all characters in the target row as middle segmentation content;
the second determining unit is specifically configured to: if the length direction of the sliding track is consistent with the column direction of the target note content, determining a column which is on the first side or the second side of the sliding track and is closest to the sliding track in the target note content as a target column, and determining all characters in the target column as middle segmentation content;
wherein the first side and the second side are two sides of the sliding track in the length direction.
15. The mobile terminal of claim 12, wherein the display module is specifically configured to: determining a target side edge for displaying a preset operation line based on the middle segmentation content; and respectively displaying corresponding operation lines on the target side of each character of the middle segmentation content; wherein each character corresponds to an operation line.
16. The mobile terminal of claim 15, wherein the character determination module is specifically configured to: if the sliding operation on at least one operation line is detected, determining a character corresponding to the operation line through which the moving track of the sliding operation passes for the first time as a target segmentation character; or if a preset first operation on a target operation line is detected, determining a character corresponding to the target operation line as a target segmentation character, wherein the first operation comprises a click operation and a drag operation.
17. The mobile terminal of claim 12, wherein the display module is specifically configured to: if a preset second operation on the target character of the middle segmentation content is detected, displaying a character selection control on the target character; the second operation comprises a clicking operation, a long-press operation and a sliding gesture operation.
18. The mobile terminal of claim 17, wherein the character determination module is specifically configured to: when the character selection control is a marquee with a preset shape, if dragging operation on the marquee is detected, determining characters contained in the marquee at the moment of finishing dragging as target segmentation characters; and when the character selection control is a preset sliding control bar, if dragging operation of a sliding block on the sliding control bar is detected, determining a character corresponding to the dragging ending position of the sliding block as a target segmentation character.
19. The mobile terminal according to claim 16 or 18, wherein the processing module comprises:
a third determining unit, configured to determine, according to the second segmentation operation, a sub note attribution of the target segmented character;
the processing unit is used for determining all characters positioned in front of the target segmentation character in the target note and the target segmentation character as the content of the first sub note and determining all characters positioned in back of the target segmentation character in the target note as the content of the second sub note to generate the first sub note and the second sub note if the sub note belongs to the first sub note; and if the sub-note belongs to a second sub-note, determining all characters positioned in the target note before the target segmentation character as the content of the first sub-note, determining all characters positioned in the target note after the target segmentation character and the target segmentation character as the content of the second sub-note, and generating the first sub-note and the second sub-note.
20. The mobile terminal of claim 19, wherein the second splitting operation is a sliding operation on at least one operation line;
the third determining unit is specifically configured to: if the sliding direction of the sliding operation is a first preset direction, determining the attribute of the sub-note of the target segmentation character as a first sub-note; and if the sliding direction of the sliding operation is a second preset direction, determining the attribute of the sub-note of the target segmentation character as a second sub-note.
21. The mobile terminal according to claim 19, wherein the second splitting operation is a dragging operation on a target operation line, or the second splitting operation is a dragging operation on a marquee of a preset shape, or the second splitting operation is a dragging operation on a slider on a preset slide control bar;
the third determining unit is specifically configured to: if the dragging direction of the dragging operation is a third preset direction, determining the attribute of the sub note of the target segmentation character as a first sub note; and if the dragging direction of the dragging operation is a fourth preset direction, determining the attribute of the sub-note of the target segmentation character as a second sub-note.
22. The mobile terminal of claim 21, wherein the second splitting operation is a click operation on a target operation line;
the third determining unit is specifically configured to: and if the second segmentation operation is a click operation on a target operation line, determining the pre-stored sub-note attribution associated with the click operation as the sub-note attribution of the target segmentation character.
23. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the note segmentation method according to any one of claims 1 to 11.
CN201711250696.3A 2017-12-01 2017-12-01 Note segmentation method and mobile terminal Active CN107885439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711250696.3A CN107885439B (en) 2017-12-01 2017-12-01 Note segmentation method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711250696.3A CN107885439B (en) 2017-12-01 2017-12-01 Note segmentation method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107885439A CN107885439A (en) 2018-04-06
CN107885439B true CN107885439B (en) 2020-06-26

Family

ID=61776526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711250696.3A Active CN107885439B (en) 2017-12-01 2017-12-01 Note segmentation method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107885439B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3792739A1 (en) * 2019-09-13 2021-03-17 MyScript Systems and methods for macro-mode document editing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387313A (en) * 2010-09-06 2012-03-21 索尼公司 Information processing apparatus, data division method, and data division program
WO2015094359A1 (en) * 2013-12-20 2015-06-25 Intel Corporation Customized contextual user interface information displays
CN104866182A (en) * 2015-02-16 2015-08-26 锤子软件(北京)有限公司 Movement method of picture data and mobile terminal
CN104951497A (en) * 2014-03-25 2015-09-30 三星电子株式会社 Method and apparatus for constructing documents
CN105892835A (en) * 2016-03-30 2016-08-24 乐视控股(北京)有限公司 Rapid note sharing method and device
CN105955581A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Wallpaper split screen display method and equipment based on terminal screen
CN107240101A (en) * 2017-04-13 2017-10-10 桂林优利特医疗电子有限公司 Target area detection method and device, image partition method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5457453A (en) * 1992-06-15 1995-10-10 Chiu; Wilson L. Folding keyboard
JP4683110B2 (en) * 2008-10-17 2011-05-11 ソニー株式会社 Display device, display method, and program
US9152292B2 (en) * 2009-02-05 2015-10-06 Hewlett-Packard Development Company, L.P. Image collage authoring
EP3734407A1 (en) * 2011-02-10 2020-11-04 Samsung Electronics Co., Ltd. Portable device comprising a touch-screen display, and method for controlling same
KR101943320B1 (en) * 2012-09-21 2019-04-17 엘지전자 주식회사 Mobile terminal and method for controlling the same
KR20140116672A (en) * 2013-03-25 2014-10-06 삼성전자주식회사 Method for controlling portable device equipped with flexible display and portable device thereof
KR102358110B1 (en) * 2015-03-05 2022-02-07 삼성디스플레이 주식회사 Display apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387313A (en) * 2010-09-06 2012-03-21 索尼公司 Information processing apparatus, data division method, and data division program
WO2015094359A1 (en) * 2013-12-20 2015-06-25 Intel Corporation Customized contextual user interface information displays
CN104951497A (en) * 2014-03-25 2015-09-30 三星电子株式会社 Method and apparatus for constructing documents
CN104866182A (en) * 2015-02-16 2015-08-26 锤子软件(北京)有限公司 Movement method of picture data and mobile terminal
CN105892835A (en) * 2016-03-30 2016-08-24 乐视控股(北京)有限公司 Rapid note sharing method and device
CN105955581A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Wallpaper split screen display method and equipment based on terminal screen
CN107240101A (en) * 2017-04-13 2017-10-10 桂林优利特医疗电子有限公司 Target area detection method and device, image partition method and device

Also Published As

Publication number Publication date
CN107885439A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN108762954B (en) Object sharing method and mobile terminal
CN108958615B (en) Display control method, terminal and computer readable storage medium
CN107977132B (en) Information display method and mobile terminal
CN108491129B (en) Application program management method and terminal
CN108132752B (en) Text editing method and mobile terminal
CN107943390B (en) Character copying method and mobile terminal
CN109407932B (en) Icon moving method and mobile terminal
CN108762705B (en) Information display method, mobile terminal and computer readable storage medium
CN111142723B (en) Icon moving method and electronic equipment
CN109408171B (en) Display control method and terminal
CN107992342B (en) Application configuration changing method and mobile terminal
CN110618969B (en) Icon display method and electronic equipment
CN109683802B (en) Icon moving method and terminal
CN110795189A (en) Application starting method and electronic equipment
CN109388324B (en) Display control method and terminal
CN108804628B (en) Picture display method and terminal
CN108132749B (en) Image editing method and mobile terminal
CN111610904A (en) Icon arrangement method, electronic device and storage medium
CN111176526B (en) Picture display method and electronic equipment
CN110795402B (en) Method and device for displaying file list and electronic equipment
CN109542307B (en) Image processing method, device and computer readable storage medium
CN111522613A (en) Screen capturing method and electronic equipment
CN109710155B (en) Information processing method and terminal equipment
CN109491964B (en) File sharing method and terminal
CN111061446A (en) Display method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant