CN115169298A - Cross-browser Word programmed annotation method - Google Patents
Cross-browser Word programmed annotation method Download PDFInfo
- Publication number
- CN115169298A CN115169298A CN202210806390.6A CN202210806390A CN115169298A CN 115169298 A CN115169298 A CN 115169298A CN 202210806390 A CN202210806390 A CN 202210806390A CN 115169298 A CN115169298 A CN 115169298A
- Authority
- CN
- China
- Prior art keywords
- word
- annotation
- document
- section
- content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/169—Annotation, e.g. comment data or footnotes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention relates to the technical field of Word editors and discloses a cross-browser Word programmed annotation method, which comprises the steps of opening a document to be operated by using an online editor through a document address or document content provided by a service system, and taking information such as all annotation information contents and positions according to a service system interface, wherein the position information is presented in a range form, for example, the cross-browser Word programmed annotation method is 'A-section B-section D-section B-section C-section D-section' the invention provides rich annotation operation interfaces for controlling Word documents and is matched with the service system, so that the scene of automatically batch annotation can be realized, the effect on long-width documents is particularly obvious, the variety and free configuration of annotation styles can be realized, richer service requirements can be met, and the problem that the traditional Word editors cannot automatically batch control Word annotation can be solved.
Description
Technical Field
The invention belongs to the technical field of Word editors, and particularly relates to a Word programmed annotation method of a cross-browser.
Background
Word is widely used in various office processes, document writing and other works as common software for daily office work, but the traditional Word editor is used as independent software mainly providing preview and editing functions and is difficult to combine with an information automation platform, while enterprise digital transformation is the mainstream trend at present, and various documents need to be managed, reviewed and cooperated in a management platform in an information way.
The online document annotating function is a key function for realizing document collaboration and examination in an enterprise, and a set of online editor annotating system supporting an automatic program interface can perform functions of highlighting prompt, highlighting identification, prompt modification and the like according to various requirements, so that the efficiency of processing Word documents by a user is greatly improved.
However, in the prior art, only one prompt annotation can be manually made on a Word document, and the Word annotations cannot be automatically controlled in batch, so that time and labor are wasted, and the office efficiency is reduced.
Disclosure of Invention
In view of the above situation, in order to overcome the defects of the prior art, the invention provides a cross-browser Word programming annotation method, which effectively solves the problems in the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a cross-browser Word programmatic annotation method, comprising the steps of:
step one
Opening a document to be operated by using an online editor through a document address provided by a service system;
step two
Taking information such as all annotation information contents and positions according to a service system interface, wherein the position information is presented in a range form, such as 'A section, B word to C section, D word';
step three
According to the annotation content obtained in the second step, the method comprises the following steps: the information such as position, color, user name and the like is executed in batch in the document by a annotating method provided by a Word editor;
step four
The Word editor annotating method comprises the steps of firstly obtaining position information, namely the B-th character of the A-th section to the D-th character of the C-th section, and obtaining a corresponding character range in a document;
step five
Triggering the operation of adding annotations, if the position is in the middle of the < w: r > tag, the tag needs to be split firstly, if the position is on two sides of the < w: r > tag, the < w: commenting reference >, < w: commenting rangestart >, < w: commenting rangeend > tags can be directly inserted;
step six
Inserting the annotation content, the annotation user and the annotation time into a word/comments.xml file of docx;
step seven
Writing the information of comment color, comment style, comment display or not into the system;
step eight
Re-rendering is triggered, and new results are displayed to the user according to the previously defined annotation position, content, color, display style and the like.
Preferably, when the position information is extracted, the business system divides the content of the Word document into paragraphs, marks the line character of the Word document as X, and marks the column character of the Word document as Y.
Preferably, the position information of the Word document extracted in the second step is in the form of "a section, a second Word to a C section, a second Word", and is recorded as [ a, B ] - [ C, D ] in the business system.
Preferably, the form of the Word document content is extracted in the third step, the position of the Word document content is selected by the user, the color of the Word document content is set by the user, and the user name of the Word document content is created by the user.
Preferably, after annotating the content in the sixth step, annotating the user, and inserting the annotation time into the specified file, the Word editor regenerates the new file and automatically saves the original file.
Preferably, the annotated file in the step seven is backed up in a business system.
Compared with the prior art, the invention has the beneficial effects that:
the invention can realize the scene of automatic batch annotation by providing rich annotation operation interfaces for controlling the Word documents and matching with a service system, has particularly obvious effect on long-width multi-page documents, can freely configure the variety of annotation styles, meets richer service requirements and solves the problem that the traditional Word editor can not automatically control the Word annotation in batch.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of the steps of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments; all other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The embodiment is shown in FIG. 1, and the invention includes a cross-browser Word programming annotation method, which includes the following steps:
step one
Opening a document to be operated by using an online editor through a document address provided by a service system;
step two
Taking information such as all annotation information contents and positions according to a service system interface, wherein the position information is presented in a range form, such as 'A section, B Word to C section, D Word', when the position information is extracted, the service system divides the contents of the Word document into paragraphs, marks the line character of the Word document as X, marks the column character of the Word document as Y, and extracts the position information form of the Word document in a second step, such as 'A section, B Word to C section, D Word', and records the position information as [ A, B ] - [ C, D ] in the service system;
step three
According to the annotation content obtained in the step two, the method comprises the following steps: information such as position, color, user name and the like is executed in batch in the document by a annotating method provided by a Word editor, the form of the content of the Word document is extracted in the third step, the position of the content of the Word document is selected by a user, the color of the content of the Word document is set by the user, and the user name of the content of the Word document is created by the user;
step four
The Word editor annotating method comprises the steps of firstly obtaining position information, namely a B-th Word in an A-th section to a D-th Word in a C-th section, and obtaining a corresponding Word range in a document;
step five
Triggering the operation of adding annotations, if the position is in the middle of the < w: r > tag, the tag needs to be split firstly, if the position is on two sides of the < w: r > tag, the < w: commenting reference >, < w: commenting rangestart >, < w: commenting rangeend > tags can be directly inserted;
step six
Inserting the annotation content, the annotation user and the annotation time into the Word/comments.xml file of the docx, and after the annotation content, the annotation user and the annotation time are inserted into the specified file in the sixth step, the Word editor can regenerate a new file and automatically store the original file;
step seven
Writing the information of annotation color, annotation style, annotation display, and the like into the system, and storing and backing up the annotated file in the step seven in the business system;
step eight
And triggering re-rendering, and displaying a new result to the user according to the previously defined annotation position, content, color, display style and the like.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (6)
1. A cross-browser Word programmed annotation method is characterized by comprising the following steps: the annotating method comprises the following steps:
step one
Opening a document to be operated by using an online editor through a document address or file content provided by a service system;
step two
Taking information such as all annotation information contents and positions according to a service system interface, wherein the position information is presented in a range form, such as 'A section, B word to C section, D word';
step three
According to the annotation content obtained in the step two, the method comprises the following steps: information such as position, color, user name and the like is executed in batches in the document by a annotating method provided by a Word editor;
step four
The Word editor annotating method comprises the steps of firstly obtaining position information, namely the B-th character of the A-th section to the D-th character of the C-th section, and obtaining a corresponding character range in a document;
step five
Triggering the operation of adding annotations, if the position is in the middle of the < w: r > tag, the tag needs to be split firstly, if the position is on two sides of the < w: r > tag, the < w: commenting reference >, < w: commenting rangestart >, < w: commenting rangeend > tags can be directly inserted;
step six
Inserting the annotation content, the annotation user and the annotation time into a word/comments.xml file of docx;
step seven
Writing the information of comment color, comment style, comment display or not into the system;
step eight
And triggering re-rendering, and displaying a new result to the user according to the previously defined annotation position, content, color, display style and the like.
2. The cross-browser Word programmatic annotation method of claim 1, wherein: when the position information is extracted, the business system divides the content of the Word document into paragraphs, marks the line characters of the Word document as X, and marks the column characters of the Word document as Y.
3. A Word programmatic annotation method cross-browser according to claim 1, characterized in that: in the second step, the position information of the Word document is extracted, for example, "A section, B th Word to C section, D th Word", and is recorded as [ A, B ] - [ C, D ] in the business system.
4. The cross-browser Word programmatic annotation method of claim 1, wherein: and in the third step, the form of the Word document content is extracted, the position of the Word document content is selected by the user, the color of the Word document content is set by the user, and the user name of the Word document content is created by the user.
5. The cross-browser Word programmatic annotation method of claim 1, wherein: and after the comment content of the sixth step, the comment user and the comment time are inserted into the specified file, the Word editor can regenerate a new file and automatically store the original file.
6. A Word programmatic annotation method cross-browser according to claim 1, characterized in that: and the annotated file in the step seven is backed up in a business system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210806390.6A CN115169298A (en) | 2022-07-08 | 2022-07-08 | Cross-browser Word programmed annotation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210806390.6A CN115169298A (en) | 2022-07-08 | 2022-07-08 | Cross-browser Word programmed annotation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115169298A true CN115169298A (en) | 2022-10-11 |
Family
ID=83493641
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210806390.6A Pending CN115169298A (en) | 2022-07-08 | 2022-07-08 | Cross-browser Word programmed annotation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115169298A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115688711A (en) * | 2022-12-30 | 2023-02-03 | 中化现代农业有限公司 | Document merging method, device, equipment and storage medium |
-
2022
- 2022-07-08 CN CN202210806390.6A patent/CN115169298A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115688711A (en) * | 2022-12-30 | 2023-02-03 | 中化现代农业有限公司 | Document merging method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5572728A (en) | Conference multimedia summary support system and method | |
US9870796B2 (en) | Editing video using a corresponding synchronized written transcript by selection from a text viewer | |
US6567830B1 (en) | Method, system, and program for displaying added text to an electronic media file | |
US5689718A (en) | System and method for processing document information using password protected icons that represent document content | |
US7140536B2 (en) | Method and system for highlighting modified content in a shared document | |
US7392475B1 (en) | Method and system for automatic insertion of context information into an application program module | |
US20060080603A1 (en) | Method and apparatus for utilizing an object model to manage document parts for use in an electronic document | |
US20130132839A1 (en) | Dynamic Positioning of Timeline Markers for Efficient Display | |
DE10249406A1 (en) | Processing of multimedia elements for preparation of a multimedia presentation, whereby a program is used to create a database of timestamped elements that can be manipulated using the program by one or more users | |
JPH02300847A (en) | Processing of structured document | |
CN115169298A (en) | Cross-browser Word programmed annotation method | |
US11942117B2 (en) | Media management system | |
US20080091745A1 (en) | Digital Archive Systems, Methods and Computer Program Products for Linking Linked Files | |
CN108766513B (en) | Intelligent health medical data structured processing system | |
CN113241140A (en) | Processing method for reserving electronic medical record editing trace | |
CN115759025A (en) | Excel data conversion method, system, medium and device based on template file | |
CN115048659A (en) | Sharing method and device of shared object, electronic equipment and storage medium | |
JP4146475B2 (en) | Register data electronic device | |
JP2000035961A (en) | Sgml editor and using method therefor | |
CN114518876A (en) | Visual editing and generating method of HTML webpage source code | |
JP2000076228A (en) | Automatic document format correcting method | |
Schmidt et al. | The Charles Harpur Critical Archive: A History and Technical Report | |
JPS62217320A (en) | List compilation processing system | |
JP2006309384A (en) | Management method for document | |
KR100709379B1 (en) | Making method for documents having the form appling the analyzed Meta-file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |