Collaborative document synchronous display method and device

By synchronizing the display and scrolling of the line numbers of the document in the collaborative document system, the problem that multi-end users cannot view collaborative documents synchronously is solved, and multi-end synchronous display and operation of collaborative documents is realized, which is suitable for scenarios such as video conferencing.

CN119129536APending Publication Date: 2024-12-13BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411170097.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

Existing collaborative documents do not support screen sharing, and it is impossible to synchronize multi-end users to watch collaborative documents.

Method used

By synchronizing the line number of the document between the master and the controlled terminal, synchronous display and scroll synchronization of the collaborative document are realized, allowing the controlled terminal to exit or resume following master mode within a predetermined time, and supports role exchange.

Benefits of technology

It realizes synchronous display and operation of multi-terminal collaborative documents, enhances the efficiency of collaborative work, is suitable for scenarios such as video conferencing, and provides various types of synchronous display and operation capabilities such as text, tables and pictures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119129536A_ABST
    Figure CN119129536A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a collaborative document synchronous display method and device. The specific embodiment of the method comprises the following steps: in response to a received collaborative document sent by a main control end, marking a line number for each line of text in the collaborative document; sending the collaborative document and the line number of the text displayed by the display window of the main control end to a controlled end, so that the display window of the controlled end synchronously displays the text with the same line number; in response to the detected editing operation on the collaborative document, updating a line number of a text in the collaborative document; and in response to the detection that the master control end controls the collaborative document to be displayed in a rolling manner, sending the updated line number of the text displayed by the display window of the master control end to the controlled end, so that the display window of the controlled end synchronously displays the collaborative document in a rolling manner. According to the implementation mode, screen sharing can be achieved, and meanwhile, operations such as editing of all users on the document are compatible. Therefore, the operation consistency of multi-terminal users can be kept.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a collaborative document synchronous display method and device. Background Art

[0002] In today's fast-paced work environment, teamwork and cooperation are becoming increasingly important. Collaborative documents are rapidly becoming popular as a tool for centralized collaboration and document management. Collaborative documents are more than just an ordinary document editing tool. It has real-time collaboration capabilities, and multiple people can edit a document at the same time. In addition, collaborative documents can be stored and accessed in the cloud, allowing documents to be modified and viewed anytime, anywhere. Most importantly, it also has historical version tracking and recovery functions to ensure the integrity and security of documents.

[0003] However, the collaborative documents in the prior art do not support screen sharing, and cannot allow multiple users to view the collaborative documents synchronously. Summary of the invention

[0004] The embodiments of the present disclosure provide a method and device for synchronous display of collaborative documents.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for synchronous display of collaborative documents, comprising: in response to receiving a collaborative document sent by a master terminal, marking a line number for each line of text in the collaborative document; sending the line numbers of the collaborative document and the text displayed in the display window of the master terminal to a controlled terminal, so that the display window of the controlled terminal synchronously displays text with the same line number; in response to detecting an editing operation on the collaborative document, updating the line number of the text in the collaborative document; in response to detecting that the master terminal manipulates the scrolling display of the collaborative document, sending the updated line number of the text displayed in the display window of the master terminal to the controlled terminal, so that the display window of the controlled terminal synchronously scrolls and displays the collaborative document.

[0006] In some embodiments, marking each line of text in the collaborative document with a line number includes: for a picture or table occupying multiple text lines in the collaborative document, marking it with multiple line numbers according to the line spacing of the collaborative document.

[0007] In some embodiments, updating the line number of the text in the collaborative document includes: updating the line number of the text after the editing position in the collaborative document.

[0008] In some embodiments, before the response to detecting an editing operation on the collaborative document, the method further includes: in response to receiving an editing request for the collaborative document from the controlled end, stopping sending the line number of the text displayed in the display window of the master end to the controlled end, so that the controlled end exits the follow-master mode.

[0009] In some embodiments, the method further includes: in response to not detecting the controlled end's editing operation on the collaborative document within a predetermined time, continuing to send the line number of the text displayed in the display window of the master end to the controlled end, so that the controlled end resumes following the master mode.

