CN110287462B - Tracking revision method and system based on browser - Google Patents

Tracking revision method and system based on browser Download PDF

Info

Publication number
CN110287462B
CN110287462B CN201910584927.7A CN201910584927A CN110287462B CN 110287462 B CN110287462 B CN 110287462B CN 201910584927 A CN201910584927 A CN 201910584927A CN 110287462 B CN110287462 B CN 110287462B
Authority
CN
China
Prior art keywords
state
content
content data
initial
marking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910584927.7A
Other languages
Chinese (zh)
Other versions
CN110287462A (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.)
Shanghai Yizhe Information Technology Co ltd
Original Assignee
Shanghai Yizhe Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yizhe Information Technology Co ltd filed Critical Shanghai Yizhe Information Technology Co ltd
Priority to CN201910584927.7A priority Critical patent/CN110287462B/en
Publication of CN110287462A publication Critical patent/CN110287462A/en
Application granted granted Critical
Publication of CN110287462B publication Critical patent/CN110287462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/194Calculation of difference between files

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides a tracking revision method and a system based on a browser, wherein the method comprises the following steps: carrying out state marking on initial content data in a rich text input box of a browser to obtain a first state sequence corresponding to the initial content data; carrying out initial state marking on the current content data in the edited rich text box by using the first state sequence; comparing the initial content data with the current content data to obtain content change recording information; feeding back the changed content to the initial content data according to the content change recording information to obtain revised content data, and marking the changed state of the first state sequence to obtain a second state sequence; and rendering and displaying the changed content. The tracking revision method and system based on the browser solve the problem that no revision function exists when the text editing task is executed in the Web browser in stages.

Description

