CN110956023A - Comment display method and device - Google Patents

Comment display method and device Download PDF

Info

Publication number
CN110956023A
CN110956023A CN201811113462.9A CN201811113462A CN110956023A CN 110956023 A CN110956023 A CN 110956023A CN 201811113462 A CN201811113462 A CN 201811113462A CN 110956023 A CN110956023 A CN 110956023A
Authority
CN
China
Prior art keywords
content
annotation
annotated
document
paragraph
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
CN201811113462.9A
Other languages
Chinese (zh)
Other versions
CN110956023B (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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201811113462.9A priority Critical patent/CN110956023B/en
Publication of CN110956023A publication Critical patent/CN110956023A/en
Application granted granted Critical
Publication of CN110956023B publication Critical patent/CN110956023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a comment display method and device, and relates to the technical field of computer office, wherein the method comprises the following steps: obtaining annotation content of annotated content in a document; inserting the annotation content as a part of the text of the document between the first paragraph and the second paragraph; typesetting the text of the document with the inserted annotation content; and displaying the annotated content and the annotated content in a preset first annotation mark association mode based on the typesetting result. When the scheme provided by the embodiment of the invention is applied to displaying the annotations, the shielding of the document content can be reduced.

Description

Comment display method and device
Technical Field
The invention relates to the technical field of computer office work, in particular to a comment display method and device.
Background
With the function of mobile terminals becoming rich, more and more people begin to use mobile terminals for office work. The office work using the mobile terminal can enable people to get rid of the limitation of a part of environment or places. In the prior art, when a mobile terminal is used to read or edit a document, a method for displaying annotations includes: and displaying a button at a position corresponding to the annotated content, popping up an annotation display window in a display area of the document content after a user clicks the button, and displaying the annotated content in the annotation display window.
The inventor finds that in the process of implementing the invention, the annotation display window popped up in the prior art can block part of the document content. The display screen of the mobile terminal is usually smaller than that of a desktop computer, a notebook computer and other common office equipment, so that when the annotation content is displayed, the content of the document visible to the user becomes less due to the shielding of the annotation display window, and the document is inconvenient for the user to read and edit.
Disclosure of Invention
The embodiment of the invention aims to provide an annotation display method and device, which are used for reducing the shielding of document contents when annotations are displayed. The specific technical scheme is as follows:
the embodiment of the invention provides a comment display method which is applied to a mobile terminal and comprises the following steps:
obtaining annotation content of annotated content in a document;
taking the annotation content as a part of the text of the document, and inserting the annotation content between a first paragraph and a second paragraph, wherein the first paragraph is: a paragraph at the end of the annotated content, the second paragraph being: a next paragraph to the first paragraph;
typesetting the text of the document after the annotation content is inserted;
and displaying the annotated content and the annotated content in a preset first annotation mark association mode based on the typesetting result.
In an implementation manner of the present invention, before obtaining annotated content of annotated content in a document, the method further includes:
acquiring the position of a cursor as a first position;
determining an annotation range based on the first location;
and taking the document content in the annotation range as annotated content.
In an implementation manner of the present invention, the obtaining annotation content of annotated content in a document includes:
acquiring the position of annotated content to be added with annotations in the document as a second position;
taking an annotation input box as a part of the text of the document, and inserting the annotation input box between a third paragraph and a fourth paragraph, wherein the third paragraph is as follows: a paragraph at the end of the second position, where the fourth paragraph is: a next paragraph to the third paragraph;
typesetting the text of the document inserted into the annotation input box;
displaying the annotated content and the annotation input box in a preset second annotation mark association mode based on the typesetting result;
and acquiring the content input by the user in the annotation input box as the annotation content of the annotated content.
In an implementation manner of the present invention, after the displaying the annotated content and the annotated content in a preset first annotation mark association, the method further includes:
acquiring a comment content retraction instruction;
hiding the annotation content;
taking the comment content retraction mark as a part of the text of the document before the comment content is inserted, and inserting the comment content retraction mark at the tail of the annotated content;
typesetting the text of the document after the comment content retraction identifier is inserted;
and displaying the annotated content and the annotated content retraction mark in a preset third annotation mark association mode based on the typesetting result.
In an implementation manner of the present invention, when the annotation content includes a plurality of pieces of annotated content, the displaying the annotated content and the annotation content in association with a preset first annotation mark includes:
displaying the annotated content and the content of each annotation in the annotated content in a preset first annotation mark association.
In an implementation manner of the present invention, the annotation content includes one or more of characters, pictures, voices, and hand-drawn graphics.
The embodiment of the invention also provides a comment display device, which comprises:
the content obtaining module is used for obtaining the annotation content of the annotated content in the document;
a content insertion module, configured to insert the annotation content as a part of a text of the document between a first paragraph and a second paragraph, where the first paragraph is: a paragraph at the end of the annotated content, the second paragraph being: a next paragraph to the first paragraph;
the first text typesetting module is used for typesetting the text of the document after the annotation content is inserted;
and the content display module is used for displaying the annotated content and the annotated content in a preset first annotation mark association mode based on the typesetting result.
In an implementation manner of the present invention, the apparatus further includes:
the position acquisition module is used for acquiring the position of a cursor as a first position before the content acquisition module acquires the annotation content of the annotated content in the document;
the range determining module is used for determining the annotation range based on the first position before the content obtaining module obtains the annotation content of the annotated content in the document;
and the content determining module is used for taking the document content in the annotation range as the annotated content before the content obtaining module obtains the annotated content of the annotated content in the document.
In an implementation manner of the present invention, the content obtaining module includes:
the position acquisition submodule is used for acquiring the position of the annotated content to be added with annotations in the document as a second position;
a frame insertion sub-module, configured to insert an annotation input frame as a part of a text of the document between a third paragraph and a fourth paragraph, where the third paragraph is: a paragraph at the end of the second position, where the fourth paragraph is: a next paragraph to the third paragraph;
the text typesetting sub-module is used for typesetting the text of the document inserted into the annotation input box;
the frame display sub-module is used for displaying the annotated content and the annotation input frame in a preset second annotation mark association mode based on the typesetting result;
and the content acquisition sub-module is used for acquiring the content input by the user in the annotation input box as the annotation content of the annotated content.
In an implementation manner of the present invention, the apparatus further includes:
the instruction acquisition module is used for acquiring an annotation content retraction instruction after the content display module displays the annotated content and the annotation content in a preset first annotation mark in a correlated manner;
the content hiding module is used for hiding the annotation content;
the mark inserting module is used for taking a mark of the remarked content to be a part of the text of the document before the remarked content is inserted and inserting the mark at the tail of the remarked content;
the second text typesetting module is used for typesetting the text of the document after the annotation content retraction identifier is inserted;
and the mark display module is used for displaying the annotated content and the annotated content retraction mark in a preset third annotation mark association mode based on the typesetting result.
In an implementation manner of the present invention, when the annotation content includes a plurality of pieces of annotated content, the content display module is specifically configured to display the annotated content and each piece of annotated content in the annotation content in association with a preset first annotation mark.
In an implementation manner of the present invention, the annotation content includes one or more of characters, pictures, voices, and hand-drawn graphics.
The embodiment of the invention also provides electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of any one of the annotation display methods when executing the program stored in the memory.
In yet another aspect of the present invention, the present invention further provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute any of the steps of the annotation display method described above.
In yet another aspect of the present invention, the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any one of the annotation display methods described above.
The annotation display method and the annotation display device provided by the embodiment of the invention can take the annotation content as a part of the text of the document, insert the annotation content into the paragraph at the tail of the annotated content, typeset the inserted text of the document, and then display the annotated content and the annotation content in a correlated manner. Therefore, the shielding of the document content can be reduced when the annotations are displayed, so that the user can read and edit the document conveniently.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an annotation display method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a display effect of a voice comment provided in an embodiment of the present invention;
fig. 3 is a schematic diagram of a display effect of multiple annotations provided by an embodiment of the present invention;
fig. 4 is a schematic flowchart of a comment content obtaining method according to an embodiment of the present invention;
fig. 5 is another schematic flow chart of an annotation display method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an annotation display device according to an embodiment of the invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The embodiment of the invention provides a comment display method and a comment display device, and concepts related to the embodiment of the invention are explained first.
Typesetting: the position and size of the visual information such as characters, pictures, figures and the like are adjusted on the layout, so that the layout is in a binding process.
Hand-drawing the graph: the user draws a graphic on the screen. The hand-drawn graph of the annotation document may be an emphasized mark added by the user for the document content, or may be a schematic diagram drawn by the user for the document content.
The comment displaying method provided by the embodiment of the invention is explained in detail by the specific embodiment.
Referring to fig. 1, fig. 1 is a flowchart of an annotation display method according to an embodiment of the present invention, including the following steps:
and step S101, obtaining the annotation content of the annotated content in the document.
The annotation is to make an annotation and/or comment on a part or all of the document content, the annotation content is the content made with the annotation and/or comment, and the annotated content is the document content aimed at when the annotation is made, that is, a part or all of the document content. The document can be a pdf format document, a wps format document, a doc format document, and the like.
There may be multiple annotations for the same annotated content, and although different annotations may be edited by different users, and may be edited at different times, the content of each annotation may be a part of the annotated content, that is, the annotated content includes the content of the multiple annotations. Specifically, the annotation content may further include an annotation editing user and annotation editing time.
In one implementation, the annotation content may include one or more of text, picture, voice, and hand-drawn graph, and displays the annotation in multiple forms, so as to more comprehensively express the content that the annotation editor wants to express. Fig. 2 is a schematic view of a display effect of a voice comment provided in an embodiment of the present invention, as shown in fig. 2, comment content inserted in a document body includes a button representing voice, and a user can receive and record the voice comment through a mobile terminal, and the receiving and recording process of the voice comment can be completed by using a single-handed operation by the user.
The annotation content may be already existing in the document, or may be annotation content newly added with annotations after the document content is displayed.
If the annotation content already exists in the document, the annotation content of the annotated content can be read from the document when the annotation content of the annotated content in the document is obtained.
If the annotation content is the annotation content newly added with annotation after the document content is displayed, the obtained annotation content can be the content newly input by the user. The specific steps of newly adding annotation content after displaying the document content are detailed in the following embodiments, which are not repeated herein.
And S102, inserting the annotation content between the first paragraph and the second paragraph as a part of the text of the document.
The first paragraph is: under the condition of document typesetting before the annotated content is inserted, the paragraph at the tail of the annotated content is located; the second paragraph is: in the case of the layout of the document before the insertion of the annotation content, the next paragraph of the first paragraph. Fig. 2 is a schematic diagram of a display effect of a voice annotation provided by an embodiment of the present invention, and fig. 2 shows an annotation, and when the annotation is inserted, a first paragraph is: the second paragraph of the text from top to bottom, which is: the third paragraph of the text from top to bottom.
And step S103, typesetting the text of the document with the inserted annotation content.
And adjusting the positions of the parts of the document text after the annotation content is inserted on the layout according to the format of the parts of the document text after the annotation content is inserted, so that the layout is organized. If the words exist in the annotation content, the words in the annotation content can be typeset in a format of a preset font, a preset font size and the like, for example: the font is Song style character, the font size is 12 yards, and the first line is indented with 2 characters. The formats of the preset fonts, the preset word sizes and the like can be different from the text of the document, so that the text can be clearly distinguished from the comment. The formats of the preset fonts, the preset word sizes and the like can also be the same as the text of the document, so that the text is consistent with the format of the annotation and is more attractive.
And step S104, displaying the annotated content and the annotated content in a preset first annotation mark association mode based on the typesetting result.
And displaying the annotated content and the annotated content in a preset first annotation mark association mode according to the position and the format determined by the typesetting in the step S103.
The first mark shows the association relationship between the annotated content and the annotated content, and the first mark may be a dotted line connecting the annotated content and the annotated content, an arrow pointing from the annotated content to the annotated content, a combination of an arrow, a dotted line, and other information, such as a combination of an arrow, a dotted line, and an annotation frame, and the like. In fig. 2, the annotated content is different in background color from other body parts of the document that are not annotated, and the annotated content is in an annotation box whose pointing arrow points to the end of the annotated content. The first label in fig. 2 is the annotation box and the indicating arrow. Thus, the relationship between the annotated content and the annotated content can be clearly displayed.
The annotation display method provided by the embodiment of the invention can take the annotation content as a part of the text of the document, insert the paragraph at the tail of the annotated content, typeset the inserted text of the document, and then display the annotated content and the annotation content in a correlated manner. Therefore, the shielding of the document content can be reduced when the annotations are displayed, so that the user can read and edit the document conveniently.
In an implementation manner of the present invention, before obtaining the annotation content of the annotated content in the document in step S101, a position where the cursor is located may be obtained first as a first position, then an annotation range is determined based on the first position, and then the document content in the annotation range is used as the annotated content.
The rule for determining the annotation range may be preset, for example, the annotation range may be a portion between the first position and a predetermined number of characters ahead of the first position, or may be a sentence between the first period/line break ahead of the first position and the first period/line break behind the first position.
The annotation range can also be obtained by a word recognition technology, and by taking the first position as a reference, recognizing words formed by words before and after the first position, and taking the part occupied by the recognized words as the annotation range, for example: the text content of the document is made into chocolate, the cursor is between the characters of 'gram' and 'force', the annotation range obtained by the word recognition technology is the last three characters of the characters, and therefore the annotated content is 'chocolate'; the document text contents "chi mei \3957; \3953isunconcealed under the photoassimilar day", the cursor is between the "chi" word and the "charm" word, and the comment range obtained by the word recognition technology is the third word to the sixth word of the above-mentioned words, and thus the remarked contents are "chi mei \3957; \3953.
In the implementation mode, the annotated content can be determined according to the cursor position, and when the user adds the annotation, the operation link of manually selecting the annotated content is omitted, so that the annotation can be more conveniently added.
In another implementation manner of the present invention, the first fully displayed paragraph in the screen of the mobile terminal, or the first paragraph in the screen, may be determined as the annotated content.
In an implementation manner of the present invention, if the annotation content includes a plurality of pieces of annotation content, when the annotated content and the annotation content are displayed in association with the preset first annotation mark in step S104, the annotated content and each piece of the annotation content may be displayed in association with the preset first annotation mark.
Specifically, each annotation can be displayed according to a preset sequence, the preset sequence can be a sequence of annotation editing time, or can be sorted according to annotation editing users, and when there are many annotations, the annotations can be grouped according to the editing users and sorted according to time in each group.
Fig. 3 is a schematic view of a display effect of multiple annotations provided by an embodiment of the present invention, as shown in fig. 3, displayed annotation content includes an annotation editing user and annotation editing time, and in fig. 3, the annotation content is displayed from top to bottom in the order from the back to the front according to the time.
In this implementation manner, the annotation content may include an annotation editing user and annotation editing time, and each annotation in the annotation content may be clearly and clearly displayed when the annotation content includes a plurality of annotations.
When the annotation content of the annotated content in the document is obtained in the step S101, if the annotation content is newly added after the document content is displayed, the step of obtaining the annotation content of the annotated content in the document further includes a step of adding an annotation. Fig. 4 is a schematic flow chart of a method for obtaining annotation content according to an embodiment of the present invention, which includes a step of adding an annotation, and specifically includes:
step S101a, acquiring the position of the annotated content to be added with annotations in the document.
The acquired position is noted as the second position. The position of the annotated content can be selected by a user, or the position of the cursor can be obtained first to serve as a first position, then the annotation range is determined based on the first position, and the determined range is used as the position of the annotated content.
And step S101b, inserting the annotation input box as a part of the text of the document between the third paragraph and the fourth paragraph.
The third paragraph is: the paragraph at the end of the second position; the fourth paragraph is: the next paragraph to the third paragraph. The annotation input box is used as a part of the text of the document, and the text of the document is inserted in the same way as the annotation content is used as a part of the text of the document, so that the detail is not repeated.
And step S101c, typesetting the text of the document inserted with the annotation input box.
The typesetting of the text of the document after the annotation input box is inserted is the same as the typesetting of the text of the document after the annotation content is inserted, and the detailed description is omitted here.
And step S101d, displaying the annotated content and the annotation input box in a preset second annotation mark association mode based on the typesetting result.
Displaying the annotated content and the annotated content in a preset second annotation mark association according to the position and the format determined by the typesetting in the step S101 c.
The second mark shows the association relationship between the annotated content and the annotated content, and the second mark may be a dotted line connecting the annotated content and the annotated content, an arrow pointing from the annotated content to the annotated content, a combination of an arrow, a dotted line, and other information, such as a combination of an arrow, a dotted line, and an annotation frame, and the like. The second annotation mark can be the same as the first annotation mark, so that when the user inputs the comment in the annotation input box, the display condition of the document with the added annotation can be visually seen. The second annotation tag can also be different from the first annotation tag to distinguish between the added annotation and the adding annotation ready to obtain the annotation content.
Step S101e, acquiring the content input by the user in the annotation input box as the annotation content of the annotated content.
In one implementation, the content input by the user in the annotation input box is not limited to text, but may also include various forms of annotations such as pictures, voice, hand-drawn graphics, and the like.
In the scheme provided by the embodiment of the invention, the comment input box is inserted, the type is set and the input box is displayed in a mode of displaying the comment content, and the content input by the user in the comment input box is acquired as the comment content. The annotation input frame is displayed with the display effect of the annotation content, so that a user can see the display condition of the annotation content when inputting the annotation content, and convenience is provided for inputting the annotation content.
Fig. 5 is another schematic flow chart of the annotation display method provided in the embodiment of the present invention, and after displaying the annotated content and the annotated content in association with a preset first annotation mark, the annotation content may be collected, which specifically includes the following steps:
step S501, obtaining the annotation content of the annotated content in the document.
And step S502, inserting the annotation content between the first paragraph and the second paragraph as a part of the text of the document.
And S503, typesetting the text of the document with the inserted annotation content.
And step S504, displaying the annotated content and the annotated content in a preset first annotation mark association mode based on the typesetting result.
In the embodiment of the present invention, steps S501 to S504 are the same as steps S101 to S104 included in fig. 1, and are not described again here.
And step S505, acquiring a comment content retraction instruction.
In the embodiment of the invention, the comment content retraction button can be displayed in the area for displaying the comment content in the document text, and when the comment content retraction button is triggered by a user, the mobile terminal can acquire a comment content retraction instruction.
In the embodiment of the invention, an annotation function menu can also be set. After the user opens the annotation function menu, the mobile terminal selects to retract the annotation or to retract all the annotations, and the mobile terminal obtains an annotation content retraction instruction, wherein the method for opening the annotation function menu by the user includes but is not limited to pressing the annotation content on the touch screen.
And step S506, hiding the annotation content.
And step S507, taking the collection mark of the annotation content as a part of the text of the document before the annotation content is inserted, and inserting the collection mark at the tail of the annotated content.
The way of inserting the comment content retraction mark into the document body can be the same as the way of inserting the comment content into the document body, and the comment content retraction mark can be inserted between paragraphs, or can be directly inserted between texts, which is different from the way of inserting the comment content into the document body.
In one implementation, the annotation content retraction identifier may be set as a button, and after the user clicks the button, the hidden annotation content is expanded. The comment content retraction mark indicates that the displayed content may only include a comment serial number, for example: shown as [ endorsement 09], may also contain an endorsement editing user or an endorsement editing time.
And step S508, typesetting the text of the document after the comment content retraction mark is inserted.
The typesetting of the text of the document with the retracted mark inserted with the annotation content is the same as the typesetting of the text of the document with the annotation content inserted.
Step S509, based on the typesetting result, displaying the annotated content and the annotated content retraction identifier in association with a preset third annotation mark.
And displaying the annotated content and the annotated content retraction mark in a preset third annotation mark association mode according to the position and the format determined by the typesetting in the step S508.
The third mark shows the association relationship between the annotated content and the annotated content retraction identifier, and the third mark may be a dotted line connecting the annotated content and the annotated content retraction identifier, an arrow pointing to the annotated content from the annotated content retraction identifier, or a combination of the arrow, the dotted line, and other information, for example, a combination of the arrow, the dotted line, and other information with an annotation frame, and the like. The third annotation mark can be the same as the first annotation mark, so that when a user packs annotation content, the annotation mark is unchanged, and the display effect before and after packing the annotation is logical. The third annotation indicia can also be different from the first annotation indicia for distinguishing between annotations in the stowed and deployed states.
According to the scheme provided by the embodiment of the invention, the comment content is hidden, the comment content retraction mark is inserted and typeset, and the annotated content and the comment content retraction mark are displayed in a preset third comment mark association mode. The scheme provided by the embodiment of the invention increases the function of collecting the annotations, and can collect the annotations when the annotations are not needed to be seen, so that the content of the document visible to a user in a screen is increased, and the user can read and edit the document conveniently.
Based on the same inventive concept, according to the annotation display method provided in the above embodiment of the present invention, correspondingly, an embodiment of the present invention further provides an annotation display device, a schematic structural diagram of which is shown in fig. 6, specifically including:
a content obtaining module 601, configured to obtain annotation content of annotated content in a document;
a content inserting module 602, configured to insert the annotation content as a part of a text of the document between a first paragraph and a second paragraph, where the first paragraph is: a paragraph at the end of the annotated content, the second paragraph being: a next paragraph to the first paragraph;
a first text typesetting module 603, configured to typeset the text of the document into which the annotation content is inserted;
and a content display module 604, configured to display the annotated content and the annotated content in association with a preset first annotation tag based on the typesetting result.
The annotation display device provided by the embodiment of the invention can take the annotation content as a part of the text of the document, insert the paragraph at the tail of the annotated content, typeset the inserted text of the document, and then display the annotated content and the annotation content in a correlated manner. Therefore, the shielding of the document content can be reduced when the annotations are displayed, so that the user can read and edit the document conveniently.
In an implementation manner of the present invention, the apparatus further includes:
the position acquisition module is used for acquiring the position of a cursor as a first position before the content acquisition module acquires the annotation content of the annotated content in the document;
the range determining module is used for determining the annotation range based on the first position before the content obtaining module obtains the annotation content of the annotated content in the document;
and the content determining module is used for taking the document content in the annotation range as the annotated content before the content obtaining module obtains the annotated content of the annotated content in the document.
In the implementation mode, the annotated content can be determined according to the cursor position, and when the user adds the annotation, the operation link of manually selecting the annotated content is omitted, so that the annotation can be more conveniently added.
In an implementation manner of the present invention, the content obtaining module 601 includes:
the position acquisition submodule is used for acquiring the position of the annotated content to be added with annotations in the document as a second position;
a frame insertion sub-module, configured to insert an annotation input frame as a part of a text of the document between a third paragraph and a fourth paragraph, where the third paragraph is: a paragraph at the end of the second position, where the fourth paragraph is: a next paragraph to the third paragraph;
the text typesetting sub-module is used for typesetting the text of the document inserted into the annotation input box;
the frame display sub-module is used for displaying the annotated content and the annotation input frame in a preset second annotation mark association mode based on the typesetting result;
and the content acquisition sub-module is used for acquiring the content input by the user in the annotation input box as the annotation content of the annotated content.
In the implementation mode, the comment input box is inserted, the type is set and the input box is displayed in a mode of displaying the comment content, and the content input by the user in the comment input box is obtained and used as the comment content. The annotation input frame is displayed with the display effect of the annotation content, so that a user can see the display condition of the annotation content when inputting the annotation content, and convenience is provided for inputting the annotation content.
In an implementation manner of the present invention, the apparatus further includes:
the instruction acquisition module is used for acquiring an annotation content retraction instruction after the content display module displays the annotated content and the annotation content in a preset first annotation mark in a correlated manner;
the content hiding module is used for hiding the annotation content;
the mark inserting module is used for taking a mark of the remarked content to be a part of the text of the document before the remarked content is inserted and inserting the mark at the tail of the remarked content;
the second text typesetting module is used for typesetting the text of the document after the annotation content retraction identifier is inserted;
and the mark display module is used for displaying the annotated content and the annotated content retraction mark in a preset third annotation mark association mode based on the typesetting result.
In the implementation mode, the comment content is hidden, then the comment content packing identifier is inserted and typeset, and then the annotated content and the comment content packing identifier are displayed in a preset third comment mark association mode. The scheme provided by the embodiment of the invention increases the function of collecting the annotations, and can collect the annotations when the annotations are not needed to be seen, so that the content of the document visible to a user in a screen is increased, and the user can read and edit the document conveniently.
In an implementation manner of the present invention, when the annotation content includes a plurality of pieces of annotated content, the content display module 604 is specifically configured to display the annotated content and each piece of annotated content in the annotation content in association with a preset first annotation mark.
In this implementation manner, the annotation content may include an annotation editing user and annotation editing time, and each annotation in the annotation content may be clearly and clearly displayed when the annotation content includes a plurality of annotations.
In an implementation manner of the present invention, the annotation content includes one or more of characters, pictures, voices, and hand-drawn graphics.
In the implementation mode, the annotation content is not limited to characters, but also can comprise pictures, voice and hand-drawn graphs, so that the annotation in various forms can be displayed, and the content which the annotation editor wants to express can be expressed more comprehensively.
Based on the same inventive concept, according to the annotation display method provided by the above embodiment of the present invention, correspondingly, the embodiment of the present invention further provides an electronic device, as shown in fig. 7, comprising a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the steps of any annotation displaying method in the foregoing embodiments when executing the program stored in the memory 703.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The annotation display electronic device provided by the embodiment of the invention can take the annotation content as a part of the text of the document, insert the annotation content after the segment where the end of the annotated content is located, typeset the inserted text of the document, and then display the annotated content and the annotation content in a correlated manner. Therefore, the shielding of the document content can be reduced when the annotations are displayed, so that the user can read and edit the document conveniently.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, and when the instructions are executed on a computer, the instructions cause the computer to perform the steps of any one of the annotation display methods in the above embodiments.
In yet another embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the annotation display methods of the above embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to them, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (14)

1. A comment display method is applied to a mobile terminal, and comprises the following steps:
obtaining annotation content of annotated content in a document;
taking the annotation content as a part of the text of the document, and inserting the annotation content between a first paragraph and a second paragraph, wherein the first paragraph is: a paragraph at the end of the annotated content, the second paragraph being: a next paragraph to the first paragraph;
typesetting the text of the document after the annotation content is inserted;
and displaying the annotated content and the annotated content in a preset first annotation mark association mode based on the typesetting result.
2. The method of claim 1, wherein prior to obtaining endorsed content for the endorsed content in the document, the method further comprises:
acquiring the position of a cursor as a first position;
determining an annotation range based on the first location;
and taking the document content in the annotation range as annotated content.
3. The method of claim 1, wherein obtaining annotation content of annotated content in the document comprises:
acquiring the position of annotated content to be added with annotations in the document as a second position;
taking an annotation input box as a part of the text of the document, and inserting the annotation input box between a third paragraph and a fourth paragraph, wherein the third paragraph is as follows: a paragraph at the end of the second position, where the fourth paragraph is: a next paragraph to the third paragraph;
typesetting the text of the document inserted into the annotation input box;
displaying the annotated content and the annotation input box in a preset second annotation mark association mode based on the typesetting result;
and acquiring the content input by the user in the annotation input box as the annotation content of the annotated content.
4. The method of claim 1, wherein after the displaying of the annotated content and the annotated content in a preset first annotation tag association, the method further comprises:
acquiring a comment content retraction instruction;
hiding the annotation content;
taking the comment content retraction mark as a part of the text of the document before the comment content is inserted, and inserting the comment content retraction mark at the tail of the annotated content;
typesetting the text of the document after the comment content retraction identifier is inserted;
and displaying the annotated content and the annotated content retraction mark in a preset third annotation mark association mode based on the typesetting result.
5. The method according to claim 1, wherein when the annotation content comprises a plurality of pieces of annotated content, the displaying the annotated content and the annotation content in a preset first annotation mark association comprises:
displaying the annotated content and the content of each annotation in the annotated content in a preset first annotation mark association.
6. The method of any one of claims 1-5, wherein the annotation content comprises one or more of text, pictures, voice, hand-drawn graphics.
7. An annotation display device, comprising:
the content obtaining module is used for obtaining the annotation content of the annotated content in the document;
a content insertion module, configured to insert the annotation content as a part of a text of the document between a first paragraph and a second paragraph, where the first paragraph is: a paragraph at the end of the annotated content, the second paragraph being: a next paragraph to the first paragraph;
the first text typesetting module is used for typesetting the text of the document after the annotation content is inserted;
and the content display module is used for displaying the annotated content and the annotated content in a preset first annotation mark association mode based on the typesetting result.
8. The apparatus of claim 7, further comprising:
the position acquisition module is used for acquiring the position of a cursor as a first position before the content acquisition module acquires the annotation content of the annotated content in the document;
the range determining module is used for determining the annotation range based on the first position before the content obtaining module obtains the annotation content of the annotated content in the document;
and the content determining module is used for taking the document content in the annotation range as the annotated content before the content obtaining module obtains the annotated content of the annotated content in the document.
9. The apparatus of claim 7, wherein the content obtaining module comprises:
the position acquisition submodule is used for acquiring the position of the annotated content to be added with annotations in the document as a second position;
a frame insertion sub-module, configured to insert an annotation input frame as a part of a text of the document between a third paragraph and a fourth paragraph, where the third paragraph is: a paragraph at the end of the second position, where the fourth paragraph is: a next paragraph to the third paragraph;
the text typesetting sub-module is used for typesetting the text of the document inserted into the annotation input box;
the frame display sub-module is used for displaying the annotated content and the annotation input frame in a preset second annotation mark association mode based on the typesetting result;
and the content acquisition sub-module is used for acquiring the content input by the user in the annotation input box as the annotation content of the annotated content.
10. The apparatus of claim 7, further comprising:
the instruction acquisition module is used for acquiring an annotation content retraction instruction after the content display module displays the annotated content and the annotation content in a preset first annotation mark in a correlated manner;
the content hiding module is used for hiding the annotation content;
the mark inserting module is used for taking a mark of the remarked content to be a part of the text of the document before the remarked content is inserted and inserting the mark at the tail of the remarked content;
the second text typesetting module is used for typesetting the text of the document after the annotation content retraction identifier is inserted;
and the mark display module is used for displaying the annotated content and the annotated content retraction mark in a preset third annotation mark association mode based on the typesetting result.
11. The apparatus according to claim 7, wherein when the annotation content includes a plurality of pieces of annotated content, the content display module is specifically configured to display the annotated content and the content of each of the annotated contents in association with a preset first annotation tag.
12. The apparatus according to any one of claims 7-11, wherein the annotation content comprises one or more of text, pictures, voice, hand-drawn graphics.
13. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
14. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN201811113462.9A 2018-09-25 2018-09-25 Annotation display method and device Active CN110956023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811113462.9A CN110956023B (en) 2018-09-25 2018-09-25 Annotation display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811113462.9A CN110956023B (en) 2018-09-25 2018-09-25 Annotation display method and device

Publications (2)

Publication Number Publication Date
CN110956023A true CN110956023A (en) 2020-04-03
CN110956023B CN110956023B (en) 2024-06-18

Family

ID=69962149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811113462.9A Active CN110956023B (en) 2018-09-25 2018-09-25 Annotation display method and device

Country Status (1)

Country Link
CN (1) CN110956023B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113361404A (en) * 2021-06-02 2021-09-07 北京百度网讯科技有限公司 Method, apparatus, device, storage medium and program product for recognizing text
WO2021218365A1 (en) * 2020-04-30 2021-11-04 华为技术有限公司 Annotation method and electronic device
CN115659929A (en) * 2022-10-24 2023-01-31 南京涵韬信息科技有限公司 Multi-document-based annotation interaction method and system
CN116011415A (en) * 2023-03-27 2023-04-25 天津联想协同科技有限公司 Document annotation generation method and device, network disk and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728816A (en) * 1993-07-14 1995-01-31 Sharp Corp Document processor with comment information edition control
CN101916245A (en) * 2010-08-30 2010-12-15 中国电信股份有限公司 Method and device for realizing e-book annotation on electronic reader
CN102298573A (en) * 2011-09-27 2011-12-28 宇龙计算机通信科技(深圳)有限公司 Document remarking method and system
CN103077160A (en) * 2012-12-28 2013-05-01 北京小米科技有限责任公司 Electronic document commenting method as well as method and device for accessing electronic document comment
CN107357496A (en) * 2017-07-19 2017-11-17 掌阅科技股份有限公司 Annotation process method, electronic equipment and computer-readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728816A (en) * 1993-07-14 1995-01-31 Sharp Corp Document processor with comment information edition control
CN101916245A (en) * 2010-08-30 2010-12-15 中国电信股份有限公司 Method and device for realizing e-book annotation on electronic reader
CN102298573A (en) * 2011-09-27 2011-12-28 宇龙计算机通信科技(深圳)有限公司 Document remarking method and system
CN103077160A (en) * 2012-12-28 2013-05-01 北京小米科技有限责任公司 Electronic document commenting method as well as method and device for accessing electronic document comment
CN107357496A (en) * 2017-07-19 2017-11-17 掌阅科技股份有限公司 Annotation process method, electronic equipment and computer-readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021218365A1 (en) * 2020-04-30 2021-11-04 华为技术有限公司 Annotation method and electronic device
CN113361404A (en) * 2021-06-02 2021-09-07 北京百度网讯科技有限公司 Method, apparatus, device, storage medium and program product for recognizing text
CN115659929A (en) * 2022-10-24 2023-01-31 南京涵韬信息科技有限公司 Multi-document-based annotation interaction method and system
CN115659929B (en) * 2022-10-24 2023-09-15 南京涵韬信息科技有限公司 Annotating interaction method and system based on multiple documents
CN116011415A (en) * 2023-03-27 2023-04-25 天津联想协同科技有限公司 Document annotation generation method and device, network disk and storage medium
CN116011415B (en) * 2023-03-27 2023-08-04 天津联想协同科技有限公司 Document annotation generation method and device, network disk and storage medium

Also Published As

Publication number Publication date
CN110956023B (en) 2024-06-18

Similar Documents

Publication Publication Date Title
CN110956023B (en) Annotation display method and device
CN111742312A (en) Slide marking and filtering
CN109271594B (en) Recommendation method of electronic book, electronic equipment and computer storage medium
CN109033282B (en) Webpage text extraction method and device based on extraction template
WO2020125345A1 (en) Electronic book note processing method, handwriting reading device, and storage medium
CN114330233A (en) Method for realizing correlation between electronic form content and file through file bottom
US20150324340A1 (en) Method for generating reflow-content electronic book and website system thereof
CN106603838A (en) Image processing method and terminal
CN111460763A (en) Method, device and equipment for marking file differences and computer-readable storage medium
CN113536172A (en) Encyclopedic information display method and device and computer storage medium
CN109992750B (en) Table object screening method and device, electronic equipment and storage medium
CN106648349B (en) Information display method and device
TWI447641B (en) Method and computer program product for displaying document on mobile device
CN110708423A (en) Message content display method and device and storage medium
CN104281560A (en) Memory text information display method and device and terminal
CN111199136B (en) Document content display method, device and equipment
JP6641777B2 (en) Information processing device and program
CN112017079A (en) Component information extraction method, processing device and storage medium of patent document
US20150347376A1 (en) Server-based platform for text proofreading
CN111428452A (en) Comment data storage method and device
CN109992759B (en) Table object editing method and device, electronic equipment and storage medium
US20210182477A1 (en) Information processing apparatus and non-transitory computer readable medium storing program
CN114564915A (en) Text typesetting method, electronic equipment and storage medium
CN113378526A (en) PDF paragraph processing method, device, storage medium and equipment
KR101097835B1 (en) Clipboard data clear formatting method, clipboard data conversion method by extracting file-location, program recording medium thereof and apparatus using the methods

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