[0010] In some embodiments, the method further includes: in response to receiving a master switching request sent by the controlled end, forwarding the master switching request to the master end; in response to receiving a switching consent message sent by the master end, exchanging the roles of the controlled end and the master end.

[0011] In a second aspect, an embodiment of the present disclosure provides a collaborative document synchronous display device, comprising: a marking unit, configured to mark a line number for each line of text in the collaborative document in response to receiving a collaborative document sent by a master terminal; a sharing unit, configured to send the line numbers of the collaborative document and the text displayed in the display window of the master terminal to the controlled terminal, so that the display window of the controlled terminal synchronously displays the text with the same line number; an updating unit, configured to update the line number of the text in the collaborative document in response to detecting an editing operation on the collaborative document; and a synchronization unit, configured to send the updated line number of the text displayed in the display window of the master terminal to the controlled terminal in response to detecting that the master terminal manipulates the scrolling display of the collaborative document, so that the display window of the controlled terminal synchronously scrolls and displays the collaborative document.

[0012] In some embodiments, the marking unit is further configured to: mark a picture or a table occupying multiple text lines in the collaborative document with multiple line numbers according to the line spacing of the collaborative document.

[0013] In some embodiments, the updating unit is further configured to: update the line number of the text after the editing position in the collaborative document.

[0014] In some embodiments, the device also includes a control unit configured to: before the response to detecting an editing operation on the collaborative document, in response to receiving an editing request for the collaborative document from the controlled end, stop sending the line number of the text displayed in the display window of the master end to the controlled end, so that the controlled end exits the follow-master mode.

[0015] In some embodiments, the control unit is further configured to: in response to not detecting the controlled end's editing operation on the collaborative document within a predetermined time, continue to send the line number of the text displayed in the display window of the master end to the controlled end, so that the controlled end resumes following the master control mode.

[0016] In some embodiments, the device also includes a switching unit, which is configured to: in response to receiving a master switching request sent by the controlled end, forward the master switching request to the master end; in response to receiving a switching consent message sent by the master end, exchange the roles of the controlled end and the master end.

[0017] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device on which one or more computer programs are stored, and when the one or more computer programs are executed by the one or more processors, the one or more processors implement a method as described in any one of the first aspects.

[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method as described in any one of the first aspects.

[0019] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which implements the method as described in any one of the first aspects when executed by a processor.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0022] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;

[0023] Figure 2 is a flow chart of an embodiment of a collaborative document synchronous display method according to the present disclosure;

[0024] Figure 3 is a schematic diagram of an application scenario of the collaborative document synchronous display method according to the present disclosure;

[0025] Figure 4 is a flow chart of another embodiment of the collaborative document synchronous display method according to the present disclosure;

[0026] Figure 5 is a structural schematic diagram of an embodiment of a collaborative document synchronous display device according to the present disclosure;

[0027] Figure 6It is a structural diagram of a computer system of an electronic device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0029] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0030] Figure 1 An exemplary system architecture is shown to which an embodiment of the collaborative document synchronous display method or collaborative document synchronous display device of the present disclosure can be applied.

[0031] like Figure 1 As shown, the system architecture may include a server, a master terminal and at least one controlled terminal. The master terminal is a terminal device for sharing collaborative documents, and the content displayed by the collaborative document is controlled by the user using the master terminal. The controlled terminal is a terminal device that can display the content of the collaborative document synchronously with the master terminal. Both the master terminal and the controlled terminal can edit the collaborative document. With the consent of the user using the master terminal, the controlled terminal can also switch to the master terminal to control the scrolling display of the collaborative document.

[0032] The server is used to receive collaborative documents sent by the master terminal and forward them to the controlled terminal, and synchronize the line numbers displayed by the master terminal to the controlled terminal. When either the master terminal or the controlled terminal edits the collaborative document, the edited content will be synchronized to the server, and the server will forward it to other terminal devices using the collaborative document. No matter which terminal edits the collaborative document, it will be recorded, for example, the modified content and the editor will be recorded in the revision mode.

[0033] The network is used to provide a medium for a communication link between a server, a host terminal and at least one controlled terminal. The network can include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0034] Users can use terminal devices to interact with servers through the network to receive or send messages, etc. Various communication client applications can be installed on the terminal devices, such as document editing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0035] The terminal device can be hardware or software. When the terminal device is hardware, it can be various electronic devices with a display screen and supporting document editing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc. When the terminal device is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0036] The server can be a server that provides various services, such as a background collaborative document server that supports collaborative documents that are synchronously displayed on terminal devices. The background collaborative document server can synchronously display collaborative documents shared by the master terminal on all controlled terminals, and can also allow any terminal device to synchronize the content edited by the collaborative document to other terminal devices.

[0037] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0038] It should be noted that the collaborative document synchronous display method provided in the embodiments of the present disclosure is generally executed by a server, and accordingly, the collaborative document synchronous display device is generally arranged in the server.

[0039] It should be understood that Figure 1 The number of servers, master terminals and controlled terminals in the embodiment is only for illustration. Any number of servers, master terminals and controlled terminals may be provided according to the implementation requirements.

[0040] Continue to refer Figure 2 , shows a process 200 of an embodiment of a collaborative document synchronous display method according to the present disclosure. The collaborative document synchronous display method includes the following steps:

[0041] Step 201: in response to receiving a collaborative document sent by a master control end, marking a line number for each line of text in the collaborative document.

[0042] In this embodiment, the execution subject of the collaborative document synchronous display method (for example Figure 1 The server shown in the figure can receive the collaborative document sent by the master terminal through a wired connection or a wireless connection. The method can be implemented through an application, for example, using the Chrome kernel as the carrier of the application for displaying terminal collaborative documents. The user of the master terminal can use the application corresponding to the method in the conference system and instant messaging tool. After opening the document, the user of the master terminal can choose to share it with other people, and the document can be synchronously displayed on the controlled end as a collaborative document.

[0043] The essence of collaborative documents is to display them in the application in the form of H5. The content in the document will be displayed in the application in the form of text, so each line of the text will have a display position relative to the application window. For example, the X and Y coordinates of the starting position of the first line are 0 and 10 respectively, and the X and Y coordinates of the starting position of the second line are 0 and 15. All text lines have coordinate attributes (the line spacing of the above lines is 5).

[0044] When collaborative documents are stored on the server, each line of text will be marked. The line number can include not only the specific line code, but also the document number or page number. For example, the document number of "XXX" is 001 (the number is the unique identifier of the document), and the document has 100 lines (according to the default font size and paragraph format), then the first line is marked on the server side as 001-1, and so on. The mark of the 100th line is 001-100. If the user adjusts the font or line spacing. The number of lines and marking are recalculated, and the marking method is the same as the above method. The mark will be stored on the server side at the same time as the text.

[0045] The master terminal is the sharing terminal of the collaborative document, and the controlled terminal is the viewing terminal. When the master terminal operates the document scrolling, the controlled terminal can scroll synchronously. At the same time, the controlled terminal can also send control messages to the master terminal through the server to apply to become the master terminal. There is only one master terminal at a time.

[0046] The master control terminal can also actively initiate a master control switching request and designate a controlled terminal to switch to the master control terminal. After the designated controlled terminal agrees, the server switches the roles of the master control terminal and the controlled terminal.

[0047] Step 202: Send the line numbers of the collaborative document and the text displayed in the display window of the master terminal to the controlled terminal, so that the display window of the controlled terminal synchronously displays the text with the same line number.

[0048] In this embodiment, after the host shares the document, the server will obtain the row code of the host in the form X, Y is 0, 10, that is, obtain the first row of the current displayed page (row coordinates are 0, 10). If the obtained row number is 101, then it means that the first row displayed on the current page is the 101st row of the entire document.

[0049] When the controlled end obtains the shared document from the server, the 101st line will be displayed at position 0,10 of the first line of the current window, so as to achieve the purpose of initial display consistency.

[0050] Step 203: in response to detecting an editing operation on the collaborative document, updating the line number of the text in the collaborative document.

[0051] In this embodiment, the editing operation can be performed by the master terminal or any of the controlled terminals. Regardless of which terminal device performs the editing operation, in addition to achieving conventional collaborative document content synchronization, the text in the collaborative document will also be renumbered. During the synchronization operation, each terminal device user can edit the document synchronously. During the document editing process, or when the font or format of the document is adjusted, the line identifiers and the content (lines) displayed on each terminal will be recalculated. For example, the current page originally had only 5 lines, and 5 new lines of content were added to become 10 lines, then the new content needs to be numbered. Originally, 3 lines of content were displayed using font size 4, but after changing to font size 10, 6 lines are required to display.

[0052] Step 204, in response to detecting that the master end manipulates the collaborative document to scroll, sends the updated line number of the text displayed in the display window of the master end to the controlled end, so that the display window of the controlled end synchronously scrolls and displays the collaborative document.

[0053] In this embodiment, with the operation of the master terminal, such as rolling the mouse, dragging downward, etc., the content (line) of the coordinates 0, 10 of the first line will be constantly changed, and the changed line mark will be synchronized to other controlled terminals through the server, and the controlled terminals will also adjust the display content (line) of the first line, thereby realizing display synchronization operation.

[0054] The method provided by the above-mentioned embodiment of the present disclosure enables documents to be displayed and operated synchronously on multiple terminals, which not only maintains the editability of the document, but also has the ability of synchronous display and operation. It can be effectively integrated into other application systems, such as video conferencing, to provide support for collaborative documents. Users in the conference can synchronously watch collaborative documents and effectively operate the documents at the same time. The content of collaborative documents can support synchronous display and operation of multiple types such as text, tables, and pictures.

[0055] In some optional implementations of this embodiment, marking each line of text in the collaborative document with a line number includes: for a picture or table occupying multiple text lines in the collaborative document, marking it with multiple line numbers according to the line spacing of the collaborative document. This ensures that the pictures and tables displayed on different terminal devices are also synchronized.

[0056] In some optional implementations of this embodiment, updating the line number of the text in the collaborative document includes: updating the line number of the text after the edit position in the collaborative document. It is not necessary to update all the line numbers in the document, but only update from the edit position, which can reduce the update amount, thereby reducing processing time and delay.

[0057] In some optional implementations of this embodiment, before the response to detecting an editing operation on the collaborative document, the method further includes: in response to receiving an editing request from the controlled end for the collaborative document, stopping sending the line number of the text displayed in the display window of the master end to the controlled end, so that the controlled end exits the follow-the-master mode. The controlled end follows the display of the master end by default, and may not follow the operation of the master end according to the needs of the controlled end, that is, when the master end operates page scrolling, etc., the controlled end does not follow. When the controlled end is editing a document, it will automatically exit the follow-the-master mode to prevent the occurrence of abnormalities such as editing and scrolling at the same time. If only the master end is editing, the master end will not move during the editing process, so no abnormalities will occur in other controlled ends.

[0058] In some optional implementations of this embodiment, the method further includes: in response to not detecting the controlled end's editing operation on the collaborative document within a predetermined time, continuing to send the controlled end the line number of the text displayed in the display window of the master end, so that the controlled end resumes the follow-the-master mode. The user's exit from the editing operation can be automatically detected, thereby resuming the follow-the-master mode.

[0059] Continue to see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of an application scenario of the collaborative document synchronous display method according to this embodiment. Figure 3In the application scenario, the user chooses to share the document with the controlled end through the master control end, and the document and the line numbers 101-103 displayed in the current window of the master control end are forwarded to the controlled end through the server. After receiving the forwarded document and line numbers, the controlled end displays the content of line numbers 101-103 in the window to achieve synchronous display with the master control end. If the user of the controlled end wants to edit the document, he / she exits the follow-the-master control mode. Even if the master control end turns the page, the controlled end remains on the current page. The controlled end adds a new line in the document and sends it to the server. The server will update the line number of the document and forward it to the master control end in real time. The master control end synchronously updates the document content and outputs a prompt message to notify who edited the document. If the server does not receive new updated content from the controlled end within a certain period of time, it means that the controlled end has stopped editing. The server can continue to send the line number displayed in the master control window to the controlled end to restore the follow-the-master control mode of the controlled end. For example, when the controlled end is editing the 104th line, the master end has already turned to the next page. Before the controlled end exits editing, the current page content is still displayed. After the controlled end exits editing, it will synchronously turn to the next page with the master end.

[0060] Further references Figure 4 , which shows a process 400 of another embodiment of a collaborative document synchronous display method. The process 400 of the collaborative document synchronous display method includes the following steps:

[0061] Step 401: in response to receiving a collaborative document sent by a master control end, marking a line number for each line of text in the collaborative document.

[0062] Step 402: Send the line numbers of the collaborative document and the text displayed in the display window of the master terminal to the controlled terminal, so that the display window of the controlled terminal synchronously displays the text with the same line number.

[0063] Step 403: in response to detecting an editing operation on the collaborative document, updating the line number of the text in the collaborative document.

[0064] Step 404, in response to detecting that the master end manipulates the collaborative document to scroll, sends the updated line number of the text displayed in the display window of the master end to the controlled end, so that the display window of the controlled end synchronously scrolls and displays the collaborative document.

[0065] Steps 401-404 are substantially the same as steps 201-204, and thus are not described in detail herein.

[0066] Step 405: in response to receiving the master control switching request sent by the controlled end, forward the master control switching request to the master end.

[0067] In this embodiment, only one terminal device can act as the master control end during the screen sharing process. Initially, the document sharing end acts as the master control end, and subsequently other terminal devices can be handed over to act as the master control end for master control switching. The master control switching requires the consent of the master control end. The controlled end needs to send a master control switching request to the server, and the server forwards the master control switching request to the master control end.

[0068] Step 406: In response to receiving the handover consent message sent by the master terminal, the roles of the controlled terminal and the master terminal are exchanged.

[0069] In this embodiment, if the master terminal agrees to switch, the server sets the controlled terminal that applies for master control as the master terminal, and forwards the line number of the new master terminal to other terminal devices to achieve role exchange between the controlled terminal and the master terminal.

[0070] The collaborative document synchronization method of the present application can freely switch the master control end according to needs, and is particularly suitable for use in video conferences, allowing participants to obtain the same experience as offline conferences.

[0071] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a collaborative document synchronization display device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0072] like Figure 5 As shown, the collaborative document synchronous display device 500 of this embodiment includes: a marking unit 501, a sharing unit 502, an updating unit 503 and a synchronization unit 504. The marking unit 501 is configured to mark the line number of each line of text in the collaborative document in response to receiving the collaborative document sent by the master terminal; the sharing unit 502 is configured to send the line number of the collaborative document and the text displayed in the display window of the master terminal to the controlled terminal, so that the display window of the controlled terminal synchronously displays the text with the same line number; the updating unit 503 is configured to update the line number of the text in the collaborative document in response to detecting the editing operation on the collaborative document; the synchronization unit 504 is configured to send the updated line number of the text displayed in the display window of the master terminal to the controlled terminal in response to detecting that the master terminal manipulates the scrolling display of the collaborative document, so that the display window of the controlled terminal synchronously scrolls and displays the collaborative document.

[0073] In this embodiment, the specific processing of the marking unit 501, the sharing unit 502, the updating unit 503 and the synchronization unit 504 of the collaborative document synchronization display device 500 can be referred to. Figure 2 Corresponding to step 201, step 202, step 203, and step 204 in the embodiment.

[0074] In some optional implementations of this embodiment, the marking unit 501 is further configured to: for a picture or table occupying multiple text lines in the collaborative document, mark it with multiple line numbers according to the line spacing of the collaborative document.

[0075] In some optional implementations of this embodiment, the updating unit 503 is further configured to: update the line number of the text after the editing position in the collaborative document.

[0076] In some optional implementations of the present embodiment, the device further includes a control unit (not shown in the drawings), which is configured to: before the response to detecting an editing operation on the collaborative document, in response to receiving an editing request for the collaborative document from the controlled end, stop sending the line number of the text displayed in the display window of the master end to the controlled end, so that the controlled end exits the follow-the-master mode.

[0077] In some optional implementations of this embodiment, the control unit is further configured to: in response to not detecting the controlled end's editing operation on the collaborative document within a predetermined time, continue to send the line number of the text displayed in the display window of the master end to the controlled end, so that the controlled end resumes following the master control mode.

[0078] In some optional implementations of this embodiment, the device 500 also includes a switching unit (not shown in the drawings), which is configured to: in response to receiving a master switching request sent by the controlled end, forward the master switching request to the master end; in response to receiving a switching consent message sent by the master end, exchange the roles of the controlled end and the master end.

[0079] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.

[0080] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0081] An electronic device comprises: one or more processors; a storage device on which one or more computer programs are stored, and when the one or more computer programs are executed by the one or more processors, the one or more processors implement the method described in process 200 or 400.

[0082] A computer-readable medium stores a computer program, wherein the computer program implements the method described in process 200 or 400 when executed by a processor.

[0083] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0084] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0085] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0086] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as the road area planning method. For example, in some embodiments, the road area planning method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the road area planning method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the road area planning method in any other appropriate manner (e.g., by means of firmware).

[0087] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0088] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0089] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0090] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0091] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0092] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a server of a distributed system, or a server combined with a blockchain. The server may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. The server may be a server of a distributed system, or a server combined with a blockchain. The server may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0093] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0094] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A collaborative document synchronous display method, include: In response to receiving the collaborative document sent by the master control end, marking a line number for each line of text in the collaborative document; Sending the line numbers of the collaborative document and the text displayed in the display window of the master terminal to the controlled terminal, so that the display window of the controlled terminal synchronously displays the text with the same line number; In response to detecting an editing operation on the collaborative document, updating line numbers of text in the collaborative document; In response to detecting that the master end manipulates the scrolling display of the collaborative document, the updated line number of the text displayed in the display window of the master end is sent to the controlled end, so that the display window of the controlled end synchronously scrolls and displays the collaborative document.

2. The method according to claim 1, in, The step of marking a line number for each line of text in the collaborative document includes: For pictures or tables occupying multiple text lines in the collaborative document, multiple line numbers are used to mark them according to the line spacing of the collaborative document.

3. The method according to claim 1, in, The updating of the line number of the text in the collaborative document includes: The line number of the text after the edit position in the collaborative document is updated.

4. The method according to claim 1, in, Before responding to detecting an editing operation on the collaborative document, the method further includes: In response to receiving a request from the controlled end to edit the collaborative document, the line number of the text displayed in the display window of the controlling end is stopped from being sent to the controlled end, so that the controlled end exits the following the controlling end mode.

5. The method according to claim 4, in, The method further comprises: In response to not detecting the editing operation of the controlled end on the collaborative document within a predetermined time, continue to send the line number of the text displayed in the display window of the master end to the controlled end, so that the controlled end resumes the follow-the-master mode.

6. The method according to claim 1, in, The method further comprises: In response to receiving a master control switching request sent by the controlled end, forwarding the master control switching request to the master control end; In response to receiving a handover consent message sent by the master terminal, the roles of the controlled terminal and the master terminal are exchanged.

7. A collaborative document synchronous display device, include: a marking unit, configured to mark a line number for each line of text in the collaborative document in response to receiving the collaborative document sent by the master control end; A sharing unit configured to send the line numbers of the collaborative document and the text displayed in the display window of the master terminal to the controlled terminal, so that the display window of the controlled terminal synchronously displays the text with the same line number; an updating unit, configured to update the line number of the text in the collaborative document in response to detecting an editing operation on the collaborative document; The synchronization unit is configured to send the updated line number of the text displayed in the display window of the master end to the controlled end in response to detecting that the master end manipulates the scrolling display of the collaborative document, so that the display window of the controlled end synchronously scrolls and displays the collaborative document.

8. An electronic device, include: one or more processors; a storage device having one or more computer programs stored thereon, When the one or more computer programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.