CN102999480B - The method and system of Edit Document - Google Patents

The method and system of Edit Document Download PDF

Info

Publication number
CN102999480B
CN102999480B CN201210448651.8A CN201210448651A CN102999480B CN 102999480 B CN102999480 B CN 102999480B CN 201210448651 A CN201210448651 A CN 201210448651A CN 102999480 B CN102999480 B CN 102999480B
Authority
CN
China
Prior art keywords
document
subtemplate
template
edited
binary stream
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.)
Active
Application number
CN201210448651.8A
Other languages
Chinese (zh)
Other versions
CN102999480A (en
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.)
CETC 15 Research Institute
Original Assignee
CETC 15 Research Institute
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 CETC 15 Research Institute filed Critical CETC 15 Research Institute
Priority to CN201210448651.8A priority Critical patent/CN102999480B/en
Publication of CN102999480A publication Critical patent/CN102999480A/en
Application granted granted Critical
Publication of CN102999480B publication Critical patent/CN102999480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method and system of Edit Document.In the present invention, according to fractionation number N and document identification, load the template of the to be edited document corresponding with document identification; Described N be greater than 1 integer; According to the very first time of presetting, periodically will input to the information in units of section of the i-th subtemplate, and generate binary stream by the coded system of HTML and keep in units of section; I-th subtemplate is any one subtemplate in the N number of subtemplate generated after utilizing fractionation number N to split the template of document to be edited; According to second time of presetting, periodically the binary stream of keeping in units of section of N number of subtemplate is integrated; Binary stream after integrating is imported the template of document to be edited and output display.Adopt method and system of the present invention, can not only increase work efficiency, and can system resource be saved.

Description

