CN102999480A - Method and system for editing document - Google Patents

Method and system for editing document Download PDF

Info

Publication number
CN102999480A
CN102999480A CN2012104486518A CN201210448651A CN102999480A CN 102999480 A CN102999480 A CN 102999480A CN 2012104486518 A CN2012104486518 A CN 2012104486518A CN 201210448651 A CN201210448651 A CN 201210448651A CN 102999480 A CN102999480 A CN 102999480A
Authority
CN
China
Prior art keywords
template
subtemplate
document
binary stream
treatment
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.)
Granted
Application number
CN2012104486518A
Other languages
Chinese (zh)
Other versions
CN102999480B (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

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a method and a system for editing a document. The method comprises the following steps of: loading a template of a document to be edited according to a splitting number N and a document identification, wherein the template corresponds to the splitting number N and the document identification, and N is an integer which is more than 1; periodically generating a binary flow from information in a form of coding HTML (hypertext markup language) according to a preset first time, and storing the binary flow temporarily by sections, wherein the information is input into the ith sub-template by sections, and the ith sub-template is any one of the N sub-templates which are generated after splitting the template of the document to be edited by using the splitting number N; integrating the binary flow of the N sub-templates temporarily according to a preset second time; and guiding the integrated binary flow into the template of the document to be edited, outputting and displaying. Due to the adoption of the method and the system, the work efficiency is improved, and the resource of the system is saved.

Description

The method and system of Edit Document
Technical field
The present invention relates to field of computer technology, particularly the system of a kind of method of Edit Document and Edit Document.
Background technology
Along with the development of computer technology and networking, synergetic office work is trend of the times, and the efficient that improves the routine office work formatted document is extremely urgent.
It is most basic function in the routine office work that manuscript is drawn up, but, present documents editing is just finished or many people divide the work behind the editor again unified integration and finish by people is individually-edited, such as: adopt the word control is embedded in a plurality of documents of a plurality of operation pages ineditings, by hand a plurality of word files are merged integration at last, realize the editor of document.
Not only work efficiency is low for above-mentioned existing document edit method, and has easily the waste problem of resource for computer system, obviously has been not suitable with the requirement of efficient operation in the active computer office.
Summary of the invention
The invention provides a kind of method and system of Edit Document, with so that project or application be achieved.
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 splitting number N and document identification, load the template for the treatment of Edit Document corresponding with it; Described N is the integer greater than 1;
According to the default very first time, periodically will input to the information take section as unit of i subtemplate, keep in the coded system generation binary stream of HTML and take section as unit; Described i subtemplate is that utilization fractionation number N splits any one subtemplate in N the subtemplate that generates after the template of Edit Document;
According to the second default time, periodically the binary stream of keeping in take section as unit of N subtemplate is integrated;
Binary stream after integrating is imported template and the output display for the treatment of Edit Document.
Wherein, also comprise after the template for the treatment of Edit Document that described loading is corresponding with it:
According to the identity information of input, the user who edits the i subtemplate is verified, if by checking, then export the i subtemplate.
Wherein, the template for the treatment of Edit Document that described loading is corresponding with it comprises:
According to document identification, judge whether to preserve the template for the treatment of Edit Document corresponding with it, if so, then import the template for the treatment of Edit Document, otherwise, generate the template for the treatment of Edit Document corresponding with document identification and importing;
According to splitting number N, judge whether the template for the treatment of Edit Document that imports has been split into N subtemplate, if so, then load the template for the treatment of Edit Document that is split into N subtemplate, otherwise, the template for the treatment of Edit Document that imports is split and loads.
Wherein, the described loading template for the treatment of Edit Document that is split into N subtemplate comprises:
Arbitrary subtemplate in N the subtemplate that the template for the treatment of Edit Document is comprised exports one in order on the client of editing this subtemplate.
Wherein, the described information take section as unit that will input to the i subtemplate comprises as unit keeps in the coded system generation binary stream of HTML and take section:
Reception inputs to the information take section as unit in the i subtemplate; Described information comprises literal and pattern at least;
Utilize the coded system of HTML, the information take section as unit in the i subtemplate is encoded, generate one section the binary stream that the i subtemplate comprises;
Utilize paragraph ID, one section the binary stream that the i subtemplate is comprised writes in the scale-of-two array of corresponding paragraph ID.
Wherein, the described binary stream of keeping in take section as unit to N subtemplate is integrated and is comprised:
Read temporary binary stream in scale-of-two array corresponding to the paragraph that comprises with N subtemplate;
Utilize paragraph ID that binary stream temporary in the scale-of-two array is carried out the paragraph ordering;
Paragraph is sorted the rear binary stream that obtains as the binary stream after integrating.
Wherein, the binary stream after described will the integration imports and treats that the template of Edit Document and output display comprise:
Binary stream after integrating is imported according to the paragraph order in the corresponding paragraph in the template for the treatment of Edit Document;
With importing the template for the treatment of Edit Document of the binary stream after integrating, export to edit on N the client of subtemplate;
A subtemplate in described any client-side editing N subtemplate.
Wherein, the method also comprises:
According to the 3rd default time, 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:
Identification information according to the document of finishing editor to be derived that receives, corresponding with the document binary data stream that exists with html format of reading and saving, carry out generating the document of default form after the format conversion, and preset the document of form with the formal output of byte stream.
According to an aspect of the present invention, provide a kind of system of Edit Document, this system can increase work efficiency, and saves system resource.This system comprises: a service end and N client; Described N is the integer greater than 1;
Described service end is counted N and document identification according to the fractionation of input, and the template for the treatment of Edit Document corresponding with it is loaded on the described N client; Described service end was periodically integrated the binary stream of keeping in take section as unit of N subtemplate according to the second default time, the binary stream after integrating is imported treat the template of Edit Document, and export N client to;
Arbitrary client periodically will input to the information take section as unit of the i subtemplate of its loading according to the default very first time, keep in the coded system generation binary stream of HTML and take section as unit; Described i subtemplate is that utilization fractionation number N splits any one subtemplate in N the subtemplate that generates after the template of Edit Document;
Arbitrary client shows the template of the document to be edited of the binary stream after the importing that receives is integrated in real time.
Wherein, described service end is connected by LAN (Local Area Network) or internet with a described N client.
Wherein, described arbitrary client also according to the identity information of input, is verified the user who edits the i subtemplate, if by checking, then exports the i subtemplate that receives.
Wherein, described service end comprises:
Database is in order to preserve the template of document;
The template dispatch module according to the document identification that receives, judges whether preserve the template for the treatment of Edit Document corresponding with it in the database, if so, then imports the template for the treatment of Edit Document, otherwise triggers the template generation module;
Described template dispatch module is counted N according to the fractionation that receives, judge whether the template for the treatment of Edit Document that imports has been split into N subtemplate, if it is trigger the template load-on module, otherwise, utilize fractionation number N that the template for the treatment of Edit Document that imports is split and trigger the template load-on module;
The template generation module according to the document identification that triggers, inputs and the Template Information of input, generates the template for the treatment of Edit Document corresponding with document identification, and the template for the treatment of Edit Document that output generates is to the template dispatch module;
The template load-on module, according to trigger, the information of a N subtemplate the reaches client corresponding with N subtemplate, the arbitrary subtemplate in N the subtemplate that the template for the treatment of Edit Document is comprised exports on the client corresponding with it;
The Data Integration module according to the second default time, is periodically integrated the binary stream take section as unit that is temporary in N the subtemplate of the N on the client, and the binary stream after output is integrated is to the data importing module;
The data importing module imports the binary stream after integrating in the corresponding paragraph in the template for the treatment of Edit Document according to the paragraph order, the template for the treatment of Edit Document that imports the binary stream after integrating is exported on N the client.
Wherein, described arbitrary client comprises:
Control module, the i subtemplate that receives of output and import the template of the document to be edited of the binary stream after integrating will input to the information output take section as unit in the i subtemplate of its loading to coding module; Described information comprises literal and pattern at least;
Described control module is according to the default very first time, and the binary stream of paragraph is temporary in the scale-of-two array of corresponding paragraph ID in the internal memory;
Coding module utilizes the coded system of HTML, and the information take section as unit that receives is encoded, and generates the binary stream of paragraph, exports control module to.
Wherein, described arbitrary client comprises:
Authentication module according to the identity information of input, is verified the user who edits the i subtemplate, if by checking, then trigger control module work;
Control module, according to triggering, the i subtemplate that receives of output and import the template of the document to be edited of the binary stream after integrating will input to the information output take section as unit in the i subtemplate of its loading to coding module; Described information comprises literal and pattern at least;
Described control module is according to the default very first time, and the binary stream of paragraph is temporary in the scale-of-two array of corresponding paragraph ID in the internal memory;
Coding module utilizes the coded system of HTML, and the information take section as unit that receives is encoded, and generates the binary stream of paragraph, exports control module to.
Wherein, described service end and described client can be installed on the equipment.
Wherein, described service end is periodically preserved binary stream temporary in the scale-of-two array of corresponding paragraph ID also according to the 3rd default time according to paragraph ID.
Wherein, described service end is also according to the identification information of the document of finishing editor to be derived that receives, corresponding with the document binary data stream that exists with html format of reading and saving, carry out generating the document of presetting form after the format conversion, and preset the document of form to the client of the identification information that sends the document of finishing editor to be derived with the formal output of byte stream.
As seen from the above technical solutions, in the method and system of the Edit Document that provides of the present invention, utilize to split number N and document identification, load by the template for the treatment of Edit Document in each client and split a subtemplate that obtains; According to the default very first time, periodically to inputing to the information of subtemplate, keep in the coded system generation binary stream of HTML and take section as unit, according to the second default time, periodically the binary stream of keeping in take section as unit of N subtemplate is integrated, the template for the treatment of Edit Document of the binary stream after output import to be integrated in real time is so that editor's situation of checking simultaneously whole document when respectively N subtemplate being edited.Adopt method and system of the present invention, owing to can load by the template for the treatment of Edit Document in each client and split a subtemplate that obtains, work out document thereby can many people work in coordination with, not only can increase work efficiency, and can conserve system resources.
Description of drawings
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 integrated by a people again of many people sequence edit, 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 N the subtemplate that document template is divided into by a client in N the client is edited and is temporary, service end is carried out Data Integration to the information that has write in the temporary subtemplate of N client, data importing after integrating is treated in the template of Edit Document, and export N client to and show, so that the information that has write in can the whole document of real time inspection in the process of the arbitrary subtemplate of editor, the information that has write in other N-1 subtemplate in other words, not only improve work efficiency, and saved system resource.
Fig. 1 is the method flow diagram of Edit Document of the present invention.Now in conjunction with Fig. 1, the method for Edit Document of the present invention is described, specific as follows:
Step 10: according to splitting number N and document identification, load the template for the treatment of Edit Document corresponding with it;
N in this step is the integer greater than 1.
This step comprises: step 101, according to document identification, judge whether to preserve the template for the treatment of Edit Document corresponding with it, and if so, then import template and the execution in step 103 for the treatment of Edit Document, otherwise execution in step 102; Step 102 generates the template for the treatment of Edit Document corresponding with document identification and importing; Step 103 according to splitting number N, judges whether the template for the treatment of Edit Document that imports has been split into N subtemplate, if, then load the template for the treatment of Edit Document that is split into N subtemplate, otherwise, the template for the treatment of Edit Document that imports is split and loads.
Generating the template for the treatment of Edit Document corresponding with document identification in the step 102 comprises: step 1021, select the digitizing template corresponding with it according to document identification; Step 1022 according to splitting number N, splits the digitizing template by paragraph and/or user; Step 1023 is added content outline information and/or user profile in subtemplate; Step 1024 is preserved the template for the treatment of Edit Document that is split as N subtemplate in the mode of format.Wherein, step 1023 is optional step, can arrange according to user's needs.
In the step 103 when splitting number N the template for the treatment of Edit Document that does not split split, can will treat that the template of Edit Document splits into N subtemplate according to the user profile that arranges, can average fractionation or carry out non-homogeneous fractionation, also can add and subscriber-related outline information and/or user profile in N the subtemplate after fractionation.
The template for the treatment of Edit Document that the loading of mentioning in the step 103 is split into N subtemplate comprises: will treat that the arbitrary subtemplate in N the subtemplate that the template of Edit Document comprises exports one in order on the client of editing this subtemplate.
Step 11: according to the default very first time, periodically keep in the information take section as unit that inputs to the i subtemplate;
The numerical value of the default very first time in this step can arrange according to the load of system, no longer concrete numerical value is illustrated at this.
This step comprises: step 111 receives the information take section as unit that inputs in the i subtemplate; Step 112 is utilized the coded system of HTML, and the information take section as unit in the i subtemplate is encoded, and generates one section the binary stream that the i subtemplate comprises; Step 113 according to the default very first time, is utilized paragraph ID, and one section the binary stream that periodically the i subtemplate is comprised writes in the scale-of-two array of corresponding paragraph ID.
The information take section as unit in the step 111 comprises literal and pattern at least; I subtemplate in the step 112 is that utilization fractionation number N splits any one subtemplate in N the subtemplate that generates after the template of Edit Document; I is for more than or equal to 1 and be less than or equal to the integer of N; The paragraph ID that mentions in the step 113 represents the paragraph that comprises in each subtemplate position in all paragraphs that the whole template for the treatment of Edit Document comprises, and therefore can determine uniquely according to the ID of each paragraph to treat a paragraph in the template of Edit Document.
The operation that writes in the step 113 in the scale-of-two array is that binary stream is temporary in the scale-of-two array of corresponding paragraph ID in the internal memory.
Only describe as example with the information take section as unit of periodically preserving in the i subtemplate in this step, the content of putting down in writing in the acquisition of information of other subtemplates and data save method and the step 11 in N subtemplate is identical, does not repeat them here.
Step 12: according to the second default time, periodically integrate the information of keeping in take section as unit of N subtemplate;
The numerical value of the second default time in this step can arrange according to the load of system, no longer concrete numerical value is illustrated at this.
This step comprises: step 121, according to the second default time, periodically read the binary stream of keeping in scale-of-two array corresponding to the paragraph that comprises with N subtemplate; Step 122 utilizes paragraph ID that binary stream temporary in the scale-of-two array is carried out the paragraph ordering; Step 123 sorts the rear binary stream that obtains as the binary stream after integrating with paragraph.
Step 13: the binary stream after will integrating imports template and the output display for the treatment of Edit Document.
This step comprises: step 131 imports the binary stream after integrating in the corresponding paragraph in the template for the treatment of Edit Document according to the paragraph order; Step 132 with importing the template for the treatment of Edit Document of the binary stream after integrating, exports to edit on N the client of subtemplate.
Binary stream after will integrating in the step 131 imports and treats that the template of Edit Document comprises: according to paragraph ID, binary stream that will be corresponding with paragraph ID imports treats position corresponding with paragraph ID in the template of Edit Document.
A subtemplate in any client-side editing N subtemplate in the N that step 132 the is mentioned client.
Preferably, in order to improve the security of edit file, also comprise between step 10 and the step 11: according to the identity information of input, the user who edits the i subtemplate is verified; Particularly, the user's that the identity information of input is corresponding with the i subtemplate identity information is compared, if comparison is consistent, then checking is passed through, output display i subtemplate, and carry out subsequent step, otherwise end operation is perhaps further exported the information of expression authentication failure.
Preferably, in order to realize resource sharing, also comprise after the step 13: according to the 3rd default time, periodically will keep in the binary stream of keeping in the scale-of-two array of the corresponding paragraph ID in ground and preserve according to paragraph ID.Particularly, can will be temporarily stored in the binary stream of preserving in the scale-of-two array of the corresponding paragraph ID in the internal memory, ID periodically is stored in the database according to paragraph, so that subsequent query or derivation operation.
Preferably, for the derivation of Edit Document can be provided, after above-mentioned preservation binary stream, also comprise: according to the derivation instruction that receives, utilize the identification information of the document of finishing editor to be derived, corresponding with the document binary data stream that exists with html format of reading and saving, carry out generating the document of default form after the format conversion, and preset the document of form with the formal output of byte stream.Particularly, when carrying out format conversion, remove the html tag that carries on the binary stream, adopt JACOB(Java-com-Bridge) and call the COM storehouse by JNI, data stream is converted to the WORD document, and with the formal output WORD document of byte stream.
Among the said method embodiment, when a subtemplate is edited, the information of having edited in other subtemplates in N the subtemplate of can real time inspection having edited; In another embodiment of the method, optionally check the information of having edited in other subtemplates in N the subtemplate, namely between step 11 and step 12, further comprise: judge whether the information of having edited in other subtemplates in the real time inspection N subtemplate, if, then execution in step 12, otherwise end operation.
Step 11 among the said method embodiment and step 12 can be carried out simultaneously, perhaps first execution in step 12, rear execution 11, the corresponding embodiment of above-mentioned any execution sequence can both solve technical matters to be solved by this invention, realize the technique effect of expection, no longer the embodiment of other orders is given unnecessary details at this.
The system of Edit Document of the present invention comprises at least one service end and N client; N client can be passed through LAN (Local Area Network) or internet Connection Service end; N is the integer greater than 1.A service end of the present invention can be arranged on the equipment, such as being arranged on the same computer with a client.
Fig. 2 is the structural representation of the system embodiment one of Edit Document of the present invention.Now in conjunction with Fig. 2, the structure of the system of Edit Document of the present invention is described, specific as follows:
The system of embodiment one comprises: service end 20 an and N client 21.The structure that only connects a client 21 with a service end 20 among this embodiment describes, and the structure of a plurality of clients 21 of service end 20 connections can be determined according to the structure of Fig. 2, does not repeat them here.
Service end 20 is counted N and document identification according to the fractionation of input, and the template for the treatment of Edit Document corresponding with it is loaded on N the client 21.
Service end 20 was periodically integrated the binary stream of keeping in take section as unit of N subtemplate according to the second default time, the binary stream after integrating is imported treat the template of Edit Document, and export N client 21 to.
Arbitrary client 21 periodically will input to the information take section as unit of the i subtemplate of its loading according to the default very first time, keep in the coded system generation binary stream of HTML and take section as unit.Wherein, the i subtemplate is that utilization fractionation number N splits any one subtemplate in N the subtemplate that generates after the template of Edit Document.
Arbitrary client 21 shows the template of the document to be edited of the binary stream after the importing that receives is integrated 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 the document preserved of database 201 for having carried out of can directly deriving the submodule module for the treatment of Edit Document of dividing.
Template dispatch module 202 judges whether preserve the template for the treatment of Edit Document corresponding with it in the database 201 according to the document identification that receives, and if so, then imports the template for the treatment of Edit Document, otherwise triggers template generation module 203.
Template dispatch module 202 is counted N according to the fractionation that receives, judge whether the template for the treatment of Edit Document that imports has been split into N subtemplate, if it is trigger template load-on module 204, otherwise, utilize fractionation number N that the template for the treatment of Edit Document that imports is split and trigger template load-on module 204;
Template generation module 203 generates the template for the treatment of Edit Document corresponding with document identification according to the document identification that triggers, inputs and the Template Information of input, and the template for the treatment of Edit Document that output generates is to template dispatch module 202.Template generation module 203 also can be preserved the template write into Databasce 201 for the treatment of Edit Document of document identification and generation.
Template load-on module 204 according to trigger, the information of a N subtemplate the reaches client 21 corresponding with N subtemplate, the arbitrary subtemplate in N the subtemplate that the template for the treatment of Edit Document is comprised exports on the client corresponding with it 21.
Data Integration module 205 was periodically integrated the binary stream take section as unit that is temporary in N the subtemplate of the N on the client 21 according to the second default time, and the binary stream after output is integrated is to data importing module 206.
Binary stream after data importing module 206 will be integrated imports according to the paragraph order in the corresponding paragraph in the template treat Edit Document, and the template for the treatment of Edit Document that imports the binary stream after integrating is exported on N the client 21.
Wherein, arbitrary client 21 comprises: control module 211 and coding module 212.
The i subtemplate that control module 211 output receives and the template that imports the document to be edited of the binary stream after integrating will input to the information output take section as unit in the i subtemplate of its loading to coding module 212.Wherein, information comprises literal and pattern at least.
Control module 211 is according to the default very first time, and periodically the binary stream with paragraph is temporary in the scale-of-two array of corresponding paragraph ID in the internal memory.
Coding module 212 utilizes the coded system of HTML, and the information take section as unit that receives is encoded, and generates the binary stream of paragraph, exports control module 211 to.
Preferably, for the ease of resource sharing, the service end 20 of present embodiment one is periodically preserved binary stream temporary in the scale-of-two array of corresponding paragraph ID also according to the 3rd default time according to paragraph ID.Particularly, the Data Integration module 205 that service end 20 comprises can according to the 3rd default time, periodically will answer binary stream temporary in the scale-of-two array of paragraph ID according to preserving in the paragraph ID write into Databasce 201.
Preferably, for the ease of obtaining the information in the completed document, service end 20 utilizes the binary data stream of preserving to generate the document of default form and export client 21 to also according to the identification information of the document of finishing editor to be derived that receives.Particularly, the identification information that the data importing module 206 that service end 20 comprises is gone back according to the document of finishing editor to be derived that receives, corresponding with the document binary data stream that exists with html format of reading and saving, carry out generating the document of presetting form after the format conversion, and preset the document of form to the client 21 of the identification information that sends the document of finishing editor to be derived with the formal output of byte stream; Wherein, default form can be the document formats commonly used such as WORD form.
Fig. 3 is the structural representation of the system embodiment two of Edit Document of the present invention.Now in conjunction with Fig. 3, the system of Edit Document of the present invention is described, specific as follows:
The system of embodiment two compares with the system of embodiment one, and the client among the embodiment two has increased authentication, namely needs to use the user of this client to input user profile, has improved security.
The system of embodiment two comprises: service end 20 an and N client 31.The structure that only connects a client 31 with a service end 20 among this embodiment describes, and the structure of a plurality of clients 31 of service end 20 connections can be determined according to the structure of Fig. 3, does not repeat them here.
Service end 20 is counted N and document identification according to the fractionation of input, and the template for the treatment of Edit Document corresponding with it is loaded on N the client 31.
Service end 20 was periodically integrated the binary stream of keeping in take section as unit of N subtemplate according to the second default time, the binary stream after integrating is imported treat the template of Edit Document, and export N client 31 to.
Arbitrary client 31 is verified the user who edits the i subtemplate according to the identity information of input, if by checking, then exports the i subtemplate that receives, otherwise end operation.Wherein, the i subtemplate is that utilization fractionation number N splits any one subtemplate in N the subtemplate that generates after the template of Edit Document.
Arbitrary client 31 periodically will input to the information take section as unit of the i subtemplate of its loading according to the default very first time, keep in the coded system generation binary stream of HTML and take section as unit.
Arbitrary client 31 shows the template of the document to be edited of the binary stream after the importing that receives is integrated 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, arbitrary client 31 comprises: control module 311, coding module 312 and authentication module 313.
Authentication module 313 verifies to the user who edits the i subtemplate that according to the identity information of input if by checking, then trigger control module 311 is worked, otherwise trigger control module 311 work.
Control module 311 is according to triggering, and the i subtemplate that output receives and import the template of the document to be edited of the binary stream after integrating will input to the information output take section as unit in the i subtemplate of its loading to coding module 312.Wherein, information comprises literal and pattern at least;
Control module 311 is according to the default very first time, and the binary stream of paragraph is temporary in the scale-of-two array of corresponding paragraph ID in the internal memory.
Coding module 312 utilizes the coded system of HTML, and the information take section as unit that receives is encoded, and generates the binary stream of paragraph, exports control module 311 to.
In the above-mentioned preferred embodiment of the present invention, the user can be by to being installed in the client on the equipment, the content for the treatment of in the subtemplate corresponding with it that editing template comprises is edited, and also can check editor's situation of the whole template of the Information generation edited by the user on other clients; Client can be with the subtemplate that comprises until editing template and the template for displaying for the treatment of Edit Document that has imported the binary stream after integrating on an interface, receives the edit file to a certain paragraph in the subtemplate that the user is changing the interface and inputs; The system that comprises N client and at least one service end provided by the invention, not only can realize that many people edit same document simultaneously, and the content of the document that can edit other people carries out real time inspection, not only improved work efficiency, and saved system resource.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, this program can be stored in the computer read/write memory medium, as: ROM/RAM, magnetic disc, CD etc.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle 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 (18)

1. the method for an Edit Document is characterized in that, the method comprises:
According to splitting number N and document identification, load the template for the treatment of Edit Document corresponding with it; Described N is the integer greater than 1;
According to the default very first time, periodically will input to the information take section as unit of i subtemplate, keep in the coded system generation binary stream of HTML and take section as unit; Described i subtemplate is that utilization fractionation number N splits any one subtemplate in N the subtemplate that generates after the template of Edit Document;
According to the second default time, periodically the binary stream of keeping in take section as unit of N subtemplate is integrated;
Binary stream after integrating is imported template and the output display for the treatment of Edit Document.
2. method according to claim 1 is characterized in that, also comprises after the template for the treatment of Edit Document that described loading is corresponding with it:
According to the identity information of input, the user who edits the i subtemplate is verified, if by checking, then export the i subtemplate.
3. method according to claim 1 and 2 is characterized in that, the template for the treatment of Edit Document that described loading is corresponding with it comprises:
According to document identification, judge whether to preserve the template for the treatment of Edit Document corresponding with it, if so, then import the template for the treatment of Edit Document, otherwise, generate the template for the treatment of Edit Document corresponding with document identification and importing;
According to splitting number N, judge whether the template for the treatment of Edit Document that imports has been split into N subtemplate, if so, then load the template for the treatment of Edit Document that is split into N subtemplate, otherwise, the template for the treatment of Edit Document that imports is split and loads.
4. method according to claim 3 is characterized in that, the template for the treatment of Edit Document that described loading is split into N subtemplate comprises:
Arbitrary subtemplate in N the subtemplate that the template for the treatment of Edit Document is comprised exports one in order on the client of editing this subtemplate.
5. method according to claim 1 and 2 is characterized in that, the described information take section as unit that will input to the i subtemplate comprises as unit keeps in the coded system generation binary stream of HTML and take section:
Reception inputs to the information take section as unit in the i subtemplate; Described information comprises literal and pattern at least;
Utilize the coded system of HTML, the information take section as unit in the i subtemplate is encoded, generate one section the binary stream that the i subtemplate comprises;
Utilize paragraph ID, one section the binary stream that the i subtemplate is comprised writes in the scale-of-two array of corresponding paragraph ID.
6. method according to claim 5 is characterized in that, the described binary stream of keeping in take section as unit to N subtemplate is integrated and comprised:
Read temporary binary stream in scale-of-two array corresponding to the paragraph that comprises with N subtemplate;
Utilize paragraph ID that binary stream temporary in the scale-of-two array is carried out the paragraph ordering;
Paragraph is sorted the rear binary stream that obtains as the binary stream after integrating.
7. method according to claim 1 and 2 is characterized in that, the binary stream after described will the integration imports and treats that the template of Edit Document and output display comprise:
Binary stream after integrating is imported according to the paragraph order in the corresponding paragraph in the template for the treatment of Edit Document;
With importing the template for the treatment of Edit Document of the binary stream after integrating, export to edit on N the client of subtemplate;
A subtemplate in described any client-side editing N subtemplate.
8. method according to claim 5 is characterized in that, the method also comprises:
According to the 3rd default time, periodically binary stream temporary in the scale-of-two array of corresponding paragraph ID is preserved according to paragraph ID.
9. method according to claim 8 is characterized in that, the method also comprises:
Identification information according to the document of finishing editor to be derived that receives, corresponding with the document binary data stream that exists with html format of reading and saving, carry out generating the document of default form after the format conversion, and preset the document of form with the formal output of byte stream.
10. the system of an Edit Document is characterized in that, this system comprises: a service end and N client; Described N is the integer greater than 1;
Described service end is counted N and document identification according to the fractionation of input, and the template for the treatment of Edit Document corresponding with it is loaded on the described N client; Described service end was periodically integrated the binary stream of keeping in take section as unit of N subtemplate according to the second default time, the binary stream after integrating is imported treat the template of Edit Document, and export N client to;
Arbitrary client periodically will input to the information take section as unit of the i subtemplate of its loading according to the default very first time, keep in the coded system generation binary stream of HTML and take section as unit; Described i subtemplate is that utilization fractionation number N splits any one subtemplate in N the subtemplate that generates after the template of Edit Document;
Arbitrary client shows the template of the document to be edited of the binary stream after the importing that receives is integrated in real time.
11. system according to claim 10 is characterized in that, described service end is connected by LAN (Local Area Network) or internet with a described N client.
12. system according to claim 10 is characterized in that, described arbitrary client also according to the identity information of input, is verified the user who edits the i subtemplate, if by checking, then exports the i subtemplate that receives.
13. according to claim 10,11 or 12 described systems, it is characterized in that described service end comprises:
Database is in order to preserve the template of document;
The template dispatch module according to the document identification that receives, judges whether preserve the template for the treatment of Edit Document corresponding with it in the database, if so, then imports the template for the treatment of Edit Document, otherwise triggers the template generation module;
Described template dispatch module is counted N according to the fractionation that receives, judge whether the template for the treatment of Edit Document that imports has been split into N subtemplate, if it is trigger the template load-on module, otherwise, utilize fractionation number N that the template for the treatment of Edit Document that imports is split and trigger the template load-on module;
The template generation module according to the document identification that triggers, inputs and the Template Information of input, generates the template for the treatment of Edit Document corresponding with document identification, and the template for the treatment of Edit Document that output generates is to the template dispatch module;
The template load-on module, according to trigger, the information of a N subtemplate the reaches client corresponding with N subtemplate, the arbitrary subtemplate in N the subtemplate that the template for the treatment of Edit Document is comprised exports on the client corresponding with it;
The Data Integration module according to the second default time, is periodically integrated the binary stream take section as unit that is temporary in N the subtemplate of the N on the client, and the binary stream after output is integrated is to the data importing module;
The data importing module imports the binary stream after integrating in the corresponding paragraph in the template for the treatment of Edit Document according to the paragraph order, the template for the treatment of Edit Document that imports the binary stream after integrating is exported on N the client.
14. according to claim 10 or 11 described systems, it is characterized in that described arbitrary client comprises:
Control module, the i subtemplate that receives of output and import the template of the document to be edited of the binary stream after integrating will input to the information output take section as unit in the i subtemplate of its loading to coding module; Described information comprises literal and pattern at least;
Described control module is according to the default very first time, and the binary stream of paragraph is temporary in the scale-of-two array of corresponding paragraph ID in the internal memory;
Coding module utilizes the coded system of HTML, and the information take section as unit that receives is encoded, and generates the binary stream of paragraph, exports control module to.
15. system according to claim 12 is characterized in that, described arbitrary client comprises:
Authentication module according to the identity information of input, is verified the user who edits the i subtemplate, if by checking, then trigger control module work;
Control module, according to triggering, the i subtemplate that receives of output and import the template of the document to be edited of the binary stream after integrating will input to the information output take section as unit in the i subtemplate of its loading to coding module; Described information comprises literal and pattern at least;
Described control module is according to the default very first time, and the binary stream of paragraph is temporary in the scale-of-two array of corresponding paragraph ID in the internal memory;
Coding module utilizes the coded system of HTML, and the information take section as unit that receives is encoded, and generates the binary stream of paragraph, exports control module to.
16. according to claim 10 or 11 described systems, it is characterized in that described service end and described client can be installed on the equipment.
17. according to claim 10 or 11 described systems, it is characterized in that described service end is periodically preserved binary stream temporary in the scale-of-two array of corresponding paragraph ID also according to the 3rd default time according to paragraph ID.
18. system according to claim 17, it is characterized in that, described service end is also according to the identification information of the document of finishing editor to be derived that receives, corresponding with the document binary data stream that exists with html format of reading and saving, carry out generating the document of presetting form after the format conversion, and preset the document of form to the client of the identification information that sends the document of finishing editor to be derived with the formal output 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 true CN102999480A (en) 2013-03-27
CN102999480B 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)

