Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Embodiments of the invention provide a kind of annotations and comments processing method for layout files, comprising: the annotations and comments of the layout files preserved on the annotations and comments of the layout files preserved on client and server are synchronizeed.
In the correlation technique that preamble is described, can see the scheme of correlation technique or annotations and comments on management server (i.e. online annotations and comments) only, perhaps annotations and comments of an administrative client (namely local annotations and comments), the annotations and comments processing method of the present embodiment is carried out this locality annotations and comments and online annotations and comments synchronous, thereby make local annotations and comments and online annotations and comments can keep up-to-date annotations and comments content, make the user can immediately share to up-to-date annotations and comments.
Preferably, synchronously comprise: the annotations and comments of not uploading in the annotations and comments with client are uploaded onto the server, and the annotations and comments that do not download to client in the annotations and comments of server are downloaded to client.
In correlation technique, the annotations and comments of preserving on the annotations and comments of preserving on server and client are asynchronous, and for example user's client was at home opened layout files, and stayed annotations and comments A; Open this layout files on the client of unit, stayed annotations and comments B; Then when this layout files is opened in certain online, stayed on the internet again annotations and comments C.In correlation technique, these annotations and comments all separate management, can't share.And in the present embodiment, when the user generates annotations and comments A, automatically can upload.When the user opened this layout files on the unit client, annotations and comments A was automatically on the unit's of downloading to client, and newly-generated annotations and comments B also can upload onto the server.When layout files is opened in the next online of user, can see simultaneously annotations and comments A and annotations and comments B, and the annotations and comments C of up-to-date generation will download to jointly in the client of present online with annotations and comments A, B.In addition, if the client during the user goes back home is opened this layout files again, the annotations and comments that do not download to client in the annotations and comments of server are downloaded to client, namely annotate and comment on B and annotations and comments C download automatically, and annotations and comments A was because uploaded, so can again not upload.Above operation all realizes automatically by programming, thereby greatly alleviated user's manual operations.
Fig. 1 shows the flow chart of uploading annotations and comments according to the embodiment of the present invention, comprising:
Step S10, read each client annotations and comments upload sign;
Step S20 is masked as no annotations and comments and uploads onto the server uploading;
Step S30, the annotations and comments of successfully uploading in client upload the sign be set to be.
In this preferred embodiment, be provided with " uploading sign " in annotations and comments, the value by this sign just can judge these annotations and comments at an easy rate through uploading, this scheme is simple easily to be realized.In addition, annotations and comments can be uploaded onto the server when middle, also carry this and upload sign in annotations and comments.
Fig. 2 shows the flow chart according to the download annotations and comments of the embodiment of the present invention, comprising:
Step S15 retrieves in the annotations and comments of client with the unique identification of the annotations and comments of each server;
Step S25, with the retrieval of server less than annotations and comments download to client;
Step S35, setting is uploaded to be masked as and is in downloading to the annotations and comments of client.
In this preferred embodiment, further be provided with unique identification in annotations and comments, by this sign of retrieval on client, just can judge whether downloaded these annotations and comments on client, this scheme is simple easily to be realized.In addition, if had the sign of uploading in the annotations and comments in server, and to be set to be that step S35 can omit.
Fig. 3 shows the flow chart of uploading annotations and comments according to the online reading of the embodiment of the present invention, comprising:
Step S40, long-range layout files (e-book/electronic government documents etc.) is opened online by client,, opens file on server in client that is;
Step S50 receives the annotations and comments operation to layout files;
Step S60 creates annotations and comments on client, each annotations and comments comprise: by the content of annotations and comments operation generation; Unique identification; And upload sign, and be set to no;
Step S70 uploads onto the server the annotations and comments that create;
Step S80, the annotations and comments of successfully uploading upload the sign be set to be.
When having realized the online reading layout files, this preferred embodiment creates the synchronous of new annotations and comments.
Fig. 4 shows according to the off-line of the embodiment of the present invention and reads the flow chart of uploading annotations and comments, comprising:
Step S45, the layout files on client is opened by client terminal local;
Step S55 receives the annotations and comments operation to layout files;
Step S65 creates annotations and comments on client, each annotations and comments comprise: by the content of annotations and comments operation generation; Unique identification; And upload sign, and be set to no;
Step S75, if client signs in to server, the annotations and comments that will create are uploaded onto the server;
Step S85, the annotations and comments of successfully uploading upload the sign be set to be.
This preferred embodiment has realized that off-line creates the synchronous of new annotations and comments when reading layout files.
Preferably, unique identification comprises hardware identifier and the serial number of client, and serial number is that the serial number in the unique identification of the client annotations and comments of going forward once to generate adds 1.For example the hardware identifier of client is " asd1234567 ", and the serial number of previous annotations and comments is " 005 ", unique identification that can current annotation is set to " asd1234567006 ", and this can be avoided the uniquely identified double sign, thereby just can distinguish each annotations and comments at an easy rate.
Preferably, annotations and comments also comprise following one of at least: the page number and/or position and/or the coordinate of annotations and comments operational correspondence layout files; The time of annotations and comments operation; Version identifier; Annotations and comments people sign: be used for the identity information that record creates the user of annotations and comments; Authority people information read in annotations and comments: the reading authority that is used for controlling annotations and comments.For example, complete annotations and comments can comprise:
1, the unique identification of annotations and comments (annotations and comments ID); The user may read and add annotations and comments on various hardware, therefore, in order to guarantee to mark the uniquely identified uniqueness, annotations and comments uniquely identified create-rule be " hardware identifier+serial number ", and wherein " hardware identifier " is the hardware device number of the hardware device annotated and commented on of the interpolation at user place.
2, the particular content of annotations and comments;
3, the page number/position of the corresponding layout files of endorsement information/coordinate;
4, the creation-time of annotations and comments;
5, the version of annotations and comments: for the treatment of the request of annotations and comments change;
6, annotations and comments people information: be used for the personal information that record creates annotations and comments;
7, authority people information read in annotations and comments: the reading authority that is used for controlling endorsement information;
8, the unique identification of endorsed resource (being layout files);
9, upload sign;
10, uplink time.
This preferred embodiment is by comprising above information at annotations and comments, thereby can realize very abundant management to annotations and comments, this has solved the problem that under the different reading models of user, the annotations and comments content can't synchronously be shared, and solved the problem of personalization and the authority access of annotations and comments contents, also facilitate simultaneously passing round of endorsement information, brought better application to experience to the user.
Embodiments of the invention also provide a kind of annotations and comments processing unit for layout files, comprising: synchronization module, the annotations and comments that are used for the server of the layout files preserved on annotations and comments and the server of client of the layout files that will preserve on client are synchronizeed.
These annotations and comments processing unit makes local annotations and comments and online annotations and comments can keep up-to-date annotations and comments content, makes the user can immediately share to up-to-date annotations and comments.
Preferably, synchronization module comprises: uploading unit is used for the annotations and comments that the annotations and comments of client were not uploaded are uploaded onto the server; And download unit, the annotations and comments that do not download to client for the annotations and comments with server download to client.
Fig. 5 shows and annotates and comments on according to the preferred embodiment of the invention processing unit, is comprised of four modules: the annotations and comments administration module of server, off-line annotations and comments administration module, endorsement information display module, endorsement information synchronization module (referred to as synchronization module).
The annotations and comments administration module of server is used for the annotations and comments of management server, comprises that the particular content of unique identification (annotations and comments ID), the annotations and comments of annotations and comments, the page number/position of the corresponding layout files of annotations and comments/coordinate, the rise time of annotations and comments, the version of annotations and comments, annotations and comments people information, annotations and comments read the unique identification of authority people information, endorsed resource;
Off-line annotations and comments administration module is used for preserving the annotations and comments of client under off-line state, and the annotations and comments administration module of its storage organization and server is similar, uploads sign and uplink time but also comprise annotations and comments.
The endorsement information display module is responsible for when showing layout files, shows simultaneously corresponding annotations and comments.The endorsement information display module comprises 2 unit: endorsement information resolution unit, endorsement information display unit.Wherein, the endorsement information resolution unit is responsible for according to the layout files unique identification, the current page number, and the user right situation is obtained corresponding annotations and comments from the annotations and comments administration module of off-line or server; The endorsement information display unit is according to the coordinate of endorsement information, with the assigned address of annotations and comments content displaying to corresponding layout files specific page.
The endorsement information synchronization module is responsible in the situation that online, off-line is annotated and commented on the content uploading that needs the annotations and comments administration module of uploading onto the server in administration module, and the content that needs in the annotations and comments administration module with server to download in off-line annotations and comments administration module is downloaded.
The endorsement information synchronization module comprises 3 unit: endorsement information contrasts unit, endorsement information uploading unit (referred to as uploading unit), endorsement information download unit (referred to as download unit).
Endorsement information contrast unit is used for according to user right, and the difference of the annotations and comments in the endorsement information in contrast off-line annotations and comments administration module and the annotations and comments administration module of server is determined the part that need to upload or download.The specific works of contrast obtains 2 results the most at last: in off-line annotations and comments administration module, which endorsement information " uploading sign " is no; The difference of the unique identification (annotations and comments ID) of annotating and commenting between the annotations and comments administration module of server and off-line annotations and comments administration module.
The endorsement information uploading unit is used for that off-line is annotated and commented on administration module and needs the part annotations and comments uploaded, the annotations and comments administration module of uploading onto the server; Be off-line annotated and commented on the annotations and comments administration module of " uploading sign " in administration module and uploading onto the server for no annotations and comments, thus reach with the off-line annotations and comments be synchronized to online in.
The endorsement information download unit is annotated and commented on for the part that the annotations and comments administration module with server needs to download, and downloads to off-line annotations and comments administration module; Be the annotations and comments ID that annotations and comments administration module and the off-line of offline service device are annotated and commented on administration module and compare, the synchronous differentiated annotations and comments of ID, thus the annotations and comments that reach server are synchronized in off-line.
For example, read layout files and annotate and comment on and can comprise the following steps under user's line model:
Open the layout files resource under the first step, user's line model;
The annotations and comments content of second step, resolution server end, and read the annotations and comments content that belongs to active user's rights of using scope and show, if do not have, show without the annotations and comments content;
The 3rd step, user annotate and comment on (punctuate or edit the appreciation text);
The 4th step, establishment/upgrade endorsement information, and be saved at any time in the annotations and comments administration module of server.
For example, reading layout files under user's off-line mode also annotates and comments on and can comprise the steps:
The first step, user use local ocr software to open local layout files;
Second step, ocr software are logined, and confirm user identity, and judge whether online;
If the 3rd step is online, access services device end, belong to server end the annotations and comments content down loading updating of active user's scope of application to local, and show.If off-line, the annotations and comments content during directly read local is stored; If do not find the annotations and comments content, show without the annotations and comments content;
The 4th step, user annotate and comment on (punctuate or edit the appreciation text);
The 5th step, establishment/renewal endorsement information, and preserve at any time, if online, this and the passing endorsement information of not uploading are synchronized in the annotations and comments administration module of server of aol server end, if not online, directly be saved in the off-line annotations and comments administration module of client.
The annotations and comments exhibiting device is responsible for annotating and commenting on content and is presented on layout files when opening a layout files, wherein also comprised an annotations and comments download apparatus, in case when using line model, preferentially read and download the annotations and comments content from server end, when using local mode, change from this locality and therefrom read the annotations and comments content.
Annotations and comments submit to device to be responsible for uploading the annotations and comments content to server end, when using line model, preferentially will annotate and comment on content uploading to server end, if use local mode, will annotate and comment on content and be kept in the subscriber's local buffer memory, in case reach the standard grade directly submit to.
As can be seen from the above description, the invention enables no matter the user is online or off-line, can immediately share to up-to-date annotations and comments.
obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step being made into the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is only the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.