CN112486398A - Method for realizing page turning effect of handwriting, electronic equipment and storage medium - Google Patents

Method for realizing page turning effect of handwriting, electronic equipment and storage medium Download PDF

Info

Publication number
CN112486398A
CN112486398A CN202011504713.3A CN202011504713A CN112486398A CN 112486398 A CN112486398 A CN 112486398A CN 202011504713 A CN202011504713 A CN 202011504713A CN 112486398 A CN112486398 A CN 112486398A
Authority
CN
China
Prior art keywords
handwriting
current reading
information
page
reading page
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.)
Granted
Application number
CN202011504713.3A
Other languages
Chinese (zh)
Other versions
CN112486398B (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.)
Ireader Technology Co Ltd
Original Assignee
Ireader 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 Ireader Technology Co Ltd filed Critical Ireader Technology Co Ltd
Priority to CN202011504713.3A priority Critical patent/CN112486398B/en
Publication of CN112486398A publication Critical patent/CN112486398A/en
Application granted granted Critical
Publication of CN112486398B publication Critical patent/CN112486398B/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
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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

Landscapes

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

Abstract

The invention discloses a method for realizing a page turning effect of handwriting, electronic equipment and a storage medium, wherein the method comprises the following steps: transmitting the handwriting anchor point information of the current reading page to a reader engine, and acquiring a canvas container of the current reading page returned by the reader engine; the canvas container and the handwriting drawing information are transmitted to the handwriting drawing module, so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information; the drawn canvas container is transmitted back to the reader engine; and receiving a page turning instruction aiming at the current reading page triggered by a user, and calling a reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container. And calling a reader engine to generate a canvas container of the current reading page, and drawing the handwriting of the user in the canvas container, so that the current reading page and the handwriting are fused into a whole. And the drawn canvas container is used for carrying out integral page turning, and integral consistent page turning effects are presented.

Description

Method for realizing page turning effect of handwriting, electronic equipment and storage medium
Technical Field
The invention relates to the field of software, in particular to a method for realizing a page turning effect of handwriting, electronic equipment and a storage medium.
Background
The development of the electronic book is leap forward, and besides the convenient reading experience for the user, the electronic book can also provide the user with a handwriting function, so that the user can conveniently write handwriting in the page of the electronic book, record reading notes, read hearts and the like while reading.
After a user writes handwriting in an electronic book, the handwriting can be displayed in the page of the electronic book when the user reads the electronic book. However, when the page turning processing is performed on the electronic book in the prior art, the page turning effect of the handwriting is inconsistent with the page turning effect of the page of the electronic book, so that the page turning display effect of the handwriting is poor, the user experience is poor, and the like.
Disclosure of Invention
In view of the above problems, the present invention is proposed to provide a method, an electronic device and a storage medium for implementing a page turning effect of handwriting, which overcome the above problems or at least partially solve the above problems.
According to an aspect of the present invention, a method for implementing a page turning effect of handwriting is provided, which includes:
transmitting the handwriting anchor point information of the current reading page to a reader engine, and acquiring a canvas container of the current reading page returned by the reader engine;
the canvas container and the handwriting drawing information are transmitted to the handwriting drawing module, so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information;
the drawn canvas container is transmitted back to the reader engine;
and receiving a page turning instruction aiming at the current reading page triggered by a user, and calling a reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container.
According to another aspect of the present invention, there is provided an electronic apparatus including: 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 causes the processor to execute the following operations:
transmitting the handwriting anchor point information of the current reading page to a reader engine, and acquiring a canvas container of the current reading page returned by the reader engine;
the canvas container and the handwriting drawing information are transmitted to the handwriting drawing module, so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information;
the drawn canvas container is transmitted back to the reader engine;
and receiving a page turning instruction aiming at the current reading page triggered by a user, and calling a reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container.
According to another aspect 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 any one of the above-mentioned methods for implementing a handwriting page-turning effect.
According to the method for realizing the page turning effect of the handwriting, the electronic equipment and the storage medium, the reader engine is called to generate the canvas container of the current reading page, and the handwriting of the user is drawn in the canvas container, so that the current reading page and the handwriting are fused into a whole. During page turning, the reader engine performs integral page turning by using the drawn canvas container, so that the current reading page and the handwriting show consistent page turning effect.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages 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 invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method for implementing a page flip effect of handwriting according to an embodiment of the invention;
FIG. 2 shows a schematic diagram containing textual information and handwriting for a current reading page;
FIG. 3 is a diagram illustrating a page flip effect in a page flip process;
FIG. 4 is a flowchart illustrating a method for implementing a page flip effect for handwriting according to another embodiment of the invention;
fig. 5 shows a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Example one
FIG. 1 is a flowchart illustrating a method for implementing a page turning effect of handwriting according to an embodiment of the present invention, as shown in FIG. 1, the method includes the following steps:
and S101, transmitting the handwriting anchor point information of the current reading page to the reader engine, and acquiring the canvas container of the current reading page returned by the reader engine.
When a user reads a current reading page, if the handwriting of the user exists in the current reading page, transmitting the handwriting anchor point information of the current reading page to a reader engine. The handwriting anchor point information comprises handwriting id corresponding to the current reading page, and the handwriting id indicates that the handwriting is the handwriting of the current reading page of the current electronic book. The reader engine can determine the current reading page according to the handwriting id and acquire the text information of the current reading page. And rendering the text information of the current reading page to obtain a canvas container of the current reading page. The canvas container contains the text information of the current reading page.
The canvas container of the current reading page returned by the reader engine not only contains the text information of the current reading page, but also contains the handwriting drawing starting point information, so that the handwriting position of the user during handwriting can be accurately restored when the handwriting is drawn in the canvas container. And determining the handwriting drawing starting point information according to the handwriting anchor point information. The handwriting anchor point information also comprises handwriting starting point information, and the handwriting starting point information records the position information of the first pen-drop point of the handwriting. Specifically, a coordinate system is established by taking the page turning direction of the current reading page as an abscissa axis and taking the direction perpendicular to the abscissa axis as a vertical axis, so that the position information of the first pen-down point can be accurately determined according to the coordinate position of the coordinate system. The origin of the coordinate system may be at any position in the current reading page. And establishing the same coordinate system in the canvas container as that in the current reading page, wherein the origin is consistent with that of the coordinate system in the current reading page. Preferably, any corner position of the current reading page is taken as an origin, so that when the origin of the coordinate system is established in the canvas container, the origin can be accurately positioned to be consistent with the origin of the coordinate system in the current reading page. And determining handwriting drawing starting point information in the coordinate system of the corresponding canvas container according to the handwriting anchor point information in the coordinate system of the current reading page. Or the position information of the first pen-drop point of the handwriting comprises a relative position with a certain text in the text information in the current reading page, for example, taking the first pen-drop point of the handwriting as a center, acquiring the text within a preset range of the first pen-drop point of the handwriting, and determining the text which is linearly closest to the first pen-drop point of the handwriting. The method includes the steps of recognizing a text, determining information of the text, such as recognizing the text, determining the number of pages of the text, the line number, the number of digits in the line (the number of digits of the text in the line), the position information of the text in the electronic book, and the like. And determining the position information of the first pen-falling point of the handwriting in the coordinate system by taking the text as an origin, namely the relative position information of the handwriting starting point information and the text. The method comprises the steps of firstly identifying and determining a text in a canvas container according to the information of the text, and then determining handwriting drawing starting point information in the canvas container according to the relative position information of the handwriting starting point information and the text. The handwriting drawing initial point information is determined according to the relative position information of the text and the handwriting initial point information, so that the original point is not influenced by the change of the display format of the electronic book when the handwriting is drawn conveniently, the handwriting drawing initial point information can be accurately determined through the text, and the accuracy of the handwriting drawing is guaranteed.
Further, the handwriting id is also associated with the user, and the handwriting id records the handwriting of the current user on the current reading page of the current electronic book so as to avoid confusion with the handwriting of other users, and only the handwriting of the current user is recorded on the current reading page of the current user. The handwriting id is related to the current user information, the current electronic book and the like, and is also related to the page number of the current reading page, the display format of the electronic book during handwriting and the like, and if the display format of the electronic book is changed, the page number of the current reading page corresponding to the handwriting id is correspondingly changed. The page number change is specifically determined according to the relative position information of the included handwriting starting point information and the text, and when the display format of the electronic book is changed, the page number of the text is changed, and the page number corresponding to the handwriting id is correspondingly changed into the page number of the text. The above description is exemplary and specific to the implementation.
And S102, transmitting the canvas container and the handwriting drawing information to the handwriting drawing module so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information.
And after obtaining the canvas container returned by the reader engine, transmitting the canvas container containing the text information of the current reading page and the handwriting drawing initial point information and the handwriting drawing information to the handwriting drawing module. The handwriting drawing information comprises the sequence of each handwriting point of the handwriting of the user, the position information relative to the handwriting starting point information and the like, and the handwriting drawing module is convenient to draw the handwriting according to the handwriting drawing information. The specific function of the handwriting drawing module can be realized by calling a handwriting pen SDK. And the handwriting drawing module is used for drawing the initial point information according to the handwriting in the canvas container and determining the initial position of the handwriting in the canvas container. And drawing step by step according to the handwriting drawing information, and drawing the handwriting of the user in the canvas container.
The drawn canvas container contains the text information and the handwriting of the current reading page, so that the text information and the handwriting of the current reading page are stored in the canvas container as a whole.
And step S103, transmitting the drawn canvas container back to the reader engine.
And returning the drawn canvas container to the reader engine, and storing the canvas container by the reader engine for subsequent page turning processing.
And step S104, receiving a page turning instruction aiming at the current reading page triggered by a user, and calling a reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container.
When a user triggers a page turning instruction for the current reading page in the current reading page, the reader engine is called, and the reader engine directly operates the canvas container to complete the presentation of the page turning effect of the current reading page, so that the text information and the handwriting of the current reading page are turned as a whole, and the same page turning effect is presented. For example, the page turning effect can be a semi-transparent effect, and when the page is turned, the text information of the current reading page and the handwritten notes are presented in a semi-transparent form on the back of the page. The setting of the page turning effect can be set according to specific implementation conditions, the reader engine operates the canvas container to present, page turning of the text information and the handwriting of the current reading page is achieved as a whole, and the text information and the page turning effect of the handwriting note of the current reading page are consistent.
Specifically, as shown in fig. 2, the drawn schematic diagram includes text information of a current reading page and handwriting of a user, where the handwriting of the user is vertical "ABCD", the handwriting and the text information of the current reading page are displayed together, and after a page turning instruction triggered by the user is received, as shown in fig. 3, a page turning effect during page turning processing is achieved, the text information and the handwriting "ABCD" are taken as a whole, the back of the page turning reading page displays the text information and the handwriting of the reading page in a semitransparent manner, and the text information and the handwriting of the reading page exhibit a consistent page turning effect.
The embodiment can be executed on the page processor side of the reader, the page processor acquires the handwriting anchor point information and the handwriting drawing information, transmits the handwriting anchor point information of the current reading page to the reader engine, and acquires the canvas container of the current reading page returned by the reader engine. And the page processor transmits the canvas container and the handwriting drawing information to the handwriting drawing module, the handwriting drawing module draws the handwriting in the canvas container, and the page processor transmits the drawn canvas container back to the reader engine so as to call the reader engine to process the drawn canvas container according to a page turning instruction, thereby presenting the page turning effect aiming at the current reading page and achieving the effect of presenting the consistent page turning effect of the current reading page and the handwriting.
According to the method for realizing the page turning effect of the handwriting, the canvas container of the current reading page is generated by calling the reader engine, and the handwriting of the user is drawn in the canvas container, so that the current reading page and the handwriting are fused into a whole. During page turning, the reader engine performs integral page turning by using the drawn canvas container, so that the current reading page and the handwriting show consistent page turning effect.
Example two
FIG. 4 is a flowchart illustrating a method for implementing a page turning effect of handwriting according to another embodiment of the present invention, as shown in FIG. 4, the method includes the following steps:
step S401, a drawing view is created on a page view of a current reading page, handwriting of a user on the drawing view is acquired, and handwriting anchor point information and handwriting drawing information are generated.
The method includes that a user can utilize handwriting equipment such as a handwriting pen to write handwriting on a current reading page in a reader of an electronic book, when the user conducts handwriting on the current reading page through the handwriting pen equipment, a page processor creates a drawing view on the page view of the current reading page, the handwriting of the user is drawn in the drawing view, the page processor obtains the handwriting of the user from the drawing view, and the handwriting comprises annotations such as marking and selecting text information by the user or annotations such as writing characters and graphs in a blank area outside the text information by the user. And generating handwriting anchor point information and handwriting drawing information according to the handwriting corresponding to the handwriting. The generated handwriting anchor point information comprises handwriting id corresponding to the current reading page and handwriting starting point information. The handwriting anchor information is described with reference to step S101 in fig. 1, and is not described herein again. And generating handwriting drawing information according to the relative position of each handwriting point of the handwriting pen equipment in the drawing view and the handwriting starting point.
The drawing view is a blank view, can be the same as the page view in size, and is convenient for a user to annotate and record the handwriting on the text information correspondingly based on the text information of the current reading page displayed in the page view.
And S402, returning the handwriting anchor point information and the handwriting drawing information to the local client and/or the cloud server for storage.
And after the handwriting anchor point information and the handwriting drawing information are generated, the handwriting anchor point information and the handwriting drawing information are transmitted back to the local client side and/or the cloud server for storage. The handwriting anchor point information and the handwriting drawing information can be directly and quickly acquired from the client side when the user turns pages to the current reading page after reading the handwriting on the current reading page or after reading other reading pages, and the handwriting can be drawn in the canvas container. And when the handwriting anchor point information and the handwriting drawing information are acquired by accessing the cloud server, the handwriting anchor point information and the handwriting drawing information are acquired. Or, the handwriting anchor point information and the handwriting drawing information can be stored in the client local and the cloud server at the same time, so that the storage safety of the handwriting anchor point information and the handwriting drawing information is guaranteed, and the problems of information storage loss and the like are avoided.
Step S403, when the user browses the current reading page, acquiring the handwriting anchor point information and the handwriting drawing information of the current reading page, which are stored by the client locally and/or the cloud server.
After the user reads the handwriting on the current reading page, or when the user turns the current reading page to browse after reading other reading pages, or when the user reopens the electronic book to browse the current reading page, the user can query whether the handwriting anchor point information and the handwriting drawing information of the current reading page exist in the client local and/or cloud server by taking the page number of the current reading page as a query condition, if so, the handwriting of the user exists on the current reading page, and the handwriting information and the handwriting drawing anchor point information of the current reading page stored in the client local and/or cloud server are acquired.
And S404, transmitting the handwriting anchor point information of the current reading page to the reader engine, and acquiring the canvas container of the current reading page returned by the reader engine.
And S405, transmitting the canvas container and the handwriting drawing information to the handwriting drawing module so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information.
Step S406, the drawn canvas container is transmitted back to the reader engine.
Step S407, receiving a page turning instruction aiming at the current reading page triggered by the user, and calling the reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container.
The above steps are described with reference to steps S101-S104 of the embodiment of fig. 1, and are not described again here.
Furthermore, if the user writes handwriting in the current reading page for multiple times, the handwriting can be drawn in the canvas container for multiple times, so that the multiple handwriting and the text information of the current reading page are taken as a whole to present a consistent page turning effect.
Step S408, receiving a zooming instruction aiming at the current reading page triggered by the user, and calling the reader engine to perform corresponding zooming processing on the text information and the handwriting of the current reading page contained in the drawn canvas container.
When the user browses the current reading page, the user may adjust the display format of the current reading page, for example, zoom the current reading page, and adjust the display effect of the current reading page. Correspondingly, when a zooming instruction aiming at the current reading page triggered by a user is received, according to zooming parameter information contained in the zooming instruction, a reader engine is called to perform corresponding zooming processing on the text information and the handwriting of the current reading page contained in the drawn canvas container, and the display effect of the presented text information and the presented handwriting of the current reading page is consistent with that of the current reading page is ensured when the page is turned.
When the reader engine is called to perform corresponding scaling processing on the text information and the handwriting of the current reading page contained in the drawn canvas container, the text information of the current reading page can be directly scaled according to the scaling parameter information contained in the scaling instruction. Specifically, the position information of the first pen-drop point in the handwriting starting point information is determined according to the position information of the first pen-drop point in the handwriting starting point information before zooming, the position information of the first pen-drop point in the handwriting starting point information after zooming is determined again based on the position of the text after zooming, and other point positions in the handwriting are correspondingly adjusted based on the adjustment of the handwriting starting point information. If the handwriting of the user is the marking annotation, the corresponding text of the marking annotation is ABCDEF, and the position information of the first pen-falling point of the marking annotation is below the text A. And amplifying the text 'ABCDEF' correspondingly according to the zooming instruction such as the amplifying instruction, and simultaneously re-determining the position information of the first pen drop point of the marking annotation according to the text 'A', amplifying the marking annotation integrally and correspondingly, and ensuring that the marking annotation corresponds to the position of the text information after the zooming. And when the handwriting of the user is the handwritten character, re-determining the position information of the first pen-falling point of the handwritten character according to the zoomed text, and zooming the handwritten file according to the zooming instruction to obtain the zoomed handwritten character. The zooming process of the handwriting can be performed by the canvas container for the whole zooming process of the handwriting, which is not described herein.
According to the method for realizing the page turning effect of the handwriting, provided by the invention, when the user reads the handwriting on the current page, the handwriting anchor point information and the handwriting drawing information are generated, so that the handwriting can be drawn in a canvas container containing the text information of the current page according to the handwriting anchor point information and the handwriting drawing information. The drawn canvas container simultaneously contains the text information and the handwriting of the current reading page, the reader engine processes the canvas container, namely the text information and the handwriting of the current reading page are processed as a whole, the text information and the handwriting of the current reading page are guaranteed to present the same processing effect, such as page turning effect, zooming processing and the like, and the reading experience of a user is improved.
EXAMPLE III
The third embodiment of the present application provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the implementation method for the page turning effect of the handwriting in any of the above method embodiments.
The executable instructions may be specifically configured to cause the processor to: transmitting the handwriting anchor point information of the current reading page to a reader engine, and acquiring a canvas container of the current reading page returned by the reader engine; the canvas container and the handwriting drawing information are transmitted to the handwriting drawing module, so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information; the drawn canvas container is transmitted back to the reader engine; and receiving a page turning instruction aiming at the current reading page triggered by a user, and calling a reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container.
In an alternative embodiment, the executable instructions further cause the processor to: transmitting the handwriting anchor point information of the current reading page to a reader engine, so that the reader engine determines the current reading page according to the handwriting id which is contained in the handwriting anchor point information and corresponds to the current reading page, obtaining the text information of the current reading page, and rendering to obtain a canvas container containing the text information of the current reading page; and determining corresponding handwriting drawing starting point information in the canvas container according to the handwriting starting point information contained in the handwriting anchor point information.
In an alternative embodiment, the executable instructions further cause the processor to: and transmitting the canvas container and the handwriting drawing information to a handwriting drawing module, determining a handwriting drawing starting point by the handwriting drawing module according to the corresponding handwriting drawing starting point information in the canvas container, and drawing the handwriting in the canvas container according to the handwriting drawing information.
In an alternative embodiment, the executable instructions further cause the processor to: creating a drawing view on a page view of a current reading page, acquiring handwriting of a user on the drawing view, and generating handwriting anchor point information and handwriting drawing information; the handwriting anchor point information comprises handwriting id and handwriting initial point information corresponding to the current reading page; the handwriting anchor point information and the handwriting drawing information are transmitted back to the client side local and/or cloud server for storage; when a user browses a current reading page, acquiring handwriting anchor point information and handwriting drawing information of the current reading page, which are stored in a local client and/or a cloud server.
In an alternative embodiment, the page flip effect is a semi-transparent effect.
In an alternative embodiment, the executable instructions further cause the processor to: and receiving a zooming instruction aiming at the current reading page triggered by a user, and calling a reader engine to zoom the text information and the handwriting of the current reading page contained in the drawn canvas container.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 5, the electronic device may include: a processor (processor)502, a 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 execute relevant steps in the above-described implementation method embodiment of the page turning effect of the handwriting.
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 server 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: transmitting the handwriting anchor point information of the current reading page to a reader engine, and acquiring a canvas container of the current reading page returned by the reader engine; the canvas container and the handwriting drawing information are transmitted to the handwriting drawing module, so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information; the drawn canvas container is transmitted back to the reader engine; and receiving a page turning instruction aiming at the current reading page triggered by a user, and calling a reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container.
In an alternative embodiment, the program 510 is configured to enable the processor 502 to transmit handwriting anchor information of a current reading page to the reader engine, so that the reader engine determines the current reading page according to a handwriting id corresponding to the current reading page and included in the handwriting anchor information, obtains text information of the current reading page, and renders to obtain a canvas container including the text information of the current reading page; and determining corresponding handwriting drawing starting point information in the canvas container according to the handwriting starting point information contained in the handwriting anchor point information.
In an alternative embodiment, the program 510 is configured to cause the processor 502 to transfer the canvas container and the handwriting drawing information to the handwriting drawing module, determine a handwriting drawing starting point according to corresponding handwriting drawing starting point information in the canvas container by the handwriting drawing module, and draw the handwriting in the canvas container according to the handwriting drawing information.
In an alternative embodiment, the program 510 is configured to enable the processor 502 to create a drawing view on a page view of a current reading page, obtain a handwriting of a user on the drawing view, and generate handwriting anchor point information and handwriting drawing information; the handwriting anchor point information comprises handwriting id and handwriting initial point information corresponding to the current reading page; the handwriting anchor point information and the handwriting drawing information are transmitted back to the client side local and/or cloud server for storage; when a user browses a current reading page, acquiring handwriting anchor point information and handwriting drawing information of the current reading page, which are stored in a local client and/or a cloud server.
In an alternative embodiment, the page flip effect is a semi-transparent effect.
In an alternative embodiment, the program 510 is configured to enable the processor 502 to receive a zoom instruction for a current reading page triggered by a user, and invoke the reader engine to zoom text information and handwriting of the current reading page contained in the drawn canvas container.
For specific implementation of each step in the program 510, reference may be made to the corresponding description in the corresponding step in the implementation embodiment of the page turning effect of the handwriting, which is not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
According to the scheme provided by the embodiment, the reader engine is called to generate the canvas container of the current reading page, and the handwriting of the user is drawn in the canvas container, so that the current reading page and the handwriting are fused into a whole. During page turning, the reader engine performs integral page turning by using the drawn canvas container, so that the current reading page and the handwriting show consistent page turning effect.
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 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 the invention as claimed requires 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 described 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 claims, any of the claimed embodiments may be used in any combination.
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. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses: A1. a method for realizing page turning effect of handwriting comprises the following steps:
transmitting the handwriting anchor point information of the current reading page to a reader engine, and acquiring a canvas container of the current reading page returned by the reader engine;
the canvas container and the handwriting drawing information are transmitted to a handwriting drawing module, so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information;
returning the drawn canvas container to the reader engine;
and receiving a page turning instruction aiming at the current reading page triggered by a user, and calling the reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container.
A2. The method according to a1, wherein the transferring handwriting anchor information of the current reading page to a reader engine, and the obtaining the canvas container of the current reading page returned by the reader engine further comprises:
transmitting the handwriting anchor point information of the current reading page to a reader engine, so that the reader engine determines the current reading page according to the handwriting id which is contained in the handwriting anchor point information and corresponds to the current reading page, obtaining the text information of the current reading page, and rendering to obtain a canvas container containing the text information of the current reading page; and determining corresponding handwriting drawing starting point information in the canvas container according to the handwriting starting point information contained in the handwriting anchor point information.
A3. The method of a2, wherein the passing the canvas container and handwriting drawing information to a handwriting drawing module for the handwriting drawing module to draw handwriting in the canvas container according to the handwriting drawing information further comprises:
and transmitting the canvas container and the handwriting drawing information to a handwriting drawing module, determining a handwriting drawing starting point by the handwriting drawing module according to the corresponding handwriting drawing starting point information in the canvas container, and drawing the handwriting in the canvas container according to the handwriting drawing information.
A4. The method according to A1, wherein before the passing handwriting anchor information of the current reading page to the reader engine and obtaining the canvas container of the current reading page returned by the reader engine, the method further comprises:
creating a drawing view on a page view of a current reading page, acquiring handwriting of a user on the drawing view, and generating handwriting anchor point information and handwriting drawing information; the handwriting anchor point information comprises handwriting id and handwriting initial point information corresponding to the current reading page;
the handwriting anchor point information and the handwriting drawing information are transmitted back to a client local and/or cloud server for storage;
when a user browses a current reading page, acquiring handwriting anchor point information and handwriting drawing information of the current reading page, which are stored in a local client and/or a cloud server.
A5. The method of any one of A1-A4, wherein the page flip effect is a semi-transparent effect.
A6. The method of any one of a1-a5, wherein the method further comprises:
and receiving a zooming instruction aiming at the current reading page triggered by a user, and calling a reader engine to perform corresponding zooming processing on the text information and the handwriting of the current reading page contained in the drawn canvas container.
The invention also discloses: B7. an electronic device, 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:
transmitting the handwriting anchor point information of the current reading page to a reader engine, and acquiring a canvas container of the current reading page returned by the reader engine;
the canvas container and the handwriting drawing information are transmitted to a handwriting drawing module, so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information;
returning the drawn canvas container to the reader engine;
and receiving a page turning instruction aiming at the current reading page triggered by a user, and calling the reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container.
B8. The electronic device of B7, the executable instructions further cause the processor to:
transmitting the handwriting anchor point information of the current reading page to a reader engine, so that the reader engine determines the current reading page according to the handwriting id which is contained in the handwriting anchor point information and corresponds to the current reading page, obtaining the text information of the current reading page, and rendering to obtain a canvas container containing the text information of the current reading page; and determining corresponding handwriting drawing starting point information in the canvas container according to the handwriting starting point information contained in the handwriting anchor point information.
B9. The electronic device of B8, the executable instructions further cause the processor to:
and transmitting the canvas container and the handwriting drawing information to a handwriting drawing module, determining a handwriting drawing starting point by the handwriting drawing module according to the corresponding handwriting drawing starting point information in the canvas container, and drawing the handwriting in the canvas container according to the handwriting drawing information.
B10. The electronic device of B7, the executable instructions further cause the processor to:
creating a drawing view on a page view of a current reading page, acquiring handwriting of a user on the drawing view, and generating handwriting anchor point information and handwriting drawing information; the handwriting anchor point information comprises handwriting id and handwriting initial point information corresponding to the current reading page;
the handwriting anchor point information and the handwriting drawing information are transmitted back to a client local and/or cloud server for storage;
when a user browses a current reading page, acquiring handwriting anchor point information and handwriting drawing information of the current reading page, which are stored in a local client and/or a cloud server.
B11. The electronic device of any of B7-B10, the page flip effect is a semi-transparent effect.
B12. The electronic device of any of B7-11, the executable instructions further cause the processor to:
and receiving a zooming instruction aiming at the current reading page triggered by a user, and calling a reader engine to perform corresponding zooming processing on the text information and the handwriting of the current reading page contained in the drawn canvas container.
The invention also discloses: C13. a computer storage medium, wherein the storage medium stores at least one executable instruction, and the executable instruction causes a processor to execute the operation corresponding to the implementation method of the page turning effect of the handwriting as described in any one of a1-a 7.

Claims (10)

1. A method for realizing page turning effect of handwriting comprises the following steps:
transmitting the handwriting anchor point information of the current reading page to a reader engine, and acquiring a canvas container of the current reading page returned by the reader engine;
the canvas container and the handwriting drawing information are transmitted to a handwriting drawing module, so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information;
returning the drawn canvas container to the reader engine;
and receiving a page turning instruction aiming at the current reading page triggered by a user, and calling the reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container.
2. The method of claim 1, wherein the passing handwriting anchor information of the current reading page to a reader engine, and the obtaining the canvas container of the current reading page returned by the reader engine further comprises:
transmitting the handwriting anchor point information of the current reading page to a reader engine, so that the reader engine determines the current reading page according to the handwriting id which is contained in the handwriting anchor point information and corresponds to the current reading page, obtaining the text information of the current reading page, and rendering to obtain a canvas container containing the text information of the current reading page; and determining corresponding handwriting drawing starting point information in the canvas container according to the handwriting starting point information contained in the handwriting anchor point information.
3. The method of claim 2, wherein the passing the canvas container and handwriting drawing information to a handwriting drawing module for the handwriting drawing module to draw handwriting in the canvas container according to the handwriting drawing information further comprises:
and transmitting the canvas container and the handwriting drawing information to a handwriting drawing module, determining a handwriting drawing starting point by the handwriting drawing module according to the corresponding handwriting drawing starting point information in the canvas container, and drawing the handwriting in the canvas container according to the handwriting drawing information.
4. The method of claim 1, wherein before the passing handwriting anchor information of the current reading page to a reader engine, obtaining a canvas container of the current reading page returned by the reader engine, the method further comprises:
creating a drawing view on a page view of a current reading page, acquiring handwriting of a user on the drawing view, and generating handwriting anchor point information and handwriting drawing information; the handwriting anchor point information comprises handwriting id and handwriting initial point information corresponding to the current reading page;
the handwriting anchor point information and the handwriting drawing information are transmitted back to a client local and/or cloud server for storage;
when a user browses a current reading page, acquiring handwriting anchor point information and handwriting drawing information of the current reading page, which are stored in a local client and/or a cloud server.
5. The method of any of claims 1-4, wherein the page flip effect is a semi-transparent effect.
6. The method according to any one of claims 1-5, wherein the method further comprises:
and receiving a zooming instruction aiming at the current reading page triggered by a user, and calling a reader engine to perform corresponding zooming processing on the text information and the handwriting of the current reading page contained in the drawn canvas container.
7. An electronic device, 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:
transmitting the handwriting anchor point information of the current reading page to a reader engine, and acquiring a canvas container of the current reading page returned by the reader engine;
the canvas container and the handwriting drawing information are transmitted to a handwriting drawing module, so that the handwriting drawing module draws the handwriting in the canvas container according to the handwriting drawing information;
returning the drawn canvas container to the reader engine;
and receiving a page turning instruction aiming at the current reading page triggered by a user, and calling the reader engine to present a page turning effect aiming at the current reading page by using the drawn canvas container.
8. The electronic device of claim 7, the executable instructions further cause the processor to:
transmitting the handwriting anchor point information of the current reading page to a reader engine, so that the reader engine determines the current reading page according to the handwriting id which is contained in the handwriting anchor point information and corresponds to the current reading page, obtaining the text information of the current reading page, and rendering to obtain a canvas container containing the text information of the current reading page; and determining corresponding handwriting drawing starting point information in the canvas container according to the handwriting starting point information contained in the handwriting anchor point information.
9. The electronic device of claim 8, the executable instructions further cause the processor to:
and transmitting the canvas container and the handwriting drawing information to a handwriting drawing module, determining a handwriting drawing starting point by the handwriting drawing module according to the corresponding handwriting drawing starting point information in the canvas container, and drawing the handwriting in the canvas container according to the handwriting drawing information.
10. 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 implementing a page flip effect of handwriting as claimed in any one of claims 1-7.
CN202011504713.3A 2020-12-18 2020-12-18 Method for realizing page turning effect of handwriting, electronic equipment and storage medium Active CN112486398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011504713.3A CN112486398B (en) 2020-12-18 2020-12-18 Method for realizing page turning effect of handwriting, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011504713.3A CN112486398B (en) 2020-12-18 2020-12-18 Method for realizing page turning effect of handwriting, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112486398A true CN112486398A (en) 2021-03-12
CN112486398B CN112486398B (en) 2022-05-20

Family

ID=74914703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011504713.3A Active CN112486398B (en) 2020-12-18 2020-12-18 Method for realizing page turning effect of handwriting, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112486398B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672150A (en) * 2021-09-03 2021-11-19 掌阅科技股份有限公司 Electronic book page display method, electronic equipment and storage medium
CN113723065A (en) * 2021-09-02 2021-11-30 掌阅科技股份有限公司 Display method of handwritten annotations, reading equipment and computer storage medium
CN113946774A (en) * 2021-10-26 2022-01-18 掌阅科技股份有限公司 Book webpage skipping method, computing device and computer storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147693A (en) * 2010-02-09 2011-08-10 江国庆 Electronic book device with scrawl module or bookmark module
CN104520843A (en) * 2012-08-08 2015-04-15 微软公司 Providing note based annotation of content in e-reader
CN109032999A (en) * 2018-08-15 2018-12-18 掌阅科技股份有限公司 Take down notes display methods, electronic equipment and computer storage medium
CN109085965A (en) * 2018-07-19 2018-12-25 掌阅科技股份有限公司 Take down notes generation method, electronic equipment and computer storage medium
CN109471587A (en) * 2018-11-13 2019-03-15 掌阅科技股份有限公司 The display methods and electronic equipment of handwritten content based on Java Virtual Machine
CN109542382A (en) * 2017-12-26 2019-03-29 掌阅科技股份有限公司 Display methods, electronic equipment and the computer storage medium of handwriting input content
CN109977873A (en) * 2019-03-27 2019-07-05 掌阅科技股份有限公司 Notes generation method, electronic equipment and storage medium based on handwriting
CN110196675A (en) * 2019-04-17 2019-09-03 华为技术有限公司 A kind of method and electronic equipment of addition annotation
CN110658968A (en) * 2019-09-24 2020-01-07 掌阅科技股份有限公司 Page turning processing method of photo e-book and electronic equipment
CN110737496A (en) * 2019-10-15 2020-01-31 掌阅科技股份有限公司 Method for realizing calendar page turning effect, electronic equipment and computer storage medium
CN111460345A (en) * 2020-03-30 2020-07-28 掌阅科技股份有限公司 Electronic book loading display method, electronic equipment and storage medium
CN111862349A (en) * 2019-04-26 2020-10-30 北京字节跳动网络技术有限公司 Virtual brush implementation method and device and computer readable storage medium
CN112042175A (en) * 2018-03-23 2020-12-04 深圳市柔宇科技股份有限公司 Terminal page turning method and device and handwriting board

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147693A (en) * 2010-02-09 2011-08-10 江国庆 Electronic book device with scrawl module or bookmark module
CN104520843A (en) * 2012-08-08 2015-04-15 微软公司 Providing note based annotation of content in e-reader
CN109542382A (en) * 2017-12-26 2019-03-29 掌阅科技股份有限公司 Display methods, electronic equipment and the computer storage medium of handwriting input content
CN112042175A (en) * 2018-03-23 2020-12-04 深圳市柔宇科技股份有限公司 Terminal page turning method and device and handwriting board
CN109085965A (en) * 2018-07-19 2018-12-25 掌阅科技股份有限公司 Take down notes generation method, electronic equipment and computer storage medium
CN109032999A (en) * 2018-08-15 2018-12-18 掌阅科技股份有限公司 Take down notes display methods, electronic equipment and computer storage medium
CN109471587A (en) * 2018-11-13 2019-03-15 掌阅科技股份有限公司 The display methods and electronic equipment of handwritten content based on Java Virtual Machine
CN109977873A (en) * 2019-03-27 2019-07-05 掌阅科技股份有限公司 Notes generation method, electronic equipment and storage medium based on handwriting
CN110196675A (en) * 2019-04-17 2019-09-03 华为技术有限公司 A kind of method and electronic equipment of addition annotation
CN111862349A (en) * 2019-04-26 2020-10-30 北京字节跳动网络技术有限公司 Virtual brush implementation method and device and computer readable storage medium
CN110658968A (en) * 2019-09-24 2020-01-07 掌阅科技股份有限公司 Page turning processing method of photo e-book and electronic equipment
CN110737496A (en) * 2019-10-15 2020-01-31 掌阅科技股份有限公司 Method for realizing calendar page turning effect, electronic equipment and computer storage medium
CN111460345A (en) * 2020-03-30 2020-07-28 掌阅科技股份有限公司 Electronic book loading display method, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113723065A (en) * 2021-09-02 2021-11-30 掌阅科技股份有限公司 Display method of handwritten annotations, reading equipment and computer storage medium
CN113672150A (en) * 2021-09-03 2021-11-19 掌阅科技股份有限公司 Electronic book page display method, electronic equipment and storage medium
CN113946774A (en) * 2021-10-26 2022-01-18 掌阅科技股份有限公司 Book webpage skipping method, computing device and computer storage medium

Also Published As

Publication number Publication date
CN112486398B (en) 2022-05-20

Similar Documents

Publication Publication Date Title
CN112486398B (en) Method for realizing page turning effect of handwriting, electronic equipment and storage medium
WO2020173008A1 (en) Text recognition method and apparatus
US20130238968A1 (en) Automatic Creation of a Table and Query Tools
US10013156B2 (en) Information processing apparatus, information processing method, and computer-readable recording medium
JP6416210B2 (en) System and method for resolving item selection ambiguity
CN106844302B (en) Electronic book page display method and device and terminal equipment
CN114648615B (en) Method, device and equipment for controlling interactive reproduction of target object and storage medium
CN112686015A (en) Chart generation method, device, equipment and storage medium
CN112052038A (en) Method and device for generating front-end interface
JP2011086050A (en) Information processing terminal and computer program
CN110036356B (en) Image processing in VR systems
US20150138077A1 (en) Display system and display controll device
CN106780660B (en) A kind of image processing method and electronic equipment
WO2015120370A1 (en) Automatically embedding digital maps in software applications
CN113763514B (en) Method, device and system for generating stroke order animation and electronic equipment
JP4703744B2 (en) Content expression control device, content expression control system, reference object for content expression control, and content expression control program
CN113723065A (en) Display method of handwritten annotations, reading equipment and computer storage medium
JP4550460B2 (en) Content expression control device and content expression control program
CN109558186A (en) A kind of page display method and device
US20170017370A1 (en) Device and method for processing data
CN111688605B (en) Character batch graph cutting method applied to automobile instrument and related equipment
JP6676121B2 (en) Data input device and data input program
CN108073594B (en) Method and device for generating thermodynamic diagram
CN112529643B (en) Electronic invoice processing method and device, storage medium and electronic equipment
JP4330637B2 (en) Portable device

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