Cited By (9)

* 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
CN108009243A (en) * 2017-11-30 2018-05-08 云南电网有限责任公司 A kind of multi-user's synchro edit processing system and processing method being directed to document
CN109376346A (en) * 2018-10-16 2019-02-22 周金明 Multiple terminals electronic document editorial management method and system based on label and view
CN109471996A (en) * 2018-11-20 2019-03-15 四川长虹电器股份有限公司 Webpage fills in the fractionation and storage method of material
CN111985191A (en) * 2020-08-05 2020-11-24 北京同创永益科技发展有限公司 Multi-person collaborative online document editing method and device
CN112035500A (en) * 2020-09-01 2020-12-04 中国银行股份有限公司 Knowledge base updating method, device, server and computer storage medium
CN112329419A (en) * 2020-11-05 2021-02-05 深圳壹账通智能科技有限公司 Document editing method, device, server, terminal and storage medium
CN112783504A (en) * 2021-01-21 2021-05-11 中科三清科技有限公司 Binary universal representation format meteorological data analysis method and device
CN114528816A (en) * 2022-01-27 2022-05-24 北京飞书科技有限公司 Collaborative editing information display method and device, electronic equipment and readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234943A1 (en) * 2004-04-20 2005-10-20 Microsoft Corporation Method, system, and apparatus for enabling near real time collaboration on an electronic document through a plurality of computer systems
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234943A1 (en) * 2004-04-20 2005-10-20 Microsoft Corporation Method, system, and apparatus for enabling near real time collaboration on an electronic document through a plurality of computer systems
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

Cited By (12)

* 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
CN108009243A (en) * 2017-11-30 2018-05-08 云南电网有限责任公司 A kind of multi-user's synchro edit processing system and processing method being directed to document
CN109376346A (en) * 2018-10-16 2019-02-22 周金明 Multiple terminals electronic document editorial management method and system based on label and view
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
CN111985191A (en) * 2020-08-05 2020-11-24 北京同创永益科技发展有限公司 Multi-person collaborative online document editing method and device
CN111985191B (en) * 2020-08-05 2024-03-29 北京同创永益科技发展有限公司 Multi-user collaborative online document editing method and device
CN112035500A (en) * 2020-09-01 2020-12-04 中国银行股份有限公司 Knowledge base updating method, device, server and computer storage medium
CN112035500B (en) * 2020-09-01 2024-01-26 中国银行股份有限公司 Knowledge base updating method, device, server and computer storage medium
CN112329419A (en) * 2020-11-05 2021-02-05 深圳壹账通智能科技有限公司 Document editing method, device, server, terminal and storage medium
CN112783504A (en) * 2021-01-21 2021-05-11 中科三清科技有限公司 Binary universal representation format meteorological data analysis method and device
CN114528816A (en) * 2022-01-27 2022-05-24 北京飞书科技有限公司 Collaborative editing information display method and device, electronic equipment and readable medium

Also Published As

Publication number Publication date
CN102999480B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN102999480A (en) Method and system for editing document
US7924183B2 (en) Method and system for reducing required storage during decompression of a compressed file
CN107391762B (en) Log data processing method and device
CN105447099A (en) Log structured information extraction method and apparatus
US20140207820A1 (en) Method for parallel mining of temporal relations in large event file
CN104408100B (en) The compression method of structured web site daily record
CN104572895A (en) MPP (Massively Parallel Processor) database and Hadoop cluster data intercommunication method, tool and realization method
CN107870928A (en) File reading and device
CN110147361A (en) The system and method for master data coding rule maintenance function are realized under big data environment
CN107608669A (en) A kind of method based on database table structure automatic generation function and the page
JP6699200B2 (en) Grammar generation for simple data types
CN103595571A (en) Preprocessing method, device and system for website access logs
CN110569230A (en) Method, system and equipment for interconversion between database design model and design document
CN114328898A (en) Text abstract generating method and device, equipment, medium and product thereof
CN106469137A (en) XML document analysis method and device
KR102518772B1 (en) Data loading profiling apparatus and method for automatic processing of collected data
US9519627B2 (en) Grammar generation for XML schema definitions
CN100511212C (en) Processing method and apparatus for electronic table file
CN103198127B (en) Large files sort method and system
KR101331383B1 (en) Method and apparatus for processing data
CN115292580A (en) Data query method and device, computer equipment and storage medium
CN110263303B (en) Method and device for tracing text modification history
CN114817124A (en) Inter-multi-core microcontroller mapping method, device and computer-readable storage medium
CN101996066B (en) Command decoding device and method for disordered coded commands
CN105302852A (en) Voice and pattern personalized linking method

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