The method and system of Edit Document
Technical field
The present invention relates to field of computer technology, particularly a kind of method of Edit Document and the system of Edit Document.
Background technology
Along with the development of computer technology and networking, synergetic office work is trend of the times, and the efficiency improving routine office work formatted document is extremely urgent.
It is most basic function in routine office work that manuscript is drawn up, but, current documents editing just to complete or many people to divide the work after editor unified integration again and complete by people is individually-edited, such as: adopt and word control is embedded in the multiple document of multiple operation pages ineditings, multiple word file is carried out merging and integrates by last craft, realizes the editor of document.
Above-mentioned existing document edit method not only work efficiency is low, and easily there is the waste problem of resource for computer system, has obviously been not suitable with the requirement of efficient work in active computer office.
Summary of the invention
The invention provides a kind of method and system of Edit Document, be achieved in order to the project that makes or application.
According to an aspect of the present invention, provide a kind of method of Edit Document, the method can be increased work efficiency, and saves system resource.The method comprises:
According to fractionation number N and document identification, load the template of the to be edited document corresponding with document identification; Described N be greater than 1 integer;
According to the very first time of presetting, periodically will input to the information in units of section of the i-th subtemplate, and generate binary stream by the coded system of HTML and keep in units of section; Described i-th subtemplate is any one subtemplate in the N number of subtemplate generated after utilizing fractionation number N to split the template of document to be edited;
According to second time of presetting, periodically the binary stream of keeping in units of section of N number of subtemplate is integrated;
Binary stream after integrating is imported the template of document to be edited and output display.
Wherein, also comprise after the template of the document to be edited that described loading is corresponding with document identification:
According to the identity information of input, the user of editor i-th subtemplate is verified, if by checking, then export the i-th subtemplate.
Wherein, the template of the document to be edited that described loading is corresponding with document identification comprises:
According to document identification, judge whether the template of preserving the to be edited document corresponding with it, if so, then import the template of document to be edited, otherwise, generate the template of the to be edited document corresponding with document identification and import;
According to fractionation number N, judge whether the template of the document to be edited imported has been split into N number of subtemplate, if so, then load the template being split into the document to be edited of N number of subtemplate, otherwise, the template of the document to be edited imported is split and loaded.
Wherein, the template that described loading is split into the document to be edited of N number of subtemplate comprises:
Arbitrary subtemplate in the N number of subtemplate template of document to be edited comprised exports one in order to edit in the client of this subtemplate.
Wherein, describedly will input to the information in units of section of the i-th subtemplate, and generate binary stream by the coded system of HTML and in units of section, carry out temporary comprising:
Receive the information in units of section inputed in the i-th subtemplate; Described information at least comprises word and pattern;
Utilize the coded system of HTML, the information in units of section in the i-th subtemplate is encoded, generate the binary stream of a section that the i-th subtemplate comprises;
Utilize paragraph ID, the binary stream of a section comprised by the i-th subtemplate writes in the scale-of-two array of corresponding paragraph ID.
Wherein, the described binary stream of keeping in units of section to N number of subtemplate carries out integration and comprises:
Read binary stream temporary in the scale-of-two array corresponding with the paragraph that N number of subtemplate comprises;
Paragraph ID is utilized to carry out paragraph sequence to binary stream temporary in scale-of-two array;
Using the binary stream of acquisition after paragraph sequence as the binary stream after integration.
Wherein, describedly binary stream after integrating is imported the template of document to be edited and output display comprises:
Binary stream after integration is imported in the corresponding paragraph in the template of document to be edited according to paragraph order;
By importing the template of the document to be edited of the binary stream after integrating, export to edit in N number of client of subtemplate;
A subtemplate in the N number of subtemplate of any one client-side editing described.
Wherein, the method also comprises:
According to the 3rd time of presetting, periodically binary stream temporary in the scale-of-two array of corresponding paragraph ID is preserved according to paragraph ID.
Further, the method also comprises:
According to the to be derived identification information completing the document of editor received, the binary data stream that with html format exist corresponding with the document of reading and saving, generate the document of preset format after carrying out format conversion, and export the document of preset format with the form of byte stream.
According to an aspect of the present invention, provide a kind of system of Edit Document, this system can be increased work efficiency, and saves system resource.This system comprises: service end and N number of client; Described N be greater than 1 integer;
The template of the to be edited document corresponding with document identification, according to the fractionation number N of input and document identification, is loaded in described N number of client by described service end; Described service end, according to second time of presetting, is periodically integrated the binary stream of keeping in units of section of N number of subtemplate, the binary stream after integration is imported the template of document to be edited, and exports N number of client to;
Any client, according to the very first time of presetting, periodically will input to the information in units of section of the i-th subtemplate that it loads, generates binary stream and keep in units of section by the coded system of HTML; Described i-th subtemplate is any one subtemplate in the N number of subtemplate generated after utilizing fractionation number N to split the template of document to be edited;
Any client shows the template of the document to be edited of the binary stream after the importing integration received in real time.
Wherein, described service end is connected by LAN (Local Area Network) or internet with described N number of client.
Wherein, described any client also according to the identity information of input, is verified the user of editor i-th subtemplate, if by checking, then export the i-th subtemplate received.
Wherein, described service end comprises:
Database, in order to preserve the template of document;
Template dispatch module, according to the document identification received, judges the template of whether preserving the to be edited document corresponding with it in database, if so, then imports the template of document to be edited, otherwise triggers template generation module;
Described template dispatch module is according to the fractionation number N received, judge whether the template of the document to be edited imported has been split into N number of subtemplate, if it is template load-on module is triggered, otherwise, utilize the template of fractionation number N to the document to be edited imported split and trigger template load-on module;
Template generation module, according to triggering, the document identification of input and the Template Information of input, generates the template of the to be edited document corresponding with document identification, exports the template of the document to be edited generated to template dispatch module;
Template load-on module, according to triggering, the information of N number of subtemplate and the client corresponding with N number of subtemplate, the arbitrary subtemplate in the N number of subtemplate template of document to be edited comprised exports in the client corresponding with it;
Data Integration module, according to second time of presetting, periodically integrates the binary stream in units of section of the N number of subtemplate be temporary in N number of client, exports the binary stream after integrating to data importing module;
Data importing module, imports the binary stream after integration according to paragraph order in the corresponding paragraph in the template of document to be edited, the template of the document to be edited importing the binary stream after integrating is exported in N number of client.
Wherein, described any client comprises:
Control module, exports the template of the i-th subtemplate received and the document to be edited importing the binary stream after integrating, exports the information in units of section inputed in its i-th subtemplate loaded to coding module; Described information at least comprises word and pattern;
The binary stream of paragraph, according to the very first time of presetting, is temporary in the scale-of-two array of corresponding paragraph ID in internal memory by described control module;
Coding module, utilizes the coded system of HTML, encodes to the information in units of section received, and generates the binary stream of paragraph, exports control module to.
Wherein, described any client comprises:
Authentication module, according to the identity information of input, verifies the user of editor i-th subtemplate, if by checking, then and trigger control module work;
Control module, according to triggering, exports the template of the i-th subtemplate received and the document to be edited importing the binary stream after integrating, exports the information in units of section inputed in its i-th subtemplate loaded to coding module; Described information at least comprises word and pattern;
The binary stream of paragraph, according to the very first time of presetting, is temporary in the scale-of-two array of corresponding paragraph ID in internal memory by described control module;
Coding module, utilizes the coded system of HTML, encodes to the information in units of section received, and generates the binary stream of paragraph, exports control module to.
Wherein, described service end and described client can be installed on an equipment.
Wherein, binary stream temporary in the scale-of-two array of corresponding paragraph ID, also according to the 3rd time of presetting, is periodically preserved according to paragraph ID by described service end.
Wherein, described service end is also according to the to be derived identification information completing the document of editor received, the binary data stream that with html format exist corresponding with the document of reading and saving, generate the document of preset format after carrying out format conversion, and export the document of preset format to sending the to be derived client completing the identification information of the document of editor with the form of byte stream.
As seen from the above technical solutions, in the method and system of the Edit Document provided of the present invention, utilize and split number N and document identification, each client loads and splits by the template of document to be edited the subtemplate obtained; According to the very first time of presetting, periodically to the information inputing to subtemplate, generate binary stream by the coded system of HTML and keep in units of section, according to second time of presetting, periodically the binary stream of keeping in units of section of N number of subtemplate is integrated, export the template of the document to be edited importing the binary stream after integrating in real time, to check editor's situation of whole document when editing N number of subtemplate respectively simultaneously.Adopt method and system of the present invention, split by the template of document to be edited the subtemplate obtained owing to can load in each client, thus can many people carry out collaborative carrying out establishment document, can not only increase work efficiency, and can system resource be saved.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of Edit Document of the present invention;
Fig. 2 is the structural representation of the system embodiment one of Edit Document of the present invention;
Fig. 3 is the structural representation of the system embodiment two of Edit Document of the present invention.
Embodiment
Because prior art inediting document still adopts a people to edit, or the method that many people sequence edit is integrated by a people again, work efficiency is low, and waste system resource, the invention provides a kind of method and system of Edit Document, the content of a subtemplate in the N number of subtemplate be divided into document template by the client of in N number of client is edited and temporary, the information write in the subtemplate that service end is kept in N number of client carries out Data Integration, by in the template of the data importing document to be edited after integration, and export the display of N number of client to, so that the information that can write in the whole document of real time inspection in the process of the arbitrary subtemplate of editor, the information write in other N-1 subtemplate in other words, not only increase work efficiency, and save system resource.
Fig. 1 is the method flow diagram of Edit Document of the present invention.Existing composition graphs 1, is described the method for Edit Document of the present invention, specific as follows:
Step 10: according to fractionation number N and document identification, load the template of the to be edited document corresponding with document identification;
N in this step be greater than 1 integer.
This step comprises: step 101, according to document identification, judges whether the template of preserving the to be edited document corresponding with it, if so, then imports the template of document to be edited and perform step 103, otherwise performs step 102; Step 102, generates the template of the to be edited document corresponding with document identification and imports; Step 103, according to fractionation number N, judges whether the template of the document to be edited imported has been split into N number of subtemplate, if, then load the template being split into the document to be edited of N number of subtemplate, otherwise, the template of the document to be edited imported is split and loaded.
The template generating the to be edited document corresponding with document identification in step 102 comprises: step 1021, selects the digitized template corresponding with it according to document identification; Step 1022, according to fractionation number N, splits digitized template by paragraph and/or user; Step 1023, adds content outline information and/or user profile in subtemplate; Step 1024, preserves the template being split as the document to be edited of N number of subtemplate in the mode of format.Wherein, step 1023 is optional step, can arrange according to the needs of user.
When splitting according to the template of fractionation number N to the document to be edited do not split in step 103, according to the user profile arranged, the template of document to be edited can be split into N number of subtemplate, can be averaged and split or carry out non-homogeneous fractionation, also can add the outline information relevant with user and/or user profile in the N number of subtemplate after fractionation.
The template that the loading mentioned in step 103 is split into the document to be edited of N number of subtemplate comprises: the arbitrary subtemplate in the N number of subtemplate template of document to be edited comprised exports one in order to edit in the client of this subtemplate.
Step 11: according to the very first time of presetting, the periodically temporary information in units of section inputing to the i-th subtemplate;
The numerical value of the very first time of presetting in this step can be arranged according to the load of system, is no longer illustrated concrete numerical value at this.
This step comprises: step 111, receives the information in units of section inputed in the i-th subtemplate; Step 112, utilizes the coded system of HTML, encodes to the information in units of section in the i-th subtemplate, generates the binary stream of a section that the i-th subtemplate comprises; Step 113, according to the very first time of presetting, utilize paragraph ID, the binary stream of a section periodically comprised by the i-th subtemplate writes in the scale-of-two array of corresponding paragraph ID.
The information in units of section in step 111 at least comprises word and pattern; The i-th subtemplate in step 112 is any one subtemplate in the N number of subtemplate generated after utilizing fractionation number N to split the template of document to be edited; I is the integer being more than or equal to 1 and being less than or equal to N; The paragraph ID mentioned in step 113 represents the position in all paragraphs that the paragraph that comprises in each subtemplate comprises in the template of whole document to be edited, therefore can determine a paragraph in the template of document to be edited uniquely according to the ID of each paragraph.
The operation write in step 113 in scale-of-two array is temporary in the scale-of-two array of corresponding paragraph ID in internal memory by binary stream.
Only be described by the periodically information in units of section of preserving in the i-th subtemplate in this step, in N number of subtemplate the acquisition of information of other subtemplates and data save method identical with the content recorded in step 11, do not repeat them here.
Step 12: according to second time of presetting, periodically integrate the information of carrying out keeping in units of section of N number of subtemplate;
The numerical value of second time of presetting in this step can be arranged according to the load of system, is no longer illustrated concrete numerical value at this.
This step comprises: step 121, according to second time of presetting, periodically reads binary stream temporary in the scale-of-two array corresponding with the paragraph that N number of subtemplate comprises; Step 122, utilizes paragraph ID to carry out paragraph sequence to binary stream temporary in scale-of-two array; Step 123, using the binary stream of acquisition after paragraph sequence as the binary stream after integration.
Step 13: the binary stream after integrating is imported the template of document to be edited and output display.
This step comprises: step 131, is imported by the binary stream after integration in the corresponding paragraph in the template of document to be edited according to paragraph order; Step 132, by importing the template of the document to be edited of the binary stream after integrating, exports to edit in N number of client of subtemplate.
The template in step 131, the binary stream after integration being imported document to be edited comprises: according to paragraph ID, the binary stream corresponding with paragraph ID is imported position corresponding with paragraph ID in the template of document to be edited.
A subtemplate in the N number of subtemplate of any one client-side editing in N number of client that step 132 is mentioned.
Preferably, in order to improve the security of edit file, also comprise between step 10 and step 11: according to the identity information of input, the user of editor i-th subtemplate is verified; Particularly, the identity information of user corresponding with the i-th subtemplate for the identity information of input is compared, if comparison is consistent, then be verified, output display i-th subtemplate, and perform subsequent step, otherwise, end operation, or export the information representing authentication failure further.
Preferably, in order to realize resource sharing, also comprising after step 13: according to the 3rd time of presetting, periodically the binary stream of keeping in the scale-of-two array of the corresponding paragraph ID in temporary ground being preserved according to paragraph ID.Particularly, the binary stream that can will preserve in the scale-of-two array of the corresponding paragraph ID be temporarily stored in internal memory, is periodically stored in database according to paragraph ID, so that subsequent query or derivation operation.
Preferably, in order to the derivation of Edit Document can be provided, also comprise after above-mentioned preservation binary stream: according to the derivation instruction received, utilize the to be derived identification information completing the document of editor, the binary data stream that with html format exist corresponding with the document of reading and saving, generate the document of preset format after carrying out format conversion, and export the document of preset format with the form of byte stream.Particularly, when carrying out format conversion, removing the html tag that binary stream carries, adopting JACOB (Java-com-Bridge) and calling COM storehouse by JNI, stream compression is changed to WORD document, and exports WORD document with the form of byte stream.
In said method embodiment, when editing a subtemplate, the information can edited in other subtemplates in N number of subtemplate of having edited of real time inspection; In another embodiment of the method, optionally check the information of having edited in other subtemplates in N number of subtemplate, namely comprise further between step 11 and step 12: judge whether the information of having edited in other subtemplates in the N number of subtemplate of real time inspection, if, then perform step 12, otherwise end operation.
Step 11 in said method embodiment and step 12 can perform simultaneously, or first perform step 12, rear execution 11, embodiment corresponding to any one execution sequence above-mentioned can solve technical matters to be solved by this invention, realize the technique effect of expection, no longer the embodiment of other orders is repeated at this.
The system of Edit Document of the present invention comprises at least one service end and N number of client; N number of client is by LAN (Local Area Network) or Internet connection services end; N be greater than 1 integer.A service end of the present invention can be arranged on an equipment with a client, is such as arranged on same computer.
Fig. 2 is the structural representation of the system embodiment one of Edit Document of the present invention.Existing composition graphs 2, is described the structure of the system of Edit Document of the present invention, specific as follows:
The system of embodiment one comprises: service end 20 and N number of client 21.The structure only connecting a client 21 with a service end 20 in this embodiment is described, and the structure that service end 20 connects multiple client 21 can be determined according to the structure of Fig. 2, does not repeat them here.
The template of the to be edited document corresponding with it, according to the fractionation number N of input and document identification, is loaded in N number of client 21 by service end 20.
Service end 20, according to second time of presetting, is periodically integrated the binary stream of keeping in units of section of N number of subtemplate, the binary stream after integration is imported the template of document to be edited, and exports N number of client 21 to.
Any client 21, according to the very first time of presetting, periodically will input to the information in units of section of the i-th subtemplate that it loads, generates binary stream and keep in units of section by the coded system of HTML.Wherein, the i-th subtemplate is any one subtemplate in the N number of subtemplate generated after utilizing fractionation number N to split the template of document to be edited.
Any client 21 shows the template of the document to be edited of the binary stream after the importing integration received in real time.
Wherein, service end 20 comprises: database 201, template dispatch module 202, template generation module 203, template load-on module 204, Data Integration module 205 and data importing module 206.
Database 201 is in order to preserve the template of document.Wherein, the template of document that database 201 is preserved is the module of having carried out the document to be edited that submodule divides that can directly derive.
Template dispatch module 202, according to the document identification received, judges the template of whether preserving the to be edited document corresponding with it in database 201, if so, then imports the template of document to be edited, otherwise triggers template generation module 203.
Template dispatch module 202 is according to the fractionation number N received, judge whether the template of the document to be edited imported has been split into N number of subtemplate, if it is template load-on module 204 is triggered, otherwise, utilize the template of fractionation number N to the document to be edited imported split and trigger template load-on module 204;
Template generation module 203, according to triggering, the document identification of input and the Template Information of input, generates the template of the to be edited document corresponding with document identification, exports the template of the document to be edited generated to template dispatch module 202.The template write into Databasce 201 of the document to be edited of document identification and generation also can be preserved by template generation module 203.
Template load-on module 204 according to triggering, the information of N number of subtemplate and the client 21 corresponding with N number of subtemplate, the arbitrary subtemplate in the N number of subtemplate template of document to be edited comprised exports in the client 21 corresponding with it.
Data Integration module 205, according to second time of presetting, is periodically integrated the binary stream in units of section of the N number of subtemplate be temporary in N number of client 21, exports the binary stream after integrating to data importing module 206.
Binary stream after integration imports according to paragraph order in the corresponding paragraph in the template of document to be edited by data importing module 206, the template of the document to be edited importing the binary stream after integrating is exported in N number of client 21.
Wherein, any client 21 comprises: control module 211 and coding module 212.
Control module 211 exports the template of the i-th subtemplate received and the document to be edited importing the binary stream after integrating, and exports the information in units of section inputed in its i-th subtemplate loaded to coding module 212.Wherein, information at least comprises word and pattern.
The binary stream of paragraph, according to the very first time of presetting, is periodically temporary in the scale-of-two array of corresponding paragraph ID in internal memory by control module 211.
Coding module 212 utilizes the coded system of HTML, encodes to the information in units of section received, and generates the binary stream of paragraph, exports control module 211 to.
Preferably, for the ease of resource sharing, binary stream temporary in the scale-of-two array of corresponding paragraph ID, also according to the 3rd time of presetting, is periodically preserved according to paragraph ID by the service end 20 of the present embodiment one.Particularly, the Data Integration module 205 that service end 20 comprises can, according to the 3rd time of presetting, periodically will answer binary stream temporary in the scale-of-two array of paragraph ID to preserve according in paragraph ID write into Databasce 201.
Preferably, for the ease of obtaining the information in completed document, service end 20, also according to the to be derived identification information completing the document of editor received, utilizes the binary data stream preserved generate the document of preset format and export client 21 to.Particularly, the data importing module 206 that service end 20 comprises is also according to the to be derived identification information completing the document of editor received, the binary data stream that with html format exist corresponding with the document of reading and saving, generate the document of preset format after carrying out format conversion, and export the document of preset format to sending the to be derived client 21 completing the identification information of the document of editor with the form of byte stream; Wherein, preset format can be the document format that WORD form etc. is commonly used.
Fig. 3 is the structural representation of the system embodiment two of Edit Document of the present invention.Existing composition graphs 3, is described the system of Edit Document of the present invention, specific as follows:
The system of embodiment two is compared with the system of embodiment one, and the client in embodiment two adds authentication, namely needs the user using this client to input user profile, improves security.
The system of embodiment two comprises: service end 20 and N number of client 31.The structure only connecting a client 31 with a service end 20 in this embodiment is described, and the structure that service end 20 connects multiple client 31 can be determined according to the structure of Fig. 3, does not repeat them here.
The template of the to be edited document corresponding with document identification, according to the fractionation number N of input and document identification, is loaded in N number of client 31 by service end 20.
Service end 20, according to second time of presetting, is periodically integrated the binary stream of keeping in units of section of N number of subtemplate, the binary stream after integration is imported the template of document to be edited, and exports N number of client 31 to.
Any client 31, according to the identity information of input, is verified the user of editor i-th subtemplate, if by checking, then export the i-th subtemplate received, otherwise end operation.Wherein, the i-th subtemplate is any one subtemplate in the N number of subtemplate generated after utilizing fractionation number N to split the template of document to be edited.
Any client 31, according to the very first time of presetting, periodically will input to the information in units of section of the i-th subtemplate that it loads, generates binary stream and keep in units of section by the coded system of HTML.
Any client 31 shows the template of the document to be edited of the binary stream after the importing integration received in real time.
The structure of the service end 20 of embodiment two is identical with the structure of the service end 20 of embodiment one, does not repeat them here.
Wherein, any client 31 comprises: control module 311, coding module 312 and authentication module 313.
Authentication module 313, according to the identity information of input, is verified the user of editor i-th subtemplate, if by checking, then trigger control module 311 works, otherwise trigger control module 311 does not work.
Control module 311, according to triggering, exports the template of the i-th subtemplate received and the document to be edited importing the binary stream after integrating, exports the information in units of section inputed in its i-th subtemplate loaded to coding module 312.Wherein, information at least comprises word and pattern;
The binary stream of paragraph, according to the very first time of presetting, is temporary in the scale-of-two array of corresponding paragraph ID in internal memory by control module 311.
Coding module 312 utilizes the coded system of HTML, encodes to the information in units of section received, and generates the binary stream of paragraph, exports control module 311 to.
In above-mentioned preferred embodiment of the present invention, user is by the client be installed on an equipment, the content treated in the subtemplate corresponding with it that editing template comprises is edited, and also can check editor's situation of the whole template that the information of being edited by the user in other clients generates; The subtemplate that template to be edited can comprise by client with imported the binary stream after integrating document to be edited template for displaying on an interface, reception user changing the edit file to a certain paragraph in subtemplate that interface inputs; The system comprising N number of client and at least one service end provided by the invention, many people can not only be realized and edit same document simultaneously, and real time inspection can be carried out to the content of the document that other people have edited, not only increase work efficiency, and save system resource.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer read/write memory medium, as: ROM/RAM, magnetic disc, CD etc.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (17)

1. a method for Edit Document, is characterized in that, the method comprises:
According to fractionation number N and document identification, load the template of the to be edited document corresponding with document identification; Described N be greater than 1 integer;
According to the very first time of presetting, periodically will input to the information in units of section of the i-th subtemplate, and generate binary stream by the coded system of HTML and keep in units of section;
Wherein, described i-th subtemplate is any one subtemplate in the N number of subtemplate generated after utilizing fractionation number N to split the template of document to be edited; To the information in units of section of the i-th subtemplate be inputed to, and generate binary stream by the coded system of HTML and in units of section, carry out temporary comprising:
Receive the information in units of section inputed in the i-th subtemplate; Described information at least comprises word and pattern;
Utilize the coded system of HTML, the information in units of section in the i-th subtemplate is encoded, generate the binary stream of a section that the i-th subtemplate comprises;
Utilize paragraph ID, the binary stream of a section comprised by the i-th subtemplate writes in the scale-of-two array of corresponding paragraph ID;
According to second time of presetting, periodically the binary stream of keeping in units of section of N number of subtemplate is integrated;
Binary stream after integrating is imported the template of document to be edited and output display.
2. method according to claim 1, is characterized in that, also comprises after the template of the document to be edited that described loading is corresponding with document identification:
According to the identity information of input, the user of editor i-th subtemplate is verified, if by checking, then export the i-th subtemplate.
3. method according to claim 1 and 2, is characterized in that, the template of the document to be edited that described loading is corresponding with document identification comprises:
According to document identification, judge whether the template of preserving the to be edited document corresponding with document identification, if so, then import the template of document to be edited, otherwise, generate the template of the to be edited document corresponding with document identification and import;
According to fractionation number N, judge whether the template of the document to be edited imported has been split into N number of subtemplate, if so, then load the template being split into the document to be edited of N number of subtemplate, otherwise, the template of the document to be edited imported is split and loaded.
4. method according to claim 3, is characterized in that, the template that described loading is split into the document to be edited of N number of subtemplate comprises:
Arbitrary subtemplate in the N number of subtemplate template of document to be edited comprised exports one in order to edit in the client of this subtemplate.
5. method according to claim 1, is characterized in that, the described binary stream of keeping in units of section to N number of subtemplate carries out integration and comprises:
Read binary stream temporary in the scale-of-two array corresponding with the paragraph that N number of subtemplate comprises;
Paragraph ID is utilized to carry out paragraph sequence to binary stream temporary in scale-of-two array;
Using the binary stream of acquisition after paragraph sequence as the binary stream after integration.
6. method according to claim 1 and 2, is characterized in that, describedly binary stream after integrating is imported the template of document to be edited and output display comprises:
Binary stream after integration is imported in the corresponding paragraph in the template of document to be edited according to paragraph order;
By importing the template of the document to be edited of the binary stream after integrating, export to edit in N number of client of subtemplate;
A subtemplate in the N number of subtemplate of any one client-side editing.
7. method according to claim 1, is characterized in that, the method also comprises:
According to the 3rd time of presetting, periodically binary stream temporary in the scale-of-two array of corresponding paragraph ID is preserved according to paragraph ID.
8. method according to claim 7, is characterized in that, the method also comprises:
According to the to be derived identification information completing the document of editor received, the binary data stream that with html format exist corresponding with the document of reading and saving, generate the document of preset format after carrying out format conversion, and export the document of preset format with the form of byte stream.
9. a system for Edit Document, is characterized in that, this system comprises: service end and N number of client; Described N be greater than 1 integer;
The template of the to be edited document corresponding with document identification, according to the fractionation number N of input and document identification, is loaded in described N number of client by described service end; Described service end, according to second time of presetting, is periodically integrated the binary stream of keeping in units of section of N number of subtemplate, the binary stream after integration is imported the template of document to be edited, and exports N number of client to;
Any client, according to the very first time of presetting, periodically will input to the information in units of section of the i-th subtemplate that it loads, generates binary stream and keep in units of section by the coded system of HTML;
Wherein, described i-th subtemplate is any one subtemplate in the N number of subtemplate generated after utilizing fractionation number N to split the template of document to be edited; To the information in units of section of the i-th subtemplate that it loads be inputed to, generate binary stream by the coded system of HTML and in units of section, carry out temporary comprising:
Receive the information in units of section inputed in the i-th subtemplate; Described information at least comprises word and pattern;
Utilize the coded system of HTML, the information in units of section in the i-th subtemplate is encoded, generate the binary stream of a section that the i-th subtemplate comprises;
Utilize paragraph ID, the binary stream of a section comprised by the i-th subtemplate writes in the scale-of-two array of corresponding paragraph ID;
Any client shows the template of the document to be edited of the binary stream after the importing integration received in real time.
10. system according to claim 9, is characterized in that, described service end is connected by LAN (Local Area Network) or internet with described N number of client.
11. systems according to claim 9, is characterized in that, described any client also according to the identity information of input, is verified the user of editor i-th subtemplate, if by checking, then export the i-th subtemplate received.
12. systems according to claim 9,10 or 11, it is characterized in that, described service end comprises:
Database, in order to preserve the template of document;
Template dispatch module, according to the document identification received, judges the template of whether preserving the to be edited document corresponding with document identification in database, if so, then imports the template of document to be edited, otherwise triggers template generation module;
Described template dispatch module is according to the fractionation number N received, judge whether the template of the document to be edited imported has been split into N number of subtemplate, if it is template load-on module is triggered, otherwise, utilize the template of fractionation number N to the document to be edited imported split and trigger template load-on module;
Template generation module, according to triggering, the document identification of input and the Template Information of input, generates the template of the to be edited document corresponding with document identification, exports the template of the document to be edited generated to template dispatch module;
Template load-on module, according to triggering, the information of N number of subtemplate and the client corresponding with N number of subtemplate, the arbitrary subtemplate in the N number of subtemplate template of document to be edited comprised exports in the client corresponding with it;
Data Integration module, according to second time of presetting, periodically integrates the binary stream in units of section of the N number of subtemplate be temporary in N number of client, exports the binary stream after integrating to data importing module;
Data importing module, imports the binary stream after integration according to paragraph order in the corresponding paragraph in the template of document to be edited, the template of the document to be edited importing the binary stream after integrating is exported in N number of client.
13. systems according to claim 9 or 10, it is characterized in that, described any client comprises:
Control module, exports the template of the i-th subtemplate received and the document to be edited importing the binary stream after integrating, exports the information in units of section inputed in its i-th subtemplate loaded to coding module; Described information at least comprises word and pattern;
The binary stream of paragraph, according to the very first time of presetting, is temporary in the scale-of-two array of corresponding paragraph ID in internal memory by described control module;
Coding module, utilizes the coded system of HTML, encodes to the information in units of section received, and generates the binary stream of paragraph, exports control module to.
14. systems according to claim 11, is characterized in that, described any client comprises:
Authentication module, according to the identity information of input, verifies the user of editor i-th subtemplate, if by checking, then and trigger control module work;
Control module, according to triggering, exports the template of the i-th subtemplate received and the document to be edited importing the binary stream after integrating, exports the information in units of section inputed in its i-th subtemplate loaded to coding module; Described information at least comprises word and pattern;
The binary stream of paragraph, according to the very first time of presetting, is temporary in the scale-of-two array of corresponding paragraph ID in internal memory by described control module;
Coding module, utilizes the coded system of HTML, encodes to the information in units of section received, and generates the binary stream of paragraph, exports control module to.
15. systems according to claim 9 or 10, it is characterized in that, described service end and described client can be installed on an equipment.
16. systems according to claim 9 or 10, is characterized in that, binary stream temporary in the scale-of-two array of corresponding paragraph ID, also according to the 3rd time of presetting, is periodically preserved according to paragraph ID by described service end.
17. systems according to claim 16, it is characterized in that, described service end is also according to the to be derived identification information completing the document of editor received, the binary data stream that with html format exist corresponding with the document of reading and saving, generate the document of preset format after carrying out format conversion, and export the document of preset format to sending the to be derived client completing the identification information of the document of editor with the form of byte stream.
CN201210448651.8A 2012-11-09 2012-11-09 The method and system of Edit Document Active CN102999480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210448651.8A CN102999480B (en) 2012-11-09 2012-11-09 The method and system of Edit Document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210448651.8A CN102999480B (en) 2012-11-09 2012-11-09 The method and system of Edit Document

