WO2019071802A1 - Document annotation method and apparatus, and electronic device - Google Patents

Document annotation method and apparatus, and electronic device Download PDF

Info

Publication number
WO2019071802A1
WO2019071802A1 PCT/CN2017/116205 CN2017116205W WO2019071802A1 WO 2019071802 A1 WO2019071802 A1 WO 2019071802A1 CN 2017116205 W CN2017116205 W CN 2017116205W WO 2019071802 A1 WO2019071802 A1 WO 2019071802A1
Authority
WO
WIPO (PCT)
Prior art keywords
annotation
layer
event
currently displayed
view
Prior art date
Application number
PCT/CN2017/116205
Other languages
French (fr)
Chinese (zh)
Inventor
张超
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2019071802A1 publication Critical patent/WO2019071802A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes

Definitions

  • the present application relates to the field of document annotation, and in particular, to a document annotation method, device and electronic device.
  • Intelligent electronic devices have been increasingly used in people's work and study. For example, use a smart tablet for teaching presentations or conference presentations.
  • a document presentation is generally used, for example, a PPT presentation.
  • the present application provides a document annotation method, device and electronic device to solve the cumbersome operation when an existing document annotation method annotates a multi-page document.
  • the first aspect of the present application provides a document annotation method, including:
  • the annotation layer When entering the annotation mode, the annotation layer is rendered on the currently displayed view; the annotation layer is used to render the annotation content based on the annotation event; the annotation event includes an add/drop/change event;
  • the update instruction When there is an update instruction, the currently displayed view and the annotation layer are updated, the update instruction being triggered based on the page flip event.
  • annotation layer is an existing annotation layer or a newly created annotation layer associated with the display view.
  • the method further includes:
  • the steps to update the annotation layer include:
  • the annotation layer is deleted and the newly created annotation layer is rendered on the updated view.
  • the associating the annotation layer with the currently displayed view includes:
  • the annotation layer, the file name of the annotation layer, and the page number information are cached in association.
  • the method further includes:
  • an alert message is output to remind the user to save the cached annotation layer locally.
  • the method further includes:
  • the rendering annotation layer is rendered on the currently displayed view, including:
  • the newly created annotation layer is rendered on the currently displayed view.
  • the method further includes: rendering an operation control, the operation control is configured to trigger at least one of the following events: a page turning event and an annotation event.
  • the page turning event includes a page turning event triggered by the operation control.
  • the data source device of the view is a local device, and the method further includes: responding to the local device After the page flip event, the updated data is obtained to update the currently displayed view.
  • the data source device of the view is a peer device of the network connection
  • the method further includes: notifying the peer device by the page turning event, and responding to the page turning in the peer device After the event, the updated data is received from the peer device to update the currently displayed view.
  • the page turning event includes a page turning event triggered by a peer device of the network connection, the peer device is a data source device of the view, and the update instruction is sent by the peer device;
  • the method further includes: after the peer device responds to the page turning event, receiving updated data from the peer device to update the currently displayed view.
  • the second aspect of the present application provides a document annotation device, including: a processing module, an annotation module, and an update module, where
  • the processing module is configured to render an annotation layer on the currently displayed view when entering the annotation mode; the annotation layer is used to render the annotation content based on the annotation event; the annotation event includes an add/drop/change event ;
  • the annotation module is configured to monitor a user-initiated annotation event, and update a display content of the annotation layer according to the annotation event;
  • the update module is configured to update the currently displayed view and the annotation layer when an update instruction exists, the update instruction being triggered based on the page turning event.
  • the device further includes: a storage module, wherein
  • the storage module is configured to cache the annotation layer and the currently displayed view before the update module updates the currently displayed view and the annotation layer;
  • the update module is specifically configured to update the annotation layer to the first annotation layer if there is a first annotation layer associated with the updated view, if there is no associated with the updated view.
  • the storage module is specifically configured to obtain the page number information of the currently displayed view, and cache the annotation layer and the page number information; or the storage module is specifically configured to obtain the current location.
  • processing module is further configured to: when receiving the instruction to exit the annotation mode, output an alert message to remind the user to save the cached annotation layer to the local.
  • the storage module is further configured to save the cached annotation layer to the local when the save instruction is received;
  • the annotation module is further configured to: when entering the annotation mode, if the second annotation layer associated with the currently displayed view is locally stored, rendering the second annotation layer on the currently displayed view, if local No storage and currently displayed The second annotation layer associated with the view renders the newly created annotation layer on the currently displayed view.
  • annotation module is further configured to: when entering the annotation mode, render an operation control, where the operation control is used to trigger at least one of the following events: a page turning event and an annotation event.
  • the page turning event includes a page turning event triggered by the operation control.
  • the data source device of the view is a local device
  • the update module is further configured to: after the local device responds to the page turning event, acquire updated data to update the currently displayed view.
  • the data source device of the view is a peer device of the network connection
  • the update module is further configured to notify the peer device by the page turning event, and the peer device responds to the After the page turning event, the updated data is received from the peer device to update the currently displayed view.
  • the page turning event includes a page turning event triggered by a peer device of the network connection, the peer device is a data source device of the view, and the update instruction is sent by the peer device; the update The module is further configured to: after the peer device responds to the page turning event, receive updated data from the peer device to update the currently displayed view.
  • a third aspect of the present application provides a computer storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of any of the methods provided by the first aspect of the present application.
  • a fourth aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the program provided by the first aspect of the present application The steps of a method.
  • the electronic device includes a smart tablet.
  • the document annotation method, device and electronic device provided by the present application when entering the annotation mode, render the annotation layer on the currently displayed view, monitor the user-initiated annotation event, and update the display of the annotation layer according to the annotation event.
  • the content, and thus the currently displayed view and annotation layer is updated when there is an update instruction, wherein the update instruction is triggered based on the page flip event.
  • the currently displayed view and annotation layer can be updated in the annotation mode to annotate the updated view on the updated annotation layer, thereby realizing the continuous annotation of the multi-page document, and the user operation Simple, high user experience.
  • Embodiment 1 is a flowchart of Embodiment 1 of a document annotation method of the present application
  • FIG. 2 is a schematic diagram of an application scenario of a document annotation method provided by the present application, which is shown in an exemplary embodiment
  • FIG. 3 is a schematic diagram of an application scenario of a document annotation method provided by the present application according to another exemplary embodiment
  • FIG. 4 is a schematic diagram of an application scenario of a document annotation method provided by the present application according to still another exemplary embodiment
  • FIG. 5 is a flowchart of Embodiment 2 of the document annotation method of the present application.
  • FIG. 6 is a flowchart showing associating an annotation layer with a currently displayed view according to an exemplary embodiment of the present application
  • FIG. 7 is a flowchart showing association of an annotation layer with a currently displayed view according to another exemplary embodiment of the present application.
  • FIG. 8 is a hardware structural diagram of an electronic device in which the document annotation device of the present application is located;
  • Figure 9 is a schematic structural view of Embodiment 1 of the document approving device of the present application.
  • FIG. 10 is a schematic structural diagram of Embodiment 2 of the document approving device of the present application.
  • first, second, third, etc. may be used to describe various information in this application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information without departing from the scope of the present application.
  • second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "when” or "when” or "in response to determination.”
  • the present application provides a document annotation method, device and electronic device to solve the cumbersome operation when an existing document annotation method annotates a multi-page document.
  • the document annotation method and apparatus provided by the present application can be applied to an electronic device, for example, can be applied to a smart tablet.
  • FIG. 1 is a flowchart of Embodiment 1 of a document annotation method of the present application.
  • the execution body of the embodiment may be a separate document annotation device, or may be an electronic device integrated with a document annotation device.
  • the following is an example in which the execution body is a smart tablet integrated with a document annotation device.
  • the method provided in this embodiment may include:
  • the smart tablet can perform document presentation by running a local document program (for example, a PPT program or a Word program), or can perform a document presentation through a shared desktop, for example, a document presentation through a desktop shared by a computer, and HDMI input mode or VGA input mode for document presentation.
  • a local document program for example, a PPT program or a Word program
  • a shared desktop for example, a document presentation through a desktop shared by a computer
  • HDMI input mode or VGA input mode for document presentation.
  • the TOUCH line needs to be connected to the video signal input port of the smart tablet to implement touch return.
  • the timing of entering the annotation mode is not limited, for example, the annotation mode may be entered when the document presentation is started; or the annotation button may be only rendered when the document presentation is started, and further, when the incoming annotation mode is received
  • the command is executed (it needs to be explained that the entry into the comment mode command is triggered when the comment button is clicked) enters the comment mode. That is, the user needs to trigger the entry of the annotation mode instruction by clicking the annotation button, so that the document being presented enters the annotation mode.
  • the annotation layer can be a globally transparent layer that is rendered above the currently displayed view for rendering the annotation content based on the annotation event.
  • the globally transparent layer can be a SurfaceView, which has a separate drawing surface, and can perform annotating operations such as scribing, circle, writing, drawing, and the like in the independent drawing surface.
  • S102 Monitor an annotation event triggered by the user, and update the display content of the annotation layer according to the annotation event.
  • the user can annotate the currently displayed view.
  • the smart tablet monitors the annotation event triggered by the user, and updates the display content of the annotation layer according to the annotation event. In this way, the annotation content can be displayed on the annotation layer to achieve the predetermined presentation effect.
  • the triggering manner of the page turning event is not limited.
  • the user can trigger the page turning event by sliding the currently displayed view left and right.
  • a detailed embodiment will be given below to explain the triggering manner of the page turning event, which will not be described here.
  • the update instruction is triggered based on the page flip event, and when there is an update instruction, the currently displayed view and the annotation view described above are updated.
  • the method provided in this embodiment when entering the annotation mode, renders the annotation layer on the currently displayed view, monitors the user-initiated annotation event, and updates the display content of the annotation layer according to the annotation event, thereby updating the presence of the annotation layer.
  • the instruction is issued, the currently displayed view and annotation layers are updated, wherein the update instruction is triggered based on the page turning event.
  • the currently displayed view and annotation layer can be updated in the annotation mode to annotate the updated view on the updated annotation layer, the multi-page document can be annotated, and the user operation is simple, the user experience Higher.
  • the method when entering the annotation mode, the method further includes: rendering an operation control, where the operation control is used to trigger at least one of the following events: a page turning event and an annotation event.
  • the action control can be a floating visible action control that can be rendered on top of the annotation layer.
  • the operation control includes at least one of the following controls: a page forward control, a page backward control, an annotation color selection control, an eraser control, and an annotation pen control.
  • the page turning event includes a page turning event triggered by the operation control.
  • the user can trigger a page turning event by clicking an operation control, for example, when the user clicks the forward page turning control, the page turning event is triggered.
  • the method provided by the embodiment further includes: after the local device responds to the page turning event , get the updated data to update the currently displayed view.
  • FIG. 2 is a schematic diagram of an application scenario of a document annotation method provided by the present application, which is shown in an exemplary embodiment.
  • the smart tablet performs a document presentation by running a local document program, and the data source device of the view currently displayed by the smart tablet is the local device.
  • the user can click The page turning control is used to trigger a page turning event.
  • the user can trigger a page turning event by clicking the forward page turning control.
  • the smart tablet responds to the page turning event to perform page turning.
  • the smart tablet acquires the updated data to update the currently displayed view.
  • the update instruction may be triggered when the page turning event is triggered, or may be triggered when the updated data is acquired.
  • the method provided in this embodiment further includes: notifying the page turning event through the network
  • the peer device receives the updated data from the peer device after the peer device responds to the paging event to update the currently displayed view.
  • FIG. 3 is a schematic diagram of an application scenario of a document annotation method provided by the present application, which is illustrated by another exemplary embodiment.
  • the smart tablet performs document presentation through wireless screen technology, and the currently running program of the smart tablet is a shared desktop.
  • the smart tablet is demonstrated by a desktop shared by a computer, and the data source device of the view currently displayed by the smart tablet is a computer (of course, in the application scenario shown in FIG. 3)
  • the smart tablet can also be used for document presentation via HDMI input or VGA input.
  • the user can trigger the page turning event by clicking the page turning control displayed on the smart tablet.
  • the smart tablet can simulate the opposite end.
  • the input event of the device (the peer device is a computer in the embodiment shown in FIG. 3) sends the page flipping event to the peer device, for example, simulates a mouse input event or a keyboard input event, and sends a page turning event to the peer device.
  • the peer device responds to the received page turning event after receiving the page turning event.
  • a wireless screen transmission technology may be used, that is, a page turning event is sent to the peer device through a wireless screen device.
  • one end of the wireless screen device is connected to the smart tablet through the Wifi, and the other end is connected. Connect to your computer via the USB port.
  • the smart tablet can first send the page turning event to the wireless screen device, and further, when the wireless screen device receives the page turning event, it will follow the USB HID (Human Inter Device) multi-touch protocol to turn the page event. Repackage and send the repackaged page flip event to the computer via the USB interface. In this way, after the peer device receives the page turning event, it responds to the page turning event.
  • USB HID Human Inter Device
  • the smart tablet receives the updated data from the peer device, so that after the updated data is received, the currently displayed view is updated.
  • the update instruction may be triggered when the page turning event is triggered, or may be triggered when the updated data is received.
  • the page turning event includes a page turning event triggered by a peer device of the network connection, where the peer device is a data source device of the view;
  • the method further includes: after the peer device responds to the page flipping event, receiving the updated data from the peer device to update the currently displayed view.
  • FIG. 4 is a schematic diagram of an application scenario of a document annotation method provided by the present application according to another embodiment.
  • the smart tablet in the application scenario shown in FIG. 4, the smart tablet is demonstrated by a wireless screen technology, and the smart plane is The program currently running on the board is a shared desktop.
  • the smart tablet is presented by the desktop shared by the computer, and the data source device of the view currently displayed by the smart tablet is a computer (of course, in the application scenario shown in FIG. 4)
  • the smart tablet can also be used for document presentation via HDMI input or VGA input.
  • the user can trigger a page flip event by clicking the page flip button on the computer.
  • the update command is triggered, and the computer sends the update command and the updated data to the smart tablet. Further, after the smart tablet receives the update command and the updated data, , update the currently displayed view and the current annotation layer.
  • FIG. 5 is a flowchart of Embodiment 2 of the document annotation method of the present application. Referring to FIG. 5, the method provided in this embodiment may include:
  • the second annotation layer associated with the currently displayed view is locally stored, the second annotation layer is rendered on the currently displayed view, if the local is not stored and currently displayed.
  • the second annotation layer associated with the view renders the newly created annotation layer on the currently displayed view.
  • the annotation mode when entering the annotation mode, it may first determine whether a second annotation layer associated with the currently displayed view is stored locally, and if so, rendering the second annotation layer on the currently displayed view, if not , renders the newly created annotation layer on the currently displayed view.
  • the page number information of the currently displayed view is page 3.
  • the second annotation layer associated with the currently displayed view may be an annotation layer with the page number information of the currently displayed view as the file name. In this step, it is determined whether the local storage is stored.
  • the second annotation layer associated with the currently displayed view may also be an annotation layer whose file name stored in the association table is associated with the page number information of the currently displayed view, for example, the currently displayed view.
  • the page number information is page 1, and the file name associated with the page number information is not stored in the relationship table, indicating that there is no second annotation layer associated with the currently displayed view.
  • the method provided in this embodiment when presenting a certain document, first caches the current annotation layer and the currently displayed view before updating the annotation layer, and further, when the save instruction is received, the cached annotation is used.
  • the layer is saved locally so that when the document is demoed again and you enter the annotation mode, the locally cached annotation layer can be rendered at On the view associated with it, to present the annotation content to the user, the user's needs can be further satisfied and the user experience can be improved.
  • the method provided in this embodiment when there is an update instruction, first caches the current annotation layer and the currently displayed view before updating the currently displayed view.
  • the annotation layer carrying the annotation content can be cached in association with the view.
  • the current annotation layer can be updated to the annotation layer associated with the currently displayed view, so that the annotation layer carrying the annotation content can be rendered To the user, the user's needs can be further satisfied and the user experience can be improved.
  • FIG. 6 is a flowchart of associating an annotation layer with a currently displayed view according to an exemplary embodiment of the present application.
  • an annotation layer may be used as follows. Associating the cache with the currently displayed view, the method includes the following steps:
  • the page number information is a serial number of each page of the document being presented, for example, page 1, page 2, and the like.
  • the page information page of the currently displayed view can be obtained by calling a related function of a locally running document program (for example, a PPT program or a Word program).
  • the peer device may be requested to obtain the page number information of the currently displayed view, for example, the COM of the peer device may be invoked through the auxiliary program. Interface to get the page number information of the currently displayed view.
  • the current annotation layer may cache the obtained page number information as a file name to cache the current annotation layer and the page number information.
  • the obtained page number information of the currently displayed view is page 3, and at this time, the current annotation layer is cached with a file name of 3.
  • FIG. 7 is a flow chart showing the association of an annotation layer with a currently displayed view, according to another exemplary embodiment of the present application.
  • the annotation layer may be cached with the currently displayed view according to the following method, and the method includes the following steps:
  • step S601 For details, refer to the description of step S601 in the specific implementation process and implementation principle of the step, and details are not described herein again.
  • the annotation layer may be saved with another information as a file name, thereby saving the file name of the current annotation layer and the obtained association relationship of the page number information, so as to display the current annotation layer and the currently displayed layer.
  • the annotation layer may be saved as a file name when the annotation layer is created. For example, if the current annotation layer is the first annotation layer created, the annotation layer is 1 The file name is saved, and the file name of the annotation layer and the obtained page number information are saved in the association table (in this example, the file name 1 and the page number information 3 are saved in the association table).
  • the current annotation layer can also be saved as the file name when the annotation layer is created.
  • the annotation layer is created at 9:30:05 seconds on August 30, 2017, the annotation is added.
  • the layer is saved as a file name of 20170830093005, and the file name of the annotation layer and the obtained page number information are saved in the association table (in this example, the file name 20170830093005 and the page number information 3 are saved in the association table).
  • the annotation layer associated with the view with the page number information 3 is the annotation layer with the file name of 20170830093005, that is, the association relationship between the view and the annotation layer is established, and subsequent updates are performed.
  • the annotation layer can be directly updated to the annotation layer associated with the updated view, which further enhances the user experience.
  • step S504. Determine whether the first annotation layer associated with the updated view is cached. If yes, go to step S507, and if no, go to step S508.
  • the page number information of the currently displayed view is page 3.
  • the page turning event is a page turning event.
  • the page number information of the updated view is page 4, and at this time, it is determined whether the first annotation layer associated with the page 4 view is cached, and further When the annotation layer is cached with the page number information of the view as the file name, in this step, it is determined whether the annotation layer with the file name of the fourth page is cached; when the annotation layer is the file name with other information.
  • the page number information of the currently displayed view is page 4, and the user first annotates the currently displayed view, and then, pages backward, and the current annotation map is The layer is cached with a file name of 4, and the currently displayed view is updated. After the update, the page number information of the currently displayed view is page 5, and then the page is forwarded forward, and the current annotation layer is set to 5 as a file. Name cache, at this time, the page number information of the updated view is 4, at this time, it is determined that there is a first annotation layer associated with the updated view (there is an annotation layer with a file name of 4).
  • step S504 When it is determined in step S504 that there is a first annotation layer associated with the updated view, the user has already annotated the view to be displayed after entering the annotation mode.
  • the annotation layer is updated to the first A batch of annotation layers, in this way, the previous annotation content can be presented to the user, so that the user can re-annotize the previous annotation content, which can further meet the user's needs and improve the user experience.
  • step S504 when it is determined in step S504 that there is no first annotation layer associated with the updated view, it indicates that after entering the annotation mode, the user has not annotated the view to be displayed, and in this step, the current The annotation layer is deleted and the newly created annotation layer is rendered on the updated view so that the user can annotate the updated view on the newly created annotation layer.
  • the cached annotation layer is deleted when exiting the annotation mode. Therefore, the method provided by the embodiment, when receiving the exit annotation mode instruction, outputs an alert message to remind the user to save the cached annotation layer. . In this way, the problem that the annotation layer is lost due to the user forgetting to save the annotation layer can be avoided, and the annotation layer carrying the annotation content can be saved to display the annotation content to the user again.
  • the exit annotation mode instruction is input through the local display operation control.
  • the reminder message can be output in any of the following ways: text output or voice output.
  • the output mode of the reminder message is not limited.
  • the save instruction is input through a local operation control;
  • the save instruction may be input through a local operation control, or may be when the peer device receives the save instruction input by the user through the input device of the peer device. Sent to the local device.
  • the method provided in this embodiment saves the cached annotation layer to the local when the save instruction is received, and the cached annotation layer carries the annotation content, so that when the document is demonstrated again, the locally cached annotation map can be
  • the layer renders on the view associated with it to present the annotation content to the user, which can further meet the user's needs and improve the user experience.
  • the method provided in this embodiment caches the current annotation layer and the currently displayed annotation layer when there is an update instruction, so that when the annotation layer is updated, if there is a first association associated with the updated view Annotating the layer, the first annotation layer is updated after the current annotation layer is updated, so that the previous annotation content can be presented to the user, so that the user can re-annotize the previous annotation content to further meet the user's needs. To improve the user experience.
  • the cached annotation layer is saved locally, so that when the document is presented again and the annotation mode is entered, the locally cached annotation layer can be rendered to its associated On the view, the user will display the annotation content when the document was last presented to the user, so that the user can re-annotate the content based on the last annotation content, which can further meet the user's needs and improve the user experience.
  • the present application also provides an embodiment of the document annotation device.
  • the document annotation device provided by the present application can be applied to an electronic device.
  • the device can be implemented by software, or can be implemented by hardware or a combination of hardware and software.
  • the processor of the electronic device in which the computer is located reads the corresponding computer program instructions in the non-volatile memory into the memory.
  • FIG. 8 a hardware structure diagram of an electronic device in which the device is annotated by the present application, except for the memory 810, the processor 820, and the network interface 830 shown in FIG.
  • the electronic device in which the device is located generally includes other hardware according to the actual function of the document annotation device, and details are not described herein.
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of the document approving device of the present application.
  • the document annotation device provided in this embodiment includes: a processing module 910, an annotation module 920, and an update module 930, where
  • the processing module 910 is configured to: when entering the annotation mode, render an annotation layer on the currently displayed view; the annotation layer is used to render the annotation content based on the annotation event; the annotation event includes adding/removing/changing event;
  • the annotation module 920 is configured to monitor a user-initiated annotation event, and update the display content of the annotation layer according to the annotation event;
  • the update module 930 is configured to update the currently displayed view and the annotation layer when an update instruction is present, The update instruction is triggered based on the page flip event.
  • the device in this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle is similar to the technical effect, and details are not described herein again.
  • annotation layer is an existing annotation layer or a newly created annotation layer associated with the display view.
  • FIG. 10 is a schematic structural diagram of Embodiment 2 of the document approving device of the present application.
  • the apparatus provided in this embodiment further includes: a storage module 940, where
  • the storage module 940 is configured to cache the annotation layer and the currently displayed view before the update module 930 updates the currently displayed view and the annotation layer.
  • the update module 930 is specifically configured to update the annotation layer to the first annotation layer if there is a first annotation layer associated with the updated view, if there is no association with the updated view When the first annotation layer is removed, the annotation layer is removed and the newly created annotation layer is rendered on the updated view.
  • the storage module 940 is specifically configured to obtain the page number information of the currently displayed view, and cache the annotation layer and the page number information; or the storage module 940 is specifically configured to obtain The page number information of the currently displayed view, and caches the annotation layer, the file name of the annotation layer, and the page number information.
  • processing module 910 is further configured to: when receiving the instruction to exit the annotation mode, output an alert message to remind the user to save the cached annotation layer to the local.
  • the storage module 940 is further configured to save the cached annotation layer to the local when the save instruction is received;
  • the annotation module 920 is further configured to: when entering the annotation mode, if the second annotation layer associated with the currently displayed view is locally stored, rendering the second annotation layer on the currently displayed view, if The second annotation layer associated with the currently displayed view is not stored locally, rendering the newly created annotation layer on the currently displayed view.
  • annotation module 920 is further configured to: when entering the annotation mode, render an operation control, where the operation control is used to trigger at least one of the following events: a page turning event and an annotation event.
  • the page turning event includes a page turning event triggered by the operation control.
  • the data source device of the view is a local device
  • the update module 930 is further configured to: after the local device responds to the page turning event, acquire updated data to update the currently displayed view.
  • the data source device of the view is a peer device of the network connection, and the update module 930 is further used.
  • the paging device is notified to the peer device through the network, and after the peer device responds to the page turning event, the updated data is received from the peer device to update the currently displayed view.
  • the page turning event includes a page turning event triggered by a peer device of the network connection, the peer device is a data source device of the view, and the update instruction is sent by the peer device; the update The module 930 is further configured to: after the peer device responds to the page turning event, receive updated data from the peer device to update the currently displayed view.
  • the present application further provides an electronic device including a memory 810, a processor 820, and a computer program stored on the memory 810 and executable on the processor, the processor 820 implementing the program
  • the present application further provides an electronic device including a memory 810, a processor 820, and a computer program stored on the memory 810 and executable on the processor, the processor 820 implementing the program
  • the electronic device provided by the present application may be a smart tablet.
  • the present application also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of any of the document annotation methods provided herein.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

A document annotation method and apparatus, and an electronic device. The document annotation method comprises: when an annotation mode is entered, rendering an annotation layer on a currently displayed view; monitoring an annotation event triggered by a user, and updating display content on the annotation layer according to the annotation event; and when there is an update instruction, updating the currently displayed view and the annotation layer, wherein the annotation layer is used for rendering annotation content on the basis of the annotation event, the annotation event comprises an add/delete/change event, and the update instruction is triggered on the basis of a page turning event. According to the document annotation method and apparatus, and the electronic device, a currently displayed view and an annotation layer can be updated in the annotation mode, so that the updated view can be annotated on the updated annotation layer, and a problem of cumbersome operations in an existing document annotation method when a multi-page document is annotated is solved.

Description

文档批注方法、装置和电子设备Document annotation method, device and electronic device 技术领域Technical field
本申请涉及文档批注领域,尤其涉及一种文档批注方法、装置和电子设备。The present application relates to the field of document annotation, and in particular, to a document annotation method, device and electronic device.
背景技术Background technique
智能电子设备已经越来越多的应用到人们的工作和学习中。例如,利用智能平板进行教学演示或会议演示等。在利用智能平板进行演示时,一般采用文档演示的方式,例如,采用PPT演示的方式。Intelligent electronic devices have been increasingly used in people's work and study. For example, use a smart tablet for teaching presentations or conference presentations. When using a smart tablet for presentations, a document presentation is generally used, for example, a PPT presentation.
在进行文档演示时,经常需要在文档上进行批注,比如,划线、圈圈、着色等等,以达到更好的演示效果。例如,用户点击批注按钮后,可以就智能平板当前显示视图进行批注、保存等操作。但是,现有的文档批注方法,用户在演示文档时,若要对多页文档进行批注,需要执行“开启批注→批注→关闭批注→翻页→开启批注”的繁琐流程,无法在批注状态下直接翻页,以对下一页文档继续进行批注,用户操作非常繁琐。When documenting a document, it is often necessary to annotate the document, such as scribing, circle, coloring, etc., for better presentation. For example, after the user clicks the annotation button, the user can annotate, save, and the like on the current display view of the smart tablet. However, in the existing document annotation method, if the user wants to annotate a multi-page document during the presentation of the document, the cumbersome process of "opening the annotation → annotating → closing the annotation → turning the page → opening the annotation" is performed, and the annotation process cannot be performed. Direct page turning to continue to annotate the next page of the document, the user operation is very cumbersome.
发明内容Summary of the invention
本申请提供一种文档批注方法、装置和电子设备,以解决现有的文档批注方法对多页文档进行批注时,操作繁琐的问题。The present application provides a document annotation method, device and electronic device to solve the cumbersome operation when an existing document annotation method annotates a multi-page document.
本申请第一方面提供一种文档批注方法,包括:The first aspect of the present application provides a document annotation method, including:
当进入批注模式时,在当前所显示的视图上渲染批注图层;所述批注图层用于基于批注事件渲染批注内容;所述批注事件包括增/删/改事件;When entering the annotation mode, the annotation layer is rendered on the currently displayed view; the annotation layer is used to render the annotation content based on the annotation event; the annotation event includes an add/drop/change event;
监听用户触发的批注事件,并根据所述批注事件更新所述批注图层的显示内容;Listening to the user-initiated annotation event, and updating the display content of the annotation layer according to the annotation event;
当存在更新指令时,更新当前所显示的视图和所述批注图层,所述更新指令基于所述翻页事件被触发。When there is an update instruction, the currently displayed view and the annotation layer are updated, the update instruction being triggered based on the page flip event.
进一步地,所述批注图层为已存在的与所述显示视图关联的批注图层或新创建的批注图层。 Further, the annotation layer is an existing annotation layer or a newly created annotation layer associated with the display view.
进一步地,所述更新当前所显示的视图和所述批注图层之前,所述方法还包括:Further, before the updating the currently displayed view and the annotation layer, the method further includes:
将所述批注图层与当前所显示的视图关联缓存;Associating the annotation layer with the currently displayed view;
更新所述批注图层的步骤,包括:The steps to update the annotation layer include:
当存在与更新后的视图关联的第一批注图层时,将所述批注图层更新为所述第一批注图层;Updating the annotation layer to the first annotation layer when there is a first annotation layer associated with the updated view;
当不存在与更新后的视图关联的第一批注图层时,将所述批注图层删除,并在更新后的视图上渲染新创建的批注图层。When there is no first annotation layer associated with the updated view, the annotation layer is deleted and the newly created annotation layer is rendered on the updated view.
进一步地,所述将所述批注图层与当前所显示的视图关联缓存,包括:Further, the associating the annotation layer with the currently displayed view includes:
获取当前所显示的视图的页码信息;Get the page number information of the currently displayed view;
将所述批注图层和所述页码信息关联缓存;或者是,Associating the annotation layer with the page number information; or
获取当前所显示的视图的页码信息;Get the page number information of the currently displayed view;
将所述批注图层、所述批注图层的文件名和所述页码信息关联缓存。The annotation layer, the file name of the annotation layer, and the page number information are cached in association.
进一步地,所述方法还包括:Further, the method further includes:
当接收到退出批注模式的指令时,输出提醒消息,以提醒用户将缓存的批注图层保存到本地。When an instruction to exit the annotation mode is received, an alert message is output to remind the user to save the cached annotation layer locally.
进一步地,所述方法还包括:Further, the method further includes:
当接收到保存指令时,将缓存的批注图层保存到本地;Save the cached layer to the local when the save command is received;
当进入批注模式时,所述在当前所显示的视图上渲染批注图层,包括:When entering the annotation mode, the rendering annotation layer is rendered on the currently displayed view, including:
若本地存储有与当前所显示的视图关联的第二批注图层,在当前所显示的视图上渲染所述第二批注图层;Rendering the second annotation layer on the currently displayed view if the second annotation layer associated with the currently displayed view is stored locally;
若本地没有存储与当前所显示的视图关联的第二批注图层,在当前所显示的视图上渲染新创建的批注图层。If the second annotation layer associated with the currently displayed view is not stored locally, the newly created annotation layer is rendered on the currently displayed view.
进一步地,当进入批注模式时,所述方法还包括:渲染操作控件,所述操作控件用于触发以下至少一种事件:翻页事件和批注事件。Further, when entering the annotation mode, the method further includes: rendering an operation control, the operation control is configured to trigger at least one of the following events: a page turning event and an annotation event.
进一步地,所述翻页事件包括所述操作控件触发的翻页事件。Further, the page turning event includes a page turning event triggered by the operation control.
进一步地,所述视图的数据源设备为本端设备,所述方法还包括:在本端设备响应所述 翻页事件后,获取更新后的数据,以更新当前所显示的视图。Further, the data source device of the view is a local device, and the method further includes: responding to the local device After the page flip event, the updated data is obtained to update the currently displayed view.
进一步地,所述视图的数据源设备为网络连接的对端设备,所述方法还包括:将所述翻页事件通过网络通知所述对端设备,在所述对端设备响应所述翻页事件后,从所述对端设备接收更新后的数据,以更新当前所显示的视图。Further, the data source device of the view is a peer device of the network connection, and the method further includes: notifying the peer device by the page turning event, and responding to the page turning in the peer device After the event, the updated data is received from the peer device to update the currently displayed view.
进一步地,所述翻页事件包括网络连接的对端设备触发的翻页事件,所述对端设备为所述视图的数据源设备,所述更新指令由所述对端设备发送;所述方法还包括:在所述对端设备响应所述翻页事件后,从所述对端设备接收更新后的数据,以更新当前所显示的视图。Further, the page turning event includes a page turning event triggered by a peer device of the network connection, the peer device is a data source device of the view, and the update instruction is sent by the peer device; The method further includes: after the peer device responds to the page turning event, receiving updated data from the peer device to update the currently displayed view.
本申请第二方面提供一种文档批注装置,包括:处理模块、批注模块和更新模块,其中,The second aspect of the present application provides a document annotation device, including: a processing module, an annotation module, and an update module, where
所述处理模块,用于当进入批注模式时,在当前所显示的视图上渲染批注图层;所述批注图层用于基于批注事件渲染批注内容;所述批注事件包括增/删/改事件;The processing module is configured to render an annotation layer on the currently displayed view when entering the annotation mode; the annotation layer is used to render the annotation content based on the annotation event; the annotation event includes an add/drop/change event ;
所述批注模块,用于监听用户触发的批注事件,并根据所述批注事件更新所述批注图层的显示内容;The annotation module is configured to monitor a user-initiated annotation event, and update a display content of the annotation layer according to the annotation event;
所述更新模块,用于当存在更新指令时,更新当前所显示的视图和所述批注图层,所述更新指令基于所述翻页事件被触发。The update module is configured to update the currently displayed view and the annotation layer when an update instruction exists, the update instruction being triggered based on the page turning event.
进一步地,所述装置还包括:存储模块,其中,Further, the device further includes: a storage module, wherein
所述存储模块,用于在所述更新模块更新当前所显示的视图和所述批注图层之前,将所述批注图层与当前所显示的视图关联缓存;The storage module is configured to cache the annotation layer and the currently displayed view before the update module updates the currently displayed view and the annotation layer;
所述更新模块,具体用于若存在与更新后的视图关联的第一批注图层时,将所述批注图层更新为所述第一批注图层,若不存在与更新后的视图关联的第一批注图层时,将所述批注图层删除,并在更新后的视图上渲染新创建的批注图层。The update module is specifically configured to update the annotation layer to the first annotation layer if there is a first annotation layer associated with the updated view, if there is no associated with the updated view When the first batch is a layer, the annotation layer is removed and the newly created annotation layer is rendered on the updated view.
进一步地,所述存储模块,具体用于获取当前所显示的视图的页码信息,并将所述批注图层和所述页码信息关联缓存;或者是,所述存储模块,具体用于获取当前所显示的视图的页码信息,并将所述批注图层、所述批注图层的文件名和所述页码信息关联缓存。Further, the storage module is specifically configured to obtain the page number information of the currently displayed view, and cache the annotation layer and the page number information; or the storage module is specifically configured to obtain the current location. The page number information of the displayed view, and caches the annotation layer, the file name of the annotation layer, and the page number information.
进一步地,所述处理模块,还用于当接收到退出批注模式的指令时,输出提醒消息,以提醒用户将缓存的批注图层保存到本地。Further, the processing module is further configured to: when receiving the instruction to exit the annotation mode, output an alert message to remind the user to save the cached annotation layer to the local.
进一步地,所述存储模块,还用于当接收到保存指令时,将缓存的批注图层保存到本地;Further, the storage module is further configured to save the cached annotation layer to the local when the save instruction is received;
所述批注模块,还用于当进入批注模式时,若本地存储有与当前所显示的视图关联的第二批注图层,在当前所显示的视图上渲染所述第二批注图层,若本地没有存储与当前所显示 的视图关联的第二批注图层,在当前所显示的视图上渲染新创建的批注图层。The annotation module is further configured to: when entering the annotation mode, if the second annotation layer associated with the currently displayed view is locally stored, rendering the second annotation layer on the currently displayed view, if local No storage and currently displayed The second annotation layer associated with the view renders the newly created annotation layer on the currently displayed view.
进一步地,所述批注模块,还用于当进入批注模式时,渲染操作控件,所述操作控件用于触发以下至少一种事件:翻页事件和批注事件。Further, the annotation module is further configured to: when entering the annotation mode, render an operation control, where the operation control is used to trigger at least one of the following events: a page turning event and an annotation event.
进一步地,所述翻页事件包括所述操作控件触发的翻页事件。Further, the page turning event includes a page turning event triggered by the operation control.
进一步地,所述视图的数据源设备为本端设备,所述更新模块,还用于在本端设备响应所述翻页事件后,获取更新后的数据,以更新当前所显示的视图。Further, the data source device of the view is a local device, and the update module is further configured to: after the local device responds to the page turning event, acquire updated data to update the currently displayed view.
进一步地,所述视图的数据源设备为网络连接的对端设备,所述更新模块,还用于将所述翻页事件通过网络通知所述对端设备,在所述对端设备响应所述翻页事件后,从所述对端设备接收更新后的数据,以更新当前所显示的视图。Further, the data source device of the view is a peer device of the network connection, and the update module is further configured to notify the peer device by the page turning event, and the peer device responds to the After the page turning event, the updated data is received from the peer device to update the currently displayed view.
进一步地,所述翻页事件包括网络连接的对端设备触发的翻页事件,所述对端设备为所述视图的数据源设备,所述更新指令由所述对端设备发送;所述更新模块,还用于在所述对端设备响应所述翻页事件后,从所述对端设备接收更新后的数据,以更新当前所显示的视图。Further, the page turning event includes a page turning event triggered by a peer device of the network connection, the peer device is a data source device of the view, and the update instruction is sent by the peer device; the update The module is further configured to: after the peer device responds to the page turning event, receive updated data from the peer device to update the currently displayed view.
本申请第三方面提供一种计算机存储介质,其上存储有计算机程序,所述程序被处理器执行时实现本申请第一方面提供的任一方法的步骤。A third aspect of the present application provides a computer storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of any of the methods provided by the first aspect of the present application.
本申请第四方面提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现本申请第一方面提供的任一方法的步骤。A fourth aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the program provided by the first aspect of the present application The steps of a method.
进一步地,所述电子设备包括智能平板。Further, the electronic device includes a smart tablet.
本申请提供的文档批注方法、装置和电子设备,当进入批注模式时,通过在当前所显示的视图上渲染批注图层,并监听用户触发的批注事件,以及根据批注事件更新批注图层的显示内容,进而在存在更新指令时,更新当前所显示的视图和批注图层,其中,更新指令基于翻页事件被触发。这样,可以在批注模式下更新当前所显示的视图和批注图层,以在更新后的批注图层上对更新后的视图进行批注,实现了对多页文档连续进行批注的目的,且用户操作简单,用户体验较高。The document annotation method, device and electronic device provided by the present application, when entering the annotation mode, render the annotation layer on the currently displayed view, monitor the user-initiated annotation event, and update the display of the annotation layer according to the annotation event. The content, and thus the currently displayed view and annotation layer, is updated when there is an update instruction, wherein the update instruction is triggered based on the page flip event. In this way, the currently displayed view and annotation layer can be updated in the annotation mode to annotate the updated view on the updated annotation layer, thereby realizing the continuous annotation of the multi-page document, and the user operation Simple, high user experience.
附图说明DRAWINGS
图1为本申请文档批注方法实施例一的流程图; 1 is a flowchart of Embodiment 1 of a document annotation method of the present application;
图2为一示例性实施例示出的本申请提供的文档批注方法的应用场景示意图;2 is a schematic diagram of an application scenario of a document annotation method provided by the present application, which is shown in an exemplary embodiment;
图3为另一示例性实施例示出的本申请提供的文档批注方法的应用场景示意图;FIG. 3 is a schematic diagram of an application scenario of a document annotation method provided by the present application according to another exemplary embodiment; FIG.
图4为再一示例性实施例示出的本申请提供的文档批注方法的应用场景示意图;FIG. 4 is a schematic diagram of an application scenario of a document annotation method provided by the present application according to still another exemplary embodiment; FIG.
图5为本申请文档批注方法实施例二的流程图;FIG. 5 is a flowchart of Embodiment 2 of the document annotation method of the present application; FIG.
图6为本申请一示例性实施例示出的将批注图层与当前所显示的视图关联缓存的流程图;FIG. 6 is a flowchart showing associating an annotation layer with a currently displayed view according to an exemplary embodiment of the present application; FIG.
图7为本申请另一示例性实施例示出的将批注图层与当前所显示的视图关联缓存的流程图;FIG. 7 is a flowchart showing association of an annotation layer with a currently displayed view according to another exemplary embodiment of the present application; FIG.
图8为本申请文档批注装置所在电子设备的硬件结构图;8 is a hardware structural diagram of an electronic device in which the document annotation device of the present application is located;
图9为本申请文档批注装置实施例一的结构示意图;Figure 9 is a schematic structural view of Embodiment 1 of the document approving device of the present application;
图10为本申请文档批注装置实施例二的结构示意图。FIG. 10 is a schematic structural diagram of Embodiment 2 of the document approving device of the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with aspects of the present application as detailed in the appended claims.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present application is for the purpose of describing particular embodiments, and is not intended to be limiting. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used to describe various information in this application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information without departing from the scope of the present application. Similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to determination."
本申请提供一种文档批注方法、装置和电子设备,以解决现有的文档批注方法对多页文档进行批注时,操作繁琐的问题。 The present application provides a document annotation method, device and electronic device to solve the cumbersome operation when an existing document annotation method annotates a multi-page document.
本申请提供的文档批注方法和装置,可以应用于电子设备中,例如,可以应用于智能平板中。The document annotation method and apparatus provided by the present application can be applied to an electronic device, for example, can be applied to a smart tablet.
下面以具体的实施例对本申请的技术方案进行详细说明,下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present application are described in detail below with reference to specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
图1为本申请文档批注方法实施例一的流程图。本实施例的执行主体可以为单独的文档批注装置,也可以为集成有文档批注装置的电子设备,下面以执行主体为集成有文档批注装置的智能平板为例进行说明。请参照图1,本实施例提供的方法,可以包括:FIG. 1 is a flowchart of Embodiment 1 of a document annotation method of the present application. The execution body of the embodiment may be a separate document annotation device, or may be an electronic device integrated with a document annotation device. The following is an example in which the execution body is a smart tablet integrated with a document annotation device. Referring to FIG. 1, the method provided in this embodiment may include:
S101、当进入批注模式时,在当前所显示的视图上渲染批注图层;上述批注图层用于基于批注事件渲染批注内容;上述批注事件包括增/删/改事件。S101. When entering the annotation mode, rendering the annotation layer on the currently displayed view; the annotation layer is used to render the annotation content based on the annotation event; the annotation event includes an add/drop/change event.
具体的,智能平板可以通过运行本地的文档程序(例如,PPT程序或Word程序)进行文档演示,也可以通过共享桌面进行文档演示,例如,通过电脑共享的桌面进行文档演示,此外,还可以通过HDMI输入方式或VGA输入方式进行文档演示,例如,在电脑上演示文档时,将电脑通过HDMI线或VGA线与智能平板连接,将电脑上演示的文档显示在智能平板上。需要说明的是,无论是通过共享桌面进行文档演示,还是通过HDMI输入方式或VGA输入方式进行文档演示,都需要在智能平板的视频信号输入端口外接TOUCH线,以实现触摸回传。Specifically, the smart tablet can perform document presentation by running a local document program (for example, a PPT program or a Word program), or can perform a document presentation through a shared desktop, for example, a document presentation through a desktop shared by a computer, and HDMI input mode or VGA input mode for document presentation. For example, when presenting a document on a computer, connect the computer to the smart tablet through an HDMI cable or VGA cable, and display the document displayed on the computer on the smart tablet. It should be noted that whether the document is demonstrated through the shared desktop or the document is demonstrated through the HDMI input mode or the VGA input mode, the TOUCH line needs to be connected to the video signal input port of the smart tablet to implement touch return.
此外,本实施例中,不对进入批注模式的时机进行限定,例如,可以在启动文档演示时进入批注模式;也可以在启动文档演示时,仅渲染批注按钮,进一步地,当接收到进入批注模式指令时(需要说明的是,进入批注模式指令由批注按钮被点击时触发)进入批注模式。即用户需要通过点击批注按钮触发进入批注模式指令,以使正在演示的文档进入批注模式。In addition, in this embodiment, the timing of entering the annotation mode is not limited, for example, the annotation mode may be entered when the document presentation is started; or the annotation button may be only rendered when the document presentation is started, and further, when the incoming annotation mode is received When the command is executed (it needs to be explained that the entry into the comment mode command is triggered when the comment button is clicked) enters the comment mode. That is, the user needs to trigger the entry of the annotation mode instruction by clicking the annotation button, so that the document being presented enters the annotation mode.
需要说明的是,批注图层可以为全局透明的图层,其渲染在当前所显示的视图之上,用于基于批注事件渲染批注内容。例如,对于安卓系统,该全局透明的图层可以为SurfaceView,其具有独立的绘图表面,可以在该独立绘图表面中进行划线、圈圈、写字、画图等批注操作。It should be noted that the annotation layer can be a globally transparent layer that is rendered above the currently displayed view for rendering the annotation content based on the annotation event. For example, for Android, the globally transparent layer can be a SurfaceView, which has a separate drawing surface, and can perform annotating operations such as scribing, circle, writing, drawing, and the like in the independent drawing surface.
S102、监听用户触发的批注事件,并根据上述批注事件更新上述批注图层的显示内容。S102. Monitor an annotation event triggered by the user, and update the display content of the annotation layer according to the annotation event.
具体的,当进入批注模式后,用户便可以对当前所显示的视图进行批注,此时,智能平板监听用户触发的批注事件,并根据上述批注事件更新批注图层的显示内容。这样,即可以在批注图层上显示批注内容,达到预定的演示效果。Specifically, after entering the annotation mode, the user can annotate the currently displayed view. At this time, the smart tablet monitors the annotation event triggered by the user, and updates the display content of the annotation layer according to the annotation event. In this way, the annotation content can be displayed on the annotation layer to achieve the predetermined presentation effect.
S103、当存在更新指令时,更新当前所显示的视图和上述批注图层,上述更新指令基于翻页事件被触发。 S103. When there is an update instruction, update the currently displayed view and the annotation layer, and the update instruction is triggered based on a page turning event.
需要说明的是,本实施例中,不对翻页事件的触发方式进行限定,例如,用户可通过左右滑动当前所显示的视图来触发翻页事件。下面将给出详细的实施例来说明翻页事件的触发方式,此处不再赘述。It should be noted that, in this embodiment, the triggering manner of the page turning event is not limited. For example, the user can trigger the page turning event by sliding the currently displayed view left and right. A detailed embodiment will be given below to explain the triggering manner of the page turning event, which will not be described here.
此外,更新指令基于翻页事件被触发,当存在更新指令时,更新当前所显示的视图和上述批注视图。这样,可以在批注模式下更新当前所显示的视图和批注图层,以在更新后的批注图层上对更新后的视图进行批注,不需要退出批注后,更新视图,进而在更新视图后,再启动批注,用户操作简单,用户体验较高。In addition, the update instruction is triggered based on the page flip event, and when there is an update instruction, the currently displayed view and the annotation view described above are updated. In this way, you can update the currently displayed view and annotation layers in annotation mode to annotate the updated view on the updated annotation layer, update the view without exiting the annotation, and then, after updating the view, The annotation is started again, the user operation is simple, and the user experience is high.
本实施例提供的方法,当进入批注模式时,通过在当前所显示的视图上渲染批注图层,并监听用户触发的批注事件,以及根据批注事件更新批注图层的显示内容,进而在存在更新指令时,更新当前所显示的视图和批注图层,其中,更新指令基于翻页事件被触发。这样,可以在批注模式下更新当前所显示的视图和批注图层,以在更新后的批注图层上对更新后的视图进行批注,可以对多页文档进行批注,且用户操作简单,用户体验较高。The method provided in this embodiment, when entering the annotation mode, renders the annotation layer on the currently displayed view, monitors the user-initiated annotation event, and updates the display content of the annotation layer according to the annotation event, thereby updating the presence of the annotation layer. When the instruction is issued, the currently displayed view and annotation layers are updated, wherein the update instruction is triggered based on the page turning event. In this way, the currently displayed view and annotation layer can be updated in the annotation mode to annotate the updated view on the updated annotation layer, the multi-page document can be annotated, and the user operation is simple, the user experience Higher.
可选地,在本申请一可能的实现方式中,当进入批注模式时,所述方法还包括:渲染操作控件,上述操作控件用于触发以下至少一种事件:翻页事件和批注事件。Optionally, in a possible implementation manner of the present application, when entering the annotation mode, the method further includes: rendering an operation control, where the operation control is used to trigger at least one of the following events: a page turning event and an annotation event.
具体的,操作控件可以是悬浮可见的操作控件,其可以渲染在批注图层之上。此外,操作控件包括以下至少一种控件:向前翻页控件、向后翻页控件、批注颜色选择控件、橡皮擦控件、批注笔控件。此外,还可以包括保存控件、扫码分享控件以及邮件发送控件等。Specifically, the action control can be a floating visible action control that can be rendered on top of the annotation layer. In addition, the operation control includes at least one of the following controls: a page forward control, a page backward control, an annotation color selection control, an eraser control, and an annotation pen control. In addition, you can also include save controls, scan code sharing controls, and mailing controls.
可选地,在本申请一可能的实现方式中,翻页事件包括上述操作控件触发的翻页事件。Optionally, in a possible implementation manner of the present application, the page turning event includes a page turning event triggered by the operation control.
具体的,用户可以通过点击操作控件来触发翻页事件,例如,当用户点击向前翻页控件时,向前翻页事件被触发。Specifically, the user can trigger a page turning event by clicking an operation control, for example, when the user clicks the forward page turning control, the page turning event is triggered.
进一步地,在翻页事件包括上述操作控件触发的翻页事件时,当视图的数据源设备为本端设备时,本实施例提供的方法,还包括:在本端设备响应上述翻页事件后,获取更新后的数据,以更新当前所显示的视图。Further, when the page turning event includes the page turning event triggered by the operation control, when the data source device of the view is the local device, the method provided by the embodiment further includes: after the local device responds to the page turning event , get the updated data to update the currently displayed view.
具体的,图2为一示例性实施例示出的本申请提供的文档批注方法的应用场景示意图。请参照图2,在图2所示的应用场景中,智能平板通过运行本地的文档程序进行文档演示,智能平板当前所显示的视图的数据源设备为本端设备,此时,用户可通过点击翻页控件来触发翻页事件,例如,在图2所示应用场景中,用户可通过点击向前翻页控件来触发向前翻页事件。进一步地,当翻页事件被触发后,智能平板会响应上述翻页事件,进行翻页,此时,智能平板会获取更新后的数据,以更新当前所显示的视图。需要说明的是,在该种情况下, 更新指令可以是在翻页事件被触发时被触发的,也可以是在获取到更新后的数据时被触发的。Specifically, FIG. 2 is a schematic diagram of an application scenario of a document annotation method provided by the present application, which is shown in an exemplary embodiment. Referring to FIG. 2, in the application scenario shown in FIG. 2, the smart tablet performs a document presentation by running a local document program, and the data source device of the view currently displayed by the smart tablet is the local device. At this time, the user can click The page turning control is used to trigger a page turning event. For example, in the application scenario shown in FIG. 2, the user can trigger a page turning event by clicking the forward page turning control. Further, after the page turning event is triggered, the smart tablet responds to the page turning event to perform page turning. At this time, the smart tablet acquires the updated data to update the currently displayed view. It should be noted that in this case, The update instruction may be triggered when the page turning event is triggered, or may be triggered when the updated data is acquired.
此外,在翻页事件包括上述操作控件触发的翻页事件时,当视图的数据源设备为网络连接的对端设备时,本实施例提供的方法,还包括:将上述翻页事件通过网络通知上述对端设备,在上述对端设备响应上述翻页事件后,从上述对端设备接收更新后的数据,以更新当前所显示的视图。In addition, when the page turning event includes the page turning event triggered by the operation control, when the data source device of the view is the peer device of the network connection, the method provided in this embodiment further includes: notifying the page turning event through the network The peer device receives the updated data from the peer device after the peer device responds to the paging event to update the currently displayed view.
具体的,图3为另一示例性实施例示出的本申请提供的文档批注方法的应用场景示意图。请参照图3,在图3所示的应用场景中,智能平板是通过无线传屏技术进行文档演示的,智能平板当前运行的程序为共享桌面。例如,在图3所示的应用场景中,智能平板是通过电脑共享的桌面进行文档演示的,智能平板当前所显示的视图的数据源设备为电脑(当然,在图3所示的应用场景中,智能平板也可以通过HDMI输入方式或VGA输入方式进行文档演示)。此时,如图3所示,用户可通过点击智能平板上显示的翻页控件来触发翻页事件,进一步地,当用户通过点击翻页控件触发了翻页事件后,智能平板可以模拟对端设备(图3所示实施例中,对端设备为电脑)的输入事件,将上述翻页事件发送给对端设备,例如,模拟鼠标输入事件或键盘输入事件将翻页事件发送给对端设备,这样,对端设备在接收到上述翻页事件后,会响应接收到的翻页事件。在具体实现时,例如,可使用无线传屏技术,即通过一个无线传屏装置将翻页事件发送给对端设备,具体的,该无线传屏装置的一端通过Wifi与智能平板连接,另一端通过USB接口与电脑连接。这样,智能平板可以先将翻页事件发送给无线传屏装置,进一步地,当该无线传屏装置接收到翻页事件后,会按照USB HID(Human Inter Device)多点触摸协议对翻页事件重新封装,并将重新封装后的翻页事件通过USB接口发送给电脑。这样,对端设备接收到翻页事件后,便对翻页事件进行响应。Specifically, FIG. 3 is a schematic diagram of an application scenario of a document annotation method provided by the present application, which is illustrated by another exemplary embodiment. Referring to FIG. 3, in the application scenario shown in FIG. 3, the smart tablet performs document presentation through wireless screen technology, and the currently running program of the smart tablet is a shared desktop. For example, in the application scenario shown in FIG. 3, the smart tablet is demonstrated by a desktop shared by a computer, and the data source device of the view currently displayed by the smart tablet is a computer (of course, in the application scenario shown in FIG. 3) The smart tablet can also be used for document presentation via HDMI input or VGA input. At this time, as shown in FIG. 3, the user can trigger the page turning event by clicking the page turning control displayed on the smart tablet. Further, when the user triggers the page turning event by clicking the page turning control, the smart tablet can simulate the opposite end. The input event of the device (the peer device is a computer in the embodiment shown in FIG. 3) sends the page flipping event to the peer device, for example, simulates a mouse input event or a keyboard input event, and sends a page turning event to the peer device. In this way, the peer device responds to the received page turning event after receiving the page turning event. In a specific implementation, for example, a wireless screen transmission technology may be used, that is, a page turning event is sent to the peer device through a wireless screen device. Specifically, one end of the wireless screen device is connected to the smart tablet through the Wifi, and the other end is connected. Connect to your computer via the USB port. In this way, the smart tablet can first send the page turning event to the wireless screen device, and further, when the wireless screen device receives the page turning event, it will follow the USB HID (Human Inter Device) multi-touch protocol to turn the page event. Repackage and send the repackaged page flip event to the computer via the USB interface. In this way, after the peer device receives the page turning event, it responds to the page turning event.
需要说明的是,当对端设备响应翻页事件后,此时,智能平板便从对端设备接收更新后的数据,这样,在接收到更新后的数据后,便更新当前所显示的视图。需要说明的是,在该实施例中,更新指令可以是在翻页事件被触发时被触发的,也可以是在接收到更新后的数据时被触发的。It should be noted that, after the peer device responds to the page turning event, at this time, the smart tablet receives the updated data from the peer device, so that after the updated data is received, the currently displayed view is updated. It should be noted that, in this embodiment, the update instruction may be triggered when the page turning event is triggered, or may be triggered when the updated data is received.
可选地,在本申请另一可能的实现方式中,上述翻页事件包括网络连接的对端设备触发的翻页事件,上述对端设备为所述视图的数据源设备;上述更新指令由所述对端设备发送,上述方法还包括:在上述对端设备响应上述翻页事件后,从上述对端设备接收更新后的数据,以更新当前所显示的视图。Optionally, in another possible implementation manner of the present application, the page turning event includes a page turning event triggered by a peer device of the network connection, where the peer device is a data source device of the view; The method further includes: after the peer device responds to the page flipping event, receiving the updated data from the peer device to update the currently displayed view.
具体的,图4为再一实施例示出的本申请提供的文档批注方法的应用场景示意图。请参照图4,在图4所示的应用场景中,智能平板是通过无线传屏技术进行文档演示的,智能平 板当前运行的程序为共享桌面。例如,在图4所示的应用场景中,智能平板是通过电脑共享的桌面进行文档演示的,智能平板当前所显示的视图的数据源设备为电脑(当然,在图4所示的应用场景中,智能平板也可以通过HDMI输入方式或VGA输入方式进行文档演示)。如图4所示,用户可通过点击电脑上的翻页按钮来触发翻页事件。需要说明的是,当电脑存在翻页事件时,此时,更新指令被触发,电脑将更新指令和更新后的数据发送给智能平板,进一步地,智能平板接收到更新指令和更新后的数据后,更新当前所显示的视图和当前批注图层。Specifically, FIG. 4 is a schematic diagram of an application scenario of a document annotation method provided by the present application according to another embodiment. Referring to FIG. 4, in the application scenario shown in FIG. 4, the smart tablet is demonstrated by a wireless screen technology, and the smart plane is The program currently running on the board is a shared desktop. For example, in the application scenario shown in FIG. 4, the smart tablet is presented by the desktop shared by the computer, and the data source device of the view currently displayed by the smart tablet is a computer (of course, in the application scenario shown in FIG. 4) The smart tablet can also be used for document presentation via HDMI input or VGA input. As shown in Figure 4, the user can trigger a page flip event by clicking the page flip button on the computer. It should be noted that when there is a page turning event in the computer, at this time, the update command is triggered, and the computer sends the update command and the updated data to the smart tablet. Further, after the smart tablet receives the update command and the updated data, , update the currently displayed view and the current annotation layer.
下面给出一个更具体的实施例,用于详细介绍本申请提供的文档批注方法。A more specific embodiment is given below for a detailed description of the document annotation method provided by the present application.
图5为本申请文档批注方法实施例二的流程图。请参照图5,本实施例提供的方法,可以包括:FIG. 5 is a flowchart of Embodiment 2 of the document annotation method of the present application. Referring to FIG. 5, the method provided in this embodiment may include:
S501、当进入批注模式时,若本地存储有与当前所显示的视图关联的第二批注图层,在当前所显示的视图上渲染上述第二批注图层,若本地没有存储与当前所显示的视图关联的第二批注图层,在当前所显示的视图上渲染新创建的批注图层。S501. When entering the annotation mode, if the second annotation layer associated with the currently displayed view is locally stored, the second annotation layer is rendered on the currently displayed view, if the local is not stored and currently displayed. The second annotation layer associated with the view renders the newly created annotation layer on the currently displayed view.
具体的,在进入批注模式时,可以先判断本地是否存储有与当前所显示的视图关联的第二批注图层,若是,则在当前所显示的视图上渲染上述第二批注图层,若否,则在当前所显示的视图上渲染新创建的批注图层。例如,在进入批注模式时,当前所显示的视图的页码信息为第3页,本步骤中,就判断本地是否存储有与第3页视图关联的第二批注图层,进而在本地存储有与第3页视图关联的第二批注图层时,在当前所显示的视图上渲染第二批注图层,在本地没有存储与第3页视图关联的第二批注图层时,在当前所显示的视图上渲染新创建的批注图层。Specifically, when entering the annotation mode, it may first determine whether a second annotation layer associated with the currently displayed view is stored locally, and if so, rendering the second annotation layer on the currently displayed view, if not , renders the newly created annotation layer on the currently displayed view. For example, when entering the annotation mode, the page number information of the currently displayed view is page 3. In this step, it is determined whether the second annotation layer associated with the third page view is stored locally, and then stored locally and When the second annotation layer associated with the third page view is rendered, the second annotation layer is rendered on the currently displayed view, and when the second annotation layer associated with the third page view is not stored locally, the currently displayed Render the newly created annotation layer on the view.
需要说明的是,与当前所显示的视图关联的第二批注图层可以是以当前所显示的视图的页码信息为文件名的批注图层,此时,本步骤中,就判断本地是否存储有以当前所显示的视图的页码信息为文件名的批注图层。此外,与当前所显示的视图关联的第二批注图层还可以是关联关系表中存储的文件名与当前所显示的视图的页码信息具有关联关系的批注图层,例如,当前所显示的视图的页码信息为第1页,关联关系表中没有存储与该页码信息关联的文件名,则说明本地不存在与当前所显示的视图关联的第二批注图层。It should be noted that the second annotation layer associated with the currently displayed view may be an annotation layer with the page number information of the currently displayed view as the file name. In this step, it is determined whether the local storage is stored. The annotation layer of the file name with the page number information of the currently displayed view. In addition, the second annotation layer associated with the currently displayed view may also be an annotation layer whose file name stored in the association table is associated with the page number information of the currently displayed view, for example, the currently displayed view. The page number information is page 1, and the file name associated with the page number information is not stored in the relationship table, indicating that there is no second annotation layer associated with the currently displayed view.
本实施例提供的方法,在演示某一文档时,在更新批注图层之前,首先将当前批注图层和当前所显示的视图关联缓存,进一步地,当接收到保存指令时,将缓存的批注图层保存到本地,这样,在再次演示该文档、且进入批注模式时,便可以将本地缓存的批注图层渲染在 与其关联的视图上,以将批注内容展示给用户,可进一步满足用户需求,提高用户体验。The method provided in this embodiment, when presenting a certain document, first caches the current annotation layer and the currently displayed view before updating the annotation layer, and further, when the save instruction is received, the cached annotation is used. The layer is saved locally so that when the document is demoed again and you enter the annotation mode, the locally cached annotation layer can be rendered at On the view associated with it, to present the annotation content to the user, the user's needs can be further satisfied and the user experience can be improved.
S502、监听用户触发的批注事件,并根据上述批注事件更新当前批注图层的显示内容。S502. Monitor an annotation event triggered by the user, and update the display content of the current annotation layer according to the annotation event.
具体的,该步骤的具体实现过程及实现原理可以参见实施例一步骤S102的描述,此处不再赘述。For details, refer to the description of the step S102 in the first embodiment, and the details are not described herein.
S503、当存在更新指令时,将当前批注图层与当前所显示的视图关联缓存,并更新当前所显示的视图。S503. When an update instruction exists, cache the current annotation layer with the currently displayed view, and update the currently displayed view.
具体的,关于更新当前所显示的视图的具体实现过程和实现原理可以参见前面的描述,此处不再赘述。Specifically, the specific implementation process and implementation principle of updating the currently displayed view can be referred to the foregoing description, and details are not described herein again.
本实施例提供的方法,当存在更新指令时,在更新当前所显示的视图之前,首先将当前批注图层与当前所显示的视图关联缓存。这样,便可以将携带有批注内容的批注图层与视图关联缓存。进一步地,在显示与已缓存的批注图层关联的视图时,可将当前批注图层更新为与当前所显示视图关联的批注图层,这样,便可以将携带有批注内容的批注图层呈现给用户,可进一步满足用户需求,提高用户体验。The method provided in this embodiment, when there is an update instruction, first caches the current annotation layer and the currently displayed view before updating the currently displayed view. In this way, the annotation layer carrying the annotation content can be cached in association with the view. Further, when displaying the view associated with the cached annotation layer, the current annotation layer can be updated to the annotation layer associated with the currently displayed view, so that the annotation layer carrying the annotation content can be rendered To the user, the user's needs can be further satisfied and the user experience can be improved.
下面详细介绍一下将当前批注图层与当前所显示的视图关联缓存的具体实现过程。The following describes in detail the implementation process of associating the current annotation layer with the currently displayed view.
图6为本申请一示例性实施例示出的将批注图层与当前所显示的视图关联缓存的流程图,请参照图6,在一种可能的实现方式中,可以按照如下方法将批注图层与当前所显示的视图关联缓存,该方法包括如下步骤:FIG. 6 is a flowchart of associating an annotation layer with a currently displayed view according to an exemplary embodiment of the present application. Referring to FIG. 6, in a possible implementation, an annotation layer may be used as follows. Associating the cache with the currently displayed view, the method includes the following steps:
S601、获取当前所显示的视图的页码信息。S601. Obtain page number information of the currently displayed view.
具体的,该页码信息为正在演示的文档的每个页面的序号,如,第1页、第2页等。此外,当视图的数据源设备为本端设备时,此时,可通过调用本地运行的文档程序(例如,PPT程序或Word程序)的相关函数来获取当前所显示的视图的页码信息页面。另外,当视图的数据源设备为通过网络连接的对端设备时,可给对端设备发请求,以获取当前所显示的视图的页码信息,例如,可通过辅助程序来调用对端设备的COM接口来获取当前所显示的视图的页码信息。Specifically, the page number information is a serial number of each page of the document being presented, for example, page 1, page 2, and the like. In addition, when the data source device of the view is the local device, at this time, the page information page of the currently displayed view can be obtained by calling a related function of a locally running document program (for example, a PPT program or a Word program). In addition, when the data source device of the view is a peer device connected through the network, the peer device may be requested to obtain the page number information of the currently displayed view, for example, the COM of the peer device may be invoked through the auxiliary program. Interface to get the page number information of the currently displayed view.
S602、将当前批注图层和上述页码信息关联缓存。S602. Cache the current annotation layer and the page number information.
具体的,本步骤中,可以将当前批注图层以获取到的页码信息为文件名缓存,以将当前批注图层与上述页码信息关联缓存。例如,获取到的当前所显示的视图的页码信息为第3页,此时,将当前批注图层以3为文件名缓存。 Specifically, in this step, the current annotation layer may cache the obtained page number information as a file name to cache the current annotation layer and the page number information. For example, the obtained page number information of the currently displayed view is page 3, and at this time, the current annotation layer is cached with a file name of 3.
图7为本申请另一示例性实施例示出的将批注图层与当前所显示的视图关联缓存的流程图。请参照图7,在另一种可能的实现方式中,可以按照如下方法将批注图层与当前所显示的视图关联缓存,该方法包括如下步骤:FIG. 7 is a flow chart showing the association of an annotation layer with a currently displayed view, according to another exemplary embodiment of the present application. Referring to FIG. 7, in another possible implementation, the annotation layer may be cached with the currently displayed view according to the following method, and the method includes the following steps:
S701、获取当前所显示的视图的页码信息。S701. Obtain page number information of the currently displayed view.
具体的,该步骤的具体实现过程和实现原理可以参见步骤S601的描述,此处不再赘述。For details, refer to the description of step S601 in the specific implementation process and implementation principle of the step, and details are not described herein again.
S702、将当前批注图层、当前批注图层的文件名和上述页码信息关联缓存。S702. Cache the current annotation layer, the file name of the current annotation layer, and the above page number information.
具体的,本步骤中,可以将批注图层以其他信息为文件名保存,进而保存当前批注图层的文件名和获取到的页码信息的关联关系表,以将当前批注图层和当前所显示的视图关联缓存。在一实施例中,可以将批注图层以该批注图层创建时的顺序号为文件名保存,例如,当前批注图层是第一个创建的批注图层,则将该批注图层以1为文件名保存,进而将该批注图层的文件名和获取到的页码信息保存到关联关系表中(本例中,将文件名1与页码信息3保存到关联关系表中)。Specifically, in this step, the annotation layer may be saved with another information as a file name, thereby saving the file name of the current annotation layer and the obtained association relationship of the page number information, so as to display the current annotation layer and the currently displayed layer. View associative cache. In an embodiment, the annotation layer may be saved as a file name when the annotation layer is created. For example, if the current annotation layer is the first annotation layer created, the annotation layer is 1 The file name is saved, and the file name of the annotation layer and the obtained page number information are saved in the association table (in this example, the file name 1 and the page number information 3 are saved in the association table).
再例如,还可以将当前批注图层以该批注图层创建时的时间为文件名保存,例如,该批注图层是2017年8月30日9:30:05秒创建的,则将该批注图层以20170830093005为文件名保存,进而将该批注图层的文件名和获取到的页码信息保存到关联关系表中(本例中,将文件名20170830093005和页码信息3保存到关联关系表中)。这样,通过该关联关系表,即可获知与页码信息为3的视图关联的批注图层为文件名为20170830093005的批注图层,即建立起视图与批注图层的关联关系,后续在更新视图时,若存在与更新后的视图关联的批注图层,在更新批注图层时,便可以直接将批注图层更新为与更新后的视图关联的批注图层,可进一步提高用户体验。For another example, the current annotation layer can also be saved as the file name when the annotation layer is created. For example, if the annotation layer is created at 9:30:05 seconds on August 30, 2017, the annotation is added. The layer is saved as a file name of 20170830093005, and the file name of the annotation layer and the obtained page number information are saved in the association table (in this example, the file name 20170830093005 and the page number information 3 are saved in the association table). In this way, through the association table, it can be known that the annotation layer associated with the view with the page number information 3 is the annotation layer with the file name of 20170830093005, that is, the association relationship between the view and the annotation layer is established, and subsequent updates are performed. If there is an annotation layer associated with the updated view, when the annotation layer is updated, the annotation layer can be directly updated to the annotation layer associated with the updated view, which further enhances the user experience.
S504、判断是否缓存有与更新后的视图关联的第一批注图层,若是,执行步骤S507,若否,执行步骤S508。S504. Determine whether the first annotation layer associated with the updated view is cached. If yes, go to step S507, and if no, go to step S508.
结合上面的例子,当前所显示的视图的页码信息为第3页。例如,翻页事件为向前翻页事件,此时,更新后的视图的页码信息为第4页,此时,就判断是否缓存有与第4页视图关联的第一批注图层,进一步地,当批注图层是以视图的页码信息为文件名缓存时,本步骤中,就判断是否缓存有以第4页为文件名的批注图层;当批注图层是以其他信息为文件名时,且批注图层的文件名与视图的页码信息存储在关联信息表中时,本步骤中,就判断关联关系表中是否存在与第4页关联的文件名,进一步地,当判断关联表中存在与第4页关联的文件 名后,进一步判断是否存在以该文件名命名的批注图层。In combination with the above example, the page number information of the currently displayed view is page 3. For example, the page turning event is a page turning event. At this time, the page number information of the updated view is page 4, and at this time, it is determined whether the first annotation layer associated with the page 4 view is cached, and further When the annotation layer is cached with the page number information of the view as the file name, in this step, it is determined whether the annotation layer with the file name of the fourth page is cached; when the annotation layer is the file name with other information. And when the file name of the annotation layer and the page number information of the view are stored in the association information table, in this step, it is determined whether there is a file name associated with the fourth page in the association table, and further, when determining the association table There are files associated with page 4 After the name, further determine whether there is an annotation layer named after the file name.
例如,在一实施例中,在进入批注模式时,当前所显示的视图的页码信息为第4页,用户首先对当前所显示的视图进行了批注,之后,向后翻页,将当前批注图层以4为文件名缓存,并更新当前所显示的视图,更新后,当前所显示的视图的页码信息为第5页,之后,再向前翻页,并将当前批注图层以5为文件名缓存,此时,更新后的视图的页码信息为4,此时,经过判断,确定存在与更新后的视图关联的第一批注图层(存在以4为文件名的批注图层)。For example, in an embodiment, when entering the annotation mode, the page number information of the currently displayed view is page 4, and the user first annotates the currently displayed view, and then, pages backward, and the current annotation map is The layer is cached with a file name of 4, and the currently displayed view is updated. After the update, the page number information of the currently displayed view is page 5, and then the page is forwarded forward, and the current annotation layer is set to 5 as a file. Name cache, at this time, the page number information of the updated view is 4, at this time, it is determined that there is a first annotation layer associated with the updated view (there is an annotation layer with a file name of 4).
S505、将当前批注图层更新为上述第一批注图层。S505. Update the current annotation layer to the first annotation layer.
当经过步骤S504判断存在与更新后的视图关联的第一批注图层时,说明在进入批注模式后,用户已经对将要显示的视图进行过批注,本步骤中,就将批注图层更新为第一批注图层,这样,可将之前的批注内容展示给用户,以供用户在之前的批注内容的基础上再次进行批注,可进一步满足用户需求,提高用户体验。When it is determined in step S504 that there is a first annotation layer associated with the updated view, the user has already annotated the view to be displayed after entering the annotation mode. In this step, the annotation layer is updated to the first A batch of annotation layers, in this way, the previous annotation content can be presented to the user, so that the user can re-annotize the previous annotation content, which can further meet the user's needs and improve the user experience.
S506、将当前批注图层删除,并在更新后的视图上渲染新创建的批注图层。S506. Delete the current annotation layer and render the newly created annotation layer on the updated view.
具体的,当经过步骤S504判断不存在与更新后的视图关联的第一批注图层时,说明在进入批注模式后,用户还没有对将要显示的视图进行过批注,本步骤中,就将当前批注图层删除,并在更新后的视图上渲染新创建的批注图层,这样,用户可在新创建的批注图层对更新后的视图进行批注。Specifically, when it is determined in step S504 that there is no first annotation layer associated with the updated view, it indicates that after entering the annotation mode, the user has not annotated the view to be displayed, and in this step, the current The annotation layer is deleted and the newly created annotation layer is rendered on the updated view so that the user can annotate the updated view on the newly created annotation layer.
S507、当接收到退出批注模式的指令时,输出提醒消息,以提醒用户将缓存的批注图层保存到本地。S507. When receiving the instruction to exit the annotation mode, output an alert message to remind the user to save the cached annotation layer to the local.
具体的,缓存的批注图层会在退出批注模式时被删除,因此,本实施例提供的方法,当接收到退出批注模式指令时,会输出提醒消息,以提醒用户将缓存的批注图层保存。这样,可避免因用户忘记保存批注图层而造成批注图层丢失的问题,可将携带有批注内容的批注图层保存,以将批注内容再次展示给用户。Specifically, the cached annotation layer is deleted when exiting the annotation mode. Therefore, the method provided by the embodiment, when receiving the exit annotation mode instruction, outputs an alert message to remind the user to save the cached annotation layer. . In this way, the problem that the annotation layer is lost due to the user forgetting to save the annotation layer can be avoided, and the annotation layer carrying the annotation content can be saved to display the annotation content to the user again.
需要说明的是,退出批注模式指令是通过本地显示的操作控件输入的。此外,提醒消息可以采用以下任意一种方式输出:文本输出或语音输出。本实施例中,不对提醒消息的输出方式进行限定。It should be noted that the exit annotation mode instruction is input through the local display operation control. In addition, the reminder message can be output in any of the following ways: text output or voice output. In this embodiment, the output mode of the reminder message is not limited.
S508、当接收到保存指令时,将缓存的批注图层保存到本地。S508. When the save instruction is received, save the cached annotation layer to the local.
具体的,当视图的数据源设备为本端设备时,保存指令是通过本地的操作控件输入的; 当视图的数据源设备为通过网络连接的对端设备时,保存指令可以是通过本地的操作控件输入的,也可以是对端设备在接收到用户通过对端设备的输入设备输入的保存指令时发送给本端设备的。Specifically, when the data source device of the view is the local device, the save instruction is input through a local operation control; When the data source device of the view is a peer device connected through the network, the save instruction may be input through a local operation control, or may be when the peer device receives the save instruction input by the user through the input device of the peer device. Sent to the local device.
本实施例提供的方法,在接收到保存指令时,将缓存的批注图层保存到本地,缓存的批注图层携带有批注内容,这样,在再次演示该文档时,可将本地缓存的批注图层渲染在与其关联的视图上,以将批注内容展示给用户,可进一步满足用户需求,提高用户体验。The method provided in this embodiment saves the cached annotation layer to the local when the save instruction is received, and the cached annotation layer carries the annotation content, so that when the document is demonstrated again, the locally cached annotation map can be The layer renders on the view associated with it to present the annotation content to the user, which can further meet the user's needs and improve the user experience.
本实施例提供的方法,在存在更新指令时,通过将当前批注图层与当前所显示的批注图层关联缓存,这样,在更新批注图层时,若存在与更新后的视图关联的第一批注图层,就将当前批注图层更新后第一批注图层,这样,可将之前的批注内容展示给用户,以供用户在之前的批注内容的基础上再次进行批注,可进一步满足用户需求,提高用户体验,此外,在接收到保存指令时,通过将缓存的批注图层保存到本地,这样,在再次演示文档、进入批注模式时,可将本地缓存的批注图层渲染到与其关联的视图上,以将上次演示该文档时的批注内容展示给用户,以供用户在上次的批注内容的基础上再次进行批注,可进一步满足用户需求,提高用户体验。The method provided in this embodiment caches the current annotation layer and the currently displayed annotation layer when there is an update instruction, so that when the annotation layer is updated, if there is a first association associated with the updated view Annotating the layer, the first annotation layer is updated after the current annotation layer is updated, so that the previous annotation content can be presented to the user, so that the user can re-annotize the previous annotation content to further meet the user's needs. To improve the user experience. In addition, when the save command is received, the cached annotation layer is saved locally, so that when the document is presented again and the annotation mode is entered, the locally cached annotation layer can be rendered to its associated On the view, the user will display the annotation content when the document was last presented to the user, so that the user can re-annotate the content based on the last annotation content, which can further meet the user's needs and improve the user experience.
与前述文档批注方法的实施例相对应,本申请还提供了文档批注装置的实施例。Corresponding to the embodiment of the aforementioned document annotation method, the present application also provides an embodiment of the document annotation device.
本申请提供的文档批注装置,可以应用在电子设备上。该装置可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在电子设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图8所示,为本申请文档批注装置所在电子设备的一种硬件结构图,除了图8所示的存储器810、处理器820和网络接口830之外,实施例中装置所在的电子设备通常根据该文档批注装置的实际功能,还可以包括其他硬件,对此不再赘述。The document annotation device provided by the present application can be applied to an electronic device. The device can be implemented by software, or can be implemented by hardware or a combination of hardware and software. Taking the software implementation as an example, as a logical device, the processor of the electronic device in which the computer is located reads the corresponding computer program instructions in the non-volatile memory into the memory. From a hardware level, as shown in FIG. 8, a hardware structure diagram of an electronic device in which the device is annotated by the present application, except for the memory 810, the processor 820, and the network interface 830 shown in FIG. The electronic device in which the device is located generally includes other hardware according to the actual function of the document annotation device, and details are not described herein.
图9为本申请文档批注装置实施例一的结构示意图。请参考图9,本实施例提供的文档批注装置,包括:处理模块910、批注模块920和更新模块930,其中,FIG. 9 is a schematic structural diagram of Embodiment 1 of the document approving device of the present application. Referring to FIG. 9 , the document annotation device provided in this embodiment includes: a processing module 910, an annotation module 920, and an update module 930, where
所述处理模块910,用于当进入批注模式时,在当前所显示的视图上渲染批注图层;所述批注图层用于基于批注事件渲染批注内容;所述批注事件包括增/删/改事件;The processing module 910 is configured to: when entering the annotation mode, render an annotation layer on the currently displayed view; the annotation layer is used to render the annotation content based on the annotation event; the annotation event includes adding/removing/changing event;
所述批注模块920,用于监听用户触发的批注事件,并根据所述批注事件更新所述批注图层的显示内容;The annotation module 920 is configured to monitor a user-initiated annotation event, and update the display content of the annotation layer according to the annotation event;
所述更新模块930,用于当存在更新指令时,更新当前所显示的视图和所述批注图层, 所述更新指令基于所述翻页事件被触发。The update module 930 is configured to update the currently displayed view and the annotation layer when an update instruction is present, The update instruction is triggered based on the page flip event.
本实施例的装置,可用于执行图1所示方法实施例的技术方案,其实现原理与技术效果类似,此处不再赘述。The device in this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle is similar to the technical effect, and details are not described herein again.
进一步地,所述批注图层为已存在的与所述显示视图关联的批注图层或新创建的批注图层。Further, the annotation layer is an existing annotation layer or a newly created annotation layer associated with the display view.
图10为本申请文档批注装置实施例二的结构示意图。请参照图10,在上述实施例的基础上,本实施例提供的装置,还包括:存储模块940,其中,FIG. 10 is a schematic structural diagram of Embodiment 2 of the document approving device of the present application. Referring to FIG. 10, on the basis of the foregoing embodiment, the apparatus provided in this embodiment further includes: a storage module 940, where
所述存储模块940,用于在所述更新模块930更新当前所显示的视图和所述批注图层之前,将所述批注图层与当前所显示的视图关联缓存;The storage module 940 is configured to cache the annotation layer and the currently displayed view before the update module 930 updates the currently displayed view and the annotation layer.
所述更新模块930,具体用于若存在与更新后的视图关联的第一批注图层时,将所述批注图层更新为所述第一批注图层,若不存在与更新后的视图关联的第一批注图层时,将所述批注图层删除,并在更新后的视图上渲染新创建的批注图层。The update module 930 is specifically configured to update the annotation layer to the first annotation layer if there is a first annotation layer associated with the updated view, if there is no association with the updated view When the first annotation layer is removed, the annotation layer is removed and the newly created annotation layer is rendered on the updated view.
进一步地,所述存储模块940,具体用于获取当前所显示的视图的页码信息,并将所述批注图层和所述页码信息关联缓存;或者是,所述存储模块940,具体用于获取当前所显示的视图的页码信息,并将所述批注图层、所述批注图层的文件名和所述页码信息关联缓存。Further, the storage module 940 is specifically configured to obtain the page number information of the currently displayed view, and cache the annotation layer and the page number information; or the storage module 940 is specifically configured to obtain The page number information of the currently displayed view, and caches the annotation layer, the file name of the annotation layer, and the page number information.
进一步地,所述处理模块910,还用于当接收到退出批注模式的指令时,输出提醒消息,以提醒用户将缓存的批注图层保存到本地。Further, the processing module 910 is further configured to: when receiving the instruction to exit the annotation mode, output an alert message to remind the user to save the cached annotation layer to the local.
进一步地,所述存储模块940,还用于当接收到保存指令时,将缓存的批注图层保存到本地;Further, the storage module 940 is further configured to save the cached annotation layer to the local when the save instruction is received;
所述批注模块920,还用于当进入批注模式时,若本地存储有与当前所显示的视图关联的第二批注图层,在当前所显示的视图上渲染所述第二批注图层,若本地没有存储与当前所显示的视图关联的第二批注图层,在当前所显示的视图上渲染新创建的批注图层。The annotation module 920 is further configured to: when entering the annotation mode, if the second annotation layer associated with the currently displayed view is locally stored, rendering the second annotation layer on the currently displayed view, if The second annotation layer associated with the currently displayed view is not stored locally, rendering the newly created annotation layer on the currently displayed view.
进一步地,所述批注模块920,还用于当进入批注模式时,渲染操作控件,所述操作控件用于触发以下至少一种事件:翻页事件和批注事件。Further, the annotation module 920 is further configured to: when entering the annotation mode, render an operation control, where the operation control is used to trigger at least one of the following events: a page turning event and an annotation event.
进一步地,所述翻页事件包括所述操作控件触发的翻页事件。Further, the page turning event includes a page turning event triggered by the operation control.
进一步地,所述视图的数据源设备为本端设备,所述更新模块930,还用于在本端设备响应所述翻页事件后,获取更新后的数据,以更新当前所显示的视图。Further, the data source device of the view is a local device, and the update module 930 is further configured to: after the local device responds to the page turning event, acquire updated data to update the currently displayed view.
进一步地,所述视图的数据源设备为网络连接的对端设备,所述更新模块930,还用 于将所述翻页事件通过网络通知所述对端设备,在所述对端设备响应所述翻页事件后,从所述对端设备接收更新后的数据,以更新当前所显示的视图。Further, the data source device of the view is a peer device of the network connection, and the update module 930 is further used. The paging device is notified to the peer device through the network, and after the peer device responds to the page turning event, the updated data is received from the peer device to update the currently displayed view.
进一步地,所述翻页事件包括网络连接的对端设备触发的翻页事件,所述对端设备为所述视图的数据源设备,所述更新指令由所述对端设备发送;所述更新模块930,还用于在所述对端设备响应所述翻页事件后,从所述对端设备接收更新后的数据,以更新当前所显示的视图。Further, the page turning event includes a page turning event triggered by a peer device of the network connection, the peer device is a data source device of the view, and the update instruction is sent by the peer device; the update The module 930 is further configured to: after the peer device responds to the page turning event, receive updated data from the peer device to update the currently displayed view.
请继续参照图8,本申请还提供一种电子设备,包括存储器810、处理器820及存储在存储器810上并可在处理器上运行的计算机程序,所述处理器820执行所述程序时实现本申请提供的任一文档批注方法的步骤。With continued reference to FIG. 8, the present application further provides an electronic device including a memory 810, a processor 820, and a computer program stored on the memory 810 and executable on the processor, the processor 820 implementing the program The steps of any of the document annotation methods provided by the present application.
需要说明的是,本申请提供的电子设备,可以是智能平板。It should be noted that the electronic device provided by the present application may be a smart tablet.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现本申请提供的任一文档批注方法的步骤。The present application also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of any of the document annotation methods provided herein.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (15)

  1. 一种文档批注方法,其特征在于,所述方法包括:A document annotation method, characterized in that the method comprises:
    当进入批注模式时,在当前所显示的视图上渲染批注图层;所述批注图层用于基于批注事件渲染批注内容;所述批注事件包括增/删/改事件;When entering the annotation mode, the annotation layer is rendered on the currently displayed view; the annotation layer is used to render the annotation content based on the annotation event; the annotation event includes an add/drop/change event;
    监听用户触发的批注事件,并根据所述批注事件更新所述批注图层的显示内容;Listening to the user-initiated annotation event, and updating the display content of the annotation layer according to the annotation event;
    当存在更新指令时,更新当前所显示的视图和所述批注图层,所述更新指令基于翻页事件被触发。When there is an update instruction, the currently displayed view and the annotation layer are updated, the update instruction being triggered based on a page flip event.
  2. 根据权利要求1所述的方法,其特征在于,所述批注图层为已存在的与所述显示视图关联的批注图层或新创建的批注图层。The method of claim 1 wherein the annotation layer is an existing annotation layer or a newly created annotation layer associated with the display view.
  3. 根据权利要求2所述的方法,其特征在于,所述更新当前所显示的视图和所述批注图层之前,所述方法还包括:The method of claim 2, wherein before the updating the currently displayed view and the annotation layer, the method further comprises:
    将所述批注图层与当前所显示的视图关联缓存;Associating the annotation layer with the currently displayed view;
    更新所述批注图层的步骤,包括:The steps to update the annotation layer include:
    当存在与更新后的视图关联的第一批注图层时,将所述批注图层更新为所述第一批注图层;Updating the annotation layer to the first annotation layer when there is a first annotation layer associated with the updated view;
    当不存在与更新后的视图关联的第一批注图层时,将所述批注图层删除,并在更新后的视图上渲染新创建的批注图层。When there is no first annotation layer associated with the updated view, the annotation layer is deleted and the newly created annotation layer is rendered on the updated view.
  4. 根据权利要求3所述的方法,其特征在于,所述将所述批注图层与当前所显示的视图关联缓存,包括:The method according to claim 3, wherein the associating the annotation layer with the currently displayed view comprises:
    获取当前所显示的视图的页码信息;Get the page number information of the currently displayed view;
    将所述批注图层和所述页码信息关联缓存;或者是,Associating the annotation layer with the page number information; or
    获取当前所显示的视图的页码信息;Get the page number information of the currently displayed view;
    将所述批注图层、所述批注图层的文件名和所述页码信息关联缓存。The annotation layer, the file name of the annotation layer, and the page number information are cached in association.
  5. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    当接收到退出批注模式的指令时,输出提醒消息,以提醒用户将缓存的批注图层保存到本地。When an instruction to exit the annotation mode is received, an alert message is output to remind the user to save the cached annotation layer locally.
  6. 根据权利要求3或5所述的方法,其特征在于,所述方法还包括:The method according to claim 3 or 5, wherein the method further comprises:
    当接收到保存指令时,将缓存的批注图层保存到本地;Save the cached layer to the local when the save command is received;
    当进入批注模式时,所述在当前所显示的视图上渲染批注图层,包括:When entering the annotation mode, the rendering annotation layer is rendered on the currently displayed view, including:
    若本地存储有与当前所显示的视图关联的第二批注图层,在当前所显示的视图上渲染所述第二批注图层; Rendering the second annotation layer on the currently displayed view if the second annotation layer associated with the currently displayed view is stored locally;
    若本地没有存储与当前所显示的视图关联的第二批注图层,在当前所显示的视图上渲染新创建的批注图层。If the second annotation layer associated with the currently displayed view is not stored locally, the newly created annotation layer is rendered on the currently displayed view.
  7. 根据权利要求1所述的方法,其特征在于,当进入批注模式时,所述方法还包括:渲染操作控件,所述操作控件用于触发以下至少一种事件:翻页事件和批注事件。The method of claim 1, wherein when entering the annotation mode, the method further comprises: rendering an operation control, the operation control for triggering at least one of the following: a page turning event and an annotation event.
  8. 根据权利要求7所述的方法,其特征在于,所述翻页事件包括所述操作控件触发的翻页事件。The method of claim 7, wherein the page turning event comprises a page turning event triggered by the operation control.
  9. 根据权利要求8所述的方法,其特征在于,所述视图的数据源设备为本端设备,所述方法还包括:在本端设备响应所述翻页事件后,获取更新后的数据,以更新当前所显示的视图。The method according to claim 8, wherein the data source device of the view is a local device, the method further comprising: after the local device responds to the page turning event, acquiring updated data, Update the currently displayed view.
  10. 根据权利要求8所述的方法,其特征在于,所述视图的数据源设备为网络连接的对端设备,所述方法还包括:将所述翻页事件通过网络通知所述对端设备,在所述对端设备响应所述翻页事件后,从所述对端设备接收更新后的数据,以更新当前所显示的视图。The method according to claim 8, wherein the data source device of the view is a peer device of the network connection, the method further comprising: notifying the page turning event to the peer device through the network, After the peer device responds to the page turning event, the updated data is received from the peer device to update the currently displayed view.
  11. 根据权利要求1所述的方法,其特征在于,所述翻页事件包括网络连接的对端设备触发的翻页事件,所述对端设备为所述视图的数据源设备,所述更新指令由所述对端设备发送;所述方法还包括:在所述对端设备响应所述翻页事件后,从所述对端设备接收更新后的数据,以更新当前所显示的视图。The method according to claim 1, wherein the page turning event comprises a page turning event triggered by a peer device of the network connection, the peer device is a data source device of the view, and the update command is The method further includes: after the peer device responds to the page turning event, receiving updated data from the peer device to update the currently displayed view.
  12. 一种文档批注装置,其特征在于,所述装置包括:处理模块、批注模块和更新模块,其中,A document annotation device, characterized in that the device comprises: a processing module, an annotation module and an update module, wherein
    所述处理模块,用于当进入批注模式时,在当前所显示的视图上渲染批注图层;所述批注图层用于基于批注事件渲染批注内容;所述批注事件包括增/删/改事件;The processing module is configured to render an annotation layer on the currently displayed view when entering the annotation mode; the annotation layer is used to render the annotation content based on the annotation event; the annotation event includes an add/drop/change event ;
    所述批注模块,用于监听用户触发的批注事件,并根据所述批注事件更新所述批注图层的显示内容;The annotation module is configured to monitor a user-initiated annotation event, and update a display content of the annotation layer according to the annotation event;
    所述更新模块,用于当存在更新指令时,更新当前所显示的视图和所述批注图层,所述更新指令基于所述翻页事件被触发。The update module is configured to update the currently displayed view and the annotation layer when an update instruction exists, the update instruction being triggered based on the page turning event.
  13. 一种计算机存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现权利要求1至11任一所述方法的步骤。A computer storage medium having stored thereon a computer program, characterized in that the program is executed by a processor to carry out the steps of the method of any one of claims 1 to 11.
  14. 一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现权利要求1至11任一所述方法的步骤。An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the method of any one of claims 1 to A step of.
  15. 根据权利要求14所述的电子设备,其特征在于,所述电子设备包括智能平板。 The electronic device of claim 14, wherein the electronic device comprises a smart tablet.
PCT/CN2017/116205 2017-10-11 2017-12-14 Document annotation method and apparatus, and electronic device WO2019071802A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710941025.5 2017-10-11
CN201710941025.5A CN107797971A (en) 2017-10-11 2017-10-11 Document annotation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2019071802A1 true WO2019071802A1 (en) 2019-04-18

Family

ID=61534053

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/116205 WO2019071802A1 (en) 2017-10-11 2017-12-14 Document annotation method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN107797971A (en)
WO (1) WO2019071802A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897725A (en) * 2018-04-28 2018-11-27 上海星佑网络科技有限公司 Information correlation method, information association device and computer readable storage medium
CN109064129A (en) * 2018-07-19 2018-12-21 平安科技(深圳)有限公司 Processing method, device, computer equipment and the storage medium of file endorsement information
CN109614178A (en) * 2018-09-04 2019-04-12 广州视源电子科技股份有限公司 Comment display method, device, equipment and storage medium
CN111415398B (en) * 2019-01-08 2024-01-05 杭州海康威视数字技术股份有限公司 Method and device for displaying annotation on display screen
CN110196675B (en) * 2019-04-17 2022-07-15 华为技术有限公司 Method for adding annotations and electronic equipment
CN113254815B (en) * 2020-02-08 2023-11-10 钉钉控股(开曼)有限公司 Document processing method and device and page processing method and device
CN111476006B (en) * 2020-04-13 2024-02-20 上海鸿翼软件技术股份有限公司 PDF file online annotation method, device, equipment and readable storage medium
CN112799621A (en) * 2021-01-19 2021-05-14 深圳市皓丽智能科技有限公司 Comment display method and system
CN112765110B (en) * 2021-01-22 2022-01-14 广州文石信息科技有限公司 PDF annotation data generation method, device, equipment and storage medium
CN115774511A (en) * 2021-09-06 2023-03-10 华为技术有限公司 Annotating method and electronic equipment
CN113935294A (en) * 2021-10-19 2022-01-14 上海浦东华宇信息技术有限公司 Format document annotation method and device
CN116188628B (en) * 2022-12-02 2024-01-12 广东保伦电子股份有限公司 Free painting page-crossing drawing and displaying method and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040201633A1 (en) * 2001-09-13 2004-10-14 International Business Machines Corporation Handheld electronic book reader with annotation and usage tracking capabilities
CN102419743A (en) * 2011-07-06 2012-04-18 北京汇冠新技术股份有限公司 Commenting method and commenting system
CN103309568A (en) * 2012-03-14 2013-09-18 联想(北京)有限公司 Electronic document annotation method, electronic document annotation device and terminal device
CN104731443A (en) * 2013-12-23 2015-06-24 鸿合科技有限公司 Annotation implementation method and annotation implementation device
CN106776514A (en) * 2016-12-15 2017-05-31 广州视源电子科技股份有限公司 Annotating method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040201633A1 (en) * 2001-09-13 2004-10-14 International Business Machines Corporation Handheld electronic book reader with annotation and usage tracking capabilities
CN102419743A (en) * 2011-07-06 2012-04-18 北京汇冠新技术股份有限公司 Commenting method and commenting system
CN103309568A (en) * 2012-03-14 2013-09-18 联想(北京)有限公司 Electronic document annotation method, electronic document annotation device and terminal device
CN104731443A (en) * 2013-12-23 2015-06-24 鸿合科技有限公司 Annotation implementation method and annotation implementation device
CN106776514A (en) * 2016-12-15 2017-05-31 广州视源电子科技股份有限公司 Annotating method and device

Also Published As

Publication number Publication date
CN107797971A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
WO2019071802A1 (en) Document annotation method and apparatus, and electronic device
WO2019075888A1 (en) Document commenting method and apparatus, and electronic device
US12050857B2 (en) Device, method, and graphical user interface for editing screenshot images
US20240078375A1 (en) Device, method, and graphical user interface for sharing a content object in a document
US20220121349A1 (en) Device, Method, and Graphical User Interface for Managing Content Items and Associated Metadata
US9563351B2 (en) Device, method, and graphical user interface for navigating between document sections
US10089056B2 (en) Device, method, and graphical user interface for collaborative editing in documents
US8543905B2 (en) Device, method, and graphical user interface for automatically generating supplemental content
US9436381B2 (en) Device, method, and graphical user interface for navigating and annotating an electronic document
US10540429B2 (en) Method and apparatus for providing calendar displaying work history of document
US9804771B2 (en) Device, method, and computer readable medium for establishing an impromptu network
EP2917845A1 (en) Method and system for sharing content
US10075490B2 (en) Information processing apparatus, electronic meeting system, and program
WO2022135259A1 (en) Speech input method and apparatus, and electronic device
WO2022228433A1 (en) Information processing method and apparatus, and electronic device
WO2023196166A1 (en) Sharing of captured content

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17928650

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.10.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17928650

Country of ref document: EP

Kind code of ref document: A1