Tracking revision method and system based on browser
Technical Field
The invention belongs to the technical field of text editing, and particularly relates to a tracking revision method and system based on a browser.
Background
The tracking revision technique can record user input changes and traces of changes, such as: the new input of the user is marked by underlines, the character content deleted by the user is marked by middle-drawn lines, all the contents before and after modification are shown in the text and comprise the deleted text, after the software records the modification of the user, the software can choose to accept or reject the revision record, the acceptance of revision is to clear the modification marks and display the content in the final state, the rejection of revision is to restore the content represented by the revision trace, and the change of the edited content is cancelled and restored to the original text content. At present, when a text editing task is executed in a Web browser, no product is realized and the function is provided, so that a tracking revision solution developed based on the Web browser is urgently needed.
Disclosure of Invention
The embodiment of the invention provides a tracking revision method and system based on a browser, and solves the problem that no revision function exists when a text editing task is executed in a Web browser.
In order to solve the above technical problem, an embodiment of the present invention provides a tracking revision method based on a browser, including:
carrying out state marking on initial content data in a rich text input box of a browser to obtain a first state sequence corresponding to the initial content data;
carrying out initial state marking on the current content data in the edited rich text box by utilizing the first state sequence;
comparing the initial content data with the current content data to obtain content change record information;
feeding back the changed content to the initial content data according to the content change recording information to obtain revised content data, and marking the changed state of the first state sequence to obtain a second state sequence;
and rendering and displaying the changed content.
In some embodiments, the states include an initial state, an input state, and a delete state.
In some embodiments, the step of initially state-tagging current content data in the edited rich text input box with the first state sequence comprises:
receiving a content change event instruction of the rich text input box;
acquiring current content data in the edited rich text input box;
and carrying out initial state marking on the current content data by utilizing the first state sequence.
In some embodiments, the step of comparing the initial content data with the current content data to obtain content change record information comprises:
acquiring the content change position and the content of the change by utilizing a front-back head-to-tail one-by-one comparison mode;
determining a revision type according to the content of the change;
wherein the content change recording information includes a content change location, changed content, and revision type.
In some embodiments, the feeding back the changed content to the original content data according to the content change recording information to obtain revised content data, and marking the changed state of the first state sequence to obtain the second state sequence includes:
if the changed content is a deleted character, updating the state of the position corresponding to the deleted character bit in the first state sequence into a deleted state;
and if the changed content is the newly added character, inserting the position corresponding to the newly added character in the first state sequence into an input state.
In some embodiments, the step of rendering and displaying the changed content further comprises:
storing the revised content data and the second state sequence as initial content data for a next editing operation;
and storing the current content data into a history record, and recording the current state to display the last record in the history record.
On the other hand, the embodiment of the invention also provides a tracking revision system based on a browser, which comprises:
the system comprises a first state marking module, a second state marking module and a third state marking module, wherein the first state marking module is used for carrying out state marking on initial content data in a rich text input box of a browser to obtain a first state sequence corresponding to the initial content data;
the second state marking module is used for marking the initial state of the current content data in the edited rich text input box by using the first state sequence;
the comparison module is used for comparing the initial content data with the current content data to obtain content change record information;
the feedback module is used for feeding back the changed content to the initial content data according to the content change recording information to obtain revised content data, and marking the changed state of the first state sequence to obtain a second state sequence;
and the rendering display module is used for rendering and displaying the changed content.
In some embodiments, the second state marking module comprises:
the instruction receiving unit is used for receiving a content change event instruction of the rich text input box;
the obtaining unit is used for obtaining the current content data in the edited rich text input box;
and the marking unit is used for marking the initial state of the current content data by using the first state sequence.
In some embodiments, the comparison module comprises:
the comparison unit is used for acquiring the content change position and the content changed by utilizing a front-back head-to-tail one-by-one comparison mode;
a revision type determining unit for determining a revision type according to contents of the change;
wherein the content change recording information includes a content change location, changed content, and revision type.
In some embodiments, the system further comprises:
a first storage module for storing the revised content data and the second state sequence, the revised content data being used as initial content data for a next editing operation;
and the second storage module is used for storing the current content data into the history record and recording that the current state display is the last record in the history record.
The invention has the beneficial effects that:
according to the tracking revision method based on the browser, the initial content data in the rich text input box of the browser are subjected to state marking to obtain the first state sequence corresponding to the initial content data, then the initial state marking is carried out on the current content data in the rich text box after editing through the first state sequence, the initial content data and the current content data are compared to obtain content change recording information, accordingly, changed content is fed back to the initial content data according to the content change recording information to obtain revised content data, the changed state of the first state sequence is marked to obtain the second state sequence, finally, the changed content is rendered and displayed, the tracking revision process is completed, and the problem that no revision function exists in text editing tasks executed in a Web browser in stages is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of a browser-based tracking revision method of the present invention;
FIG. 2 is a flowchart of one embodiment of the steps 200 of a browser-based tracking revision method of the present invention;
FIG. 3 is a flowchart of one embodiment of step 300 of a browser-based tracking revision method of the present invention.
FIG. 4 is a flow chart illustrating another embodiment of a method for tracking revisions based on a browser in accordance with the present invention
FIG. 5 is a block diagram illustrating the architecture of one embodiment of a browser-based tracking revision system of the present invention;
FIG. 6 is a block diagram illustrating one embodiment of a second state tagging module 20 of a browser-based revision tracking system in accordance with the present invention;
FIG. 7 is a block diagram illustrating the structure of one embodiment of the comparison module 30 of a browser-based tracking revision system 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 drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a method for tracking and revising based on a browser, including:
step 100: carrying out state marking on initial content data in a rich text input box of a browser to obtain a first state sequence corresponding to the initial content data;
optionally, the states in this embodiment include an initial state, an input state, and a deletion state.
In this step, it is first necessary to perform state marking on the initial content data and record the obtained first state sequence. For example: the initial content data is a text content, each character is taken as a minimum unit, and each character unit is subjected to initial state marking. In the data marking process, each element records the current state, the state can be divided into 1,0 and-1, wherein 1 represents that the element is newly input by a user, 0 represents that the element is in the initial content of the user, and-1 represents that the element is deleted in the user input process. Each element state of the initial content data flag is 0, hereinafter the initial data flag state, and the flag state is stored. The case text initial content is: abcdefg.
a b c d e f g
0 0 0 0 0 0 0
Step 200: marking the initial state of the current content data in the edited rich text box by using the first state sequence;
in this step, after the user performs an editing operation, a content change event of the rich text input box is triggered, the current content data is obtained, and an initial mark is executed, in this case, the user deletes "c" after the second character and inputs a new character "x", and obtains the edited current content data of the current input box and generates a default mark state by using the first state sequence:
a b x d e f g
0 0 0 0 0 0 0
step 300: comparing the initial content data with the current content data to obtain content change recording information;
in the step, the initial content data and the current content data are compared to calculate the difference change before and after the content input by the user, the condition that the modification of the user belongs to is calculated, the condition is determined after calculation, c in the initial sentence is the deleted character content, and x in the currently input latest content is the character content newly added by the user.
Step 400: feeding back the changed content to the initial content data according to the content change recording information to obtain revised content data, and marking the changed state of the first state sequence to obtain a second state sequence;
in the step, 1 character x is added after the 3 rd character based on the content of the initial text, the state corresponding to the x character is marked as a new state, and when the state of the newly added character is marked, the newly added character does not exist in the initial text correspondingly, so that the state is uniformly modified into the state 1 to represent the newly added state, and the second state sequence can be obtained.
a b c x d e f g
0 0 -1 1 0 0 0 0
Step 500: and rendering and displaying the changed content.
In the step, the changed content is rendered, different styles are displayed by combining marks, if the content is newly added, the green character band is underlined, and if the content is deleted, the red character band is underlined.
According to the tracking revision method based on the browser, the initial content data in the rich text input box of the browser are subjected to state marking to obtain the first state sequence corresponding to the initial content data, then the initial state marking is carried out on the current content data in the rich text box after editing through the first state sequence, the initial content data and the current content data are compared to obtain content change recording information, accordingly, changed content is fed back to the initial content data according to the content change recording information to obtain revised content data, the changed state of the first state sequence is marked to obtain the second state sequence, finally, the changed content is rendered and displayed, the tracking revision process is completed, and the problem that no revision function exists in text editing tasks executed in a Web browser in stages is solved.
In some embodiments, as shown in FIG. 2, the step 200 of initial state tagging the current content data in the edited rich text entry box with a first state sequence comprises:
step 201: receiving a content change event instruction of the rich text input box;
step 202: acquiring current content data in the edited rich text input box;
step 203: the current content data is initially state-tagged with a first state sequence.
In this embodiment, the step 200 specifically includes: after the user carries out editing operation, a content change event instruction triggering the input box is received, then the current content data in the rich text input box is obtained, and the minimum unit elements in the input box are extracted to form a new text sequence in sequence. If the input box has pictures, one picture is regarded as a common character, and a unique number, a state mark and the like of each picture are identified. Marking a default state on the character node acquired after editing, starting to edit the initial content data by a user, and only three operations of the initial content data by the user are carried out by one-time editing:
a. newly adding a part of characters;
b. deleting part of the characters;
c. and simultaneously adding characters and deleting partial characters (similar replacement operations such as selecting a certain text and pasting other new texts by a user) for the third replacement operation, appointing: the replacement operation can be decomposed into a delete word operation + an add word operation.
And then executing initial marking, in the case of deleting 'c' after the second character and inputting a new character 'x', and acquiring the edited text of the current input box and generating a default marking state.
In some embodiments, as shown in fig. 3, the step 300 of comparing the initial content data with the current content data to obtain the content change recording information includes:
step 301: acquiring the content change position and the content of the change by utilizing a front-back head-to-tail one-by-one comparison mode;
step 302: determining a revision type according to the changed content;
the content change recording information comprises a content change position, changed content and a revision type.
In this embodiment, step 300 specifically includes: calculating the difference change before and after the user input content from
And it is determined that the user's modification is of the aforementioned kind.
Because editing operation can not simultaneously operate two discontinuous segment texts, the difference calculation mode adopts a front-back head-to-tail one-by-one comparison mode, and character strings before and after editing are as follows:
a b C d e f g
a b x d e f G
first, starting from the beginning character a of the sentence beginning, comparing one by one, wherein a is the same, b is the same, until c is different from x, at this time, intercepting and storing the front part character string ab (the front same part represents the part of the new sentence and the old sentence which are not edited), and recording the current position 2.
The content of the remaining characters:
C d e f g
x d e f G
after intercepting the same character content in the head, the rest characters are compared one by one in reverse order
Starting from the character g, comparing in reverse order, g, f, e and d are the same until c is different from x, at which time, the character string defg of the later part is intercepted and stored (the same later part represents the unedited part of the tail of the new sentence and the old sentence)
The content of the remaining characters:
C
x
after calculation, determining that c in the initial sentence is the deleted character content, wherein x in the currently input latest content is the character content newly added by the user, and finally determining the result:
a. deleting 1 character c after the 2 nd character on the basis of the initial text content;
b. adding 1 character x after the 2 nd character on the basis of the initial text content;
c. since the tracking revision is to keep the user's revision record, the actual location of the added character needs to be calculated as the length of the previous same character and the length of the deleted character, i.e., the character x is added after the 3 rd (length 2 of character ab plus length 1 of character c) character.
Acquiring difference calculation result data:
Figure BDA0002114234500000081
Figure BDA0002114234500000091
in some embodiments, the step 400 of feeding back the changed content to the initial content data according to the content change recording information to obtain revised content data, and marking the changed state to the first state sequence to obtain the second state sequence comprises:
if the changed content is a deleted character, updating the state of the position corresponding to the deleted character bit in the first state sequence into a deleted state;
and if the changed content is the new added character, inserting the position corresponding to the new added character in the first state sequence into the input state.
The step 400 of this embodiment may specifically be: a. after deleting 1 character c after the 2 nd character on the basis of the initial text content, marking the state corresponding to the character c as a new state, and when marking the deleted character, following the following rule:
if the initial state is-1, which indicates that the deletion state is existed before, the initial state is still set to-1;
if the initial state is 0, indicating that the text is a common state text, setting the state to-1;
if the initial state is 1, indicating that the added text is preceded, the state is set to 2 (the special state, indicating that the character is actually kicked out in the step after updating the state, because the added character is deleted again in the tracking revision mode, it can be directly deleted).
a b c d e f g
0 0 -1 0 0 0 0
b. Adding 1 character x after the 3 rd character on the basis of the content of the initial text, marking the state corresponding to the character x as a new state, and when marking the state of the new added character, the newly added character does not exist in the initial text correspondingly, so that the state is uniformly modified into the state 1 to represent the new added state.
a b c x d e f g
0 0 -1 1 0 0 0 0
c. And in the character content after the status application is completed, if the character content is marked as the special status of 2, filtering kick-out is performed.
In some embodiments, as shown in fig. 4, the step 500 of rendering and displaying the changed content further includes:
step 600: storing the revised content data and the second state sequence, with the revised content data as initial content data for a next editing operation;
step 700: and storing the current content data into the history record, and recording the current state to display the last record in the history record.
The tracking revision method based on the browser of the embodiment of the invention also needs to store the revised content data and the second state sequence, and takes the revised content data as the initial content data of the next editing operation.
At this time, for the calculation of the next period, the initial text is:
a b c x d e f g
0 0 -1 1 0 0 0 0
storing the current content data in a history record, recording that the current state display is the last record in the history record, checking whether the content displayed by the current data is the last record in the history record,
a. if yes, adding the latest data into the record;
b. if not, then the records following the location are all deleted and the current newest record is added as the latest one.
In addition, the embodiment may also perform a tracking revision rollback forward operation, and after the tracking revision is implemented, the rollback and the forward may be allowed according to each modification stored history, which is stored in the editing process in the embodiment:
Figure BDA0002114234500000101
Figure BDA0002114234500000111
in the normal state, the text state is the last in the history, and the position of the currently displayed data of the text box in the history is memorized, for example, 2 items exist in the current history in this example, and the last position of the record is 2.
When backspacing is selected to be executed, whether a history record exists before the current position is checked, if so, the previous record is taken out and displayed and rendered in a text input box, the current example is the 2 nd record, so the 1 st record is taken out, and the current position is recorded as 1.
When the execution is selected to advance, a history record exists after the current position is checked, if the history record exists, the display is taken out, in the embodiment, after the execution of one-step rollback, the position of the current record is 1, so that the next 2 nd display is taken out and rendered into the text input box, and the position is recorded to be 2.
The browser-based tracking revision method of the embodiments of the present invention may choose to accept revisions or reject revisions after a revision has been made. The revision receiving means that the current edited data content is calculated to be new content according to the marking information and formatted into a common text, namely the new added text does not display the new mark, and the deleted text is not displayed in the text, so that the state of the current data text is relabeled to 0 in the state of 1, and is relabeled to 2 in the state of-1 (special state), and the common character in the state of 0 is unchanged.
The example specifically may be:
a b c x d e f g
0 0 -1 1 0 0 0 0
after re-marking
a b c x d e f g
0 0 2 1 0 0 0 0
In the character content after the state application is completed, if the character content is marked as a special state of 2, filtering kicking is executed, and a result is obtained:
a b x d e f g
0 0 0 0 0 0 0
and rendering and displaying the latest data with only the common state mark into the text box.
And refusing revision, namely canceling the effect generated by the revision, restoring all the editing effects into the initial sentence, recording the deleted text characters to be added back, and deleting the newly added text characters, so that the label of the text state 1 is 2 (special label), the modification of the text state-1 is 0, and the common characters of the text state 0 are unchanged.
The example specifically may be:
a b c x d e f g
0 0 -1 1 0 0 0 0
after re-marking
a b c x d e f g
0 0 0 2 0 0 0 0
In the character content after the state application is completed, if the character content is marked as the special state of 2, filtering kicking is executed, and a result is obtained:
a b c d e f g
0 0 0 0 0 0 0
in another aspect, referring to fig. 5, an embodiment of the present invention further provides a system 100 for tracking and revising based on a browser, including:
a first state marking module 10, configured to perform state marking on initial content data in a rich text input box of a browser, to obtain a first state sequence corresponding to the initial content data;
a second state marking module 20, configured to mark an initial state of current content data in the edited rich text input box by using the first state sequence;
a comparing module 30, configured to compare the initial content data with the current content data to obtain content change recording information;
a feedback module 40, configured to feed back the changed content to the initial content data according to the content change recording information to obtain revised content data, and mark the changed state of the first state sequence to obtain a second state sequence;
and the rendering display module 50 is used for rendering and displaying the changed content.
The tracking revision system based on the browser firstly marks the initial content data in a rich text input box of the browser through a first state marking module to obtain a first state sequence corresponding to the initial content data, then marks the initial state of the current content data in the edited rich text box through a second state marking module by using the first state sequence, compares the initial content data with the current content data through a comparison module to obtain content change recording information, feeds back the changed content to the initial content data through a feedback module according to the content change recording information to obtain revised content data, obtains a second state sequence according to the state of the changed first state sequence mark, and finally renders and displays the changed content through a rendering and displaying module to complete the tracking revision process, thereby solving the problem that no revision function is performed in the text editing task executed in the Web browser at the stage.
In some embodiments, as shown in fig. 6, the second state labeling module 20 includes:
an instruction receiving unit 21 configured to receive a content change event instruction of the rich text input box;
an obtaining unit 22, configured to obtain current content data in the edited rich text input box;
a marking unit 23, configured to perform initial state marking on the current content data by using the first state sequence.
In some embodiments, as shown in fig. 7, the comparison module 30 includes:
the comparison unit 31 is configured to obtain content change positions and changed content by using a front-to-back end-to-end one-by-one comparison method;
a revision type determining unit 32 for determining a revision type according to the content of the change;
the content change recording information comprises a content change position, changed content and a revision type.
In some embodiments, the system 100 further comprises:
the first storage module is used for storing the revised content data and the second state sequence, and the revised content data is used as the initial content data of the next editing operation;
and the second storage module is used for storing the current content data into the history record and recording that the current state display is the last record in the history record.
While the present invention has been described with reference to the particular illustrative embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but is intended to cover various modifications, equivalent arrangements, and equivalents thereof, which may be made by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. A method for tracking revisions based on a browser, comprising:
carrying out state marking on initial content data in a rich text input box of a browser to obtain a first state sequence corresponding to the initial content data; the states comprise an initial state, an input state and a deletion state; the initial content data is a section of text content, each character is taken as a minimum unit, and each character unit is subjected to initial state marking;
carrying out initial state marking on the current content data in the edited rich text box by using the first state sequence;
comparing the initial content data with the current content data to obtain content change record information;
feeding back the changed content to the initial content data according to the content change recording information to obtain revised content data, and marking the changed state of the first state sequence to obtain a second state sequence;
and rendering and displaying the changed content.
2. The method of claim 1, wherein the step of using the first state sequence to initially state mark the current content data in the edited rich text input box comprises:
receiving a content change event instruction of the rich text input box;
acquiring current content data in the edited rich text input box;
and carrying out initial state marking on the current content data by utilizing the first state sequence.
3. The browser-based tracking revision method according to claim 2, wherein the step of comparing the initial content data with the current content data to obtain content change record information comprises:
acquiring the content change position and the content of the change by utilizing a front-back head-to-tail one-by-one comparison mode;
determining a revision type according to the content of the change;
wherein the content change recording information includes a content change location, changed content, and a revision type.
4. The method of claim 3, wherein the step of feeding back the changed content to the original content data according to the content change recording information to obtain the revised content data, and marking the changed state of the first state sequence to obtain the second state sequence comprises:
if the changed content is a deleted character, updating the state of the position corresponding to the deleted character bit in the first state sequence into a deleted state;
and if the changed content is the newly added character, inserting the position corresponding to the newly added character in the first state sequence into an input state.
5. The browser-based tracking revision method according to any one of claims 1 to 4, wherein said step of rendering and displaying said changed content further comprises:
storing the revised content data and the second state sequence as initial content data for a next editing operation;
and storing the current content data into a history record, and recording the current state to display the last record in the history record.
6. A browser-based tracking revision system, comprising:
the system comprises a first state marking module, a second state marking module and a third state marking module, wherein the first state marking module is used for carrying out state marking on initial content data in a rich text input box of a browser to obtain a first state sequence corresponding to the initial content data; the states comprise an initial state, an input state and a deletion state; the initial content data is a section of text content, each character is taken as a minimum unit, and each character unit is subjected to initial state marking;
the second state marking module is used for marking the initial state of the current content data in the edited rich text input box by using the first state sequence;
the comparison module is used for comparing the initial content data with the current content data to obtain content change record information;
the feedback module is used for feeding back the changed content to the initial content data according to the content change recording information to obtain revised content data, and marking the changed state of the first state sequence to obtain a second state sequence;
and the rendering display module is used for rendering and displaying the changed content.
7. The browser-based tracking revision system of claim 6, wherein said second state tagging module comprises:
the instruction receiving unit is used for receiving a content change event instruction of the rich text input box;
the obtaining unit is used for obtaining the current content data in the edited rich text input box;
and the marking unit is used for marking the initial state of the current content data by using the first state sequence.
8. The browser-based revision tracking system of claim 7, wherein the comparison module comprises:
the comparison unit is used for acquiring the content change position and the content changed by utilizing a front-back head-to-tail one-by-one comparison mode;
a revision type determining unit for determining a revision type according to contents of the change;
wherein the content change recording information includes a content change location, changed content, and revision type.
9. The browser-based tracking revision system according to any of claims 6-8, said system further comprising:
a first storage module for storing the revised content data and the second state sequence, the revised content data being used as initial content data for a next editing operation;
and the second storage module is used for storing the current content data into a historical record and recording that the current state display is the last record in the historical record.
CN201910584927.7A 2019-07-01 2019-07-01 Tracking revision method and system based on browser Active CN110287462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910584927.7A CN110287462B (en) 2019-07-01 2019-07-01 Tracking revision method and system based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910584927.7A CN110287462B (en) 2019-07-01 2019-07-01 Tracking revision method and system based on browser

Publications (2)

Publication Number Publication Date
CN110287462A CN110287462A (en) 2019-09-27
CN110287462B true CN110287462B (en) 2023-03-28

Family

ID=68021459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910584927.7A Active CN110287462B (en) 2019-07-01 2019-07-01 Tracking revision method and system based on browser

Country Status (1)

Country Link
CN (1) CN110287462B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080766B (en) * 2019-12-30 2023-09-01 中科星图股份有限公司 GPU (graphics processing unit) acceleration mass target efficient rendering method based on WebGL

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096661A (en) * 2009-12-10 2011-06-15 国际商业机器公司 Method and system for editing electronic document on line
CN107239437A (en) * 2017-06-06 2017-10-10 智为天下(北京)科技有限公司 A kind of document edit method, device, readable storage medium storing program for executing and terminal device
CN107851090A (en) * 2015-06-29 2018-03-27 微软技术许可有限责任公司 Visible document file is revised
CN107943777A (en) * 2017-12-14 2018-04-20 北京久蓉科技有限公司 A kind of collaborative editing, cooperative processing method, device, equipment and storage medium
CN108733456A (en) * 2017-04-18 2018-11-02 北大方正集团有限公司 A kind of revision method and system based on online editing application
CN109543163A (en) * 2018-10-30 2019-03-29 天津字节跳动科技有限公司 Documentation revisions record acquisition methods, device, storage medium and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9075780B2 (en) * 2013-10-01 2015-07-07 Workiva Inc. System and method for comparing objects in document revisions and displaying comparison objects
US10402473B2 (en) * 2016-10-16 2019-09-03 Richard Salisbury Comparing, and generating revision markings with respect to, an arbitrary number of text segments

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096661A (en) * 2009-12-10 2011-06-15 国际商业机器公司 Method and system for editing electronic document on line
CN107851090A (en) * 2015-06-29 2018-03-27 微软技术许可有限责任公司 Visible document file is revised
CN108733456A (en) * 2017-04-18 2018-11-02 北大方正集团有限公司 A kind of revision method and system based on online editing application
CN107239437A (en) * 2017-06-06 2017-10-10 智为天下(北京)科技有限公司 A kind of document edit method, device, readable storage medium storing program for executing and terminal device
CN107943777A (en) * 2017-12-14 2018-04-20 北京久蓉科技有限公司 A kind of collaborative editing, cooperative processing method, device, equipment and storage medium
CN109543163A (en) * 2018-10-30 2019-03-29 天津字节跳动科技有限公司 Documentation revisions record acquisition methods, device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
如何用WPS修订文章;无;《电子与电脑》;20030608(第6期);第125页 *

Also Published As

Publication number Publication date
CN110287462A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
JP2993528B2 (en) Text management and restoration method
CN107544806A (en) Visualize list method for drafting
CN107491429B (en) Method for solving conflict of simultaneously editing document contents
US8095575B1 (en) Word processor data organization
CN108268884B (en) Document comparison method and device
CN111046645A (en) Method and device for generating article, computer equipment and storage medium
CN108021632B (en) Mutual conversion processing method for unstructured data and structured data
CN103150294A (en) Method and system for correcting based on voice identification results
US8819558B2 (en) Edited information provision device, edited information provision method, program, and recording medium
CN102200968A (en) Method and device for removing duplications of EXCEL form data
CN110287462B (en) Tracking revision method and system based on browser
US6647533B1 (en) Incremental algorithms for optimal linebreaking in text layout
JP3755315B2 (en) Document processing method and apparatus
CN108766513B (en) Intelligent health medical data structured processing system
JPH02297284A (en) Document processing system and version control system
CN112765506B (en) Page text content display method, device, equipment and storage medium
CN107015955B (en) Document editing method and device
CN114282499A (en) Document generation method and device with customized chart, electronic equipment and medium
CN110532391B (en) Text part-of-speech tagging method and device
JP4085599B2 (en) Form output system
JP2000293519A (en) Document processor
JPH0361596B2 (en)
CN113297826B (en) Method for marking on natural language text
JP2015148982A (en) Operation procedure flow update device, method, and program
JP3424558B2 (en) Object management method

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
GR01 Patent grant
GR01 Patent grant