CN112540715B - Pasting method of note content, terminal and computer storage medium - Google Patents

Pasting method of note content, terminal and computer storage medium Download PDF

Info

Publication number
CN112540715B
CN112540715B CN202011405695.3A CN202011405695A CN112540715B CN 112540715 B CN112540715 B CN 112540715B CN 202011405695 A CN202011405695 A CN 202011405695A CN 112540715 B CN112540715 B CN 112540715B
Authority
CN
China
Prior art keywords
target area
content
pasted
coordinate position
area
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
CN202011405695.3A
Other languages
Chinese (zh)
Other versions
CN112540715A (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.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN202011405695.3A priority Critical patent/CN112540715B/en
Publication of CN112540715A publication Critical patent/CN112540715A/en
Application granted granted Critical
Publication of CN112540715B publication Critical patent/CN112540715B/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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for pasting note content, a terminal and a computer storage medium, wherein the method comprises the following steps: monitoring touch operation in a note page area; when the touch operation is monitored to be a preset touch operation, recording the coordinate position of the preset touch operation; reading the content to be pasted from the pasting plate and generating a minimum external rectangle of the content to be pasted; and positioning the minimum circumscribed rectangle in the note page area according to the coordinate position, and displaying the content to be pasted in the target area of the positioned minimum circumscribed rectangle. According to the scheme of the invention, the target area is positioned in the note page area according to the minimum circumscribed rectangle of the content to be pasted and the preset coordinate position of touch operation, the content to be pasted is displayed in the target area, and the pasting position of the note content can be flexibly and conveniently controlled.

Description

Pasting method of note content, terminal and computer storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a method for pasting note content, a terminal and a computer storage medium.
Background
In some reading equipment of today, a learning mode is provided, and under the learning mode, reading page horizontal screen display shows that one side region shows reading page original text, and the another side region shows note page, and the user can read while remembering, promotes learning efficiency.
In the learning mode, a user needs to paste a character selected from a reading page into a note page, or a picture in a third party application or system album into a note page. In response to such a need, the existing solutions are: the method comprises the steps of selecting a copy function in a toolbar of a note page, opening a reading page note list (or an album), displaying the content to be copied at the center position of the note page after a user selects the content to be copied, and manually dragging the content to a desired position by the user.
However, the inventor finds that in the process of implementing the embodiment of the invention, the scheme in the prior art has at least the following problems: the pasting process involves too many operation steps, is troublesome to operate, and is not beneficial to pasting the content to any position in the note page conveniently.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a pasting method of note content, a terminal, and a computer storage medium that overcome or at least partially solve the above problems.
According to an aspect of an embodiment of the present invention, there is provided a method for pasting note content, including:
monitoring touch operation in a note page area;
when the monitored touch operation is a preset touch operation, recording the coordinate position of the preset touch operation;
reading the content to be pasted from the pasting plate, and generating a minimum external rectangle of the content to be pasted;
and positioning the minimum circumscribed rectangle in the note page area according to the coordinate position, and displaying the content to be pasted in the target area of the positioned minimum circumscribed rectangle.
According to still another aspect of the embodiments of the present invention, there is provided a terminal including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the note content pasting method.
According to a further aspect of the embodiments of the present invention, there is provided a computer storage medium, in which at least one executable instruction is stored, and the executable instruction causes a processor to execute operations corresponding to the method for pasting the note content.
According to the note content pasting method, the terminal and the computer storage medium, when the preset touch operation is monitored in the note page area, the fact that the requirement for displaying the note content in the note page area exists is indicated, the coordinate position of the preset touch operation is recorded, the content to be pasted is read from the pasting board, and the minimum circumscribed rectangle of the content to be pasted is generated; and then, positioning the minimum circumscribed rectangle in the note page area according to the coordinate position, and displaying the content to be pasted in the positioned target area. Therefore, according to the scheme of the invention, the user can display the content to be pasted in the target area near the coordinate position only through preset touch operation, the operation is simple and convenient, the flexibility and convenience of pasting the note content are improved, and the note content can be conveniently pasted at any position.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the embodiments of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the embodiments of the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for pasting note content according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for pasting note contents according to another embodiment of the present invention;
FIG. 3 is a diagram illustrating a target area located and content to be pasted displayed in the target area according to a specific example of the present invention;
FIG. 4a shows a schematic view of a target area located in one particular example of the invention;
FIG. 4b shows a schematic view of the target area located in the specific example of FIG. 4a after adjustment;
fig. 5 shows a schematic structural diagram of a terminal provided in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 shows a flowchart of a method for pasting note content according to an embodiment of the present invention. The method is applied to a terminal provided with a note page function or a terminal provided with an application providing the note page function, so that note contents can be conveniently pasted to any position in the note page, wherein various note contents such as characters, pictures and the like can be written and recorded in the note page. And the method is performed by the terminal. As shown in fig. 1, the method comprises the steps of:
step S110: and monitoring touch operation in the note page area.
The note page may be a page capable of taking notes in a learning mode, or a page capable of taking notes in other applications, such as a note; and the note page area is an area in which writing records can be carried out in the note page.
Generally, the note page area can respond to various touch operations related to addition, modification, deletion and the like of notes. The method comprises the steps of monitoring touch operation in a note page area so as to determine whether a preset touch operation for pasting note content (the same as the content to be pasted in the following text) into the note page area exists.
Step S120: and when the monitored touch operation is the preset touch operation, recording the coordinate position of the preset touch operation.
The preset touch operation may be any operation allowed to be executed in the note page area, for example, a long-press operation, a double-click operation, and the like. And the coordinate position of the preset touch operation refers to the coordinate position of a touch point in the notebook page area touched by the preset touch operation.
And recording the coordinate position to facilitate the subsequent determination of the display area of the content to be pasted.
Step S130: and reading the content to be pasted from the pasting plate, and generating the minimum circumscribed rectangle of the content to be pasted.
Wherein the content to be pasted is the content copied by the last copy operation.
Specifically, after the content to be pasted is read from the pasting board, a minimum circumscribed rectangle of the content to be pasted is generated, where the minimum circumscribed rectangle is a minimum rectangle that can surround the content to be pasted completely, and the minimum circumscribed rectangle can reflect an area size that the content to be pasted needs to occupy in the note page area, so as to determine a display area of the content to be pasted later.
Step S140: and positioning the minimum circumscribed rectangle in the note page area according to the coordinate position, and displaying the content to be pasted in the target area of the positioned minimum circumscribed rectangle.
Specifically, a target area of a minimum bounding rectangle is located in the note page area, the position of the target area is matched with the coordinate position, and the shape and size of the target area are consistent with those of the minimum bounding rectangle. For example, the center of the target region coincides with the coordinate position, and the size of the shape of the target region is the same as the minimum bounding rectangle. Then, the content to be pasted is displayed in the target area, so that the user displays the content to be pasted in the target area near the coordinate position only through the preset touch operation.
It should be noted here that after the minimum circumscribed rectangle is located, the minimum circumscribed rectangle may be displayed in the target area, and then the content to be pasted is displayed in the minimum circumscribed rectangle (also in the target area) so as to clearly define the display area of the content to be pasted; or, the display of the minimum circumscribed rectangle can be hidden, and only the content to be pasted is displayed, so that the simplicity of content display in the note page area is improved.
According to the method for pasting the note content provided by the embodiment, after the preset touch operation is monitored in the note page area, the fact that the requirement for displaying the note content in the note page area exists is indicated, at the moment, the coordinate position of the preset touch operation is recorded, and the content to be pasted is read from the pasting board and the minimum circumscribed rectangle of the content is generated; and then, positioning the minimum circumscribed rectangle in the note page area according to the coordinate position, and displaying the content to be pasted in the positioned target area. Therefore, according to the scheme of the embodiment, the user can display the content to be pasted in the target area near the coordinate position only through preset touch operation, the operation is simple and convenient, the flexibility and convenience of pasting the note content are improved, and the note content can be conveniently pasted at any position.
Fig. 2 is a flowchart illustrating a method for pasting note content according to another embodiment of the present invention. In the present embodiment, the preset touch operation is mainly described as a long-press operation, and the specific implementation is not limited thereto. As shown in fig. 2, the method comprises the steps of:
step S210: and monitoring touch operation in the note page area.
Step S220: when the monitored touch operation is a preset touch operation, recording the coordinate position of the preset touch operation; wherein, the preset touch operation is a long-press operation.
And recording the coordinate position of a touch point contacted with the note page area by the long-press operation after the long-press operation is monitored.
Step S230: and reading the content to be pasted from the pasting plate, and generating the minimum circumscribed rectangle of the content to be pasted.
The sticker board may be an application sticker board, and the object copied in the application is recorded in the application sticker board, for example, in a learning mode of the reading application, after the text is copied in the reading page area through selection operations such as line drawing, circle selection and the like, the text is recorded in the application sticker board of the reading application; alternatively, the sticker may be a system sticker, which records contents copied from other applications in the terminal, for example, a picture copied from a picture application such as an album.
Accordingly, the content to be pasted may be content that has been copied last time in the application or other applications in the terminal, and the present invention is not limited to this specifically. In some embodiments of the present invention, the content to be pasted is a content copied from a reading page area, and the reading page area and a note page area are simultaneously displayed in two areas of the screen, where the reading page area is an area for displaying a reading original text in the learning mode, and the note page area is an area for taking notes in the learning mode. For example, in the learning mode, the terminal displays a landscape screen, the left side displays a reading page area, the right side displays a note page area, the copy operation is completed by selecting text contents in the reading page area, and the read contents to be pasted are the text contents scribed in the reading page area.
And after the content to be pasted is read, generating a minimum circumscribed rectangle according to the format information of the content to be pasted, so that the minimum circumscribed rectangle can completely surround the content to be pasted and surround the content to be pasted displayed in the source format information, and further the display in the source format of the content to be pasted in the note page area is facilitated. The format information includes information that affects the size and shape of an area occupied by the display, such as a font type, a font size, a text arrangement, and/or a picture size.
Step S240: and positioning the minimum circumscribed rectangle in the note page area according to the coordinate position, and displaying the content to be pasted in the target area of the positioned minimum circumscribed rectangle.
Specifically, the size of the shape of the target area is consistent with the minimum circumscribed rectangle, and the minimum circumscribed rectangle is positioned in the note page area, so that the central point or one of the four vertexes of the target area coincides with the coordinate position, and accurate and quick positioning is facilitated. Optionally, the minimum circumscribed rectangle is positioned in the note page area, so that the upper right vertex or the lower right vertex of the target area coincides with the coordinate position, and therefore the content to be pasted is effectively prevented from being blocked by a finger or a pen.
Fig. 3 is a schematic diagram illustrating a target area located and content to be pasted displayed in the target area according to a specific example of the present invention. As shown in fig. 3, the left reading page area is recorded with a reading original text, where the character "MMMMMM" is to-be-pasted, a target area (not shown in practice) is located in the right note page area, the top right vertex of the target area coincides with the coordinate position (not shown in practice), and the size and shape of the target area are the same as the minimum bounding rectangle that can fully enclose the character "mmmm" in the original text.
In some optional embodiments of the present invention, in order to avoid overlapping of the displayed content to be pasted with the existing handwriting, after the minimum circumscribed rectangle is positioned, it is determined whether the coordinate position coincides with an existing handwriting line in the note page area, where the existing handwriting line refers to a line of the note content written and/or recorded in the note page area; if the superposition exists, the fact that the content to be pasted can shield the existing handwriting lines when displayed in the target area is indicated, at the moment, the minimum circumscribed rectangle of the handwriting lines in the preset range around the coordinate position is determined, for example, the minimum circumscribed rectangle of the handwriting lines which is crossed with the target area is determined, the position of the target area is adjusted according to the coordinate position and the position of the minimum circumscribed rectangle of the handwriting lines, the adjusted and positioned target area is obtained, and the adjustment aim is to enable the adjusted target area and the minimum circumscribed rectangle of the handwriting lines not to be overlapped. Correspondingly, displaying the content to be pasted in the adjusted and positioned target area. Otherwise, if there is no overlap, no adjustment is required.
In the above optional embodiment, whether the current accumulated handwritten newspaper point data in the note page area includes the coordinate position may be determined by reading the current accumulated handwritten newspaper point data in the note page area, and if yes, it is determined that the coordinate position coincides with an existing handwriting line in the note page area, where the handwritten newspaper point data refers to data of a position point that is passed by a finger or a pen when writing the handwriting line in the note page area, and the accumulated handwritten newspaper point data refers to data of a position point that is passed by when writing all the existing handwriting lines. Meanwhile, the note page area may further include handwriting lines corresponding to the history pasted note content, and for the handwriting lines, it may be determined whether the target area corresponding to the handwriting lines includes the coordinate position, and if so, it is determined that the coordinate position coincides with the existing handwriting lines in the note page area.
In the above optional embodiment, when the position of the target area is adjusted, the distance between the coordinate position and each side of the note page area is determined, and when the note page area is a rectangular area, the distance (i.e. the shortest distance) between the coordinate position and the four sides of the rectangular area needs to be determined; and then moving the target area to the side with the farthest distance, and finishing the adjustment when the target area does not overlap with the minimum circumscribed rectangle of the handwriting line finally. In this way, the target area is moved to the farthest side, so that the moving space is larger, and targets which do not overlap are more likely to be realized.
Fig. 4a shows a schematic view of a target area located in one specific example of the invention. Fig. 4b shows a schematic diagram of the target area located in the specific example of fig. 4a after adjustment. As shown in fig. 4a, the coordinate position overlaps with the existing handwriting line in the notebook area, and at this time, the located target area intersects with the existing handwriting line and needs to be adjusted. When the coordinate position is farthest from the left side of the note page area, determining to move the target area to the left, when the position is moved to the position shown in fig. 4b, the adjusted and positioned target area is just not overlapped with the minimum circumscribed rectangle of the handwriting line, at this time, the adjustment is finished, and finally, displaying the content to be displayed, namely the character MMMMMM in the adjusted and positioned target area in fig. 4 b.
On the other hand, to avoid excessive movement, in the process of moving the target area, it is determined whether the movement distance exceeds a preset distance threshold, if so, the movement is stopped, and the target area after movement is reduced, where the preset distance threshold may be a fixed constant or a variable that changes with the minimum bounding rectangle and/or the coordinate position, which is not specifically limited in this embodiment. Alternatively, the preset distance threshold may be set according to a farthest value of a distance between the coordinate position and each side of the note page area and a size of the minimum bounding rectangle, and the preset distance threshold is set to a difference between the farthest value and a half of a height value (when moving up or down) or a half of a width value (when moving left or right) of the minimum bounding rectangle, for example, the coordinate position is farthest from the left side of the note page area and is 10 cm, and the width value of the minimum bounding rectangle is 4 cm, and the preset distance threshold may be set to 10-4/2-8 cm. By the method, the moving distance is controlled, and the target area is prevented from moving excessively, for example, the target area moves to the edge of the note page area and cannot completely display the content to be pasted. When the preset distance threshold is reached, if the target area is not overlapped with the minimum circumscribed rectangle of the handwriting line, the target area which moves to reach the preset distance threshold is reduced, so that the target area is not overlapped with the minimum circumscribed rectangle of the handwriting line; and continuously reducing and finishing the adjustment when the reduced target area is not overlapped with the minimum circumscribed rectangle of the handwriting line, and reducing the content to be pasted according to the corresponding proportion when the content to be pasted is displayed after the reduction treatment, so that the content to be pasted can be completely displayed in the reduced target area.
In addition, in the note page area, the minimum bounding rectangle can be displayed or hidden. In some specific embodiments, the minimum bounding rectangle is also displayed in the note page area, and after the minimum bounding rectangle is located, the minimum bounding rectangle is drawn in the located target area, the edges of the minimum bounding rectangle coincide with the edges of the target area, zoom controls are provided at four vertices of the minimum bounding rectangle, and/or a rotation control is provided at the center of any edge of the minimum bounding rectangle, and/or a deletion control is provided at any edge of the minimum bounding rectangle, for example, a rotation button is provided at the center of one long edge, and a deletion button is provided at the center of the other long edge. In these specific embodiments, by drawing the minimum bounding rectangle in the target region, various operation controls may be provided for performing operations such as scaling, rotating, and deleting on the target region. It should be noted that the target area always corresponds to the minimum bounding rectangle, and after the target area is adjusted (including moving, zooming, rotating, etc.), the minimum bounding rectangle is also correspondingly processed and displayed at the target area, so that the edge of the minimum bounding rectangle coincides with the edge of the target area. And the minimum circumscribed rectangle can be set to be conditionally displayed, the display of the minimum circumscribed rectangle is hidden under the default condition, and after a click or cursor stop is monitored in the target area, the minimum circumscribed rectangle and various adjustment controls on the edge of the minimum circumscribed rectangle are displayed.
Step S250: when the preset touch operation is continuously switched to sliding operation, moving the target area according to the sliding operation to obtain an updated and positioned target area; and displaying the content to be pasted in the target area after the updating and the positioning.
Specifically, after the content to be pasted is displayed in the target area, if cancellation of long-press operation is detected, for example, if a user lifts a pen, no further processing is performed; if the continuous switching from the long-press operation to the sliding operation is detected, namely the continuous touch with the note page area is kept, and only the long-press operation at the coordinate position is switched to the sliding operation with the coordinate position as a starting point, at the moment, the target area is triggered to move, the movement is finished until the sliding operation is cancelled, and the content to be pasted is displayed in the moved target area. In this way, after the content to be pasted is displayed but before the user finishes the long-press touch operation, the flexible adjustment of the display position can be realized through the switching of the touch operation.
In some alternative embodiments of the present invention, a mobile operation entrance is provided in the target area; after the content to be pasted is displayed (both the display in steps S240 and S250 are applicable), when the moving operation performed on the moving operation entry is monitored, moving the target area according to the moving operation to obtain the target area after the position is updated; and displaying the content to be pasted in the target area after the updating position. In this way, after the content to be pasted is displayed and the user finishes the long-press operation, the target area can be flexibly adjusted by touching the moving operation entry in the target area, for example, by long-press.
According to the note content pasting method provided by the embodiment, the minimum circumscribed rectangle is positioned in the note page area according to the coordinate position, so that the positioned target area is consistent with the shape and the size of the minimum circumscribed rectangle, the center point or one of four vertexes of the target area is superposed with the coordinate position, and the target area of the minimum circumscribed rectangle is positioned near the coordinate position; after the minimum circumscribed rectangle is located, judging whether the coordinate position is overlapped with the existing handwriting line in the note page area, adjusting the position of the target area when the coordinate position is overlapped with the existing handwriting line in the note page area, and displaying the content to be pasted in the adjusted and located target area, so that the overlapping of the content to be pasted and the existing note line is avoided; in addition, the minimum circumscribed rectangle can be displayed in the target area, so that the edge of the minimum circumscribed rectangle is overlapped with the edge of the target area, and various adjusting controls are displayed on the edge of the minimum circumscribed rectangle, so that various adjusting inlets can be conveniently provided; and when the preset touch operation is continuously switched to the sliding operation, moving the target area according to the sliding operation to obtain an updated and positioned target area, and displaying the content to be pasted in the updated and positioned target area.
The embodiment of the invention provides a nonvolatile computer storage medium, wherein at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute the note content pasting method in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
monitoring touch operation in a note page area;
when the monitored touch operation is a preset touch operation, recording the coordinate position of the preset touch operation;
reading the content to be pasted from the pasting plate, and generating a minimum external rectangle of the content to be pasted;
and positioning the minimum circumscribed rectangle in the note page area according to the coordinate position, and displaying the content to be pasted in the target area of the positioned minimum circumscribed rectangle.
In an optional manner, the preset touch operation is a long-press operation.
In an alternative, the executable instructions further cause the processor to: and positioning the minimum circumscribed rectangle in the note page area to enable the center point or one of the four vertexes of the target area to coincide with the coordinate position.
In an alternative, the executable instructions further cause the processor to:
and positioning the minimum circumscribed rectangle in the note page area to enable the upper right vertex or the lower right vertex of the target area to coincide with the coordinate position.
In an alternative, the executable instructions further cause the processor to:
judging whether the coordinate position is overlapped with the existing handwriting lines in the note page area or not;
if so, determining the minimum circumscribed rectangle of the handwriting lines within a preset range around the coordinate position, and adjusting the position of the target area according to the coordinate position and the position of the minimum circumscribed rectangle of the handwriting lines to obtain an adjusted and positioned target area;
and displaying the content to be pasted in the adjusted and positioned target area.
In an alternative, the executable instructions further cause the processor to:
reading the current accumulated handwritten newspaper point data in the note page area, judging whether the accumulated handwritten newspaper point data contains the coordinate position, and if so, judging that the coordinate position is overlapped with the existing handwriting lines in the note page area.
In an alternative, the executable instructions further cause the processor to:
and determining the distance between the coordinate position and each edge of the note page area, moving the target area to the edge with the farthest distance, and finishing the adjustment when the target area is not overlapped with the minimum circumscribed rectangle of the handwriting line finally.
In an alternative, the executable instructions further cause the processor to:
in the process of moving the target area, judging whether the moving distance exceeds a preset distance threshold, if so, stopping moving, and reducing the moved target area;
and finishing the adjustment when the reduced target area does not overlap with the minimum circumscribed rectangle of the handwriting line.
In an alternative, the executable instructions further cause the processor to:
when the preset touch operation is continuously switched to sliding operation, moving the target area according to the sliding operation to obtain an updated and positioned target area;
and displaying the content to be pasted in the updated and positioned target area.
In an alternative mode, a moving operation inlet is arranged in the target area; the executable instructions further cause the processor to:
when the moving operation executed on the moving operation entrance is monitored, moving the target area according to the moving operation to obtain a target area after the position is updated;
and displaying the content to be pasted in the target area after the position is updated.
In an alternative, the executable instructions further cause the processor to:
drawing the minimum bounding rectangle in the positioned target area; zooming controls are provided at four vertexes of the minimum bounding rectangle, and/or rotating controls are provided at the center positions of any side of the minimum bounding rectangle, and/or deleting controls are provided on any side of the minimum bounding rectangle.
In an alternative mode, the content to be pasted is content copied from a reading page area, and the reading page area and the note page area are displayed in two areas of the screen at the same time.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention, where the specific embodiment of the present invention does not limit the specific implementation of the terminal.
As shown in fig. 5, the terminal may include: a processor (processor)502, a Communications Interface (Communications Interface)504, a memory 506, and a communication bus 508.
Wherein: the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508. A communication interface 504 for communicating with network elements of other devices, such as clients or other servers. The processor 502 is configured to execute the program 510, and may specifically perform relevant steps in the above embodiment of the method for pasting note content for a terminal.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The terminal comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
monitoring touch operation in a note page area;
when the monitored touch operation is a preset touch operation, recording the coordinate position of the preset touch operation;
reading the content to be pasted from the pasting plate, and generating a minimum external rectangle of the content to be pasted;
and positioning the minimum circumscribed rectangle in the note page area according to the coordinate position, and displaying the content to be pasted in the target area of the positioned minimum circumscribed rectangle.
In an optional manner, the preset touch operation is a long-press operation.
In an alternative, the program 510 causes the processor 502 to perform the following operations:
and positioning the minimum circumscribed rectangle in the note page area to enable the center point or one of the four vertexes of the target area to coincide with the coordinate position.
In an alternative, the program 510 causes the processor 502 to perform the following operations:
and positioning the minimum circumscribed rectangle in the note page area to enable the upper right vertex or the lower right vertex of the target area to coincide with the coordinate position.
In an alternative, the program 510 causes the processor 502 to perform the following operations:
judging whether the coordinate position is overlapped with the existing handwriting lines in the note page area or not;
if so, determining the minimum circumscribed rectangle of the handwriting lines within a preset range around the coordinate position, and adjusting the position of the target area according to the coordinate position and the position of the minimum circumscribed rectangle of the handwriting lines to obtain an adjusted and positioned target area;
and displaying the content to be pasted in the adjusted and positioned target area.
In an alternative, the program 510 causes the processor 502 to perform the following operations:
reading current accumulated handwritten newspaper point data in the note page area, judging whether the accumulated handwritten newspaper point data contains the coordinate position, and if so, judging that the coordinate position is overlapped with the existing handwriting lines in the note page area.
In an alternative, the program 510 causes the processor 502 to perform the following operations:
and determining the distance between the coordinate position and each edge of the note page area, moving the target area to the edge with the farthest distance, and finishing the adjustment when the target area is not overlapped with the minimum circumscribed rectangle of the handwriting line finally.
In an alternative, the program 510 causes the processor 502 to perform the following operations:
in the process of moving the target area, judging whether the moving distance exceeds a preset distance threshold, if so, stopping moving, and reducing the moved target area;
and finishing the adjustment when the reduced target area does not overlap with the minimum circumscribed rectangle of the handwriting line.
In an alternative, the program 510 causes the processor 502 to perform the following operations:
when the preset touch operation is continuously switched to sliding operation, moving the target area according to the sliding operation to obtain an updated and positioned target area;
and displaying the content to be pasted in the updated and positioned target area.
In an alternative mode, a moving operation inlet is arranged in the target area; the program 510 causes the processor 502 to perform the following operations:
when the moving operation executed on the moving operation entrance is monitored, moving the target area according to the moving operation to obtain a target area after the position is updated;
and displaying the content to be pasted in the target area after the position is updated.
In an alternative, the program 510 causes the processor 502 to perform the following operations:
drawing the minimum bounding rectangle in the positioned target area; zooming controls are provided at four vertexes of the minimum bounding rectangle, and/or rotating controls are provided at the center positions of any side of the minimum bounding rectangle, and/or deleting controls are provided on any side of the minimum bounding rectangle.
In an alternative mode, the content to be pasted is content copied from a reading page area, and the reading page area and the note page area are displayed in two areas of the screen at the same time.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of embodiments of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best modes of embodiments of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that is, the claimed embodiments of the invention require more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. Embodiments of the invention may also be implemented as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing embodiments of the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. Embodiments of the invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (19)

1. A method of pasting handwritten content, comprising:
monitoring touch operation in a note page area;
when the monitored touch operation is a preset touch operation, recording the coordinate position of the preset touch operation;
reading the content to be pasted from the pasting plate, and generating a minimum external rectangle of the content to be pasted;
positioning the minimum circumscribed rectangle in a note page area according to the coordinate position to position a target area of the minimum circumscribed rectangle; wherein the shape and size of the target region are consistent with the minimum bounding rectangle;
judging whether the coordinate position is overlapped with the existing handwriting lines in the note page area or not;
if so, determining the minimum circumscribed rectangle of the handwriting lines within a preset range around the coordinate position, determining the distance between the coordinate position and each edge of the note page area, and moving the target area to the edge with the farthest distance; in the process of moving the target area, judging whether the moving distance exceeds a preset distance threshold, if so, stopping moving, and reducing the moved target area; when the reduced target area is not overlapped with the minimum circumscribed rectangle of the handwriting line, finishing the adjustment to obtain an adjusted and positioned target area;
and displaying the content to be pasted in the adjusted and positioned target area.
2. The method of claim 1, wherein the preset touch operation is a long press operation.
3. The method of claim 1, wherein the locating the minimum bounding rectangle in a note page area according to the coordinate location further comprises:
and positioning the minimum circumscribed rectangle in the note page area to enable the center point or one of the four vertexes of the target area to coincide with the coordinate position.
4. The method according to claim 3, wherein the positioning the minimum bounding rectangle in the note page area such that the center point or one of the four vertices of the target area coincides with the coordinate position is specifically:
and positioning the minimum circumscribed rectangle in the note page area to enable the upper right vertex or the lower right vertex of the target area to coincide with the coordinate position.
5. The method of claim 1, wherein the determining whether the coordinate location coincides with an existing line of writing in a note page area further comprises:
reading the current accumulated handwritten newspaper point data in the note page area, judging whether the accumulated handwritten newspaper point data contains the coordinate position, and if so, judging that the coordinate position is overlapped with the existing handwriting lines in the note page area.
6. The method according to any one of claims 1-5, wherein after displaying the content to be pasted in the adjusted and positioned target area, the method further comprises:
when the preset touch operation is continuously switched to sliding operation, moving the adjusted and positioned target area according to the sliding operation to obtain an updated and positioned target area;
and displaying the content to be pasted in the updated and positioned target area.
7. The method according to any one of claims 1-5, wherein a mobile operation entrance is arranged in the target area after the positioning adjustment; after displaying the content to be pasted, the method further comprises:
after the moving operation executed on the moving operation entrance is monitored, moving the adjusted and positioned target area according to the moving operation to obtain a target area after the position is updated;
and displaying the content to be pasted in the target area after the position is updated.
8. The method of any of claims 1-5, wherein after locating the minimum bounding rectangle, the method further comprises:
drawing the minimum bounding rectangle in the positioned target area; zooming controls are provided at four vertexes of the minimum bounding rectangle, and/or rotating controls are provided at the center positions of any side of the minimum bounding rectangle, and/or deleting controls are provided on any side of the minimum bounding rectangle.
9. The method according to any one of claims 1 to 5, wherein the content to be pasted is content copied from a reading page area, and the reading page area and a note page area are displayed in two areas of a screen at the same time.
10. A terminal, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
monitoring touch operation in a note page area;
when the touch operation is monitored to be a preset touch operation, recording the coordinate position of the preset touch operation;
reading the content to be pasted from the pasting plate, and generating a minimum external rectangle of the content to be pasted;
positioning the minimum circumscribed rectangle in a note page area according to the coordinate position to position a target area of the minimum circumscribed rectangle; wherein the shape and size of the target region are consistent with the minimum bounding rectangle;
judging whether the coordinate position is overlapped with the existing handwriting lines in the note page area or not;
if so, determining the minimum circumscribed rectangle of the handwriting lines within a preset range around the coordinate position, determining the distance between the coordinate position and each edge of the note page area, and moving the target area to the edge with the farthest distance; in the process of moving the target area, judging whether the moving distance exceeds a preset distance threshold, if so, stopping moving, and reducing the moved target area; when the reduced target area is not overlapped with the minimum circumscribed rectangle of the handwriting line, finishing the adjustment to obtain an adjusted and positioned target area;
and displaying the content to be pasted in the adjusted and positioned target area.
11. The terminal of claim 10, wherein the preset touch operation is a long press operation.
12. The terminal of claim 10, wherein the executable instructions further cause the processor to:
and positioning the minimum circumscribed rectangle in the note page area to enable the center point or one of the four vertexes of the target area to coincide with the coordinate position.
13. The terminal of claim 12, wherein the executable instructions further cause the processor to:
and positioning the minimum circumscribed rectangle in the note page area to enable the upper right vertex or the lower right vertex of the target area to coincide with the coordinate position.
14. The terminal of claim 10, wherein the executable instructions further cause the processor to:
reading the current accumulated handwritten newspaper point data in the note page area, judging whether the accumulated handwritten newspaper point data contains the coordinate position, and if so, judging that the coordinate position is overlapped with the existing handwriting lines in the note page area.
15. The terminal of any of claims 10-14, wherein the executable instructions further cause the processor to:
when the preset touch operation is continuously switched to sliding operation, moving the adjusted and positioned target area according to the sliding operation to obtain an updated and positioned target area;
and displaying the content to be pasted in the updated and positioned target area.
16. The terminal of any of claims 10-14, wherein the executable instructions further cause the processor to:
after the moving operation executed on the moving operation entrance is monitored, moving the adjusted and positioned target area according to the moving operation to obtain a target area after the position is updated;
and displaying the content to be pasted in the target area after the position is updated.
17. The terminal of any of claims 10-14, wherein the executable instructions further cause the processor to:
drawing the minimum bounding rectangle in the positioned target area; zooming controls are provided at four vertexes of the minimum bounding rectangle, and/or rotating controls are provided at the center positions of any side of the minimum bounding rectangle, and/or deleting controls are provided on any side of the minimum bounding rectangle.
18. The terminal according to any one of claims 10 to 14, wherein the content to be pasted is content copied from a reading page area, and the reading page area and a note page area are displayed in two areas of a screen at the same time.
19. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the method for pasting note content according to any one of claims 1 to 9.
CN202011405695.3A 2020-12-04 2020-12-04 Pasting method of note content, terminal and computer storage medium Active CN112540715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011405695.3A CN112540715B (en) 2020-12-04 2020-12-04 Pasting method of note content, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011405695.3A CN112540715B (en) 2020-12-04 2020-12-04 Pasting method of note content, terminal and computer storage medium

Publications (2)

Publication Number Publication Date
CN112540715A CN112540715A (en) 2021-03-23
CN112540715B true CN112540715B (en) 2022-05-20

Family

ID=75016005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011405695.3A Active CN112540715B (en) 2020-12-04 2020-12-04 Pasting method of note content, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN112540715B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463534A (en) * 2017-07-27 2017-12-12 维沃移动通信有限公司 A kind of object marking method, mobile terminal and computer-readable recording medium
CN109085965A (en) * 2018-07-19 2018-12-25 掌阅科技股份有限公司 Take down notes generation method, electronic equipment and computer storage medium
CN111783385A (en) * 2020-06-30 2020-10-16 掌阅科技股份有限公司 Note processing method based on electronic book, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201403408A (en) * 2012-07-10 2014-01-16 Elan Microelectronics Corp Touch handwriting input method and device
CN111638851B (en) * 2020-06-04 2022-02-25 科大讯飞股份有限公司 Handwriting display processing method, related device and handwriting interoperation system
CN111783393A (en) * 2020-06-30 2020-10-16 掌阅科技股份有限公司 Method, device and storage medium for synchronizing handwritten notes during bilingual contrast reading

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463534A (en) * 2017-07-27 2017-12-12 维沃移动通信有限公司 A kind of object marking method, mobile terminal and computer-readable recording medium
CN109085965A (en) * 2018-07-19 2018-12-25 掌阅科技股份有限公司 Take down notes generation method, electronic equipment and computer storage medium
CN111783385A (en) * 2020-06-30 2020-10-16 掌阅科技股份有限公司 Note processing method based on electronic book, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112540715A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
US9430139B2 (en) Information processing apparatus, information processing method, and program
CN103500066B (en) Screenshot device and method suitable for touch screen equipment
CN109085965A (en) Take down notes generation method, electronic equipment and computer storage medium
CN109739372B (en) Graph drawing method for handwriting input equipment and handwriting reading equipment
US9329775B2 (en) Figure drawing apparatus, figure drawing method and recording medium on which figure drawing programs are recorded
JP2008134918A (en) Image processor and image processing determination method
CN105144058A (en) Deferred placement prompt
US20180046351A1 (en) Controlling display object on display screen
US9658865B2 (en) Method of editing content and electronic device for implementing the same
CN103034683A (en) Page switching method and device for browser
EP2965181B1 (en) Enhanced canvas environments
CN114518820A (en) Icon sorting method and device and electronic equipment
CN111783015A (en) Display method of shared display elements in page, electronic equipment and storage medium
CN111783385A (en) Note processing method based on electronic book, electronic equipment and storage medium
CN114879869A (en) Note erasing method, electronic device and computer storage medium
CN112698758B (en) Window display method and computing device
KR101060175B1 (en) Method for controlling touch screen, recording medium for the same, and method for controlling cloud computing
CN111783386A (en) Note processing method based on electronic book, electronic equipment and storage medium
CN112540715B (en) Pasting method of note content, terminal and computer storage medium
US11243678B2 (en) Method of panning image
CN111142754A (en) Screenshot processing method and device and storage medium
JP5862775B2 (en) Image display device, image enlargement method, and image enlargement program
CN116107531A (en) Interface display method and device
CN115933954A (en) Screen capturing method and device, electronic equipment and storage medium
CN112667931B (en) Webpage collecting method, electronic equipment and storage medium

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