Data processing method and device, electronic equipment, storage medium and program product
By implementing the linkage update of drawing points and target document data in an e-reader, the problem that the tag content is no longer displayed after the document content is updated is solved, ensuring that the tag information is always associated with the latest document content, and a flexible document marking and viewing experience is achieved.
Patent Information
- Application Number
- CN202510013300.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-01-03
AI Technical Summary
After the document content is updated, the tagged content will no longer be displayed or will no longer be displayed in association with the expected document content, resulting in the tag information being lost or display abnormally.
By displaying the data processing method of the target document in the reader, the data linkage update between the drawing point and the target document is realized. The specific steps include displaying the initial data of the target document, updating the display data in response to the data update operation, and obtaining the drawing style parameters and updated document data in the presence of the drawing point, and re-drawing the corresponding drawing point.
When document data is updated, the drawing point and document data are updated in a coordinated manner, ensuring that the marking content is always displayed in association with the latest document content, solving the problem of marking information loss.
Smart Images

Figure CN119940309A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer processing technology, and in particular, to a data processing method, device, electronic device, storage medium, and program product. Background Art
[0002] In document reading scenarios, some document contents need to be marked to assist understanding or memory, or to be saved as bookmarks. Although some e-readers support marking the presented content, the marking method is limited by the characteristics of the e-reader. Once the document content is reformatted, the marked content of the target document will no longer be displayed, or the mark will no longer be associated with the expected document content. Summary of the invention
[0003] The embodiments of the present disclosure provide a data processing method, device, electronic device, storage medium, and program product to achieve the effect of linking and updating the data of a drawing point and a target document.
[0004] In a first aspect, an embodiment of the present disclosure provides a data processing method, the method comprising:
[0005] Displaying first document data of a target document in a reader; wherein the target document is associated with document drawing data; the document drawing data includes first document position data of a plurality of drawing points relative to the target document; the plurality of drawing points are used to mark the target document;
[0006] In response to a data update operation for the target document, determining second document data to be displayed in the reader according to the data update operation, and displaying the second document data in the reader; and
[0007] When there is a first drawing point associated with the second document data among the plurality of drawing points, a drawing style parameter of the first drawing point is obtained, and the second drawing point is drawn in the reader according to the drawing style parameter, the second document data, and the first document position data of the first drawing point.
[0008] In a second aspect, an embodiment of the present disclosure further provides a data processing device, the device comprising:
[0009] A document data display module, used for displaying first document data of a target document in a reader; wherein the target document is associated with document drawing data; the document drawing data includes first document position data of a plurality of drawing points relative to the target document; the plurality of drawing points are used for marking the target document;
[0010] a document data updating module, configured to respond to a data updating operation on the target document, determine second document data to be displayed in the reader according to the data updating operation, and display the second document data in the reader; and
[0011] A drawing data restoration module is used to obtain a drawing style parameter of a first drawing point associated with the second document data when there is a first drawing point associated with the second document data among multiple drawing points, and draw the second drawing point in the reader according to the drawing style parameter, the second document data and the first document position data of the first drawing point.
[0012] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0013] one or more processors;
[0014] a storage device for storing one or more programs,
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method as described in any one of the embodiments of the present disclosure.
[0016] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the data processing method as described in any one of the embodiments of the present disclosure.
[0017] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product, including a computer program, which, when executed by a processor, implements the data processing method as described in any one of the embodiments of the present disclosure.
[0018] The technical solution of the disclosed embodiment can intuitively and conveniently view the first document data of the target document by displaying the first document data of the target document in the reader, and is suitable for the scenario where the target document is associated with document drawing data. Moreover, since the document drawing data includes the first document position data of multiple drawing points relative to the target document, it is achieved that the document drawing data is generated by recording the relative position between the drawing points and the target document, which is different from the method of recording the screen drawing coordinates of the drawing points. It can provide a data basis for restoring the relative display effect of the drawing points and the document data when drawing. Moreover, the target document can be marked by the multiple drawing points. Then, by responding to the data update operation for the target document, the second document data to be displayed in the reader is determined according to the data update operation, and the second document data is displayed in the reader. The document data can be updated through simple interactive operations. and, when there is a first drawing point associated with the second document data among the plurality of drawing points, obtaining a drawing style parameter of the first drawing point, drawing a second drawing point in the reader according to the drawing style parameter, the second document data and the first document position data of the first drawing point, so that when the document data of the target document is updated from the first document data to the second document data, the second drawing point corresponding to the second document data can be displayed, so that the flexible marking of the target document and the re-viewing of the document drawing data can be truly realized, and the relative display effect of the second drawing point and the second document data when drawing can be presented, which solves the problem in the related art that the content marked in the target document will no longer be displayed or will no longer be displayed in association with the expected document content due to the update of the document content, and realizes the technical effect of realizing the linkage update of the drawing point and the document data when the data of the target document changes. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0020] Figure 1A A flowchart of a data processing method provided by an embodiment of the present disclosure;
[0021] Figure 1B A schematic diagram of the effect of linkage update of document drawing data and document data in a data processing method of an embodiment of the present disclosure provided by the embodiment of the present disclosure;
[0022] Figure 2 A flowchart of another data processing method provided by an embodiment of the present disclosure;
[0023] Figure 3A A flowchart of another data processing method provided by an embodiment of the present disclosure;
[0024] Figure 3B A schematic diagram of a method for recording document location data for a data processing method of an embodiment of the present disclosure provided by the present disclosure;
[0025] Figure 4A A schematic diagram of regional drawing position data of multiple touch points recorded in an optional example of a data processing method of an embodiment of the present disclosure provided by the embodiment of the present disclosure;
[0026] Figure 4B A schematic diagram of a relative position relationship between a touch point and a character in an optional example of a data processing method of an embodiment of the present disclosure provided by the embodiment of the present disclosure;
[0027] Figure 5 A schematic diagram of the structure of a data processing device provided by an embodiment of the present disclosure;
[0028] Figure 6 A schematic diagram of the structure of an electronic device provided by the embodiment of the present disclosure for implementing the embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0030] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0031] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0035] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0036] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0037] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0038] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0039] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0040] Figure 1AThis is a flow chart of a data processing method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the scenario of flexibly adding document drawing data to a target document. The method can be executed by a data processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server. Figure 1A As shown, the method of this embodiment may specifically include:
[0041] S110, displaying first document data of a target document in a reader; wherein the target document is associated with document drawing data; the document drawing data includes first document position data of a plurality of drawing points relative to the target document; the plurality of drawing points are used to mark the target document.
[0042] In the disclosed embodiments, the reader may be understood as a container for displaying the document data of a target document so that a user can read the target document. Specifically, the reader may be a component deployed in a web page or an application for displaying the document data of an electronic document. The reader may be presented in a partial area of a page of a web page or an application or may cover the entire area. The document data displayed in the reader may be all or part of the document data of the target document. The target document may be an electronic document that can be displayed in the reader. Exemplarily, the target document may include at least an electronic book. In addition, the target document may also include an electronic newspaper and / or an electronic magazine, etc.
[0043] Document data may include multiple characters in a document. Characters may be words and / or symbols. Document data in a target document may be displayed in a reader according to the typesetting data of the target document. Typesetting data is usually used to define detailed data of the layout and format of the document data of a target document in a reader. Typesetting data determines the visual presentation of a document or publication. Document data of a target document may include data presented in the form of text, images, and tables. Typesetting data may include, but is not limited to, one or more page display parameters such as font, font size, line spacing, paragraph alignment, page margins, headers and footers, page numbers, image position and size. The same target document may have different styles of display of its document data in a reader under different typesetting data.
[0044] In the disclosed embodiment, the document drawing data can be understood as data drawn for the target document, or in other words, drawing data received when at least part of the document data of the target document is presented in the reader. More specifically, the document drawing data includes drawing data of multiple drawing points. The multiple drawing points are used to mark the target document. Exemplarily, in the case where the target document is an e-book, the document drawing data can be the line drawing data in the e-book. In other words, notes can be added to the target document by adding line drawing data to the target document, and the document drawing data can be obtained by recording the data of multiple track points (drawing points) corresponding to the line drawing data.
[0045] The first document position data may be understood as the positions of the plurality of drawing points relative to the target document when drawing, or in other words, the relative display positions of the plurality of drawing points relative to the document data in the target document when drawing.
[0046] As an optional technical solution of the embodiment of the present disclosure, the first document position data may include the target document data in the target document, the target arrangement position data of the target document data in the target document, and the relative position of the drawing point and the target document data. The document data of the target document includes a plurality of characters, and the target document data may be the target characters in the target document. Specifically, the first document position data includes target character position data and character relative position data. The target character position data may specifically include character arrangement position data of the target character associated with the drawing point in the target document. For example, the target character position data may be data for indicating which character the target character is in the target document. The character relative position may specifically include position offset data of the drawing point relative to the target character. Optionally, the first document position data also includes the target document data in the target document, such as the target character associated with the drawing point in the target document, so as to realize rapid positioning of the document drawing data through the target document data.
[0047] Exemplarily, the target character position data may include at least one of the following data: identification data (chapter identification) for indicating the chapter where the target character is located, identification data for indicating the paragraph where the target character is located, identification data (row identification) for indicating the line where the target character is located, and character offset data for indicating the target character relative to the chapter, paragraph or line where the target character is located. The character offset data is used to characterize the character number of the target character in the chapter, paragraph or line where the target character is located. For example, the target character position data may include a chapter identification, a paragraph identification, and character offset data for characterizing the target character relative to the paragraph where the target character is located. The relative position of the character may include the position offset data of the drawing point relative to the target point of the character box corresponding to the target character in at least one preset direction. The target point may be a vertex or a center point of a character box, for example, the target point may specifically be a vertex located at the lower edge of the character box.
[0048] Optionally, the display of the first document data of the target document in the reader includes: a data display request for the target document, determining the first document data in the target document according to the data display request, and displaying the first document data in the reader. The data display request for the target document may be generated according to a display trigger operation for the target document, or may be generated according to a preset trigger event. Exemplarily, the display trigger operation for the target document may include but is not limited to at least one of an operation such as receiving an identifier selection operation for a document identifier of a target document, dragging the target document into the reader, and receiving a data switching operation for switching the document data displayed by the reader to the document data of the target document. The preset trigger event may include but is not limited to at least one of an event such as reaching a preset document display time with the target document, receiving a target document, and receiving a document display notification message sent through a preset interface.
[0049] S120. In response to a data update operation on the target document, determine second document data to be displayed in the reader according to the data update operation, and display the second document data in the reader.
[0050] In the embodiment of the present disclosure, the data update operation for the target document can be understood as an operation for updating the display information of the document data in the reader, or can be understood as an operation for updating the first document data in the reader to the second document data. Exemplarily, the data update operation for the target document can include a document data switching operation for switching the display of the document data of the target document and / or a document layout adjustment operation for the layout data of the document data of the target document in the reader, etc. For example, the document data switching operation can be a sliding operation acting on the reader, or a control triggering operation acting on the content switching control (such as a table of contents) corresponding to the target document, etc. The document layout adjustment operation can at least include an operation for adjusting the display size and / or display spacing of the document data. For example, in the case where the document data of the target document includes multiple text lines, each text line includes at least one character, the document layout adjustment operation can be an operation for adjusting the character size and / or an operation for adjusting the line spacing between text lines, etc. After executing the data update operation, the second document data displayed in the reader can be the same as or different from the first document data.
[0051] As an optional implementation of the embodiment of the present disclosure, when the data update operation includes a document typesetting adjustment operation, determining the second document data to be displayed in the reader based on the data update operation may specifically include: acquiring the first typesetting data before performing the document typesetting adjustment operation on the target document, and determining the second typesetting data based on the document typesetting adjustment operation and the first typesetting data; determining the data adjustment amount between the first typesetting data and the second typesetting data, and determining the second document data to be displayed in the reader based on the data adjustment amount and the first document data.
[0052] As another optional implementation manner of the embodiment of the present disclosure, when the data update operation includes a document data switching operation, determining the second document data to be displayed in the reader based on the data update operation may specifically include: in response to a directory trigger operation for a document directory of the target document, determining the second document data to be displayed in the reader based on the directory trigger operation and the document directory; or, in response to a sliding operation acting on the reader, determining the second document data to be displayed in the reader based on the sliding operation and the first document data.
[0053] S130: When there is a first drawing point associated with the second document data among the plurality of drawing points, obtain a drawing style parameter of the first drawing point, and draw the second drawing point in the reader according to the drawing style parameter, the second document data, and the first document position data of the first drawing point.
[0054] In the embodiment of the present disclosure, the first drawing point associated with the second document data can be understood as a drawing point to be displayed in association with the second document data among multiple drawing points, or a drawing point that is adjacent to the second document data relative to the position of the target document among multiple drawing points. For example, the first document position data corresponding to the multiple drawing points includes a drawing point of the target document position data corresponding to the second document data.
[0055] As an optional implementation scheme of the embodiment of the present disclosure, after determining the second document data to be displayed in the reader according to the data update operation, and before drawing the second drawing point in the reader according to the second document data and the first document position data of the first drawing point, it also includes: determining the document display area corresponding to the second document data according to the corresponding data arrangement position of the second document data in the target document; determining the first drawing point associated with the second document data from the multiple drawing points according to the document display area and the first document position data of the multiple drawing points. By adopting this technical solution, the first drawing point associated with the second document data can be quickly and accurately determined from the text drawing data associated with the target document, without recalculating the drawing position of the drawing points not related to the second document data, so as to save the amount of data calculation when redrawing the drawing points, thereby effectively improving the drawing efficiency of the drawing points.
[0056] Wherein, the target arrangement position data corresponding to the second document data in the target document may include at least one of the data such as the chapter, paragraph and text line where the second document data is located. Exemplarily, when the target arrangement position data of the target document data in the first document position data of the drawing point in the target document is consistent with the target arrangement position data of the second document data, the drawing point is determined as the first drawing point associated with the second document data. Specifically, the first document position data of the plurality of drawing points associated with the target document are queried according to the target arrangement position data corresponding to the second document data; the queried target arrangement position data corresponding to the second document data is determined as the first drawing point associated with the second document data.
[0057] In the embodiment of the present disclosure, the drawing style parameter of the first drawing point can be understood as the drawing style parameter used when drawing the first drawing point. The drawing style parameter can be understood as the parameter used to determine the style of the drawing point when drawing the trajectory. The drawing style parameter can be a default parameter, or a style parameter configured according to a parameter configuration operation for presenting the drawing point. The drawn trajectory can present a preset effect by configuring the drawing style parameter.
[0058] In the case where there is a first drawing point associated with the second document data among the multiple drawing points, the first drawing point can be redrawn in the reader to be displayed in association with the second document data. In order to restore the relative display effect of the first drawing point and the second document data during drawing as much as possible, the regional drawing position data of the first drawing point in the reader can be determined according to the second document data and the first document position data of the first drawing point, that is, the first regional position data of the first drawing point relative to the reader is determined, and then the first drawing point is drawn at the target position corresponding to the regional drawing position data in the reader according to the drawing style parameters to obtain the second drawing point.
[0059] like Figure 1B As shown, taking the target document as a document including poetry data as an example, the first document data may be the content of the poem "Nian Nu Jiao·Recalling the Past at Chibi", and the multiple drawing points associated with the poem displayed in the reader are the multiple drawing points of the first track corresponding to "Rough rocks penetrate the sky, the waves beat the shore, and thousands of piles of snow are rolled up." and the multiple drawing points of the second track corresponding to "With a feather fan and a blue scarf, in the midst of talking and laughing, the masts and oars are reduced to ashes and smoke." After the first document data is updated to the second document data of the content of the poem "Man Jiang Hong", the multiple drawing points displayed in the reader may be updated to the multiple drawing points of the third track corresponding to "Thirty years of fame and fortune are dust and earth, eight thousand miles of journey are clouds and moon." and the multiple drawing points of the fourth track corresponding to "Don't wait, your youth is gone, and you are sad for nothing!" That is, when the document data is updated, the document drawing data associated with the document data will be updated along with the update of the document data.
[0060] The technical solution of the disclosed embodiment can intuitively and conveniently view the first document data of the target document by displaying the first document data of the target document in the reader, and is suitable for the scenario where the target document is associated with document drawing data. Moreover, since the document drawing data includes the first document position data of multiple drawing points relative to the target document, it is achieved by recording the relative position between the drawing points and the target document to generate the document drawing data, which is different from the method of recording the screen drawing coordinates of the drawing points. It can provide a data basis for restoring the relative display effect of the drawing points and the document data when drawing, and it can mark the target document with multiple drawing points. Then, by responding to the data update operation for the target document, the second document data to be displayed in the reader is determined according to the data update operation, and the second document data is displayed in the reader, so that the document data can be updated through simple interactive operations. and, when there is a first drawing point associated with the second document data among the plurality of drawing points, obtaining a drawing style parameter of the first drawing point, drawing a second drawing point in the reader according to the drawing style parameter, the second document data and the first document position data of the first drawing point, so that when the document data of the target document is updated from the first document data to the second document data, the second drawing point corresponding to the second document data can be displayed, so that the flexible marking of the target document and the re-viewing of the document drawing data can be truly realized, and the relative display effect of the second drawing point and the second document data when drawing can be presented, so as to solve the problem in the related art that the marked content of the target document will no longer be displayed or will no longer be displayed in association with the expected document content due to the update of the document content, and realize the technical effect of realizing the linkage update of the drawing point and the document data when the data of the target document changes.
[0061] Figure 2 A flowchart of another data processing method provided by an embodiment of the present disclosure. The technical solution of this embodiment refines the drawing method of the second drawing point on the basis of the above-mentioned embodiment. Optionally, drawing the second drawing point in the reader according to the drawing style parameters, the second document data and the first document position data of the first drawing point includes: determining the first area position data of the first drawing point relative to the reader according to the second document data and the first document position data of the first drawing point; when the first area position data is located in the reader, drawing the second drawing point in the reader according to the drawing style parameters and the first area position data. For specific implementation methods, please refer to the description of this embodiment. Among them, technical features that are the same or similar to those in the above-mentioned embodiments are not repeated here. Figure 2 As shown, the method of this embodiment may specifically include:
[0062] S210, displaying first document data of a target document in a reader; wherein the target document is associated with document drawing data; the document drawing data includes first document position data of a plurality of drawing points relative to the target document; the plurality of drawing points are used to mark the target document.
[0063] S220: In response to a data update operation on the target document, determine second document data to be displayed in the reader according to the data update operation, and display the second document data in the reader.
[0064] S230: When there is a first drawing point associated with the second document data among the plurality of drawing points, obtain a drawing style parameter of the first drawing point, and determine first area position data of the first drawing point relative to the reader according to the second document data and the first document position data of the first drawing point.
[0065] The first area position data can be understood as the drawing position data of the first drawing point relative to the reader, which is used to indicate where the first drawing point is to be drawn on the reader. The position corresponding to the first area position data may be a position in the reader or a position outside the reader.
[0066] As an optional implementation of the embodiment of the present disclosure, determining the first area position data of the first drawing point relative to the reader based on the second document data and the first document position data of the first drawing point may specifically include: determining the second document position data based on the data update operation and the first document position data of the first drawing point, and determining the first area position data of the first drawing point relative to the reader based on the second document data and the second document position data.
[0067] Optionally, when the data update operation does not include a document layout adjustment operation, that is, when the layout data corresponding to the second document data and the first document data are the same, the first position data of the first drawing point is the second document position data. At this time, determining the first area position data of the first drawing point relative to the reader according to the second document data and the second document position data includes: determining the target document data corresponding to the first drawing point in the second document data, and determining the first area position data of the first drawing point relative to the reader according to the display position data of the target document data on the reader and the second document position data of the first drawing point (the position offset data of the first drawing point relative to the target document data).
[0068] Optionally, in the case where the data update operation includes a document typesetting adjustment operation, that is, in the case where at least part of the typesetting data corresponding to the second document data and the first document data is different (not completely the same), the determining the second document position data according to the data update operation and the first document position data of the first drawing point includes: obtaining the first typesetting data before the document typesetting adjustment operation is performed on the target document, and determining the second typesetting data according to the document typesetting adjustment operation and the first typesetting data; determining the data adjustment amount between the first typesetting data and the second typesetting data, and determining the second document position data according to the data adjustment amount and the first document position data of the first drawing point. The advantage of adopting this technical solution is that the display position data of the first drawing point relative to the target document can be updated according to the typesetting data, so that after the second drawing point corresponding to the first drawing point is drawn in the reader, the relative display effect of the second drawing point and the second document data is similar to or the same as the display effect of the first drawing point relative to the second document data when it is drawn in the target document.
[0069] Specifically, determining the second document position data based on the data adjustment amount and the first document position data of the first drawing point includes: adjusting the position offset data in the first document position data of the first drawing point according to the data adjustment amount, and determining the second document position data according to the display position data of the target document data on the reader and the adjusted position offset data.
[0070] Exemplarily, taking the scenario where the target document includes a plurality of text lines, and the text lines include at least one document character as an example, it is assumed that the first layout data may include the first character size of the document character and / or the first line spacing between the text lines; the position offset data in the first drawing position data of the first drawing point is (first direction offset, second direction offset), the first direction is the arrangement direction of the document characters in the text line, and the second direction is a direction perpendicular to the first direction; the second layout data includes the second character size of the document character and / or the second line spacing between the text lines. At this time, the first direction offset in the position offset data in the first drawing position data of the first drawing point is obtained by multiplying the quotient of the first character size divided by the second character size by the first direction offset; the first direction offset in the position offset data in the first drawing position data of the first drawing point is obtained by multiplying the quotient of the first line spacing divided by the second line spacing by the second direction offset.
[0071] As mentioned above, the first document position data includes the target character position data and the character relative position data. On this basis, the determination of the first area position data of the first drawing point relative to the reader according to the second document data and the first document position data of the first drawing point may include: determining the area relative position data of the target character associated with the drawing point relative to the reader according to the target character position data; determining the first area position data of the first drawing point relative to the reader according to the area relative position data and the character relative position data. In short, the position of the drawing point relative to the display area can be determined by first determining the relative position of the target character relative to the reader, and then combining the relative position between the drawing point and the target character. With this technical solution, it is possible to quickly and accurately determine where the first drawing point will be on the reader.
[0072] Specifically, determining the regional relative position data of the target character associated with the drawing point relative to the reader according to the target character position data includes: determining the target character associated with the first drawing point according to the target character position data, and determining the regional relative position data of the target character relative to the reader according to the second document data.
[0073] As an optional implementation manner of the embodiment of the present disclosure, when the target character position data includes a chapter identifier, a paragraph identifier, and character offset data for characterizing the target character relative to the paragraph in which the target character is located, determining the target character associated with the drawing point based on the target character position data may specifically include: first determining a target chapter in the target document that includes the target character based on the chapter identifier in the target character position data, then determining a target paragraph in the target chapter that includes the target character based on the paragraph identifier in the target character position data, and then determining the target character associated with the drawing point from the target paragraph based on the character offset data in the target character position data. Rapid positioning of the target character can be achieved based on the target character position data without identifying the character content.
[0074] As another alternative embodiment of the present disclosure, when the first document position data includes a target character and the target character position data may include a chapter identifier and a paragraph identifier, determining the target character associated with the first drawing point according to the target character position data may specifically include: first determining the target chapter in the target document that includes the target character according to the chapter identifier in the target character position data, then determining the target paragraph in the target chapter that includes the target character according to the paragraph identifier in the target character position data, and then searching for candidate characters identical to the target character in the target paragraph, and determining the target character from the candidate characters.
[0075] It can be understood that when the number of candidate characters is one, the candidate character is determined as the target character. When the number of candidate characters is multiple, that is, when there are multiple characters identical to the target character corresponding to the drawing point in the same paragraph, the target character corresponding to this drawing point can be determined according to the target characters corresponding to other drawing points located on the same trajectory as this drawing point. That is, the target character of the drawing point is determined by comparing the target characters corresponding to multiple drawing points with the document data. For example, continuing Figure 1B , taking the target character of the drawing point as "thousand" as an example, both "All the great heroes of the ages" and "Roll up a thousand heaps of snow" include "thousand". Since the characters before and after "thousand" are different in different sentences, it is possible to determine which "thousand" the drawing point corresponds to by whether the other drawing points correspond to "rise", "heap" or "ancient".
[0076] In order to be able to locate the target character conveniently and accurately, multiple drawing points located on the same trajectory can be stored as a set of data, or rather, multiple drawing points presenting as a continuous trajectory can be stored as a set of data. That is, multiple drawing points are grouped and stored, and multiple drawing points in each group are used to represent a continuous trajectory. In this way, when redrawing the drawing points, the target character corresponding to them can be accurately determined according to the first document position data corresponding to multiple drawing points on the same trajectory.
[0077] S240. When the first area position data is located in the reader, draw a second drawing point in the reader according to the drawing style parameter and the first area position data.
[0078] In the disclosed embodiment, the display mode of the target document in the reader can be adjusted as needed. Therefore, it is possible that due to a data update operation, the area drawing position of the redetermined drawing point exceeds the reader. In this case, the drawing operation can no longer be performed on these drawing points that exceed the reader to save performance.
[0079] As an optional technical solution of the embodiment of the present disclosure, after determining the first area position data of the first drawing point relative to the reader, before drawing the second drawing point in the reader according to the drawing style parameter and the first area position data, the first area position data may be compared with the area boundary data of the reader to determine whether the first area position data is located in the reader. Furthermore, if the first area position data is located in the reader, the drawing operation of the drawing point is performed.
[0080] Specifically, drawing a second drawing point in the reader according to the drawing style parameters and the first area position data includes: drawing a drawing point, ie, a second drawing point, at a position in the reader corresponding to the first area position data according to the drawing style parameters.
[0081] The technical solution of the embodiment of the present disclosure determines the first area position data of the first drawing point relative to the reader according to the second document data and the first document position data of the first drawing point, and can convert the position of the first drawing point from the document coordinate system to the local coordinate system of the reader according to the updated document data and the first document position data, and determine the position data of the first drawing point in the local coordinate system of the reader, thereby determining whether the first drawing point will be displayed in the reader; then, by drawing the second drawing point in the reader according to the drawing style parameters and the first area position data when the first area position data is located in the reader, the first drawing point that needs to be displayed in the reader can be drawn, thereby reducing the performance consumption caused by the drawing of the drawing points that do not need to be displayed in the reader, and improving the drawing efficiency of the second drawing points associated with the second document data while ensuring the visual display effect.
[0082] Figure 3A A flowchart of another data processing method provided by an embodiment of the present disclosure. The technical solution of this embodiment further refines the method of drawing and recording drawing points in the target document based on the above-mentioned embodiment. Optionally, after the first document data of the target document is displayed in the reader, it also includes: in response to a trajectory drawing operation input in the reader, obtaining a drawing style parameter corresponding to the trajectory drawing operation, and determining the area drawing position data according to the touch point of the trajectory drawing operation; drawing at least one drawing point in the reader according to the area drawing position data and the drawing style parameter, and recording the first document position data of each drawing point relative to the target document. For specific implementation methods, please refer to the description of this embodiment. Among them, technical features that are the same or similar to those in the above-mentioned embodiments will not be repeated here. Figure 3A As shown, the method of this embodiment may specifically include:
[0083] S310: Display first document data of a target document in a reader.
[0084] S320: In response to a trajectory drawing operation input in the reader, obtaining a drawing style parameter corresponding to the trajectory drawing operation, and determining area drawing position data according to a touch point of the trajectory drawing operation.
[0085] In the embodiments of the present disclosure, the trajectory drawing operation can be understood as an operation of implementing trajectory drawing through a preset interaction method. Exemplarily, the trajectory drawing operation can be an operation of drawing a trajectory in a reader through a touch operation, such as a finger touching or a stylus touching a touch screen displaying a reader and moving the trajectory in the reader on the touch screen, etc.; or a cursor can be dragged and moved in the reader, etc.
[0086] As an optional technical solution of the embodiment of the present disclosure, before obtaining the drawing style parameters corresponding to the trajectory drawing operation, it also includes: displaying at least one parameter configuration item of a preset style parameter; wherein the preset style parameter is associated with the display style of the drawing point; in response to the parameter configuration operation for at least one of the parameter configuration items, determining the drawing style parameters for drawing the drawing point according to the preset style parameter and the parameter configuration operation. The preset style parameter can be understood as a parameter for setting the display style of the drawing point. Exemplarily, the preset style parameter may include but is not limited to at least one of the parameters such as a drawing color parameter, a drawing size parameter, and a drawing type parameter. The drawing color parameter can be understood as a parameter for setting the color of the drawing point presented in the reader. The drawing size parameter can be understood as a parameter for setting the size of the drawing point presented in the reader, such as the radius or the major and minor axes of the drawing point. The drawing type parameter can be understood as a parameter for setting the morphological type presented by a single or multiple drawing points in the reader. The drawing parameter type can be determined by the drawn drawing point. For example, the drawing type parameter is expressed as the type of brush used, such as one or more types of brush, pen, crayon, and watercolor pen. The parameter configuration item can be understood as an information item for editing the preset style parameters through interactive operations. The parameter configuration operation for the parameter configuration item may include an operation of selecting the preset style parameters and / or an operation of configuring the specific attribute values of the selected preset style parameters. For example, the selected brush type is a brush, or, based on the selected brush, an operation of selecting the model of the brush (e.g., related to the tip and caliber of the brush) is performed.
[0087] Exemplarily, a style parameter identifier of at least one preset style parameter may be displayed; in response to an identifier configuration operation for the style parameter identifier, the preset style parameter corresponding to the style parameter identifier most recently selected at the current moment is obtained to determine the drawing style parameter for drawing the drawing point.
[0088] In the embodiment of the present disclosure, by configuring at least one parameter configuration item of a preset style parameter, and then determining the drawing style parameters for drawing the drawing point according to the preset style parameter and the parameter configuration operation, not only can the differentiated drawing requirements for the document drawing data be supported, but also different document contents can be intuitively and effectively distinguished through the document drawing data associated with the document data. In particular, when more document data in the target document are associated with document drawing data, it can effectively avoid the situation where a large amount of document data adopts a single style of drawing trajectory, making it difficult to intuitively distinguish different document data, thereby improving the marking and viewing experience of the target document.
[0089] As an optional technical solution of the embodiment of the present disclosure, determining the area drawing position data according to the touch point of the trajectory drawing operation may include: acquiring the coordinate data of the touch point of the trajectory drawing operation according to the touch sampling frequency to obtain the area drawing position data corresponding to the touch point. The touch sampling frequency may be a preset touch sampling frequency of the electronic device displaying the reader, or a touch sampling frequency set for the trajectory drawing operation, etc.
[0090] S330: Draw at least one drawing point in the reader according to the area drawing position data and the drawing style parameters, and record first document position data of each drawing point relative to the target document.
[0091] After obtaining the regional drawing position data and the drawing style parameters, the drawing point can be drawn at the target position corresponding to the regional drawing position data in the reader according to the drawing style parameters, so as to intuitively view the drawing effect of the drawing point. In order to realize the re-viewing of the drawing point and ensure its relative display effect with the target document, it is also necessary to record the relative display position of each drawing point relative to the target document, that is, the first document position data.
[0092] As an optional implementation of the embodiment of the present disclosure, the recording of the first document position data of each drawing point relative to the target document may specifically include: determining the target character associated with the first drawing point in the target document according to the regional drawing position, determining the character arrangement position data of the target character in the target document, and recording the character arrangement position data to obtain the target character position data; and determining the regional relative position data of the target character relative to the reader, determining the position offset data of the drawing point relative to the target character according to the regional relative position data and the regional drawing position data, and recording the position offset data to obtain the character relative position data. By adopting the present technical solution, the relative display data of the drawing point and the document data can be effectively recorded by the position of the target character in the document and the relative position of the drawing point and the target character, so that when viewing the document data again, the effect presented by the document drawing data and the document data can be the same as when drawing, presenting the visual effect of the document drawing data drawn in the target document.
[0093] It is understandable that the character arrangement position data of the target character in the target document is determined based on the typesetting data of the target document, and has nothing to do with which document data is displayed by the reader. The regional relative position data of the target character relative to the reader is determined based on the number of documents displayed in the reader. The target character may be displayed in the reader or may not be displayed in the reader, but regardless of whether it is displayed in the reader, the regional relative position data of the target character relative to the reader can be determined based on the document data displayed in the reader.
[0094] As an optional implementation of the embodiment of the present disclosure, determining the target character associated with the first drawing point in the target document according to the area drawing position may include: determining the character boxes of multiple characters in the target document, determining a reference straight line corresponding to the area drawing position data, and determining the target character associated with the drawing point according to the relative position relationship between the reference straight line and the character box. The straight line extension direction of the reference straight line includes a line extension direction perpendicular to the text line of the target document. The line extension direction can be understood as the arrangement direction of the document characters in the text line. The character box of a character can be understood as a border surrounding the character, or in other words, a bounding box of the character. Usually there is no overlapping area between the character boxes of two characters.
[0095] Optionally, determining the target character associated with the drawing point according to the relative positional relationship between the reference line and the character box includes: when there is a character box intersecting with the reference line, determining the document character in the character box that intersects with the reference line and is closest to the area drawing position as the target character associated with the drawing point. Optionally, determining the target character associated with the drawing point according to the relative positional relationship between the reference line and the character box includes: when there is no character box intersecting with the reference line, determining the position data range corresponding to the drawing point in the direction perpendicular to the reference line according to the area drawing position data and a preset variation amount, and determining the target character in the character box that first falls into the position data range as the target character associated with the drawing point. Further, when there are multiple character boxes that first fall into the position data range, a character in a randomly selected character box from the multiple character boxes can be determined as the target character associated with the drawing point, or the character in the character box located in the preset direction of the drawing point among the multiple character boxes can be determined as the target character associated with the drawing point, etc.
[0096] Exemplarily, as Figure 3B shown, taking the row extension direction as the X direction and the direction perpendicular to the X direction as the Y direction, when determining the target character associated with the drawing point A on the trajectory 102 drawn in the reader 10, a perpendicular line can be drawn along the Y direction through the drawing point A, that is, the reference line 103. The character in the character box 101 that intersects with the reference line 103 and is the closest is "满" (full), so "满" is the target character associated with the drawing point A. When determining the target character associated with the drawing point B, a perpendicular line can be drawn along the Y direction through the drawing point B, that is, the reference line 104. At this time, no character box intersecting with the reference line 104 is obtained. Then, the coordinate data of the drawing point B in the X direction can be determined, and a preset value can be gradually added to and / or subtracted from this coordinate data to obtain a coordinate range so that the coordinate data of the vertex of a certain character box in the X direction falls within this coordinate range. The character in the character box corresponding to the vertex that falls within this coordinate range is determined as the character associated with the drawing point B. For example, by gradually adding the preset value to this coordinate data, it can be determined that the target character associated with the drawing point B is "江" (river), and by gradually subtracting the preset value from this coordinate data, it can be determined that the target character associated with the drawing point B is "满" (full). By gradually adding the preset value and subtracting the preset value to this coordinate data and expanding the search range towards both ends simultaneously, the character in the character box that first falls into this coordinate range can be determined as the target character associated with the drawing point B, which is "满" (full).
[0097] As an alternative implementation manner of the embodiments of the present disclosure, the relative position data of the region includes the position data of multiple vertices of the character box. Further, determining the position offset data of the drawing point relative to the target character according to the relative position data of the region and the drawing position data of the region may include: determining the relative position of the drawing point relative to the target character according to the relative position data of the region and the position data of the vertex on the preset orientation of the character box. For example, it may be the position data of the vertex on the lower border of the character box. Taking a rectangular character box as an example, the position data of the vertex on the preset orientation of the character box may be the position data of the vertex at the lower left corner of the character box or the position data of the vertex at the lower right corner of the character box.
[0098] Continuing to use Figure 3B , the relative position of the drawing point A relative to the target character "满" can be determined by the coordinate data of the drawing point A and the position offset data dx in the X direction and the position offset data dy in the Y direction of the vertex at the lower left corner of the character box 101. That is, the relative position of the drawing point relative to the target character is (dx, dy).
[0099] S340. In response to a data update operation for the target document, determine second document data to be displayed in the reader according to the data update operation, and display the second document data in the reader.
[0100] S350. In the case where there is a first drawing point associated with the second document data among multiple drawing points, obtain the drawing style parameters of the first drawing point, and draw a second drawing point in the reader according to the drawing style parameters, the second document data, and the first document position data of the first drawing point.
[0101] The technical solution of the embodiment of the present disclosure obtains the drawing style parameters corresponding to the trajectory drawing operation in response to the trajectory drawing operation input in the reader, and determines the regional drawing position data according to the touch point of the trajectory drawing operation, so as to realize flexible drawing of trajectory data for the document data of the target document in the reader, and can determine the drawing style according to the touch point of the trajectory drawing operation to display the position in the reader, so as to provide data basis for the presentation and recording of the drawing points; then, by drawing at least one drawing point in the reader according to the regional drawing position data and the drawing style parameters, and recording the first document position data of each drawing point relative to the target document, the drawing point corresponding to the trajectory drawing operation can be accurately presented in the reader based on the regional drawing position data and the drawing style parameters, and the relative position of each drawing point to the target document can be accurately recorded through the first document position data, so as to realize re-viewing of the drawing point.
[0102] In order to facilitate intuitive and clear understanding of the data processing method provided by the embodiment of the present disclosure. Here, taking the device screen of the reader as a terminal device as an example, combined with the scenario of underlining the content in the electronic document, the data processing method provided by the embodiment of the present disclosure is illustrated. The implementation process of the data processing method of this example may specifically include the following contents:
[0103] First, you can set whether to enable the free line drawing mode as needed to achieve the free drawing function of the target document. After enabling the free line drawing mode, you can draw lines for the target document content displayed on the device screen of the terminal device, and record multiple drawing points on the drawn lines. In order to enrich the presentation effect of the drawn data, you can set the brush type, brush color and brush size (used to characterize the thickness of the line) used when drawing lines according to the drawing parameter setting operation. Receive the trajectory drawing operation through the device screen, such as receiving the touch operation on the touch screen, obtain the coordinate data of the touch point through the preset data interface of the operating system of the terminal device, and then use the graphics drawing interface to draw the touch point (drawing point) at the coordinate corresponding to the touch point on the device screen, and the style of the drawing point depends on the configuration of the brush, such as, brush color (affecting the color of the drawing point), brush thickness (affecting the radius of the drawing point) and brush type (affecting the color and radius of the drawing point) and other parameters. For example, when the brush type is a pen, the drawing point of the pen is a solid perfect circle with uniform color, and is generally thin. When the brush type is a writing brush, the drawing point of the writing brush is an ellipse with uneven colors (e.g., partly colored, partly blank, partly dark or partly light), and is generally thicker. Then, you can move it on the device screen, and a line of the specified style will be drawn on the device screen according to the coordinates (x, y) of the touch point. While sliding, the coordinate sequence of the touch point during the movement will be recorded.
[0104] like Figure 4A As shown, during the line drawing process, multiple track points (drawing points) in the line will be recorded, such as recording the drawing point at the beginning of the line with screen coordinates (400, 30), then recording the drawing point at the screen coordinates (600, 35) moved to, and then moving to the drawing point at the end of the line with screen coordinates (850, 40), etc. That is, the screen touch coordinates of the touch point are recorded, that is, the regional drawing position data of the touch point in the reader. It can be understood that the number of recorded drawing points depends on the screen touch sampling rate (touch sampling frequency) of the terminal device. For example, if the screen touch sampling rate is 60 Hz, the coordinates of 60 touch points will be recorded within 1 second during the continuous line drawing process. In addition to recording the screen touch coordinates of multiple points (i.e., drawing points) on the line, the configuration of the brush type, brush color, and brush thickness selected for drawing the line is also recorded.
[0105] Then, it is necessary to typeset the recorded multiple drawing points to restore the drawn lines through the recorded data. Specifically, when drawing lines, in addition to recording the trajectory of the brush (multiple drawing points), it is also necessary to record the text content matched by each drawing point, as follows: First, determine the border (character box) surrounding each character, then, with the arrangement direction of the text line as the horizontal direction (generally parallel or perpendicular to the border of the reader that displays the text content), make a vertical line perpendicular to the horizontal direction through (x, y) of each drawing point on the device screen, and find the character box where the vertical line intersects with the content. Then record the position of the text in the character box in the document, represented by (chapter mark, paragraph mark, paragraph offset data). Then record the distance of the drawing point from the lower border of the character box in the vertical direction and the distance in the horizontal direction, represented by (dx, dy). Calculate multiple drawing points on the drawn line, and then save the text coordinates (chapter mark, paragraph mark, paragraph offset data) of the target text corresponding to the multiple drawing points and the offset position data (dx, dy) of the drawing point relative to the target character. At the same time, the target document's layout data also needs to be saved, including at least information on text size and line spacing.
[0106] Because the text is not always continuous, there may be blanks in the sentence or outside the typesetting area. In this case, the vertical coordinates of some points on the line cannot fall on a certain text and need to be calculated specially. Specifically, if no text box intersecting with the vertical line is found, that is, if the vertical coordinate of a certain drawing point cannot fall on a certain text, then the coordinate data of the drawing point can be synchronously expanded to both sides in the horizontal direction according to the preset step size to find and until the target text is found.
[0107] like Figure 4B As shown, for example, the x coordinate of the drawing point is 550, while the right coordinate of the left text is 530, and the left coordinate of the right text is 570. Then the coordinates of the point are slowly spread to both sides to become a range. First, it increases by 1 to become [549, 551]. There is no matching text. Then it increases to [548, 552] until it increases to [530, 570]. It can match the text on the left. Then, the text information matched by this point is the text on the left. Then, according to the above method, the horizontal distance dx and the vertical distance dy from the bottom border of the drawing point to the character box are calculated.
[0108] Finally, after the target document is reformatted (such as performing one or more operations such as switching fonts, line spacing, horizontal and vertical screen conversion, and changing devices), the drawn content will be restored according to the following steps: the content of the target document is updated according to the reformatted layout data. After the content of the target document is updated, the chapter where the text content displayed on the device screen is located is determined, and the stroke data of the chapter is obtained from the document drawing data stored corresponding to the target document according to the chapter identifier and paragraph identifier corresponding to the drawing point; the target document matching each drawing point after layout is found according to the text coordinates (chapter identifier, paragraph identifier, paragraph offset, etc.) matching each drawing point. Mark the text, calculate the new offset distance (dx', dy') from the target text based on the recorded offset position data (dx, dy) between the drawing point and the target text it matches and the typesetting data (including text size and line spacing) used for the re-typesetting; get the new stroke coordinates (x', y') based on the position of the character box and the distance (dx', dy') between the pixel point and the character box, and then use the recorded brush configuration to draw the drawing point at (x', y') so that the drawing point drawn on the device screen can adapt to the changes in text size and line spacing, and correctly restore the distance state between the stroke and the text. By traversing all the drawing points on the stroke and drawing all the drawing points, the style and position when the stroke was created can be accurately restored. It should be noted that when restoring the stroke, if the drawing point exceeds the typesetting area due to re-typesetting, the drawing point will no longer be drawn.
[0109] It is understandable that no matter what pattern or line type is drawn, its trajectory can be recorded by recording multiple drawing points during the drawing process. Therefore, the technical solution disclosed in the present invention can be applied to the scenes of drawing dotted lines, double horizontal lines and other lines, and can fully meet the differentiated drawing needs of different users.
[0110] The technical solution of the disclosed embodiment realizes free drawing in the target document, and provides logic for parsing, positioning and storing free lines, and rearrangement text matching, so that when viewing electronic documents in a reader, a free drawing experience like a traditional paper book can be achieved.
[0111] Figure 5 A structural diagram of a data processing device provided by an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, the data processing device includes a document data display module 510, a document data update module 520 and a drawing data restoration module 530. Specifically, the document data display module 510 is used to display the first document data of the target document in the reader; wherein the target document is associated with document drawing data; the document drawing data includes a plurality of first document position data of drawing points relative to the target document; the plurality of drawing points are used to mark the target document; the document data update module 520 is used to respond to a data update operation for the target document, determine the second document data to be displayed in the reader according to the data update operation, and display the second document data in the reader; and the drawing data restoration module 530 is used to obtain the drawing style parameters of the first drawing point when there is a first drawing point associated with the second document data among the plurality of drawing points, and draw the second drawing point in the reader according to the drawing style parameters, the second document data and the first document position data of the first drawing point.
[0112] The technical solution of the disclosed embodiment displays the first document data of the target document in the reader through the document data display module 510, which can intuitively and conveniently view the first document data of the target document. It is suitable for the scenario where the target document is associated with document drawing data. Moreover, since the document drawing data includes the first document position data of multiple drawing points relative to the target document, it is achieved by recording the relative position between the drawing points and the target document. Different from the method of recording the screen drawing coordinates of the drawing points, it can provide a data basis for restoring the relative display effect of the drawing points and the document data when drawing, and the target document can be marked by multiple drawing points. Then, the document data update module 520 responds to the data update operation for the target document, determines the second document data to be displayed in the reader according to the data update operation, and displays the second document data in the reader. It can be achieved through simple interactive operations. Flexible update of document data; and, when there is a first drawing point associated with the second document data among multiple drawing points, obtaining the drawing style parameters of the first drawing point through the drawing data restoration module 530, drawing the second drawing point in the reader according to the drawing style parameters, the second document data and the first document position data of the first drawing point, and being able to display the second drawing point corresponding to the second document data when the document data of the target document is updated from the first document data to the second document data, truly realizing flexible marking of the target document and re-viewing of the document drawing data, and being able to present the relative display effect of the second drawing point and the second document data when drawing, solving the problem in the related art that the content marked in the target document will no longer be displayed or will no longer be displayed in association with the expected document content due to the update of the document content, and realizing the technical effect of realizing the linkage update of the drawing point and the document data when the data of the target document changes.
[0113] Based on any optional technical solution in the embodiments of the present disclosure, optionally, the drawing data restoration module includes an area position conversion unit and a drawing point drawing unit. The area position conversion unit is used to determine the first area position data of the first drawing point relative to the reader according to the second document data and the first document position data of the first drawing point; the drawing point drawing unit is used to draw the second drawing point in the reader according to the drawing style parameters and the first area position data when the first area position data is located in the reader.
[0114] Based on any optional technical solution in the embodiments of the present disclosure, optionally, the area position conversion unit is specifically used to: determine the second document position data according to the data update operation and the first document position data of the first drawing point, and determine the first area position data of the first drawing point relative to the reader according to the second document data and the second document position data.
[0115] On the basis of any optional technical solution in the embodiments of the present disclosure, optionally, the data update operation includes a document typesetting adjustment operation. Further, the document data update module includes a typesetting data determination unit and a document position adjustment unit. The typesetting data determination unit is used to obtain the first typesetting data before the document typesetting adjustment operation is performed on the target document, and determine the second typesetting data according to the document typesetting adjustment operation and the first typesetting data; the document position adjustment unit is used to determine the data adjustment amount between the first typesetting data and the second typesetting data, and determine the second document position data according to the data adjustment amount and the first document position data of the first drawing point.
[0116] Based on any optional technical solution in the embodiments of the present disclosure, optionally, the first document position data includes target character position data and character relative position data; the target character position data may include character arrangement position data of the target character associated with the drawing point in the target document; the character relative position includes position offset data of the drawing point relative to the target character.
[0117] Based on any optional technical solution in the embodiments of the present disclosure, optionally, the area position conversion unit includes a character position determination subunit and a drawing position determination subunit. The character position determination subunit is used to determine the area relative position data of the target character associated with the drawing point relative to the reader according to the second document data and the target character position data; the drawing position determination subunit is used to determine the first area position data of the first drawing point relative to the reader according to the area relative position data and the character relative position data.
[0118] On the basis of any optional technical solution in the embodiment of the present disclosure, optionally, the data processing device further includes a document update position determination module and an associated drawing point determination module. The document update position determination module is used to determine the document display area corresponding to the second document data according to the corresponding data arrangement position of the second document data in the target document after determining the second document data to be displayed in the reader according to the data update operation and before drawing the second drawing point in the reader according to the second document data and the first document position data of the first drawing point; the associated drawing point determination module is used to determine the first drawing point associated with the second document data from the plurality of drawing points according to the document display area and the first document position data of the plurality of drawing points.
[0119] On the basis of any optional technical solution in the embodiments of the present disclosure, optionally, the data processing device further includes a trajectory drawing module and a drawing point recording module. The trajectory drawing module is used to, after the first document data of the target document is displayed in the reader, in response to a trajectory drawing operation input in the reader, obtain a drawing style parameter corresponding to the trajectory drawing operation, and determine the regional drawing position data according to the touch point of the trajectory drawing operation; the drawing point recording module is used to draw at least one drawing point in the reader according to the regional drawing position data and the drawing style parameter, and record the first document position data of each drawing point relative to the target document.
[0120] On the basis of any optional technical solution in the embodiments of the present disclosure, optionally, the data processing device further includes a drawing parameter configuration module and a drawing parameter determination module. The drawing parameter configuration module is used to display at least one parameter configuration item of a preset style parameter before obtaining the drawing style parameter corresponding to the trajectory drawing operation; wherein the preset style parameter is associated with the display style of the drawing point; and the drawing parameter determination module is used to determine the drawing style parameter for drawing the drawing point according to the preset style parameter and the parameter configuration operation in response to a parameter configuration operation for at least one of the parameter configuration items.
[0121] On the basis of any optional technical solution in the embodiments of the present disclosure, optionally, the first document position data includes the first document position data including target character position data and character relative position data. Further, the drawing point recording module may include a character document position recording unit and a character relative position recording unit. Wherein, the character document position recording unit is used to determine the target character associated with the first drawing point in the target document according to the regional drawing position, determine the character arrangement position data of the target character in the target document, and record the character arrangement position data to obtain the target character position data; and the character relative position recording unit is used to determine the regional relative position data of the target character relative to the reader, determine the position offset data of the drawing point relative to the target character according to the regional relative position data and the regional drawing position data, and record the position offset data to obtain the character relative position data.
[0122] On the basis of any optional technical solution in the embodiments of the present disclosure, optionally, the target document includes multiple text lines; the text line includes at least one character; further, the document position recording unit can be specifically used to: determine the character boxes of multiple characters in the target document, determine the reference straight line corresponding to the area drawing position data, and determine the target character associated with the drawing point according to the relative position relationship between the reference straight line and the character box; wherein the straight line extension direction of the reference straight line includes a line extension direction perpendicular to the text line of the target document.
[0123] The data processing device provided in the embodiments of the present disclosure can execute the data processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the data processing method.
[0124] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0125] Reference below Figure 6 , which shows a schematic diagram of the structure of an electronic device (such as a terminal device or a server) 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0126] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0127] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0128] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0129] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the data processing method provided by the above embodiments is implemented.
[0130] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0131] According to one or more embodiments of the present disclosure, [Example 1] provides a data processing method, comprising: displaying first document data of a target document in a reader; wherein the target document is associated with document drawing data; the document drawing data comprises first document position data of a plurality of drawing points relative to the target document; the plurality of drawing points are used to mark the target document; in response to a data update operation for the target document, determining second document data to be displayed in the reader according to the data update operation, and displaying the second document data in the reader; and, in the case where there is a first drawing point associated with the second document data among the plurality of drawing points, obtaining a drawing style parameter of the first drawing point, and drawing the second drawing point in the reader according to the drawing style parameter, the second document data and the first document position data of the first drawing point.
[0132] According to one or more embodiments of the present disclosure, [Example 2] provides the method of Example 1, further including: optionally, drawing a second drawing point in the reader according to the drawing style parameters, the second document data and the first document position data of the first drawing point includes: determining first area position data of the first drawing point relative to the reader according to the second document data and the first document position data of the first drawing point; when the first area position data is located in the reader, drawing the second drawing point in the reader according to the drawing style parameters and the first area position data.
[0133] According to one or more embodiments of the present disclosure, [Example Three] provides the method of Example Two, further including: optionally, determining the first area position data of the first drawing point relative to the reader based on the second document data and the first document position data of the first drawing point includes: determining the second document position data based on the data update operation and the first document position data of the first drawing point, and determining the first area position data of the first drawing point relative to the reader based on the second document data and the second document position data.
[0134] According to one or more embodiments of the present disclosure, [Example 4] provides the method of Example 3, further including: optionally, determining the first area position data of the first drawing point relative to the reader based on the second document data and the first document position data of the first drawing point includes: determining the second document position data based on the data update operation and the first document position data of the first drawing point, and determining the first area position data of the first drawing point relative to the reader based on the second document data and the second document position data.
[0135] According to one or more embodiments of the present disclosure, [Example 5] provides the method of Example 1 or Example 3, further including: optionally, the first document position data includes target character position data and character relative position data; the target character position data includes character arrangement position data of the target character associated with the drawing point in the target document; the character relative position includes position offset data of the drawing point relative to the target character.
[0136] According to one or more embodiments of the present disclosure, [Example 6] provides the method of Example 5, further including: optionally, determining the first regional position data of the first drawing point relative to the reader based on the second document data and the first document position data of the first drawing point, including: determining the regional relative position data of the target character associated with the drawing point relative to the reader based on the second document data and the target character position data; determining the first regional position data of the first drawing point relative to the reader based on the regional relative position data and the character relative position data.
[0137] According to one or more embodiments of the present disclosure, [Example 7] provides the method of Example 1, further including: optionally, after determining the second document data to be displayed in the reader according to the data update operation, before drawing the second drawing point in the reader according to the second document data and the first document position data of the first drawing point, it also includes: determining the document display area corresponding to the second document data according to the corresponding data arrangement position of the second document data in the target document; determining the first drawing point associated with the second document data from the multiple drawing points according to the document display area and the first document position data of the multiple drawing points.
[0138] According to one or more embodiments of the present disclosure, [Example 8] provides the method of Example 1, further including: optionally, after determining the second document data to be displayed in the reader according to the data update operation, before drawing the second drawing point in the reader according to the second document data and the first document position data of the first drawing point, it also includes: determining the document display area corresponding to the second document data according to the corresponding data arrangement position of the second document data in the target document; determining the first drawing point associated with the second document data from the multiple drawing points according to the document display area and the first document position data of the multiple drawing points.
[0139] According to one or more embodiments of the present disclosure, [Example 9] provides the method of Example 8, further including: optionally, before obtaining the drawing style parameters corresponding to the trajectory drawing operation, it also includes: displaying at least one parameter configuration item of a preset style parameter; wherein the preset style parameter is associated with the display style of the drawing point; in response to a parameter configuration operation for at least one of the parameter configuration items, determining the drawing style parameters for drawing the drawing point according to the preset style parameters and the parameter configuration operation.
[0140] According to one or more embodiments of the present disclosure, [Example 10] provides the method of Example 8, further including: optionally, the first document position data includes the first document position data including target character position data and character relative position data; the recording of the first document position data of each drawing point relative to the target document includes: determining the target character associated with the first drawing point in the target document according to the regional drawing position, determining the character arrangement position data of the target character in the target document, recording the character arrangement position data to obtain the target character position data; and determining the regional relative position data of the target character relative to the reader, determining the position offset data of the drawing point relative to the target character according to the regional relative position data and the regional drawing position data, and recording the position offset data to obtain the character relative position data.
[0141] According to one or more embodiments of the present disclosure, [Example 11] provides the method of Example 10, further including: optionally, the target document includes multiple text lines; the text line includes at least one character; the determining the target character associated with the first drawing point in the target document based on the area drawing position includes: determining character boxes of multiple characters in the target document, determining a reference straight line corresponding to the area drawing position data, and determining the target character associated with the drawing point based on the relative position relationship between the reference straight line and the character box; wherein the straight line extension direction of the reference straight line includes a line extension direction perpendicular to the text line of the target document.
[0142] According to one or more embodiments of the present disclosure, [Example 12] provides a data processing device, including: a document data display module, used to display first document data of a target document in a reader; the target document is associated with document drawing data; the document drawing data includes first document position data of multiple drawing points relative to the target document; a document data update module, used to respond to a data update operation for the target document, determine second document data to be displayed in the reader according to the data update operation, and display the second document data in the reader; and a drawing data restoration module, used to obtain drawing style parameters of a first drawing point associated with the second document data in a case where there is a first drawing point among multiple drawing points, and draw the second drawing point in the reader according to the drawing style parameters, the second document data and the first document position data of the first drawing point.
[0143] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0144] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0145] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: displays first document data of a target document in a reader; wherein the target document is associated with document drawing data; the document drawing data includes first document position data of multiple drawing points relative to the target document; in response to a data update operation for the target document, determines second document data to be displayed in the reader according to the data update operation, and displays the second document data in the reader; and, in the case that there is a first drawing point associated with the second document data among the multiple drawing points, obtains a drawing style parameter of the first drawing point, and draws the second drawing point in the reader according to the drawing style parameter, the second document data and the first document position data of the first drawing point.
[0146] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0147] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0148] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, a document data display module may also be described as a "module for displaying the first document data of a target document".
[0149] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0150] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0151] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0152] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0153] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A data processing method, characterized in that: include: Displaying first document data of a target document in a reader; wherein the target document is associated with document drawing data; the document drawing data includes first document position data of a plurality of drawing points relative to the target document; the plurality of drawing points are used to mark the target document; In response to a data update operation for the target document, determining second document data to be displayed in the reader according to the data update operation, and displaying the second document data in the reader; and When there is a first drawing point associated with the second document data among the plurality of drawing points, drawing style data of the first drawing point is obtained, and the second drawing point is drawn in the reader according to the drawing style parameters, the second document data and the first document position data of the first drawing point.
2. The data processing method according to claim 1, characterized in that: Drawing the second drawing point in the reader according to the drawing style parameter, the second document data and the first document position data of the first drawing point includes: determining first area position data of the first drawing point relative to the reader according to the second document data and the first document position data of the first drawing point; In a case where the first area position data is located in the reader, a second drawing point is drawn in the reader according to the drawing style parameter and the first area position data.
3. The data processing method according to claim 2, characterized in that: The determining, according to the second document data and the first document position data of the first drawing point, first area position data of the first drawing point relative to the reader comprises: The second document position data is determined according to the data update operation and the first document position data of the first drawing point, and the first area position data of the first drawing point relative to the reader is determined according to the second document data and the second document position data.
4. The data processing method according to claim 3, characterized in that: The data updating operation includes a document typesetting adjustment operation; and determining the second document position data according to the data updating operation and the first document position data of the first drawing point includes: Acquire first layout data before performing the document layout adjustment operation on the target document, and determine second layout data according to the document layout adjustment operation and the first layout data; A data adjustment amount between the first layout data and the second layout data is determined, and second document position data is determined according to the data adjustment amount and the first document position data of the first drawing point.
5. The data processing method according to claim 1 or 2, characterized in that: The first document position data includes target character position data and character relative position data; the target character position data includes character arrangement position data of the target character associated with the drawing point in the target document; the character relative position includes position offset data of the drawing point relative to the target character.
6. The data processing method according to claim 5, characterized in that: The determining, according to the second document data and the first document position data of the first drawing point, first area position data of the first drawing point relative to the reader comprises: Determine the regional relative position data of the target character associated with the drawing point relative to the reader according to the second document data and the target character position data; The first area position data of the first drawing point relative to the reader is determined according to the area relative position data and the character relative position data.
7. The data processing method according to claim 1, characterized in that: After determining the second document data to be displayed in the reader according to the data update operation, and before drawing the second drawing point in the reader according to the second document data and the first document position data of the first drawing point, the method further includes: determining a document display area corresponding to the second document data according to a corresponding data arrangement position of the second document data in the target document; A first drawing point associated with the second document data is determined from the plurality of drawing points according to the document display area and the first document position data of the plurality of drawing points.
8. The data processing method according to claim 1, characterized in that: After displaying the first document data of the target document in the reader, the method further includes: In response to a trajectory drawing operation input in the reader, obtaining a drawing style parameter corresponding to the trajectory drawing operation, and determining area drawing position data according to a touch point of the trajectory drawing operation; At least one drawing point is drawn in the reader according to the area drawing position data and the drawing style parameters, and first document position data of each drawing point relative to the target document is recorded.
9. The data processing method according to claim 8, characterized in that: Before obtaining the drawing style parameters corresponding to the trajectory drawing operation, the method further includes: A parameter configuration item that displays at least one preset style parameter; wherein the preset style parameter is associated with a display style of a drawing point; In response to a parameter configuration operation for at least one of the parameter configuration items, a drawing style parameter for drawing the drawing point is determined according to the preset style parameter and the parameter configuration operation.
10. The data processing method according to claim 8, characterized in that: The first document position data includes target character position data and character relative position data; the first document position data recording each drawing point relative to the target document includes: Determining a target character associated with the first drawing point in the target document according to the area drawing position, determining character arrangement position data of the target character in the target document, and recording the character arrangement position data to obtain target character position data; and Determine the regional relative position data of the target character relative to the reader, determine the position offset data of the drawing point relative to the target character according to the regional relative position data and the regional drawing position data, and record the position offset data to obtain the character relative position data.
11. The data processing method according to claim 10, characterized in that: The target document includes a plurality of text lines; the text line includes at least one character; and determining the target character associated with the first drawing point in the target document according to the area drawing position includes: Determine the character boxes of multiple characters in the target document, determine a reference straight line corresponding to the drawing position data of the area, and determine the target character associated with the drawing point based on the relative position relationship between the reference straight line and the character box; wherein the straight line extension direction of the reference straight line includes a line extension direction perpendicular to the text line of the target document.
12. A data processing device, characterized in that: include: A document data display module, used for displaying first document data of a target document in a reader; wherein the target document is associated with document drawing data; the document drawing data includes first document position data of a plurality of drawing points relative to the target document; the plurality of drawing points are used for marking the target document; a document data updating module, configured to respond to a data updating operation on the target document, determine second document data to be displayed in the reader according to the data updating operation, and display the second document data in the reader; and A drawing data restoration module is used to obtain a drawing style parameter of a first drawing point associated with the second document data when there is a first drawing point associated with the second document data among multiple drawing points, and draw the second drawing point in the reader according to the drawing style parameter, the second document data and the first document position data of the first drawing point.
13. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method according to any one of claims 1 to 11.
14. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the data processing method according to any one of claims 1 to 11.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the data processing method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Electronic text generation method and device, equipment and medium
CN113515928A
Document management method and device, equipment, storage medium and program product
CN116933730A
Data processing method and device, computer equipment, storage medium and program product
CN117253246A
Computerized method and computer program for displaying and printing markup
US20100269033A1