Publications (2)

Publication Number Publication Date
CN102999480A CN102999480A (en) 2013-03-27
CN102999480B true CN102999480B (en) 2016-03-30

Family

ID=47928062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210448651.8A Active CN102999480B (en) 2012-11-09 2012-11-09 The method and system of Edit Document

Country Status (1)

Country Link
CN (1) CN102999480B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823791A (en) * 2014-02-28 2014-05-28 深圳市同洲电子股份有限公司 Method and device for realizing automatic generation of file
CN108009243B (en) * 2017-11-30 2021-10-22 云南电网有限责任公司 Multi-user synchronous editing processing system and processing method for same document
CN109376346B (en) * 2018-10-16 2023-07-18 周金明 Multi-terminal electronic document editing management method and system based on labels and views
CN109471996A (en) * 2018-11-20 2019-03-15 四川长虹电器股份有限公司 Webpage fills in the fractionation and storage method of material
CN111985191B (en) * 2020-08-05 2024-03-29 北京同创永益科技发展有限公司 Multi-user collaborative online document editing method and device
CN112035500B (en) * 2020-09-01 2024-01-26 中国银行股份有限公司 Knowledge base updating method, device, server and computer storage medium
CN112783504A (en) * 2021-01-21 2021-05-11 中科三清科技有限公司 Binary universal representation format meteorological data analysis method and device
CN114528816B (en) * 2022-01-27 2023-03-17 北京飞书科技有限公司 Collaborative editing information display method and device, electronic equipment and readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979466A (en) * 2005-11-29 2007-06-13 国际商业机器公司 Method and device for allowing multi-users to edit a shared electronic file simultaneously
CN101350009A (en) * 2008-09-05 2009-01-21 中国工商银行股份有限公司 System for writing and compiling cooperated documents
CN101855629A (en) * 2007-11-09 2010-10-06 微软公司 Collaborative authoring

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7818679B2 (en) * 2004-04-20 2010-10-19 Microsoft Corporation Method, system, and apparatus for enabling near real time collaboration on an electronic document through a plurality of computer systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979466A (en) * 2005-11-29 2007-06-13 国际商业机器公司 Method and device for allowing multi-users to edit a shared electronic file simultaneously
CN101855629A (en) * 2007-11-09 2010-10-06 微软公司 Collaborative authoring
CN101350009A (en) * 2008-09-05 2009-01-21 中国工商银行股份有限公司 System for writing and compiling cooperated documents

Also Published As

Publication number Publication date
CN102999480A (en) 2013-03-27

Similar Documents

Publication Publication Date Title
CN102999480B (en) The method and system of Edit Document
CN102906751B (en) A kind of method of data storage, data query and device
CN102970158B (en) Log storage and processing method and log server
CN104408100B (en) The compression method of structured web site daily record
CN104144081A (en) General application log management method, device and system
CN104123300A (en) Data distributed storage system and method
CN102609462A (en) Method for compressed storage of massive SQL (structured query language) by means of extracting SQL models
DK1316220T3 (en) Method for compressing / decompressing structured documents
CN103294953B (en) A kind of mobile phone malicious code detecting method and system
CN105763886A (en) Distributed transcoding method and apparatus
CN110008725B (en) User structured data processing system
CN114328898A (en) Text abstract generating method and device, equipment, medium and product thereof
CN102982046B (en) A kind of web data compression and storage method and system
CN105872731A (en) Data processing method and device
CN110991358B (en) Text comparison method and device based on blockchain
CN106649852A (en) Method and system for converting PCB file into Gerber file
CN103092607A (en) Encoding and decoding method of telecommunications call ticket
CN100511212C (en) Processing method and apparatus for electronic table file
CN115292580A (en) Data query method and device, computer equipment and storage medium
CN114896222A (en) Log data processing method and device, computer equipment and system
CN106126372A (en) A kind of isomery disaster tolerance device and method for Oracle Exadata all-in-one
CN106789232B (en) efficient information-flow processing control system
CN116880778B (en) User privacy protection method based on regenerative coding and distributed storage
CN103577586B (en) The processing method and processing device of log recording
US20220222084A1 (en) Method for loading multiple neural network models and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant