WO2023083085A1 - 一种文档共享方法、装置、设备及介质 - Google Patents
一种文档共享方法、装置、设备及介质 Download PDFInfo
- Publication number
- WO2023083085A1 WO2023083085A1 PCT/CN2022/129453 CN2022129453W WO2023083085A1 WO 2023083085 A1 WO2023083085 A1 WO 2023083085A1 CN 2022129453 W CN2022129453 W CN 2022129453W WO 2023083085 A1 WO2023083085 A1 WO 2023083085A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- document
- target document
- screen
- trigger
- client
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
Definitions
- the present disclosure relates to the technical field of information sharing, and in particular to a document sharing method, device, equipment and medium.
- the present disclosure provides a file sharing method, device, equipment and medium.
- An embodiment of the present disclosure provides a document sharing method, the method is applied to a first client, and includes: receiving a follow-up trigger operation on a target document, wherein the target document is synchronously displayed on the first client and the second client.
- Two clients according to the first trigger position of the follow trigger operation relative to the first screen and the first document position of the target document on the first screen, determine the position of the follow trigger operation relative to the target document Second trigger position: sending the second trigger position to the second client, so that the second client can access the target document based on the second document position on the second screen of the target document and the target document Address information, displaying the content corresponding to the second trigger position in the target document on the second screen.
- An embodiment of the present disclosure also provides a document sharing method, the method is applied to a second client, including: displaying a target document, wherein the target document is synchronously displayed on the first client; receiving the first client A second trigger position of the sent follow trigger operation relative to the target document, the second trigger position being the first trigger position of the first client relative to the first screen according to the follow trigger operation and the target document
- the document is determined by the first document position on the first screen; according to the second document position of the target document on the second screen and the access address information of the target document, link the target document with the second
- the content corresponding to the trigger position is displayed on the second screen.
- An embodiment of the present disclosure also provides a document sharing device, which is configured on a first client, and includes: a trigger operation module, configured to receive a follow-up trigger operation on a target document, wherein the target document is synchronously displayed on the The first client and the second client; a relative position module, configured to follow the trigger operation relative to the first trigger position of the first screen and the first document position of the target document on the first screen, Determining a second trigger position of the following trigger operation relative to the target document; a position sending module, configured to send the second trigger position to the second client, so that the second client can according to the The second document position of the target document on the second screen and the access address information of the target document, and display the content corresponding to the second trigger position in the target document on the second screen.
- a trigger operation module configured to receive a follow-up trigger operation on a target document, wherein the target document is synchronously displayed on the The first client and the second client
- a relative position module configured to follow the trigger operation relative to the first trigger position of
- An embodiment of the present disclosure also provides a document sharing device, which is configured on a second client and includes: a document display module for displaying a target document, wherein the target document is synchronously displayed on the first client; the location A receiving module, configured to receive a second trigger position of the follow trigger operation relative to the target document sent by the first client, where the second trigger position is relative to the first client according to the follow trigger operation Determined by the first trigger position of the first screen and the first document position of the target document on the first screen; the following display module is used to determine the second document position of the target document on the second screen and the The access address information of the target document, displaying the content corresponding to the second trigger position in the target document on the second screen.
- An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing instructions executable by the processor; and the processor, for reading the instruction from the memory.
- the instructions can be executed, and the instructions are executed to implement the document sharing method provided by the embodiment of the present disclosure.
- the embodiment of the present disclosure also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is used to execute the document sharing method provided by the embodiment of the present disclosure.
- An embodiment of the present disclosure also provides a computer program, including: instructions, which when executed by a processor cause the processor to execute the document sharing method provided by the embodiment of the present disclosure.
- An embodiment of the present disclosure also provides a computer program product, including instructions, which when executed by a processor cause the processor to execute the document sharing method provided by the embodiment of the present disclosure.
- FIG. 1 is a schematic flowchart of a document sharing method provided by an embodiment of the present disclosure
- FIG. 2 is a schematic diagram of a document presentation provided by an embodiment of the present disclosure
- FIG. 3 is a schematic diagram of another document presentation provided by an embodiment of the present disclosure.
- FIG. 4 is a schematic flowchart of another document sharing method provided by an embodiment of the present disclosure.
- FIG. 5 is a schematic diagram of another document presentation provided by an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of a document sharing device provided by an embodiment of the present disclosure.
- FIG. 7 is a schematic structural diagram of another document sharing device provided by an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
- the term “comprise” and its variations are open-ended, ie “including but not limited to”.
- the term “based on” is “based at least in part on”.
- the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one further embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
- different users can synchronize documents, specifically, the sharer can synchronize the documents and operations to the sharee, so that the sharee can follow the sharer to watch the document.
- the content seen by different users may be inconsistent, including two aspects: the content on the screen of the sharer may be more than that of the sharer content, so that when the sharer explains the content at the bottom of the screen, the sharer cannot see the corresponding content; or, for comments in the document, the sharer needs to click on the comment before the position of the comment is synchronized to the sharer. If the sharer does not click on the comment, and there are too many comments on the same screen, the content of the comments seen by different users will be inconsistent.
- the embodiments of the present disclosure provide a document sharing method, device, equipment and medium.
- the technical solution provided by the embodiment of the present disclosure has the following advantages:
- the first client can receive a follow-up trigger operation on the target document, where the target document is displayed synchronously at the A client and a second client; according to the first trigger position of the follow trigger operation relative to the first screen and the first document position of the target document on the first screen, determine the second trigger position of the follow trigger operation relative to the target document; Sending the second trigger location to the second client, so that the second client sends the content corresponding to the second trigger location in the target document according to the second document location of the target document on the second screen and the access address information of the target document displayed on the second screen.
- the first client can determine the relative position of the following trigger operation in the document according to the position of the user's follow trigger operation relative to the screen and the position of the document on the screen.
- the client can send the relative position to the second client, and the second client can display the content corresponding to the relative position on its screen, realizing that the content seen by the user of the second client must be that of the user of the first client.
- the trigger operation follows the area where the trigger operation is located ensures that the users of the two clients sharing the document see the same content synchronously, avoiding the inconsistency of content seen by different users in related technologies, and thus improving the experience of document sharing.
- FIG. 1 is a schematic flow chart of a document sharing method provided by an embodiment of the present disclosure.
- the method can be executed by a document sharing device, wherein the device can be implemented by software and/or hardware, and generally can be integrated into an electronic device.
- the method is applied to the first client and includes the following steps.
- Step 101 Receive a follow-up trigger operation on a target document, wherein the target document is displayed on the first client and the second client synchronously.
- the first client and the second client are collaborators of the target document.
- the first client and the second client may initiate collaboration on the target document based on a real-time multimedia conference.
- the target document may be a document shared and viewed by the first client and the second client during the collaboration process.
- the first client may be the initiator of the sharing
- the second client may be the follower of the sharing.
- the first client can send the target document to the second client, so that both the first client and the second client can display the target document, and then the first client can display the target document In , it is possible to detect the user's following trigger operation on the target document.
- the first client may send the access address information of the target document to the second client, so that the second client may access the target document through the access address information.
- the first client and/or the second client may trigger a request for synchronous display, so that the shared followers (such as , the second client) can not only access the target document shared by the initiator of the sharing (for example, the first client), but also browse synchronously as the initiator browses the target document.
- the shared followers such as , the second client
- the following trigger operation may be a trigger operation that the user of the first client needs to follow adaptively when the focus of the user changes while viewing the target document.
- the following trigger operation in the embodiment of the present disclosure may include but not limited to a hovering operation or a clicking operation.
- Step 102 according to the first trigger position of the follow trigger operation relative to the first screen and the first document position of the target document on the first screen, determine a second trigger position of the follow trigger operation relative to the target document.
- the first screen may be the screen of the first client
- the first trigger position may be the position on the first screen following the trigger operation, which may be determined by a monitoring program in the first client, for example, the monitoring program may monitor the mouse Move (mousemove) event to determine the position of the mouse follow trigger operation on the first screen.
- the first document position of the target document on the first screen may be obtained from the underlying rendering engine that renders the target document on the first client.
- the second trigger position may be a relative position between the following trigger operation and the target document.
- the target document may include multiple document modules, and each document module corresponds to a content type, and the content type includes at least one of table of contents, body text, body image and comments.
- a document module may be a unit module constituting a document. Different document modules correspond to different content types. The number of document modules is not limited.
- the corresponding content types may include at least one of catalogue, body text, body image, and comments.
- determining the second trigger position of the follow trigger operation relative to the target document may include : According to the first trigger position and the position of the first display document module in the target document on the first screen, determine the target document module corresponding to the trigger position following the trigger operation; according to the first trigger position and the position of the target document module on the first screen Position, to determine the second trigger position of the follow trigger operation relative to the target document module.
- the first client may first determine the document module where the trigger operation of the follow trigger operation is located according to the first trigger position of the follow trigger operation relative to the first screen and the position of the first presentation document module on the first screen, that is, is the target document module, then the relative position of the follow trigger operation in the target document module can be calculated according to the first trigger position of the follow trigger operation relative to the first screen and the position of the target document module on the first screen, that is, Second trigger position.
- determining the second trigger position of the follow trigger operation relative to the target document module includes: determining the trigger position of the follow trigger operation and the starting position of the target document module The number of characters in between accounts for a percentage of the total number of characters in the target document module, and the second trigger position is determined based on the percentage of characters.
- the first client can determine that the trigger position of the following trigger operation is the same as the target document module when determining the second trigger position.
- the number of characters between the initial positions of the target document module and then calculate the percentage of the characters in the total number of characters in the target document module, and determine the percentage of characters as the second trigger position.
- the relative position of the follow-up trigger operation in the directory or body text can be accurately represented, and it will not be different due to the position and size of the directory or body text on different client screens And cause the change of relative position, improve the accuracy.
- determining the second trigger position of the follow trigger operation relative to the target document module includes: when the trigger position of the follow trigger operation is in the comment area of the target document module, the The identification information of the comment area is determined as the second trigger position.
- the comment area can be an area for displaying comments, and the identification information corresponding to different comment areas is different, and the identification information is used to distinguish the comment area, specifically It can be represented by numbers, letters, etc.
- the first client may locate the trigger position following the trigger operation in the comment area of the comment, and then determine the identification information of the comment area where the trigger position is located as the second trigger position.
- the accuracy is improved.
- determining the second trigger position of the follow trigger operation relative to the target document module may include: determining the coordinates of the trigger position of the follow trigger operation in the text image, and based on Following the ratio between the coordinates of the trigger position in the text image of the trigger operation and the first size of the text image in the first screen, the second trigger position is determined.
- the first size may be specific values of the length and width of the text image on the first screen.
- the first client may determine the coordinates of the trigger position of the follow-up trigger operation in the text image according to the first trigger position of the follow-up trigger operation relative to the first screen and the position of the text image on the first screen, the coordinates include x-axis and The value of the y-axis; then the first size can be calculated according to the position of the text image on the first screen, and the ratio of the coordinates of the trigger position following the trigger operation in the text image to the first size is determined as the second trigger position .
- the ratio may be (5/100) ⁇ (5/100).
- Step 103 Send the second trigger position to the second client, so that the second client can compare the target document with the second trigger position according to the second document position of the target document on the second screen and the access address information of the target document.
- the corresponding content is displayed on the second screen.
- the second screen may be a screen of the second client.
- the second document position of the target document on the second screen may be obtained from the underlying rendering engine that renders the target document on the second client.
- the access address information of the target document can be used to obtain the target document by accessing the storage address in the server.
- the first client can send the second trigger position to the second client, and the second client can first obtain the The target document, then according to the second document position of the target document on the second screen, the content corresponding to the second trigger position in the target document is displayed on the second screen, that is, the content at the second trigger position is displayed on the second screen in advance.
- Set an area to display so that the user of the second client can follow the user of the first client to view the same content in the target document.
- the preset area may be an area on the second screen that can be intuitively seen by the user, which is set according to actual conditions.
- the preset area may be the area where the user's line of sight is located on the second screen, or the central area.
- the content corresponding to the second trigger position in the target document is displayed in a preset area of the second screen, where the preset area is the area where the user's line of sight is located on the second screen.
- FIG. 2 is a schematic diagram of document presentation provided by an embodiment of the present disclosure.
- the figure shows the target document displayed on the first screen 200 of the first client, and the target document may include the The four document modules of , the corresponding content types are directory 201, body text 202, body image 203, and comment 204.
- arrows are used to indicate the trigger position of the follow trigger operation of the first client. The location of the operation. After the first client determines the second trigger position of the follow trigger operation relative to the target document, it can send it to the second client.
- FIG. 3 is another schematic diagram of document presentation provided by an embodiment of the present disclosure.
- the figure shows the target document displayed on the second screen 300 of the second client.
- the target document in Figure 3 shows only the body text, with different positions and sizes.
- the text line in the dotted box 301 in FIG. 3 is displayed at the center of the second screen 300, and the text line is the content in the target document determined by the second client corresponding to the second trigger position of the follow trigger operation relative to the target document.
- the content that the user of the second client sees on the second screen 300 is the content corresponding to the follow-up trigger operation of the user of the first client on the first screen 200, which ensures that two shared documents Users on the client side see the same content synchronously.
- the first client can receive a follow-up trigger operation on the target document, wherein the target document is displayed synchronously on the first client and the second client; according to the follow-up trigger operation, relative to the first screen and the first document position of the target document on the first screen, determine the second trigger position relative to the target document following the trigger operation; send the second trigger position to the second client, so that the second client According to the second document position of the target document on the second screen and the access address information of the target document, the content corresponding to the second trigger position in the target document is displayed on the second screen.
- the first client can determine the relative position of the following trigger operation in the document according to the position of the user's follow trigger operation relative to the screen and the position of the document on the screen.
- the client can send the relative position to the second client, and the second client can display the content corresponding to the relative position on its screen, realizing that the content seen by the user of the second client must be that of the user of the first client.
- the trigger operation follows the area where the trigger operation is located ensures that the users of the two clients sharing the document see the same content synchronously, avoiding the inconsistency of content seen by different users in related technologies, and thus improving the experience of document sharing.
- FIG. 4 is a schematic flow chart of another document sharing method provided by an embodiment of the present disclosure.
- the method can be executed by a document sharing device, where the device can be implemented by software and/or hardware, and generally can be integrated into an electronic device. As shown in Figure 4, the method is applied to the second client and includes the following steps.
- Step 401 displaying the target document, wherein the target document is displayed on the first client side synchronously.
- the target document may be a document shared and watched by the first client and the second client.
- the first client may be the initiator of the sharing
- the second client may be the follower of the sharing.
- the second client may receive the target document or the access address information of the target document sent by the first client, and display the target document synchronously with the first client.
- Step 402 receiving the second trigger position of the follow trigger operation relative to the target document sent by the first client.
- the following trigger operation may be a trigger operation that the user of the first client needs to follow adaptively as the point of focus changes while viewing the target document.
- the following trigger operation in this embodiment of the present disclosure may include a hovering operation or a clicking operation.
- the target document may include multiple document modules, and each document module corresponds to a content type, and the content type includes at least one of table of contents, body text, body image and comments.
- a document module may be a unit module constituting a document. Different document modules correspond to different content types. The number of document modules is not limited.
- the corresponding content types may include at least one of catalogue, body text, body image, and comments.
- the second trigger position is determined by the first client according to the first trigger position of the following trigger operation relative to the first screen and the first document position of the target document on the first screen.
- the first client may determine the second trigger of the follow trigger operation relative to the target document according to the first trigger position of the follow trigger operation relative to the first screen and the first document position of the target document on the first screen
- the specific determination process of the position is as above, and will not be described in detail here, and then the second trigger position may be sent to the second client, and the second client may receive the second trigger position.
- Step 403 According to the second document position of the target document on the second screen and the access address information of the target document, display the content corresponding to the second trigger position in the target document on the second screen.
- the trigger position of the following trigger operation corresponds to the target document module among the multiple document modules
- the second trigger position is the position of the follow trigger operation relative to the target document module
- the target document module is the target The document module corresponding to the following trigger action in the document.
- the second trigger position is based on the number of characters between the trigger position of the following trigger operation and the starting position of the target document module accounting for the total number of characters in the target document module Determine the percentage of the text; according to the second document position of the target document on the second screen, display the content corresponding to the second trigger position in the target document on the second screen, including: according to the position of the catalog or body text on the second screen, Determine the target text corresponding to the text percentage in the table of contents or the body text, and display the target text or the text line where the target text is located on the second screen.
- the second trigger position may be the text percentage corresponding to the trigger position following the trigger operation, and the second client may base on the position of the target or body text on the second screen, and The above text percentage determines the target text corresponding to the following trigger operation, and then the target text or the text line where the target text is located can be determined as the content corresponding to the second trigger position in the target document, and adjusted to be displayed on the second screen, so that the first The user of the second client can see the text or text line where the user of the first client follows the trigger operation.
- the second trigger position is the identification information of the comment area in the target document module following the trigger position of the trigger operation; according to the second document position of the target document on the second screen Displaying the content corresponding to the second trigger position in the target document on the second screen includes: according to the position of the comment on the second screen, locating the comment area in the comment according to the identification information, and displaying the comment area on the second screen.
- the comment area may be an area for displaying comments, and the identification information corresponding to different comment areas is different.
- the second trigger position may be the identification information in the comments of the trigger position following the trigger operation.
- the second client can locate the comment area corresponding to the identification information in the comment according to the position of the comment on the second screen, and adjust and display the comment area on the second screen, so that the user of the second client can see the first.
- the comment area where the follow trigger operation of the user of the client is located solves the problem of different comment areas seen by different users due to the large number of comments or the ability to follow after a fixed trigger in related technologies, and improves the accuracy of follow viewing.
- the document sharing method may further include: highlighting the comment area in a preset manner, wherein the preset manner includes highlighting, bolding and adding an underline at least one.
- the preset method may be any feasible display method that can be distinguished from other comment areas in the comment, for example, may include but not limited to at least one of highlighting, bolding and underlining.
- the comment area may be prominently displayed in a preset manner to distinguish it from other comment areas in the comment. And the comment area can also be prominently displayed in the same manner on the first screen of the first client.
- the comment area is activated to receive new comments input by the user.
- FIG. 5 is another schematic diagram of document presentation provided by an embodiment of the present disclosure.
- the figure shows the target document displayed on the second screen 500 of the second client. Compared with FIG. 2 , Only the body text is shown in the figure.
- the comment area 501 in FIG. 5 is the same as the identification information of the comment area 205 in FIG.
- the comment area 501 can be displayed in the center of the second screen 500, and the upper border of the area is bolded for highlighting. example.
- the first client and the second client of the shared document can highlight the comment area and browse the comment area synchronously.
- the second trigger position is determined based on the ratio between the coordinates of the trigger position following the trigger operation in the text image and the first size of the text image in the first screen;
- displaying the content corresponding to the second trigger position in the target document on the second screen includes: determining the content in the text image according to the second size of the text image on the second screen Determine the target coordinates corresponding to the ratio, and display the pixel area of the target coordinates in the text image on the second screen.
- the second size may be specific values of the length and width of the text image on the second screen.
- the second trigger position may be the ratio of the coordinates in the text image displayed on the first client following the trigger operation to the size of the text image.
- the second client can calculate the target coordinates of the text image displayed on the second client following the trigger operation based on the above-mentioned ratio and the second size of the text image on the second screen, and then the pixel of the target coordinate in the text image can be The area is displayed on the second screen, where the pixel area can be the pixel point where the target coordinates are located or an area with a preset size centered on the pixel point, etc.
- the preset size can be set according to the actual situation and is not limited.
- the ratio of the coordinates of the text image displayed on the first client following the trigger operation to the size of the text image can be (1/20)*(1/20)
- the second size of the text image is 50px*50px
- displaying the content corresponding to the second trigger position in the target document on the second screen may include: displaying the content corresponding to the second trigger position in the target document in a preset area of the second screen, pre-set
- the area be the area where the user's line of sight is located on the second screen.
- the preset area can be an area that can be intuitively and quickly seen by the user on the second screen, and can be set according to the actual situation.
- the preset area can be the area where the user's line of sight is located on the second screen, which can be specifically determined by the line of sight detection program The area, or the preset area may be the central area of the second screen.
- the second client can display the target document, wherein the target document is synchronously displayed on the first client; receive the second trigger position of the follow trigger operation sent by the first client relative to the target document , the second trigger position is determined by the first client according to the first trigger position of the follow trigger operation relative to the first screen and the first document position of the target document on the first screen; according to the second document position of the target document on the second screen The location and the access address information of the target document, and the content corresponding to the second trigger location in the target document is displayed on the second screen.
- the second client can receive the following trigger operation determined by the first client according to the position of the user's follow trigger operation relative to the screen and the position of the document on the screen. and display the content corresponding to the relative position in the center of the screen, so that the content seen by the user of the second client must be the area where the follow trigger operation of the user of the first client is located, ensuring two-way sharing of the shared document Users of multiple clients see the same content synchronously, which avoids the situation that different users see inconsistent content in related technologies, thereby improving the experience effect of document sharing.
- FIG. 6 is a schematic structural diagram of a document sharing device provided by an embodiment of the present disclosure.
- the device may be implemented by software and/or hardware, and may generally be integrated into an electronic device. As shown in Figure 6, the device is configured on the first client and includes the following modules.
- the trigger operation module 601 is configured to receive a follow trigger operation on a target document, wherein the target document is displayed on the first client and the second client synchronously.
- the relative position module 602 is configured to determine the relative position of the following trigger operation relative to the first screen according to the first trigger position of the follow trigger operation and the first document position of the target document on the first screen. The second trigger position of the target document.
- a position sending module 603 configured to send the second trigger position to the second client, so that the second client can The access address information of the target document, displaying the content corresponding to the second trigger position in the target document on the second screen.
- the target document includes a plurality of document modules
- the first document position includes a position in the first screen of a first display document module among the plurality of document modules, and the first display document module is the documentation module already displayed in the first screen.
- each of the document modules corresponds to a content type
- the content type includes at least one of table of contents, body text, body image and comments.
- the relative position module 602 is specifically configured to: determine the trigger of the following trigger operation according to the first trigger position and the position of the first display document module in the target document on the first screen The target document module corresponding to the position; according to the first trigger position and the position of the target document module on the first screen, determine a second trigger position of the follow trigger operation relative to the target document module.
- the relative position module 602 is specifically configured to: determine the difference between the trigger position of the following trigger operation and the starting position of the target document module The text percentage between the texts in the target document module and the total texts in the target document module, and the second trigger position is determined based on the text percentage.
- the content type corresponding to the target document module is a comment
- the relative position module 602 is specifically configured to: if the trigger position of the following trigger operation is in the comment area of the target document module, place the The identification information of the comment area is determined as the second trigger position.
- the content type corresponding to the target document is a text image
- the relative position module 602 is specifically configured to: determine the coordinates of the trigger position of the following trigger operation in the text image, and based on the following The second trigger position is determined by a ratio between the coordinates of the trigger position of the trigger operation in the text image and the first size of the text image in the first screen.
- the following trigger operation includes a hover operation or a click operation.
- the first client and the second client are collaborators of the target document.
- the first client and the second client initiate collaboration on the target document based on a real-time multimedia conference.
- the document sharing device provided by the embodiment of the present disclosure can execute the document sharing method provided by the method embodiment shown in FIG. 1 of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
- FIG. 7 is a schematic structural diagram of another document sharing device provided by an embodiment of the present disclosure.
- the device can be implemented by software and/or hardware, and can generally be integrated in electronic equipment. As shown in Figure 7, the device is configured on the second client and includes the following modules.
- the document display module 701 is configured to display the target document, wherein the target document is displayed on the first client synchronously.
- a position receiving module 702 configured to receive a second trigger position of the follow trigger operation sent by the first client relative to the target document, the second trigger position is the first client according to the follow trigger operation Determined relative to the first trigger position on the first screen and the first document position of the target document on the first screen.
- a following display module 703, configured to display the content corresponding to the second trigger position in the target document on the target document according to the second document position of the target document on the second screen and the access address information of the target document to describe the second screen.
- the target document includes a plurality of document modules
- the second document position includes the position of a second display document module in the plurality of modules on the second screen
- the second display document module is already Documentation module displayed on the second screen.
- the second trigger position is a position of the follow trigger operation relative to a target document module
- the target document module is a document module corresponding to the follow trigger operation in the target document.
- the second trigger position is based on the number of characters between the trigger position of the follow trigger operation and the start position of the target document module The percentage of words that account for the total number of words in the target document module is determined.
- the following display module 703 is specifically configured to: determine the target text corresponding to the text percentage in the catalog or the text text according to the position of the catalog or the text text on the second screen, and display the target text The text or the text line where the target text is located is displayed on the second screen.
- the second trigger position is identification information of a comment area in the target document module where the trigger position of the follow trigger operation is located.
- the following display module 703 is specifically configured to: according to the position of the comment on the second screen, locate the comment area in the comment according to the identification information, and display the comment area on the second screen.
- the device further includes a highlight display module, configured to: display the comment area behind the second screen, and highlight the comment area in a preset manner, wherein the preset manner includes At least one of highlight, bold and underline.
- a highlight display module configured to: display the comment area behind the second screen, and highlight the comment area in a preset manner, wherein the preset manner includes At least one of highlight, bold and underline.
- the second trigger position is based on the coordinates of the trigger position of the follow trigger operation in the text image and the text image in the first The ratio between the first dimensions in the screen is determined.
- the following display module 703 is specifically configured to: according to the second size of the text image in the second screen, determine the target coordinates corresponding to the ratio in the text image, and place the target coordinates in the The pixel area in the text image is displayed on the second screen.
- the following display module 703 is specifically configured to: display the content corresponding to the second trigger position in the target document in a preset area of the second screen, where the preset area is the second trigger position. The area where the user's line of sight is located on the second screen.
- the document sharing device provided by the embodiment of the present disclosure can execute the document sharing method provided by the method embodiment shown in FIG. 4 of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
- An embodiment of the present disclosure further provides a computer program product, including a computer program/instruction, and when the computer program/instruction is executed by a processor, the document sharing method provided in any embodiment of the present disclosure is implemented.
- FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
- FIG. 8 it shows a schematic structural diagram of an electronic device 800 suitable for implementing an embodiment of the present disclosure.
- the electronic device 800 in the embodiment of the present disclosure may include, but is not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), vehicle-mounted terminals ( Mobile terminals such as car navigation terminals) and stationary terminals such as digital TVs, desktop computers and the like.
- the electronic device shown in FIG. 8 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
- an electronic device 800 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) Various appropriate actions and processes are executed by programs in the memory (RAM) 803 . In the RAM 803, various programs and data necessary for the operation of the electronic device 800 are also stored.
- the processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804.
- An input/output (I/O) interface 805 is also connected to the bus 804 .
- the following devices can be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 807 such as a computer; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809.
- the communication means 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 8 shows electronic device 800 having various means, it is to be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
- embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart.
- the computer program may be downloaded and installed from a network via communication means 809, or from storage means 808, or from ROM 802.
- the processing device 801 the above-mentioned functions defined in the document sharing method of the embodiment of the present disclosure are executed.
- the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
- a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
- Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
- the client and the server can communicate using any currently known or future network protocols such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium
- HTTP HyperText Transfer Protocol
- the communication eg, communication network
- Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
- the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
- the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: receives a follow-up trigger operation on the target document, wherein the target document is synchronously displayed on The first client and the second client; determining the follow trigger according to the first trigger position of the follow trigger operation relative to the first screen and the first document position of the target document on the first screen Operate a second trigger position relative to the target document; send the second trigger position to the second client, so that the second client can display the second document on the second screen according to the target document location and the access address information of the target document, and display the content in the target document corresponding to the second trigger location on the second screen.
- the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: displays the target document, wherein the target document is synchronously displayed on the first client end; receive the second trigger position of the follow trigger operation sent by the first client relative to the target document, the second trigger position is the first client relative to the first screen according to the follow trigger operation determined by the first trigger position of the target document and the first document position of the target document on the first screen; according to the second document position of the target document on the second screen and the access address information of the target document, the The content corresponding to the second trigger position in the target document is displayed on the second screen.
- Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages.
- the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
- the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
- LAN local area network
- WAN wide area network
- Internet service provider such as AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
- each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
- the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
- the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of a unit does not constitute a limitation of the unit itself under certain circumstances.
- FPGAs Field Programmable Gate Arrays
- ASICs Application Specific Integrated Circuits
- ASSPs Application Specific Standard Products
- SOCs System on Chips
- CPLD Complex Programmable Logical device
- a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
- a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
- a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
- machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
- RAM random access memory
- ROM read only memory
- EPROM or flash memory erasable programmable read only memory
- CD-ROM compact disk read only memory
- magnetic storage or any suitable combination of the foregoing.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本公开实施例涉及一种文档共享方法、装置、设备及介质,其中该方法应用于第一客户端,包括:接收对目标文档的跟随触发操作,其中,目标文档同步展示在第一客户端和第二客户端;根据跟随触发操作相对于第一屏幕的第一触发位置以及目标文档在第一屏幕的第一文档位置,确定跟随触发操作相对于目标文档的第二触发位置;将第二触发位置发送给第二客户端,以使第二客户端根据目标文档在第二屏幕的第二文档位置以及目标文档的访问地址信息,将目标文档中与第二触发位置对应的内容展示在第二屏幕。
Description
相关申请的交叉引用
本申请要求于2021年11月12日递交、申请号为202111342523.0、名称为“一种文档共享方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用并入本文。
本公开涉及信息共享技术领域,尤其涉及一种文档共享方法、装置、设备及介质。
随着网络信息技术的不断发展,用户通过网络进行信息共享的场景越来越多。
在一些相关产品中,不同用户之间可以通过同步文档,实现文档在不同用户之间的跟随观看。然而,由于不同用户的客户端屏幕尺寸和分辨率等硬件参数的不同,不同用户看到的内容可能会出现不一致的问题。
发明内容
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开提供了一种文档共享方法、装置、设备及介质。
本公开实施例提供了一种文档共享方法,所述方法应用于第一客户端,包括:接收对目标文档的跟随触发操作,其中,所述目标文档同步展示在所述第一客户端和第二客户端;根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置,确定所述跟随触发操作相对于所述目标文档的第二触发位置;将所述第二触发位置发送给所述第二客户端,以使所述第二客户端根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
本公开实施例还提供了一种文档共享方法,所述方法应用于第二客户端,包括:展示目标文档,其中,所述目标文档同步展示在第一客户端;接收所述第一客户端发送的跟随触发操作相对于所述目标文档的第二触发位置,所述第二触发位置为所述第一客户端根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置所确定;根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
本公开实施例还提供了一种文档共享装置,所述装置配置于第一客户端,包括:触发操作模块,用于接收对目标文档的跟随触发操作,其中,所述目标文档同步展示在所述第一客户端和第二客户端;相对位置模块,用于根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置,确定所述跟随触发操作相对于所述目标文档的第二触发位置;位置发送模块,用于将所述第二触发位置发送给所述第二客户端,以使所述第二客户端根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
本公开实施例还提供了一种文档共享装置,所述装置配置于第二客户端,包括:文档展示模块,用于展示目标文档,其中,所述目标文档同步展示在第一客户端;位置接收模块,用于接收所述第一客户端发送的跟随触发操作相对于所述目标文档的第二触发位置,所述第二触发位置为所述第一客户端根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置所确定;跟随展示模块,用于根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
本公开实施例还提供了一种电子设备,所述电子设备包括:处理器;用于存储所述处理器可执行指令的存储器;所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述指令以实现如本公开实施例提供的文档共享方法。
本公开实施例还提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序用于执行如本公开实施例提供的文档共享方法。
本公开实施例还提供了一种计算机程序,包括:指令,所述指令当由处理器执行时使所述处理器执行如本公开实施例提供的文档共享方法。
本公开实施例还提供了一种计算机程序产品,包括指令,所述指令当由处理器执行时使所述处理器执行如本公开实施例提供的文档共享方法。
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。
图1为本公开实施例提供的一种文档共享方法的流程示意图;
图2为本公开实施例提供的一种文档展示示意图;
图3为本公开实施例提供的另一种文档展示示意图;
图4为本公开实施例提供的另一种文档共享方法的流程示意图;
图5为本公开实施例提供的再一种文档展示示意图;
图6为本公开实施例提供的一种文档共享装置的结构示意图;
图7为本公开实施例提供的另一种文档共享装置的结构示意图;
图8为本公开实施例提供的一种电子设备的结构示意图。
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
在一些相关产品中,不同用户之间可以通过同步文档,具体可以通过共享人将文档和操作同步给被共享人的方式,实现被共享人可以跟随共享人观看文档。然而,由于不同用 户的客户端屏幕尺寸和分辨率等硬件参数的不同,不同用户看到的内容可能会出现不一致的问题,具体包括两个方面:共享人屏幕上内容可能会多于被共享人的内容,导致当共享人讲解屏幕下方内容时,被共享人无法看到对应的内容;或者,针对文档中的评论,需要共享人点击评论后,才会将评论的位置同步给被共享人,如果共享人不点击评论,且同一屏幕里评论太多的话,导致不同用户看到的评论内容不一致。
为了解决上述问题,本公开实施例提供了一种文档共享方法、装置、设备及介质。本公开实施例提供的技术方案与现有技术相比具有如下优点:本公开实施例提供的文档共享方案,第一客户端可以接收对目标文档的跟随触发操作,其中,目标文档同步展示在第一客户端和第二客户端;根据跟随触发操作相对于第一屏幕的第一触发位置以及目标文档在第一屏幕的第一文档位置,确定跟随触发操作相对于目标文档的第二触发位置;将第二触发位置发送给第二客户端,以使第二客户端根据目标文档在第二屏幕的第二文档位置以及目标文档的访问地址信息,将目标文档中与第二触发位置对应的内容展示在第二屏幕。采用上述方案,在两个客户端同步展示一个文档之后,第一客户端可以根据用户的跟随触发操作相对于屏幕的位置以及文档在屏幕的位置确定跟随触发操作在文档中的相对位置,第一客户端可以将该相对位置发送给第二客户端,第二客户端可以将相对位置对应的内容展示在其屏幕上,实现了第二客户端的用户看到的内容一定是第一客户端的用户的跟随触发操作所在的区域,保证了共享文档的两个客户端的用户同步看到相同的内容,避免了相关技术中不同用户看到内容不一致的情况,进而提升了文档共享的体验效果。
图1为本公开实施例提供的一种文档共享方法的流程示意图,该方法可以由文档共享装置执行,其中该装置可以采用软件和/或硬件实现,一般可集成在电子设备中。如图1所示,该方法应用于第一客户端,包括以下步骤。
步骤101、接收对目标文档的跟随触发操作,其中,目标文档同步展示在第一客户端和第二客户端。
其中,第一客户端和第二客户端为目标文档的协作方,可选的,第一客户端和第二客户端可以基于实时多媒体会议发起对目标文档的协作。目标文档可以是第一客户端与第二客户端在协作的过程中共享观看的文档,本公开实施例中第一客户端可以是共享的发起方,第二客户端可以是共享的跟随方。
在本公开实施例中,第一客户端可以将目标文档发送至第二客户端,使得第一客户端和第二客户端均可以展示该目标文档,之后第一客户端在展示目标文档的过程中,可以检 测用户对目标文档的跟随触发操作。或者,第一客户端可以将目标文档的访问地址信息发送至第二客户端,使得第二客户端可以通过上述访问地址信息来访问该目标文档。
进一步地,若在协作的过程中,存在需要在各协作方同步展示目标文档的需求,第一客户端和/或第二客户端可以触发一同步展示的请求,从而使得共享的跟随方(例如,第二客户端)除了可以访问共享的发起方(例如,第一客户端)共享的目标文档,还可以随着发起方对目标文档的浏览而同步浏览。
跟随触发操作可以是第一客户端的用户在观看目标文档的过程中关注点变化,进而第二客户端需要适应性跟随的触发操作。本公开实施例中的跟随触发操作可以包括但不限于悬停操作或点击操作等。
步骤102、根据跟随触发操作相对于第一屏幕的第一触发位置以及目标文档在第一屏幕的第一文档位置,确定跟随触发操作相对于目标文档的第二触发位置。
其中,第一屏幕可以是第一客户端的屏幕,第一触发位置可以是跟随触发操作在第一屏幕上的位置,可以通过第一客户端中的监听程序来确定,例如可以通过监听程序监听鼠标移动(mousemove)事件来确定鼠标的跟随触发操作在第一屏幕的位置。目标文档在第一屏幕的第一文档位置可以从第一客户端渲染目标文档的底层渲染引擎中获得。第二触发位置可以是跟随触发操作与目标文档的相对位置。
目标文档可以包括多个文档模块,每个文档模块对应一种内容类型,内容类型包括目录、正文文本、正文图像和评论中的至少一个。文档模块可以是构成文档的单位模块,不同文档模块对应的内容类型不同,文档模块的数量不限,对应的内容类型可以包括目录、正文文本、正文图像和评论等中的至少一个。当目标文档包括多个文档模块,第一文档位置包括多个文档模块中第一展示文档模块在第一屏幕中的位置,第一展示文档模块为已经展示在第一屏幕中的文档模块。。
在本公开实施例中,根据跟随触发操作相对于第一屏幕的第一触发位置以及目标文档在第一屏幕的第一文档位置,确定跟随触发操作相对于目标文档的第二触发位置,可以包括:根据第一触发位置以及目标文档中第一展示文档模块在第一屏幕中的位置,确定跟随触发操作的触发位置对应的目标文档模块;根据第一触发位置以及目标文档模块在第一屏幕的位置,确定跟随触发操作相对于目标文档模块的第二触发位置。
具体的,第一客户端可以根据跟随触发操作相对于第一屏幕的第一触发位置和第一展示文档模块在第一屏幕中的位置,先确定跟随触发操作的触发操作所在的文档模块,即为 目标文档模块,之后可以根据跟随触发操作相对于第一屏幕的第一触发位置和该目标文档模块在第一屏幕上的位置,计算出跟随触发操作在目标文档模块中的相对位置,即为第二触发位置。
可选的,当目标文档模块对应的内容类型为目录或正文文本,确定跟随触发操作相对于目标文档模块的第二触发位置,包括:确定跟随触发操作的触发位置与目标文档模块的起始位置之间的文字数量占目标文档模块的全部文字数量的文字百分比,基于文字百分比确定第二触发位置。
当目标文档模块的内容类型为目录或正文文本时,由于目录和正文文本均由多个文字构成,第一客户端在确定第二触发位置时,可以确定跟随触发操作的触发位置与目标文档模块的起始位置之间的文字数量,之后计算该文字数量占目标文档模块的全部文字数量的文字百分比,将该文字百分比确定为第二触发位置。
通过确定跟随触发操作的触发位置在目录或正文文本的百分比位置,可以准确地表征跟随触发操作在目录或正文文本的相对位置,不会因目录或正文文本在不同客户端的屏幕的位置和大小不同而造成相对位置的变化,提高了准确性。
可选的,当目标文档模块对应的内容类型为评论,确定跟随触发操作相对于目标文档模块的第二触发位置,包括:当跟随触发操作的触发位置在目标文档模块的评论区域中,则将评论区域的标识信息确定为第二触发位置。
当目标文档模块的内容类型为评论时,由于评论中可以包括多个评论区域,评论区域可以是展示评论的区域,不同评论区域对应的标识信息不同,标识信息用于对评论区域进行区分,具体可以采用数字、字母等方式表示。第一客户端在确定第二触发位置时,可以定位跟随触发操作的触发位置在评论的评论区域,之后将触发位置所在的评论区域的标识信息确定为第二触发位置。
通过将评论区域的标识信息作为跟随触发操作在评论的相对位置,由于区域信息不会因评论在不同客户端的屏幕的位置和大小不同而不同,因此提高了准确性。
可选的,当目标文档毛对应的内容类型为正文图像,确定跟随触发操作相对于目标文档模块的第二触发位置,可以包括:确定跟随触发操作的触发位置在正文图像中的坐标,并基于跟随触发操作的触发位置在正文图像中的坐标与正文图像在第一屏幕中的第一尺寸之间的比值,确定第二触发位置。
其中,第一尺寸可以为正文图像在第一屏幕中的长和宽的具体值。
第一客户端可以根据跟随触发操作相对于第一屏幕的第一触发位置和正文图像在第一屏幕上的位置,确定跟随触发操作的触发位置在正文图像中的坐标,该坐标包括x轴和y轴的值;之后可以根据正文图像在第一屏幕上的位置计算得到第一尺寸,并将跟随触发操作的触发位置在正文图像中的坐标与第一尺寸的比值,确定为第二触发位置。
示例性的,假设第一尺寸为100px×100px,跟随触发操作的触发位置在正文图像中的坐标为5px×5px,则比值可以为(5/100)×(5/100)。
通过将跟随触发操作在正文图像中的坐标与正文图像的尺寸的比值作为跟随触发操作在正文图像中的相对位置,由于上述比值不会因评论在不同客户端的屏幕的位置和大小不同而不同,因此提高了确定跟随触发操作在正文图像的相对位置的准确性。
步骤103、将第二触发位置发送给第二客户端,以使第二客户端根据目标文档在第二屏幕的第二文档位置以及目标文档的访问地址信息,将目标文档中与第二触发位置对应的内容展示在第二屏幕。
其中,第二屏幕可以是第二客户端的屏幕。目标文档在第二屏幕的第二文档位置可以从第二客户端渲染目标文档的底层渲染引擎中获得。目标文档的访问地址信息可以用于通过访问服务端中的存储地址获取目标文档。
具体的,第一客户端在确定跟随触发操作相对于目标文档的第二触发位置之后,可以将第二触发位置发送给第二客户端,第二客户端可以根据目标文档的访问地址信息先获取该目标文档,之后根据目标文档在第二屏幕的第二文档位置,将目标文档中与第二触发位置对应的内容展示在第二屏幕,也即将第二触发位置所在内容在第二屏幕的预设区域进行展示,以使第二客户端的用户可以跟随第一客户端的用户观看到目标文档中的相同的内容。可选的,预设区域可以为第二屏幕中能够直观被用户看到的区域,具体根据实际情况设置,例如预设区域可以为第二屏幕中用户视线所在区域,或者中心区域等。
在第二屏幕的预设区域展示目标文档中与第二触发位置对应的内容,预设区域为第二屏幕中用户视线所在区域。
示例性的,图2为本公开实施例提供的一种文档展示示意图,如图2所示,图中展示了第一客户端的第一屏幕200中展示的目标文档,目标文档中可以包括图中的四个文档模块,对应的内容类型分别为目录201、正文文本202、正文图像203和评论204,图2中采用箭头表示第一客户端的跟随触发操作的触发位置,例如可以为鼠标的悬停操作的位置。第一客户端在确定跟随触发操作相对于目标文档的第二触发位置之后,可以发送至第二客 户端。
示例性的,图3为本公开实施例提供的另一种文档展示示意图,如图3所示,图中展示了第二客户端的第二屏幕300中展示的目标文档,与图2相比,图3中的目标文档仅展示了正文文本,并且位置和尺寸均不相同。图3中虚线框301中的文本行展示在第二屏幕300的中心位置,该文本行为第二客户端确定的目标文档中与上述跟随触发操作相对于目标文档的第二触发位置对应的内容。
参见图2和图3,第二客户端的用户在第二屏幕300中看到的内容是第一客户端的用户在第一屏幕200中的跟随触发操作所对应的内容,保证了共享文档的两个客户端的用户同步看到相同的内容。
本公开实施例提供的文档共享方案,第一客户端可以接收对目标文档的跟随触发操作,其中,目标文档同步展示在第一客户端和第二客户端;根据跟随触发操作相对于第一屏幕的第一触发位置以及目标文档在第一屏幕的第一文档位置,确定跟随触发操作相对于目标文档的第二触发位置;将第二触发位置发送给第二客户端,以使第二客户端根据目标文档在第二屏幕的第二文档位置以及目标文档的访问地址信息,将目标文档中与第二触发位置对应的内容展示在第二屏幕。采用上述方案,在两个客户端同步展示一个文档之后,第一客户端可以根据用户的跟随触发操作相对于屏幕的位置以及文档在屏幕的位置确定跟随触发操作在文档中的相对位置,第一客户端可以将该相对位置发送给第二客户端,第二客户端可以将相对位置对应的内容展示在其屏幕上,实现了第二客户端的用户看到的内容一定是第一客户端的用户的跟随触发操作所在的区域,保证了共享文档的两个客户端的用户同步看到相同的内容,避免了相关技术中不同用户看到内容不一致的情况,进而提升了文档共享的体验效果。
图4为本公开实施例提供的另一种文档共享方法的流程示意图,该方法可以由文档共享装置执行,其中该装置可以采用软件和/或硬件实现,一般可集成在电子设备中。如图4所示,该方法应用于第二客户端,包括以下步骤。
步骤401、展示目标文档,其中,目标文档同步展示在第一客户端。
其中,目标文档可以是第一客户端与第二客户端共享观看的文档,本公开实施例中第一客户端可以是共享的发起方,第二客户端可以是共享的跟随方。
在本公开实施例中,第二客户端可以接收第一客户端发送的目标文档或者目标文档的访问地址信息,并与第一客户端同步展示该目标文档。
步骤402、接收第一客户端发送的跟随触发操作相对于目标文档的第二触发位置。
跟随触发操作可以是第一客户端的用户在观看目标文档的过程中随着关注点变化,进而第二客户端需要适应性跟随的触发操作。本公开实施例中的跟随触发操作可以包括悬停操作或点击操作等。
目标文档可以包括多个文档模块,每个文档模块对应一种内容类型,内容类型包括目录、正文文本、正文图像和评论中的至少一个。文档模块可以是构成文档的单位模块,不同文档模块对应的内容类型不同,文档模块的数量不限,对应的内容类型可以包括目录、正文文本、正文图像和评论等中的至少一个。当目标文档包括多个文档模块,第二文档位置包括多个模块中第二展示文档模块在第二屏幕的位置,第二展示文档模块为已经展示在第二屏幕的文档模块。
其中,第二触发位置为第一客户端根据跟随触发操作相对于第一屏幕的第一触发位置以及目标文档在第一屏幕的第一文档位置所确定。
在本公开实施例中,第一客户端可以根据跟随触发操作相对于第一屏幕的第一触发位置以及目标文档在第一屏幕的第一文档位置确定跟随触发操作相对于目标文档的第二触发位置,具体确定过程如上,在此不进行赘述,之后可以将该第二触发位置发送给第二客户端,第二客户端可以接收到该第二触发位置。
步骤403、根据目标文档在第二屏幕的第二文档位置以及目标文档的访问地址信息,将目标文档中与第二触发位置对应的内容展示在第二屏幕。
由于目标文档可以包括多个文档模块,跟随触发操作的触发位置对应于多个文档模块中的目标文档模块,则第二触发位置为跟随触发操作相对于目标文档模块的位置,目标文档模块为目标文档中跟随触发操作对应的文档模块。
可选的,若目标文档模块对应的内容类型为目录或正文文本,第二触发位置基于跟随触发操作的触发位置与目标文档模块的起始位置之间的文字数量占目标文档模块的全部文字数量的文字百分比确定;根据目标文档在第二屏幕的第二文档位置,将目标文档中与第二触发位置对应的内容展示在第二屏幕,包括:根据目录或正文文本在第二屏幕的位置,在目录或正文文本中确定文字百分比对应的目标文字,将目标文字或目标文字所在的文本行展示在第二屏幕。
当目标文档模块对应的内容类型为目录或正文文本时,第二触发位置可以是跟随触发操作的触发位置对应的文字百分比,第二客户端可以根据目标或正文文本在第二屏幕的位 置,以及上述文字百分比,确定跟随触发操作对应的目标文字,之后可以将目标文字或目标文字所在的文本行确定为目标文档中与第二触发位置对应的内容,调整展示在第二屏幕上,以使第二客户端的用户可以看到第一客户端的用户的跟随触发操作所在的文字或文本行。
可选的,当目标文档模块对应的内容类型为评论,第二触发位置为跟随触发操作的触发位置在目标文档模块中的评论区域的标识信息;根据目标文档在第二屏幕的第二文档位置,将目标文档中与第二触发位置对应的内容展示在第二屏幕,包括:根据评论在第二屏幕的位置,在评论中根据标识信息定位评论区域,将评论区域展示在第二屏幕。
当目标文档模块的内容类型为评论时,由于评论中可以包括多个评论区域,评论区域可以是展示评论的区域,不同评论区域对应的标识信息不同。第二触发位置可以为跟随触发操作的触发位置在评论中的标识信息。第二客户端可以根据评论在第二屏幕的位置,在评论中定位标识信息对应的评论区域,并将该评论区域调整展示在第二屏幕上,以使第二客户端的用户可以看到第一客户端的用户的跟随触发操作所在的评论区域,解决了相关技术中因评论数量较多或固定触发才能跟随而造成的不同用户看到的评论区域不同,提升了跟随观看的准确性。
在本公开实施例中,将评论区域展示在第二屏幕之后,文档共享方法还可以包括:将评论区域采用预设方式突出展示,其中,预设方式包括高亮、加粗和添加下划线中的至少一种。
预设方式可以是任何可行的、能够与评论中的其他评论区域区分开的展示方式,例如,可以包括但不限于高亮、加粗和添加下划线中的至少一种。
第二客户端在将跟随触发操作在评论中对应的评论区域展示在第二屏幕之后,可以将该评论区域采用预设方式进行突出展示,以与评论中其他评论区域区分开。并且该评论区域在第一客户端的第一屏幕中也可以采用相同的方式进行突出展示。可选的,将评论区域采用预设方式突出展示之后,该评论区域被激活,可以接收用户输入的新的评论。
示例性的,图5为本公开实施例提供的再一种文档展示示意图,如图5所示,图中展示了第二客户端的第二屏幕500中展示的目标文档,相较于图2,图中仅展示了正文文本。当跟随触发操作的触发位置在图2中的评论区域205中,图5中评论区域501为与图2中评论区域205的标识信息相同,也即评论区域501和评论区域205在目标文档中为同一个评论区域,由于第二屏幕500中没有展示评论区域501,可以在第二屏幕500中将该评论 区域501展示在中心位置,并且采用区域上方边界加粗展示的方式进行突出展示,仅为示例。
上述方案中,当跟随触发操作在评论中的一个评论区域时,第一客户端和被共享文档的第二客户端可以突出展示该评论区域,同步进行评论区域的浏览。
可选的,当目标文档对应的内容类型为正文图像,第二触发位置基于跟随触发操作的触发位置在正文图像中的坐标与正文图像在第一屏幕中的第一尺寸之间的比值确定;根据目标文档在第二屏幕的第二文档位置,将目标文档中与第二触发位置对应的内容展示在第二屏幕,包括:根据正文图像在第二屏幕中的第二尺寸,确定正文图像中确定与比值对应的目标坐标,并将目标坐标在正文图像中的像素区域展示在第二屏幕。。
其中,第二尺寸可以为正文图像在第二屏幕中的长和宽的具体值。
当目标文档对应的内容类型为正文图像,第二触发位置可以为跟随触发操作在第一客户端展示的正文图像中的坐标与正文图像的尺寸的比值。第二客户端可以根据上述比值,以及正文图像在第二屏幕的第二尺寸,计算得到跟随触发操作在第二客户端展示的正文图像的目标坐标,之后可以将正文图像中该目标坐标所在像素区域展示在第二屏幕,其中像素区域可以为该目标坐标所在像素点或以像素点为中心的预设尺寸的区域等,预设尺寸可以根据实际情况设置,具体不限。
例如假设跟随触发操作在第一客户端展示的正文图像中的坐标与正文图像的尺寸的比值可以为(1/20)*(1/20),正文图像的第二尺寸为50px*50px,则计算得到的跟随触发操作在第二客户端展示的正文图像的目标坐标为(50/20)*(50/20)=2.5px*2.5px。
在本公开实施例中,将目标文档中与第二触发位置对应的内容展示在第二屏幕,可以包括:在第二屏幕的预设区域展示目标文档中与第二触发位置对应的内容,预设区域为第二屏幕中用户视线所在区域。预设区域可以是第二屏幕中能够直观地快速地被用户看到的区域,可以根据实际情况设置,例如预设区域可以为第二屏幕中用户视线所在区域,具体可以通过视线检测程序来确定该区域,或者预设区域可以是第二屏幕的中心区域。
本公开实施例提供的文档共享方案,第二客户端可以展示目标文档,其中,目标文档同步展示在第一客户端;接收第一客户端发送的跟随触发操作相对于目标文档的第二触发位置,第二触发位置为第一客户端根据跟随触发操作相对于第一屏幕的第一触发位置以及目标文档在第一屏幕的第一文档位置所确定;根据目标文档在第二屏幕的第二文档位置以及目标文档的访问地址信息,将目标文档中与第二触发位置对应的内容展示在第二屏幕。 采用上述方案,在两个客户端同步展示一个文档之后,第二客户端可以接收第一客户端在根据用户的跟随触发操作相对于屏幕的位置以及文档在屏幕的位置确定的跟随触发操作在文档中的相对位置,并且将相对位置对应的内容展示在其屏幕中心,实现了第二客户端的用户看到的内容一定是第一客户端的用户的跟随触发操作所在的区域,保证了共享文档的两个客户端的用户同步看到相同的内容,避免了相关技术中不同用户看到内容不一致的情况,进而提升了文档共享的体验效果。
图6为本公开实施例提供的一种文档共享装置的结构示意图,该装置可由软件和/或硬件实现,一般可集成在电子设备中。如图6所示,该装置配置于第一客户端,包括以下模块。
触发操作模块601,用于接收对目标文档的跟随触发操作,其中,所述目标文档同步展示在所述第一客户端和第二客户端。
相对位置模块602,用于根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置,确定所述跟随触发操作相对于所述目标文档的第二触发位置。
位置发送模块603,用于将所述第二触发位置发送给所述第二客户端,以使所述第二客户端根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
可选的,所述目标文档包括多个文档模块,所述第一文档位置包括所述多个文档模块中第一展示文档模块在所述第一屏幕中的位置,所述第一展示文档模块为已经展示在所述第一屏幕中的文档模块。
可选的,每个所述文档模块对应一种内容类型,所述内容类型包括目录、正文文本、正文图像和评论中的至少一个。
可选的,所述相对位置模块602具体用于:根据所述第一触发位置以及所述目标文档中第一展示文档模块在所述第一屏幕中的位置,确定所述跟随触发操作的触发位置对应的目标文档模块;根据所述第一触发位置以及所述目标文档模块在所述第一屏幕的位置,确定所述跟随触发操作相对于所述目标文档模块的第二触发位置。
可选的,当所述目标文档模块对应的内容类型为目录或正文文本,所述相对位置模块602具体用于:确定所述跟随触发操作的触发位置与所述目标文档模块的起始位置之间的文字数量占所述目标文档模块的全部文字数量的文字百分比,基于所述文字百分比确定所 述第二触发位置。
可选的,所述目标文档模块对应的内容类型为评论,所述相对位置模块602具体用于:若所述跟随触发操作的触发位置在所述目标文档模块的评论区域中,则将所述评论区域的标识信息确定为所述第二触发位置。
可选的,所述目标文档毛对应的内容类型为正文图像,所述相对位置模块602具体用于:确定所述跟随触发操作的触发位置在所述正文图像中的坐标,并基于所述跟随触发操作的触发位置在所述正文图像中的坐标与所述正文图像在所述第一屏幕中的第一尺寸之间的比值,确定所述第二触发位置。
可选的,所述跟随触发操作包括悬停操作或点击操作。
可选的,所述第一客户端和所述第二客户端为所述目标文档的协作方。
可选的,所述第一客户端和所述第二客户端基于实时多媒体会议发起对所述目标文档的协作。
本公开实施例所提供的文档共享装置可执行本公开图1所示的方法实施例所提供的文档共享方法,具备执行方法相应的功能模块和有益效果。
图7为本公开实施例提供的另一种文档共享装置的结构示意图该装置可由软件和/或硬件实现,一般可集成在电子设备中。如图7所示,该装置配置于第二客户端,包括以下模块。
文档展示模块701,用于展示目标文档,其中,所述目标文档同步展示在第一客户端。
位置接收模块702,用于接收所述第一客户端发送的跟随触发操作相对于所述目标文档的第二触发位置,所述第二触发位置为所述第一客户端根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置所确定。
跟随展示模块703,用于根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
可选的,所述目标文档包括多个文档模块,所述第二文档位置包括所述多个模块中第二展示文档模块在所述第二屏幕的位置,所述第二展示文档模块为已经展示在所述第二屏幕的文档模块。
可选的,所述第二触发位置为所述跟随触发操作相对于目标文档模块的位置,所述目标文档模块为所述目标文档中跟随触发操作对应的文档模块。
可选的,若所述目标文档模块对应的内容类型为目录或正文文本,所述第二触发位置基于所述跟随触发操作的触发位置与所述目标文档模块的起始位置之间的文字数量占所述目标文档模块的全部文字数量的文字百分比确定。
跟随展示模块703具体用于:根据所述目录或所述正文文本在所述第二屏幕的位置,在所述目录或所述正文文本中确定所述文字百分比对应的目标文字,将所述目标文字或所述目标文字所在的文本行展示在所述第二屏幕。
可选的,当所述目标文档模块对应的内容类型为评论,所述第二触发位置为所述跟随触发操作的触发位置在所述目标文档模块中的评论区域的标识信息。
跟随展示模块703具体用于:根据所述评论在所述第二屏幕的位置,在所述评论中根据所述标识信息定位所述评论区域,将所述评论区域展示在所述第二屏幕。
可选的,所述装置还包括突出展示模块,用于:将所述评论区域展示在所述第二屏幕之后,将所述评论区域采用预设方式突出展示,其中,所述预设方式包括高亮、加粗和添加下划线中的至少一种。
可选的,当所述目标文档对应的内容类型为正文图像,所述第二触发位置基于所述跟随触发操作的触发位置在所述正文图像中的坐标与所述正文图像在所述第一屏幕中的第一尺寸之间的比值确定。
跟随展示模块703具体用于:根据所述正文图像在所述第二屏幕中的第二尺寸,确定所述正文图像中确定与所述比值对应的目标坐标,并将所述目标坐标在所述正文图像中的像素区域展示在所述第二屏幕。
可选的,所述跟随展示模块703具体用于:在所述第二屏幕的预设区域展示所述目标文档中与所述第二触发位置对应的内容,所述预设区域为所述第二屏幕中用户视线所在区域。
本公开实施例所提供的文档共享装置可执行本公开图4所示的方法实施例所提供的文档共享方法,具备执行方法相应的功能模块和有益效果。
本公开实施例还提供了一种计算机程序产品,包括计算机程序/指令,其该计算机程序/指令被处理器执行时实现本公开任意实施例所提供的文档共享方法。
图8为本公开实施例提供的一种电子设备的结构示意图。
下面具体参考图8,其示出了适于用来实现本公开实施例中的电子设备800的结构示意图。本公开实施例中的电子设备800可以包括但不限于诸如移动电话、笔记本电脑、数 字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图8示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图8所示,电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储装置808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM 803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图8示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的文档共享方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的***、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行***、装置或者器件使用或 者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行***、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:接收对目标文档的跟随触发操作,其中,所述目标文档同步展示在所述第一客户端和第二客户端;根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置,确定所述跟随触发操作相对于所述目标文档的第二触发位置;将所述第二触发位置发送给所述第二客户端,以使所述第二客户端根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:展示目标文档,其中,所述目标文档同步展示在第一客户端;接收所述第一客户端发送的跟随触发操作相对于所述目标文档的第二触发位置,所述第二触发位置为所述第一客户端根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置所确定;根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程 序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的***、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的***来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上***(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行***、装置或设备使用或与指令执行***、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体***、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储 存设备、磁储存设备、或上述内容的任何合适组合。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。
Claims (24)
- 一种文档共享方法,应用于第一客户端,包括:接收对目标文档的跟随触发操作,其中,所述目标文档同步展示在所述第一客户端和第二客户端;根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置,确定所述跟随触发操作相对于所述目标文档的第二触发位置;将所述第二触发位置发送给所述第二客户端,以使所述第二客户端根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
- 根据权利要求1所述的方法,其中,所述目标文档包括多个文档模块,所述第一文档位置包括所述多个文档模块中第一展示文档模块在所述第一屏幕中的位置,所述第一展示文档模块为已经展示在所述第一屏幕中的文档模块。
- 根据权利要求2所述的方法,其中,每个所述文档模块对应一种内容类型,所述内容类型包括目录、正文文本、正文图像和评论中的至少一个。
- 根据权利要求2所述的方法,其中,根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置,确定所述跟随触发操作相对于所述目标文档的第二触发位置,包括:根据所述第一触发位置以及所述目标文档中第一展示文档模块在所述第一屏幕中的位置,确定所述跟随触发操作的触发位置对应的目标文档模块;根据所述第一触发位置以及所述目标文档模块在所述第一屏幕的位置,确定所述跟随触发操作相对于所述目标文档模块的第二触发位置。
- 根据权利要求4所述的方法,其中,当所述目标文档模块对应的内容类型为目录或正文文本,所述确定所述跟随触发操作相对于所述目标文档模块的第二触发位置,包括:确定所述跟随触发操作的触发位置与所述目标文档模块的起始位置之间的文字数量占所述目标文档模块的全部文字数量的文字百分比,基于所述文字百分比确定所述第二触发位置。
- 根据权利要求4所述的方法,其中,所述目标文档模块对应的内容类型为评论,所述确定所述跟随触发操作相对于所述目标文档模块的第二触发位置,包括:若所述跟随触发操作的触发位置在所述目标文档模块的评论区域中,则将所述评论区域的标识信息确定为所述第二触发位置。
- 根据权利要求4所述的方法,其中,所述目标文档毛对应的内容类型为正文图像,所述确定所述跟随触发操作相对于所述目标文档模块的第二触发位置,包括:确定所述跟随触发操作的触发位置在所述正文图像中的坐标,并基于所述跟随触发操作的触发位置在所述正文图像中的坐标与所述正文图像在所述第一屏幕中的第一尺寸之间的比值,确定所述第二触发位置。
- 根据权利要求1所述的方法,其中,所述跟随触发操作包括悬停操作或点击操作。
- 根据权利要求1所述的方法,其中,所述第一客户端和所述第二客户端为所述目标文档的协作方。
- 根据权利要求9所述的方法,其中,所述第一客户端和所述第二客户端基于实时多媒体会议发起对所述目标文档的协作。
- 一种文档共享方法,应用于第二客户端,包括:展示目标文档,其中,所述目标文档同步展示在第一客户端;接收所述第一客户端发送的跟随触发操作相对于所述目标文档的第二触发位置,所述第二触发位置为所述第一客户端根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置所确定;根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
- 根据权利要求11所述的方法,其中,所述目标文档包括多个文档模块,所述第二文档位置包括所述多个模块中第二展示文档模块在所述第二屏幕的位置,所述第二展示文档模块为已经展示在所述第二屏幕的文档模块。
- 根据权利要求12所述的方法,其中,所述第二触发位置为所述跟随触发操作相对于目标文档模块的位置,所述目标文档模块为所述目标文档中跟随触发操作对应的文档模块。
- 根据权利要求13所述的方法,其中,若所述目标文档模块对应的内容类型为目录或正文文本,所述第二触发位置基于所述跟随触发操作的触发位置与所述目标文档模块的起始位置之间的文字数量占所述目标文档模块的全部文字数量的文字百分比确定;根据所述目标文档在第二屏幕的第二文档位置,将所述目标文档中与所述第二触发位 置对应的内容展示在所述第二屏幕,包括:根据所述目录或所述正文文本在所述第二屏幕的位置,在所述目录或所述正文文本中确定所述文字百分比对应的目标文字,将所述目标文字或所述目标文字所在的文本行展示在所述第二屏幕。
- 根据权利要求13所述的方法,当所述目标文档模块对应的内容类型为评论,所述第二触发位置为所述跟随触发操作的触发位置在所述目标文档模块中的评论区域的标识信息;根据所述目标文档在第二屏幕的第二文档位置,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕,包括:根据所述评论在所述第二屏幕的位置,在所述评论中根据所述标识信息定位所述评论区域,将所述评论区域展示在所述第二屏幕。
- 根据权利要求15所述的方法,其中,将所述评论区域展示在所述第二屏幕之后,所述方法还包括:将所述评论区域采用预设方式突出展示,其中,所述预设方式包括高亮、加粗和添加下划线中的至少一种。
- 根据权利要求13所述的方法,其中,当所述目标文档对应的内容类型为正文图像,所述第二触发位置基于所述跟随触发操作的触发位置在所述正文图像中的坐标与所述正文图像在所述第一屏幕中的第一尺寸之间的比值确定;根据所述目标文档在第二屏幕的第二文档位置,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕,包括:根据所述正文图像在所述第二屏幕中的第二尺寸,确定所述正文图像中确定与所述比值对应的目标坐标,并将所述目标坐标在所述正文图像中的像素区域展示在所述第二屏幕。
- 根据权利要求11所述的方法,其中,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕,包括:在所述第二屏幕的预设区域展示所述目标文档中与所述第二触发位置对应的内容,所述预设区域为所述第二屏幕中用户视线所在区域。
- 一种文档共享装置,配置于第一客户端,包括:触发操作模块,用于接收对目标文档的跟随触发操作,其中,所述目标文档同步展示 在所述第一客户端和第二客户端;相对位置模块,用于根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置,确定所述跟随触发操作相对于所述目标文档的第二触发位置;位置发送模块,用于将所述第二触发位置发送给所述第二客户端,以使所述第二客户端根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
- 一种文档共享装置,配置于第二客户端,包括:文档展示模块,用于展示目标文档,其中,所述目标文档同步展示在第一客户端;位置接收模块,用于接收所述第一客户端发送的跟随触发操作相对于所述目标文档的第二触发位置,所述第二触发位置为所述第一客户端根据所述跟随触发操作相对于第一屏幕的第一触发位置以及所述目标文档在所述第一屏幕的第一文档位置所确定;跟随展示模块,用于根据所述目标文档在第二屏幕的第二文档位置以及所述目标文档的访问地址信息,将所述目标文档中与所述第二触发位置对应的内容展示在所述第二屏幕。
- 一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述指令以实现权利要求1-18中任一所述的文档共享方法。
- 一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序用于执行权利要求1-18中任一所述的文档共享方法。
- 一种计算机程序,包括:指令,所述指令当由处理器执行时使所述处理器执行权利要求1-18中任一所述的文档共享方法。
- 一种计算机程序产品,包括指令,所述指令当由处理器执行时使所述处理器执行根据权利要求1-18中任一所述的文档共享方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111342523.0 | 2021-11-12 | ||
CN202111342523.0A CN114064593B (zh) | 2021-11-12 | 2021-11-12 | 一种文档共享方法、装置、设备及介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023083085A1 true WO2023083085A1 (zh) | 2023-05-19 |
Family
ID=80271742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/129453 WO2023083085A1 (zh) | 2021-11-12 | 2022-11-03 | 一种文档共享方法、装置、设备及介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114064593B (zh) |
WO (1) | WO2023083085A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114064593B (zh) * | 2021-11-12 | 2024-03-01 | 北京字跳网络技术有限公司 | 一种文档共享方法、装置、设备及介质 |
CN115033821A (zh) * | 2022-05-24 | 2022-09-09 | 北京达佳互联信息技术有限公司 | 一种文档显示方法、装置、电子设备及存储介质 |
CN114968160A (zh) * | 2022-06-13 | 2022-08-30 | 北京有竹居网络技术有限公司 | 一种页面展示方法、装置、计算机设备及存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060136828A1 (en) * | 2004-12-16 | 2006-06-22 | Taiga Asano | System and method for sharing display screen between information processing apparatuses |
CN102426479A (zh) * | 2011-10-26 | 2012-04-25 | 上海量明科技发展有限公司 | 采集指示信息输出的方法、终端及*** |
CN106843797A (zh) * | 2017-03-13 | 2017-06-13 | 广州视源电子科技股份有限公司 | 一种图像文件的编辑方法及装置 |
CN111427528A (zh) * | 2020-03-20 | 2020-07-17 | 北京字节跳动网络技术有限公司 | 显示方法、装置和电子设备 |
CN112256654A (zh) * | 2019-07-22 | 2021-01-22 | 珠海金山办公软件有限公司 | 一种文档共享方法及装置 |
CN114064593A (zh) * | 2021-11-12 | 2022-02-18 | 北京字跳网络技术有限公司 | 一种文档共享方法、装置、设备及介质 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090249224A1 (en) * | 2008-03-31 | 2009-10-01 | Microsoft Corporation | Simultaneous collaborative review of a document |
JP2012531637A (ja) * | 2009-06-30 | 2012-12-10 | テックブリッジ,インコーポレイテッド | マルチメディアコラボレーションシステム |
CN104980452A (zh) * | 2014-04-01 | 2015-10-14 | 珠海金山办公软件有限公司 | 一种文档共享方法、装置及*** |
CN110737415A (zh) * | 2019-09-12 | 2020-01-31 | 北京真视通科技股份有限公司 | 屏幕共享方法、装置、计算机设备和存储介质 |
CN113535645B (zh) * | 2021-03-11 | 2023-08-18 | 北京字跳网络技术有限公司 | 共享文档的展示方法、装置、电子设备及存储介质 |
-
2021
- 2021-11-12 CN CN202111342523.0A patent/CN114064593B/zh active Active
-
2022
- 2022-11-03 WO PCT/CN2022/129453 patent/WO2023083085A1/zh unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060136828A1 (en) * | 2004-12-16 | 2006-06-22 | Taiga Asano | System and method for sharing display screen between information processing apparatuses |
CN102426479A (zh) * | 2011-10-26 | 2012-04-25 | 上海量明科技发展有限公司 | 采集指示信息输出的方法、终端及*** |
CN106843797A (zh) * | 2017-03-13 | 2017-06-13 | 广州视源电子科技股份有限公司 | 一种图像文件的编辑方法及装置 |
CN112256654A (zh) * | 2019-07-22 | 2021-01-22 | 珠海金山办公软件有限公司 | 一种文档共享方法及装置 |
CN111427528A (zh) * | 2020-03-20 | 2020-07-17 | 北京字节跳动网络技术有限公司 | 显示方法、装置和电子设备 |
CN114064593A (zh) * | 2021-11-12 | 2022-02-18 | 北京字跳网络技术有限公司 | 一种文档共享方法、装置、设备及介质 |
Also Published As
Publication number | Publication date |
---|---|
CN114064593A (zh) | 2022-02-18 |
CN114064593B (zh) | 2024-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023083085A1 (zh) | 一种文档共享方法、装置、设备及介质 | |
WO2022111239A1 (zh) | 投屏控制方法、设备及电子设备 | |
WO2021135626A1 (zh) | 菜单项选择方法、装置、可读介质及电子设备 | |
CN109976620B (zh) | 列表项展现属性信息的确定方法、装置、设备及存储介质 | |
WO2022083230A1 (zh) | 画面展示方法、装置、电子设备及计算机可读介质 | |
CN113741765B (zh) | 页面跳转方法、装置、设备、存储介质和程序产品 | |
CN112015314B (zh) | 信息展示方法、装置、电子设备和介质 | |
CN111427528B (zh) | 显示方法、装置和电子设备 | |
CN111291244B (zh) | 房源信息展示方法、装置、终端及存储介质 | |
CN110866193A (zh) | 基于在线文档评论的反馈方法、装置、设备及存储介质 | |
WO2022218034A1 (zh) | 交互方法、装置和电子设备 | |
US11861381B2 (en) | Icon updating method and apparatus, and electronic device | |
WO2022218251A1 (zh) | 电子文档的处理方法、装置、终端和存储介质 | |
WO2022148485A1 (zh) | 信息展示方法、装置和电子设备 | |
CN113032172B (zh) | 异常检测方法、装置和电子设备 | |
EP4231143A1 (en) | Information display method and apparatus, electronic device, and computer readable storage medium | |
WO2023273889A1 (zh) | 交互方法、装置和电子设备 | |
WO2023284791A1 (zh) | 虚拟界面操作方法、头戴式显示设备和计算机可读介质 | |
WO2022007601A1 (zh) | 一种信息指示方法、装置、电子设备及存储介质 | |
US12008219B2 (en) | User interface presentation method and apparatus, computer-readable medium and electronic device | |
WO2024087922A1 (zh) | 收藏管理方法、装置、设备及介质 | |
CN111259291B (zh) | 视图展示方法、装置和电子设备 | |
WO2023151572A1 (zh) | 一种落地页的处理方法及装置 | |
WO2022184037A1 (zh) | 文档处理方法、装置、设备和介质 | |
CN111596992A (zh) | 导航栏展示方法、装置和电子设备 |
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: 22891880 Country of ref document: EP Kind code of ref document: A1 |