Movatterモバイル変換


[0]ホーム

URL:


CN110502488A - Processing method, device, terminal and the storage medium of online document - Google Patents

Processing method, device, terminal and the storage medium of online document
Download PDF

Info

Publication number
CN110502488A
CN110502488ACN201910749991.6ACN201910749991ACN110502488ACN 110502488 ACN110502488 ACN 110502488ACN 201910749991 ACN201910749991 ACN 201910749991ACN 110502488 ACN110502488 ACN 110502488A
Authority
CN
China
Prior art keywords
document
digital digest
data
areas
document areas
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910749991.6A
Other languages
Chinese (zh)
Inventor
伍文韬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co LtdfiledCriticalBeijing ByteDance Network Technology Co Ltd
Priority to CN201910749991.6ApriorityCriticalpatent/CN110502488A/en
Publication of CN110502488ApublicationCriticalpatent/CN110502488A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The embodiment of the present disclosure provides processing method, device, terminal and the storage medium of a kind of online document;The method is applied to the first client, which comprises in response to being directed to the edit operation of online document, obtaining includes the first change collection for corresponding to the delta data of edit operation;Based on the first change collection, the first document areas of online document locating for delta data is determined;Obtain the first digital digest of the data of the first document areas;Synchronous first change collection, the first document areas and the first digital digest to the second client after passing through to the first change collection verification, collect so that the second client is based on the first document areas and the first digital digest using the first change.

Description

Processing method, device, terminal and the storage medium of online document
Technical field
The embodiment of the present disclosure be related to Internet technology more particularly to a kind of processing method of online document, device, terminal andStorage medium.
Background technique
With the development of Internet telephony, the characteristics such as the multi-user Cooperation having by online document, cloud storage, moreTo get over the favor by user.Under the application scenarios of multi-user's writing, in order to guarantee the online document of multiple user's operationsConsistency synchronizes the data of updated entire online document, and the number based on entire online document in the related technologyAccording to progress consistency desired result, synchronous and verification inefficiency.
Summary of the invention
The Summary is provided so that with brief form introduction design, these designs will be in specific implementation belowMode part is described in detail.The Summary is not intended to identify the key feature of claimed technical solution or mustFeature is wanted, is intended to be used to limit the range of the technical solution of required protection.
The embodiment of the present disclosure provides a kind of processing method of online document, and the method is applied to the first client, describedMethod includes:
In response to being directed to the edit operation of online document, first of the delta data including the corresponding edit operation is obtainedChange collection;
Based on the first change collection, the first document areas of the online document locating for the delta data is determined;
Obtain the first digital digest of the data of first document areas;
The first change collection, first document areas and first digital digest to the second client are synchronized, withSecond client is set to be based on first document areas and first digital digest, it is logical to the first change collection verificationLater, collect using first change.
In above scheme, the method also includes:
Receive the second change collection, the second document areas and the second digital digest that second client is sent;
Obtain the digital digest of the second document areas data of the online document;
When determining that the digital digest of the second document areas data is consistent with second digital digest, using describedTwo change collection.
In above scheme, the method also includes:
When determining the digital digest and inconsistent second digital digest of the second document areas data, mistake is presentedPrompt information, the miscue information are used to prompt the verification failure to the second change collection.
In above scheme, the first document areas of the online document locating for the determination delta data, comprising:
The division for carrying out and/or arranging to the online document, obtains multiple document areas;
Determine that document areas belonging to the delta data is first document areas.
In above scheme, the first digital digest of the data for obtaining first document areas, comprising:
Using MD5 Message Digest 5 or hash algorithm, the data of first document areas are calculated, are generatedFirst digital digest of the data of first document areas.
It is described to synchronize the first change collection, first document areas and first digital digest in above schemeTo the second client, comprising:
The first change collection, first document areas and first digital digest are sent to server, so that instituteIt states server and is based on first document areas and first digital digest, after passing through to the first change collection verification, hairSend the first change collection, first document areas and first digital digest to second client.
In above scheme, the edit operation makes the online document be updated to the second edition by first version, describedDelta data is data needed for being updated to the second edition as the first version.
The embodiment of the present disclosure also provides a kind of processing unit of online document, and described device includes:
Acquiring unit, for the edit operation in response to being directed to online document, obtaining includes the corresponding edit operationFirst change collection of delta data;
Determination unit, for determining the of the online document locating for the delta data based on the first change collectionOne document areas;
Processing unit, the first digital digest of the data for obtaining first document areas;
Synchronization unit, for synchronizing the first change collection, first document areas and first digital digest extremelySecond client, so that second client is based on first document areas and first digital digest, to described theAfter one change collection verification passes through, collect using first change.
In above scheme, described device further includes receiving unit and verification unit;
The receiving unit, for receiving the second change collection, the second document areas that second client sends and theTwo digital digests;
The processing unit is also used to obtain the digital digest of the second document areas data of the online document;
The verification unit, for determining the digital digest and second digital digest of the second document areas dataWhen consistent, collect using second change.
In above scheme, the verification unit is also used to determine digital digest and the institute of the second document areas dataState the second digital digest it is inconsistent when, present miscue information, the miscue information for prompt to it is described second becomeThe verification failure more collected.
In above scheme, the determination unit is also used to the division for carrying out and/or arranging to the online document, obtains moreA document areas;
Determine that document areas belonging to the delta data is first document areas.
In above scheme, the processing unit is also used to using MD5 Message Digest 5 or hash algorithm, to describedThe data of first document areas are calculated, and the first digital digest of the data of first document areas is generated.
In above scheme, the synchronization unit is also used to send the first change collection, first document areas and instituteThe first digital digest is stated to server, so that the server is based on first document areas and first digital digest,After passing through to the first change collection verification, the first change collection, first document areas and first number are sentIt makes a summary to second client.
In above scheme, the edit operation makes the online document be updated to the second edition by first version, describedDelta data is data needed for being updated to the second edition as the first version.
The embodiment of the present disclosure also provides a kind of terminal, and the terminal includes:
Memory, for storing executable instruction;
Processor when for executing the executable instruction stored in the memory, realizes what the embodiment of the present disclosure providedThe processing method of above-mentioned online document.
The embodiment of the present disclosure also provides a kind of storage medium, is stored with executable instruction, and the executable instruction is performedWhen, realize the processing method for the above-mentioned online document that the embodiment of the present disclosure provides.
It is had the following beneficial effects: using the embodiment of the present disclosure
Using disclosure above-described embodiment, the first change collection of the first client synchronization to the second client includes corresponding instituteThe delta data of edit operation is stated, rather than the entirely content of online document, in this way, improving the content synchronization effect of online documentRate;Since the first digital digest is obtained based on the data of the first document areas, the first document areas corresponds to delta data, Ye JiVerification of two clients before application the first change collection is based on the partial content data of online document, rather than entire number of filesAccording in this way, verification rate is improved, simultaneously as the verification of the second client executing is based on the first document areas and the first numberWord abstract, due to the uniqueness of digital digest, substantially increases the accuracy of verification, can effectively find the synchronous different of documentOften.
Detailed description of the invention
In conjunction with attached drawing and refer to following specific embodiments, the above and other feature, advantage of each embodiment of the disclosure andAspect will be apparent.In attached drawing, the same or similar appended drawing reference indicates the same or similar element.It should manageSolution attached drawing is schematically that original part and element are not necessarily drawn to scale.
Fig. 1 is the configuration diagram of the processing system for the online document that the embodiment of the present disclosure provides;
Fig. 2 is the composed structure schematic diagram of the processing unit for the online document that the embodiment of the present disclosure provides;
Fig. 3 is the composed structure schematic diagram of the processing unit for the online document that the embodiment of the present disclosure provides;
Fig. 4 is the flow diagram of the processing method for the online document that the embodiment of the present disclosure provides;
The schematic diagram of first document areas locating for the determination delta data that Fig. 5 provides for the embodiment of the present disclosure;
The schematic diagram of first document areas locating for the determination delta data that Fig. 6 provides for the embodiment of the present disclosure;
The schematic diagram of first document areas locating for the determination delta data that Fig. 7 provides for the embodiment of the present disclosure;
Fig. 8 is the flow diagram of the processing method for the online document that the embodiment of the present disclosure provides;
Fig. 9 is the flow diagram of the processing method for the online document that the embodiment of the present disclosure provides;
Figure 10 is the schematic diagram of the version updating for the electrical form that the embodiment of the present disclosure provides;
Figure 11 is the flow diagram of the processing method for the online text document that the embodiment of the present disclosure provides;
Figure 12 is the flow diagram of the processing method for the online text document that the embodiment of the present disclosure provides.
Specific embodiment
Embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the certain of the disclosure in attached drawingEmbodiment, it should be understood that, the disclosure can be realized by various forms, and should not be construed as being limited to thisIn the embodiment that illustrates, providing these embodiments on the contrary is in order to more thorough and be fully understood by the disclosure.It should be understood thatIt is that being given for example only property of the accompanying drawings and embodiments effect of the disclosure is not intended to limit the protection scope of the disclosure.
It should be appreciated that each step recorded in disclosed method embodiment can execute in a different order,And/or parallel execution.In addition, method implementation may include additional step and/or omit the step of execution is shown.This public affairsThe range opened is not limited in this respect.
Terms used herein " comprising " and its deformation are that opening includes, i.e., " including but not limited to ".Term "based"It is " being based at least partially on ".Term " one embodiment " expression " at least one embodiment ";Term " another embodiment " indicates" at least one other embodiment ";Term " some embodiments " expression " at least some embodiments ".The correlation of other terms is fixedJustice provides in will be described below.
It is noted that the concepts such as " first " that refers in the disclosure, " second " are only used for different devices, module or listMember distinguishes, and is not intended to limit the sequence or relation of interdependence of function performed by these devices, module or unit.
It is noted that referred in the disclosure "one", the modification of " multiple " be schematically and not restrictive this fieldIt will be appreciated by the skilled person that being otherwise construed as " one or more " unless clearly indicate otherwise in context.
The being merely to illustrate property of title of the message or information that are interacted between multiple devices in disclosure embodimentPurpose, and be not used to limit the range of these message or information.
Before the embodiment of the present disclosure is described in detail, to noun involved in the embodiment of the present disclosure and belong toBright, noun involved in the embodiment of the present disclosure and term are suitable for following explanation.
1) client, run in terminal for providing the application program of various services, such as instant messaging application clientEnd.
2) online document, it is a kind of for user's online editing, multi-user Cooperation and to be stored in the document in cloud in real time, by superText mark up language (HTML, the Hyper Text Markup Language) page carry out document show, dependent on client withSynchronization to user's content of edit is realized in the communication of server, and the type of online document can be online Word document, onlineExcel document, online PPT document, chart document online.
3) in response to the condition or state relied on for indicating performed operation, when the relied on condition of satisfactionOr when state, performed one or more operations be can be in real time, it is possible to have the delay of setting;Do not saying especiallyIn the case where bright, there is no the limitations for executing sequencing for performed multiple operations.
It is this referring next to Fig. 1, Fig. 1 based on the above-mentioned explanation to noun involved in the embodiment of the present disclosure and termThe configuration diagram of the search system for the online document that open embodiment provides supports an exemplary application, terminal to realize400 (including terminal 400-1 and terminal 400-2), terminal 400 connect server 200 by network 300, are provided with visitor in terminalFamily end, user can realize the load to the searched page of online document by the client, network 300 can be wide area network orLocal area network, or be combination, realize that data are transmitted using Radio Link.
For being provided with the first client on terminal 400-1, be provided with the second client on terminal 400-2.
Terminal 400-1 is used for the edit operation in response to being directed to online document, and obtaining includes the variation for corresponding to edit operationFirst change collection of data;Based on the first change collection, the first document areas of online document locating for delta data is determined;Obtain theFirst digital digest of the data of one document areas;The first change collection, the first document areas and the first digital digest are sent to clothesBusiness device 200;
Server 200 gives terminal 400-2 for sending the first change collection, the first document areas and the first digital digest;
Terminal 400-2, for being based on the first document areas and the first digital digest, after passing through to the first change collection verification,Using the first change collection.
Next the processing unit of the online document provided the embodiment of the present disclosure is illustrated.The embodiment of the present disclosureThe processing unit of on-line documentation can be implemented in a variety of manners, such as: it is independent by smart phone, tablet computer and desktop computer terminalImplement, is perhaps individually implemented by server or by terminal, server coordinated implementation.The online text that the embodiment of the present disclosure providesThe processing unit of shelves may be embodied as the mode of hardware or software and hardware combining, illustrate that the embodiment of the present disclosure provides online belowThe various exemplary implementations of the processing unit of document.
It elaborates below to the hardware configuration of the processing unit of the online document of the embodiment of the present disclosure, Fig. 2 is this public affairsOpen embodiment offer online document processing unit composed structure schematic diagram, Fig. 2 shows device composition be only oneExample, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in Fig. 2, the processing unit of online document may include processing unit (such as central processing unit, graphics processDevice etc.) 210, it can be according to the program being stored in read-only memory (ROM, Read-Only Memory) 220 or from depositingProgram that storage device 280 is loaded into random access storage device (RAM, Random Access Memory) 230 and execute variousMovement and processing appropriate.In RAM 230, it is also stored with various programs and data needed for terminal operation.Processing unit210, ROM 220 and RAM 230 is connected with each other by bus 240.Input/output (I/O, Input/Output) interface 250It is also connected to bus 240.
In general, following device can connect to I/O interface 250: including such as touch screen, touch tablet, keyboard, mouse, taking the photographAs the input unit 260 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibrationThe output device 270 of dynamic device etc.;Storage device 280 including such as tape, hard disk etc.;And communication device 290.Communication device290, which can permit terminal, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 2 shows have various dressesThe terminal set, it should be understood that being not required for implementing or having all devices shown.Alternatively it can implement or haveMore or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, the process of provided flow chart description may be implemented as computerSoftware program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable mediumOn computer program, computer program includes the program code for method shown in execution flow chart.In such implementationIn example, computer program can be downloaded and installed from network by communication device 290, or be pacified from storage device 280Dress, or be mounted from ROM220.When computer program is executed by processing unit 210, the method that executes the embodiment of the present disclosureThe above-mentioned function of middle restriction.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meterCalculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example may include but unlimitedIn the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or device, or any above combination.Computer canThe more specific example for reading storage medium can include but is not limited to: electrical connection, portable meter with one or more conducting wiresCalculation machine disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory(EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device orThe above-mentioned any appropriate combination of person.
In the embodiments of the present disclosure, computer readable storage medium can be any tangible Jie for including or store programMatter, the program can be commanded execution system, device or device use or in connection.And in the embodiment of the present disclosureIn, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, wherein holdingComputer-readable program code is carried.The data-signal of this propagation can take various forms, including but not limited to electromagnetismSignal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable storage mediumAny computer-readable medium other than matter, computer-readable signal media can send, propagate or transmit for by instructingExecution system, device or device use or program in connection.The program generation for including on computer-readable mediumCode can transmit with any suitable medium, including but not limited to: electric wire, optical cable, radio frequency (RF) etc. are above-mentioned anySuitable combination.
Above-mentioned computer-readable medium can be included in above-mentioned terminal;It is also possible to individualism, and it is unassembledEnter in terminal.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the endWhen end executes, so that terminal executes the processing method for the above-mentioned online document that the embodiment of the present disclosure provides.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereofMachine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C++, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code canFully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.In situations involving remote computers, remote computer can be by the network of any kind, including local area network (LAN) and wideDomain net (WAN), to be connected to subscriber computer, or, it may be connected to outer computer (such as provided using Internet serviceQuotient is connected by internet).
The flow chart and block diagram that the embodiment of the present disclosure provides, illustrate the system according to the various embodiments of the disclosure, methodWith the architecture, function and operation in the cards of computer program product.In this regard, each of flowchart or block diagramBox can represent a part of a module, program segment or code, and a part of the module, program segment or code includes oneA or multiple executable instructions for implementing the specified logical function.It should also be noted that in some implementations as replacements,Function marked in the box can also occur in a different order than that indicated in the drawings.For example, two succeedingly indicateBox can actually be basically executed in parallel, they can also be executed in the opposite order sometimes, this is according to related functionDepending on.It is also noted that the group of each box in block diagram and or flow chart and the box in block diagram and or flow chartIt closes, can be realized with the dedicated hardware based system for executing defined functions or operations, or specialized hardware can be usedCombination with computer instruction is realized.
Being described in unit and/or module involved in the embodiment of the present disclosure can be realized by way of software,It can be realized by way of hardware.
Function described in the embodiment of the present disclosure can be executed at least partly by one or more hardware logic components.For example, without limitation, the hardware logic component for the exemplary type that can be used include: field programmable gate array (FPGA,Field-Programmable Gate Array), specific integrated circuit (ASIC, Application SpecificIntegrated Circuit), Application Specific Standard Product (ASSP, Application Specific Standard Parts)),System on chip (SOC), complex programmable logic equipment (CPLD) etc..
In the context of the embodiment of the present disclosure, machine readable media can be tangible medium, may include or depositsStore up the program for using or being used in combination with instruction execution system, device or equipment for instruction execution system, device or equipment.Machine readable media can be machine-readable signal medium or machine-readable storage medium.Machine readable media may include but notIt is being limited to electronics, magnetic, optical, electromagnetism, infrared or semiconductor system, device or equipment or above contentAny appropriate combination.The more specific example of machine readable storage medium will include the electrical connection of line based on one or more, justTake formula computer disks, hard disk, random access memory (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM(EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage are setStandby or above content any appropriate combination.
The software realization of the processing unit of the online document provided below the embodiment of the present disclosure is illustrated.Fig. 3 is thisThe composed structure schematic diagram of the processing unit for the online document that open embodiment provides, passes through end with the processing unit of online documentFor end is implemented, referring to Fig. 3, the processing unit 30 for the online document that the embodiment of the present disclosure provides includes:
Acquiring unit 31, for the edit operation in response to being directed to online document, obtaining includes the corresponding edit operationDelta data first change collection;
Determination unit 32, for determining the online document locating for the delta data based on the first change collectionFirst document areas;
Processing unit 33, the first digital digest of the data for obtaining first document areas;
Synchronization unit 34, for synchronizing the first change collection, first document areas and first digital digestTo the second client, so that second client is based on first document areas and first digital digest, to describedAfter first change collection verification passes through, collect using first change.
In some embodiments, described device further includes receiving unit and verification unit;
The receiving unit, for receiving the second change collection, the second document areas that second client sends and theTwo digital digests;
The processing unit is also used to obtain the digital digest of the second document areas data of the online document;
The verification unit, for determining the digital digest and second digital digest of the second document areas dataWhen consistent, collect using second change.
In some embodiments, the verification unit is also used to determine the digital digest of the second document areas dataWhen inconsistent with second digital digest, miscue information is presented, the miscue information is for prompting to described theThe verification failure of two change collection.
In some embodiments, the determination unit is also used to the division for carrying out and/or arranging to the online document, obtainsTo multiple document areas;
Determine that document areas belonging to the delta data is first document areas.
In some embodiments, the processing unit is also used to using MD5 Message Digest 5 or hash algorithm, rightThe data of first document areas are calculated, and the first digital digest of the data of first document areas is generated.
In some embodiments, the synchronization unit is also used to send the first change collection, first document areasAnd first digital digest is to server, so that the server is based on first document areas and first number is pluckedIt wants, after passing through to the first change collection verification, sends the first change collection, first document areas and first numberWord is made a summary to second client.
In some embodiments, the edit operation makes the online document be updated to the second edition by first version,The delta data is data needed for being updated to the second edition as the first version.
It may be noted that the restriction of the classification not structure twin installation of said units itself, such as some units can be splitFor two or more subelements, alternatively, some units can be merged into a new unit.
It should also be noted that the title of said units does not constitute the restriction to unit itself under certain conditions, for example, onState the unit that acquiring unit 31 can also be described as " obtaining includes the first change collection for corresponding to the delta data of edit operation ".
For the same reason, the unit of not detailed description and/or module do not represent corresponding unit and/or mould in deviceBlock it is default, operation performed by all devices can be realized by corresponding unit in device and/or module.
Next the processing method of the online document provided the embodiment of the present disclosure is illustrated.Fig. 4 is that the disclosure is implementedThe flow diagram of the processing method for the online document that example provides, referring to fig. 4, the processing side of the online document of the embodiment of the present disclosureMethod includes:
Step 401: the first client receives the edit operation for online document.
In some embodiments, online document is shown by client, and in practical applications, client can be social visitorFamily end, such as IM client, client is integrated with the function of online document, and the clicking operation based on user, client passes through browsingThe interface that device provides calls the page of browser kernel load online document, and the Page user based on load can carry out online documentCreation and editor, certainly, user can pass through the client realize online document sharing;In further embodiments, clientBrowser kernel is integrated in end, by calling browser kernel realization to show the page of online document in the client;AnotherIn some embodiments, client is online document client, and the page of online document is realized by operation online document clientLoad;In further embodiments, there are the small routines of corresponding online document function, and client is by downloading and running online textThe source code of shelves small routine realizes the page load of online document.
In actual implementation, the page of online document is presented in the user interface of the first client, user is for onlineThe page of document carries out the edit operation of online document, which includes but is not limited to increasing to online document content, delete,Change, which makes online document be updated to the second edition by first version, that is, the version edited of user is theOne version, the version after the completion of editing are the second edition, and the data each time of online document update a corresponding version.
Step 402: the edit operation in response to being directed to online document, obtaining includes the variation number for corresponding to the edit operationAccording to first change collection.
In practical applications, above-mentioned delta data is number needed for being updated to the second edition as the first version of online documentAccording to.
The variation each time of online document, a corresponding version, and changing the delta data that collection includes is previous versionSheet and the delta data between the adjacent version of the latter, or " poor " that is understood as between two adjacent versions, the institute of online documentIt is to collect generation and application because ceaselessly having altered can ceaselessly change, in practical applications, user modifies online document instituteThe content of generation can be referred to as a change collection.
Step 403: based on the first change collection, determining the first document areas of online document locating for delta data.
Here, in some embodiments, for the determination in the region of online document locating for delta data, can first determine thatThe type of on-line documentation further determines that the first document areas of online document locating for delta data according to the type of online document.
Illustratively, the type of online document is online Excel document, i.e. the online document of spreadsheet style can be trueDetermining cell locating for delta data is the first document areas locating for delta data.Fig. 5 is provided really for the embodiment of the present disclosureThe schematic diagram of the first document areas locating for delta data is determined, as shown in figure 5, the delta data that the first change collection includes is 111, reallyDetermine the A1 cell that the first document areas locating for delta data is online Excel document.
Illustratively, the type of online document is online Word document, can be determined as follows locating for delta dataFirst document areas of online document: the corresponding character string of content of entire online Word document is obtained, determines delta data pairThe location of character string answered is the first document areas locating for delta data.
In some embodiments, for the determination in the region of online document locating for delta data, it can not also consider online textThe type of shelves, the first document areas as being determined as follows online document locating for delta data:
The division for carrying out and/or arranging to online document, obtains multiple document areas;Determine document area belonging to delta dataDomain is the first document areas.
Illustratively, online document (equidistant or unequal spacing) is divided into multiple rows, obtains multiple row regions, reallyDetermining row region locating for delta data is the first document areas;It should be noted that delta data may occupy multiple row regions.The schematic diagram of first document areas locating for the determination delta data that Fig. 6 provides for the embodiment of the present disclosure, as shown in fig. 6, according to pre-If line space by user when the page of document of pre-editing is divided into 5 rows, delta data is in the corresponding row region of the 3rd row and isFirst document areas.
Illustratively, online document is divided into N row M column (M and N is the positive integer not less than 2, specifically can be according to realityBorder is set), multiple cell regions are obtained, determine that cell region locating for delta data is the first document areaDomain.The schematic diagram of first document areas locating for the determination delta data that Fig. 7 provides for the embodiment of the present disclosure, as shown in fig. 7, usingRijThe cell region for indicating the i-th row jth column of online document, determines the corresponding cell region of delta data, such as R22、R23、R24For the first document areas.
Step 404: obtaining the first digital digest of the data of first document areas.
In actual implementation, the first digital digest of the data of the first document areas can be obtained in the following way:
Using MD5 Message Digest 5 or hash algorithm, the data of the first document areas are calculated, generate firstFirst digital digest of the data of document areas;In this way, have by digital digest uniqueness the characteristics of, by calculating theFirst digital digest of the data of one document areas can uniquely characterize the data of the first document areas, guarantee the true of dataReality.Certainly, in practical applications, other any algorithms for calculating digital digest also can be used, the embodiment of the present disclosure does not limitIt is fixed.
Step 405: synchronous first change collection, the first document areas and the first digital digest to the second client, so that theTwo clients are based on the first document areas and the first digital digest, after passing through to the first change collection verification, collect using the first change.
Here, the second client is illustrated.In actual implementation, operating right is possessed to online document and (is hadTo the increasing of online document, the permission deleted, look into, changed) user may have it is multiple, it is a if any P (P is not less than 2 positive integer), theTwo clients are client corresponding to other users in P user in addition to the corresponding user of the first client, that is,The quantity of second client can have one or more.
In some embodiments, the first client can synchronize in the following way first change collection, the first document areas andFirst digital digest to the second client:
First client sends the first change collection, the first document areas and the first digital digest to server, and server willFirst change collection, the first document areas and the first digital digest are sent to the second client.
In some embodiments, the first client can synchronize in the following way first change collection, the first document areas andFirst digital digest to the second client:
First client sends the first change collection, the first document areas and the first digital digest to server, so that serviceDevice is based on the first document areas and the first digital digest, after passing through to the first change collection verification, sends the first change collection, the first textShelves region and the first digital digest to the second client;In actual implementation, what the first client was sent to server can be withThere are mark, the version number etc. of online document, correspondingly, server is sent to the mark that there can also be online document of the second clientKnow, version number.
In actual implementation, the second client and server are based on the first document areas and the first digital digest, to firstIdentical mode can be used in the verification of change collection, specifically, under type such as can be used and realize the verification to the first change collection:
The digital digest for calculating the data of the first document areas of online document, by the digital digest being calculated and receptionTo the first digital digest matched, work as successful match, that is, when the digital digest being calculated is identical as the first digital digest,Determine that the verification to the first change collection passes through, it can be using the first change collection;If it fails to match, that is, the digital digest that is calculated withWhen first digital digest is not identical, determine that the verification to the first change collection fails.
In actual implementation, when server and the second client determine that the verification to the first change collection passes through, using theOne change collection, the corresponding version number for modifying online document.
In practical applications, there are following situations, the version and use of the online document that user is modified by the first clientFamily is identical by the version for the online document that third client is modified, and server first receives the first change of the first client transmissionCollection, the first document areas and the first digital digest, after receive the third change collection of third client transmission, third document areas andThird digital digest, server by the first change collection, the first document areas and the first digital digest be sent to the second client andAfter third client, third change collection is adjusted, change adjusted collection is sent to the second client and the first clientEnd.
Here, the adjustment of third change collection is illustrated, in actual implementation, due to what is modified by the first clientThe version of online document is identical as the version of online document modified by third client, after the first change collection is by application,The version of online document changes, and needs third changing collection and is adjusted to based on the version after changing, for example, passing through theThe version of the version and the online document modified by third client of the online document of one client modification is first version,Version after integrating using the first change is needed third changing collection and be revised as based on the second edition as the second edition, for another example theTo the first row data for being revised as deleting document of first version, third client is revised as deleting one client to first versionExcept the second row data of document, after the first change collection, the second row data of first version become the first row of the second editionData then need to adjust third change collection based on the second edition as the first row data of deletion document.
In some embodiments, when the second client determines that the verification to the first change collection fails, illustrate same in documentWalk the verification mistake that (collaboration) is out of joint in the process, and miscue information is presented in the second client, with prompt to the first change collectionIt loses, retains the version of the current online document of the second client, not using the first change collection.
In some embodiments, when user carries out the editor of online document by the second client, correspondingly, the second visitorEdit operation based on user is obtained corresponding second change collection, the second document areas and the second digital digest by family end, and is led toIt crosses server and the second change collection, the second document areas and the second digital digest is sent to the first client, correspondingly, the first visitorFamily end calculates the digital digest of the second document areas data, by the digital digest for the second document areas data being calculated and theTwo digital digests carry out consistency matching, when determining that the digital digest of the second document areas data is consistent with the second digital digest,Using the second change collection;When determining the digital digest and inconsistent the second digital digest of the second document areas data, mistake is presentedPrompt information, to prompt the verification to the second change collection to fail.
Using disclosure above-described embodiment, the first change collection of the first client synchronization to the second client includes corresponding instituteThe delta data of edit operation is stated, rather than the entirely content of online document, in this way, improving the content synchronization effect of online documentRate;Since the first digital digest is obtained based on the data of the first document areas, the first document areas corresponds to delta data, Ye JiVerification of two clients before application the first change collection is based on the partial content data of online document, rather than entire number of filesAccording in this way, verification rate is improved, simultaneously as the verification of the second client executing is based on the first document areas and the first numberWord abstract, due to the uniqueness of digital digest, substantially increases the accuracy of verification, can effectively find the synchronous different of documentOften.
Next be illustrated so that online document is electrical form as an example, Fig. 8 and Fig. 9 be the embodiment of the present disclosure provideThe flow diagram of the processing method of on-line documentation, in conjunction with the processing side of Fig. 8 and Fig. 9, the embodiment of the present disclosure online document providedMethod includes:
Step 501: the first client receives the edit operation for electrical form, and the edit operation makes electronic watchLattice are updated to the second edition by first version.
Step 502: it includes the change collection for corresponding to the delta data of edit operation that the first client, which obtains,.
Figure 10 is the schematic diagram of the version updating for the electrical form that the embodiment of the present disclosure provides, as shown in Figure 10, the first editionData in this electrical form are sky, and user will A1 cell input data 111, i.e. delta data be in electrical form111, corresponding change collection are as follows: SET A1=111, namely change are concentrated in addition to including delta data, further include delta data instituteThe document areas or document range at place.
Step 503: the first client is concentrated from change extracts document areas locating for delta data, and the text based on extractionShelves region calculates the digital digest of the area data.
Here, it still by taking Figure 10 as an example, is extracted from SET A1=111 and obtains document areas Range locating for delta dataThe data in A1 are calculated, digital digest is obtained then by hash algorithm for A1;
Digital digest Sign is such as obtained by calculation are as follows: 1181c1834012245d785120e3505ed169.
Step 504: the first client sends the synchronizing information of electrical form to server.
Here, synchronizing information includes: to change document areas and digital digest locating for collection, delta data, in practical applicationIn, synchronizing information may also include mark and the updated version number of electrical form of electrical form.
Step 505: the synchronizing information of electrical form is sent to the second client by server.
Illustratively, possess the operating right (power for having the increasing to electrical form, deleting, look into, changing to electrical formLimit) user be the user group for including a user of P (P be not less than 2 positive integer), the second client is that first is removed in user groupThe corresponding corresponding client of the other users in open air of client, i.e. the quantity of the second client can be one or more.
In practical applications, server can also collect change based on the document areas and digital digest locating for delta dataIt is verified, skips the operation of verification alternatively, server directly applies the change collection using the change collection after verification passes through.
Step 506: the second client calculates the corresponding digital digest of document areas locating for delta data.
In actual implementation, the second client can carry out Hash calculation to the data in document areas locating for delta data,Obtain corresponding digital digest.
Step 507: the second client carries out the digital digest in the digital digest and synchronizing information that are calculated consistentProperty matching, when determining successful match, execute step 508;When determining that it fails to match, step 509 is executed.
Step 508: the second client, which changes spreadsheet application, to be collected.
In practical applications, after the second client application change collection, the also recordable updated version number of electrical form.
Step 509: miscue information is presented.
Here, in practical applications, miscue information is used to prompt the verification failure to change collection, i.e., in electrical formData collaborative/synchronization during there is a problem, make user timely find data collaborative by miscue informationThe middle problem.
Next it is illustrated so that online document is online Word document (i.e. online text document) as an example, Figure 11 and Figure 12The flow diagram of the processing method of the online text document provided for the embodiment of the present disclosure, in conjunction with Figure 11 and Figure 12, the disclosureThe processing method of online document that embodiment provides includes:
Step 601: the first client receives the edit operation for online text document.
Here, the edit operation makes online text document be updated to the second edition by first version.
Step 602: it includes the change collection for corresponding to the delta data of edit operation that the first client, which obtains,.
Step 603: being concentrated from change and extract document areas locating for delta data, and the document areas based on extraction calculatesThe digital digest of the area data.
In actual implementation, under type such as can be used and determine the document areas of online text document locating for delta data:
Online text document is divided into multiple rows at equal intervals, multiple row regions is obtained, determines locating for delta dataRow region is the document areas of online text document locating for delta data.
In actual implementation, the first client counts the data in document areas by MD5 Message Digest 5It calculates, obtains corresponding digital digest.
Step 604: the first client sends the synchronizing information of online text document to server, includes becoming in synchronizing informationDocument areas and digital digest locating for more collection, delta data.
In practical applications, synchronizing information may also include online text document mark and online text document it is updatedVersion number.
Step 605: server calculates the corresponding digital digest of document areas locating for delta data.
In actual implementation, server can be used MD5 Message Digest 5 or hash algorithm to the data of document areas intoRow processing, obtains corresponding digital digest.
Step 606: the digital digest in the digital digest and synchronizing information that are calculated will be carried out consistency by serverMatching when determining successful match, collects, and execute step 607 using change;When determining that it fails to match, step 612 is executed.
Step 607: server sends synchronizing information to the second client.
Step 608: the second client calculates the corresponding digital digest of document areas locating for delta data.
Step 609: the second client carries out the digital digest in the digital digest and synchronizing information that are calculated consistentProperty matching, when determining successful match, execute step 610;When determining that it fails to match, step 611 is executed.
Step 610: the second client is to online text document application change collection.
In practical applications, after the second client application change collection, it also can record the updated version of online text documentNumber.
Step 611: miscue information is presented in the second client.
Here, in practical applications, miscue information is used to prompt the verification failure to change collection, i.e., to online textIt there is a problem during data collaborative/synchronization of document.
Step 612: server sends miscue information to managing user terminal.
In practical applications, server sends miscue information to managing user terminal, so that management user is timelyLearn that online text document is out of joint in data synchronization process, to solve a problem promptly.
According to one or more other embodiments of the present disclosure, a kind of processing method of online document is provided, the method is answeredFor the first client, which comprises
In response to being directed to the edit operation of online document, first of the delta data including the corresponding edit operation is obtainedChange collection;
Based on the first change collection, the first document areas of the online document locating for the delta data is determined;
Obtain the first digital digest of the data of first document areas;
The first change collection, first document areas and first digital digest to the second client are synchronized, withSecond client is set to be based on first document areas and first digital digest, it is logical to the first change collection verificationLater, collect using first change.
According to one or more other embodiments of the present disclosure, the processing method of above-mentioned online document is provided, the method is alsoInclude:
Receive the second change collection, the second document areas and the second digital digest that second client is sent;
Obtain the digital digest of the second document areas data of the online document;
When determining that the digital digest of the second document areas data is consistent with second digital digest, using describedTwo change collection.
According to one or more other embodiments of the present disclosure, the processing method of above-mentioned online document is provided, the method is alsoInclude:
When determining the digital digest and inconsistent second digital digest of the second document areas data, mistake is presentedPrompt information, the miscue information are used to prompt the verification failure to the second change collection.
According to one or more other embodiments of the present disclosure, the processing method of above-mentioned online document, the determining institute are providedState the first document areas of the online document locating for delta data, comprising:
The division for carrying out and/or arranging to the online document, obtains multiple document areas;
Determine that document areas belonging to the delta data is first document areas.
According to one or more other embodiments of the present disclosure, the processing method of above-mentioned online document, the acquisition institute are providedState the first digital digest of the data of the first document areas, comprising:
Using MD5 Message Digest 5 or hash algorithm, the data of first document areas are calculated, are generatedFirst digital digest of the data of first document areas.
According to one or more other embodiments of the present disclosure, the processing method of above-mentioned online document, the synchronous institute are providedThe first change collection, first document areas and first digital digest are stated to the second client, comprising:
The first change collection, first document areas and first digital digest are sent to server, so that instituteIt states server and is based on first document areas and first digital digest, after passing through to the first change collection verification, hairSend the first change collection, first document areas and first digital digest to second client.
According to one or more other embodiments of the present disclosure, the processing method of above-mentioned online document, the editor behaviour are providedMake so that the online document is updated to the second edition by first version, the delta data is to be updated to by the first versionData needed for the second edition.
According to one or more other embodiments of the present disclosure, a kind of processing unit of online document is provided, described device is setIt is equipped with the first client, described device includes:
Acquiring unit, for the edit operation in response to being directed to online document, obtaining includes the corresponding edit operationFirst change collection of delta data;
Determination unit, for determining the of the online document locating for the delta data based on the first change collectionOne document areas;
Processing unit, the first digital digest of the data for obtaining first document areas;
Synchronization unit, for synchronizing the first change collection, first document areas and first digital digest extremelySecond client, so that second client is based on first document areas and first digital digest, to described theAfter one change collection verification passes through, collect using first change.
According to one or more other embodiments of the present disclosure, a kind of processing unit of online document is provided, described device is alsoIncluding receiving unit and verification unit;
The receiving unit, for receiving the second change collection, the second document areas that second client sends and theTwo digital digests;
The processing unit is also used to obtain the digital digest of the second document areas data of the online document;
The verification unit, for determining the digital digest and second digital digest of the second document areas dataWhen consistent, collect using second change.
According to one or more other embodiments of the present disclosure, a kind of processing unit of online document is provided, the verification is singleMember when being also used to determine that the digital digest of the second document areas data and second digital digest are inconsistent, is presented wrongAccidentally prompt information, the miscue information are used to prompt the verification failure to the second change collection.
According to one or more other embodiments of the present disclosure, a kind of processing unit of online document is provided, it is described determining singleMember is also used to the division for carrying out and/or arranging to the online document, obtains multiple document areas;
Determine that document areas belonging to the delta data is first document areas.
According to one or more other embodiments of the present disclosure, a kind of processing unit of online document is provided, the processing is singleMember is also used to calculate the data of first document areas using MD5 Message Digest 5 or hash algorithm, rawAt the first digital digest of the data of first document areas.
According to one or more other embodiments of the present disclosure, a kind of processing unit of online document is provided, it is described to synchronize listMember is also used to send the first change collection, first document areas and first digital digest to server, so that instituteIt states server and is based on first document areas and first digital digest, after passing through to the first change collection verification, hairSend the first change collection, first document areas and first digital digest to second client.
According to one or more other embodiments of the present disclosure, a kind of processing unit of online document, the editor behaviour are providedMake so that the online document is updated to the second edition by first version, the delta data is to be updated to by the first versionData needed for the second edition.
According to one or more other embodiments of the present disclosure, a kind of terminal is provided, the terminal includes:
Memory, for storing executable instruction;
Processor when for executing the executable instruction stored in the memory, realizes what the embodiment of the present disclosure providedThe processing method of online document.
According to one or more other embodiments of the present disclosure, a kind of storage medium is provided, is stored with executable instruction, it is describedExecutable instruction is performed, for realizing the processing method for the online document that the embodiment of the present disclosure provides.
Above description is only embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art answerWork as understanding, the open scope involved in the disclosure, however it is not limited to technical solution made of the specific combination of above-mentioned technical characteristic,It should also cover in the case where not departing from design disclosed above simultaneously, carry out any group by above-mentioned technical characteristic or its equivalent featureThe other technical solutions closed and formed.Such as the skill of (but being not limited to) with similar functions disclosed in features described above and the disclosureArt feature is replaced mutually and the technical solution that is formed.
Although this is not construed as requiring these operations with institute in addition, depicting each operation using certain orderThe certain order that shows executes in sequential order to execute.Under certain environment, multitask and parallel processing may be advantageous's.Similarly, although containing several specific implementation details in being discussed above, these are not construed as to this public affairsThe limitation for the range opened.Certain features described in the context of individual embodiment can also be realized in combination single realIt applies in example.On the contrary, the various features described in the context of single embodiment can also be individually or with any suitableThe mode of sub-portfolio is realized in various embodiments.
Although having used specific to this theme of the language description of structure feature and/or method logical action, answerWhen understanding that theme defined in the appended claims is not necessarily limited to special characteristic described above or movement.On on the contrary,Special characteristic described in face and movement are only to realize the exemplary forms of claims.

Claims (16)

CN201910749991.6A2019-08-142019-08-14Processing method, device, terminal and the storage medium of online documentPendingCN110502488A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910749991.6ACN110502488A (en)2019-08-142019-08-14Processing method, device, terminal and the storage medium of online document

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910749991.6ACN110502488A (en)2019-08-142019-08-14Processing method, device, terminal and the storage medium of online document

Publications (1)

Publication NumberPublication Date
CN110502488Atrue CN110502488A (en)2019-11-26

Family

ID=68587495

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910749991.6APendingCN110502488A (en)2019-08-142019-08-14Processing method, device, terminal and the storage medium of online document

Country Status (1)

CountryLink
CN (1)CN110502488A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112257391A (en)*2020-10-262021-01-22苏宁云计算有限公司 Online document submission method, apparatus, computer equipment and storage medium
CN112307727A (en)*2020-11-122021-02-02上海晏鼠计算机技术股份有限公司Online document editing method
CN113157193A (en)*2020-01-222021-07-23腾讯科技(深圳)有限公司Online document change reminding method and device
CN113360457A (en)*2021-06-032021-09-07广联达科技股份有限公司File online collaborative editing method and editing device
CN114281780A (en)*2021-12-032022-04-05北京达佳互联信息技术有限公司Online document processing method, device and system, electronic equipment and storage medium
CN115079872A (en)*2021-03-012022-09-20北京字跳网络技术有限公司Document processing method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102262620A (en)*2011-08-042011-11-30无锡永中软件有限公司Document cooperation method
US20130218845A1 (en)*2009-05-262013-08-22Adobe Systems IncorporatedWeb-based collaboration for editing electronic documents
CN104346273A (en)*2013-07-292015-02-11国际商业机器公司Method and system used for debugging
CN106202021A (en)*2010-11-022016-12-07谷歌公司By multiple users real-time synchronization documents editing to blog
CN107656988A (en)*2017-09-122018-02-02北京北信源软件股份有限公司Document edit method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20130218845A1 (en)*2009-05-262013-08-22Adobe Systems IncorporatedWeb-based collaboration for editing electronic documents
CN106202021A (en)*2010-11-022016-12-07谷歌公司By multiple users real-time synchronization documents editing to blog
CN102262620A (en)*2011-08-042011-11-30无锡永中软件有限公司Document cooperation method
CN104346273A (en)*2013-07-292015-02-11国际商业机器公司Method and system used for debugging
CN107656988A (en)*2017-09-122018-02-02北京北信源软件股份有限公司Document edit method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷敏: "《网络空间安全导论》", 31 August 2018, 北京邮电大学出版社*

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113157193A (en)*2020-01-222021-07-23腾讯科技(深圳)有限公司Online document change reminding method and device
CN113157193B (en)*2020-01-222024-11-12腾讯科技(深圳)有限公司 Online document change reminder method and device
CN112257391A (en)*2020-10-262021-01-22苏宁云计算有限公司 Online document submission method, apparatus, computer equipment and storage medium
CN112307727A (en)*2020-11-122021-02-02上海晏鼠计算机技术股份有限公司Online document editing method
CN115079872A (en)*2021-03-012022-09-20北京字跳网络技术有限公司Document processing method, device, equipment and medium
CN115079872B (en)*2021-03-012023-09-19北京字跳网络技术有限公司Document processing method, device, equipment and medium
CN113360457A (en)*2021-06-032021-09-07广联达科技股份有限公司File online collaborative editing method and editing device
CN114281780A (en)*2021-12-032022-04-05北京达佳互联信息技术有限公司Online document processing method, device and system, electronic equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN110502488A (en)Processing method, device, terminal and the storage medium of online document
Kleppmann et al.Local-first software: you own your data, in spite of the cloud
US12086151B2 (en)Shared folder backed integrated workspaces
US11989694B2 (en)Managing projects in a content management system
US20220318756A1 (en)Managing tasks in a content management system
Nath et al.What comes after Web 3.0? Web 4.0 and the Future
CN109074537A (en)The lazy of template generates
EP3552376B1 (en)Card-based information management method and system
CN109471695A (en)Method and apparatus for more new data
JurneyAgile data science: building data analytics applications with Hadoop
CN108874828A (en)The method and apparatus of Data Migration
CN110083421A (en)Notification method, device, terminal, server and the storage medium of online document
CN109447635A (en)Information storage means and device for block chain
CN110795135B (en) A method and device for implementing annotation configuration
CN114556317A (en)Document tracking through version hash link graphs
CN110019363A (en)A kind of method and apparatus verifying data
Jannes et al.OWebSync: Seamless synchronization of distributed web clients
CN110399459A (en)Searching method, device, terminal, server and the storage medium of online document
CN110297995A (en)Method and apparatus for Information on Collection
CN109710634A (en) Method and apparatus for generating information
US10394761B1 (en)Systems and methods for analyzing and storing network relationships
CN109614603A (en) Method and apparatus for generating information
CN109086438A (en)Method and apparatus for query information
CN114399259A (en) Employee data processing method and device
DethoDeveloping a system for securely time-stamping and visualizing the changes made to online news content

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp