CN112100981A - Document display method and device and electronic equipment - Google Patents

Document display method and device and electronic equipment Download PDF

Info

Publication number
CN112100981A
CN112100981A CN202011015165.8A CN202011015165A CN112100981A CN 112100981 A CN112100981 A CN 112100981A CN 202011015165 A CN202011015165 A CN 202011015165A CN 112100981 A CN112100981 A CN 112100981A
Authority
CN
China
Prior art keywords
target
document
occlusion
input
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011015165.8A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011015165.8A priority Critical patent/CN112100981A/en
Publication of CN112100981A publication Critical patent/CN112100981A/en
Pending legal-status Critical Current

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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a document display method and device and electronic equipment, and belongs to the technical field of electronic reading. Wherein the method comprises the following steps: detecting occlusion marks contained in a document to be displayed, wherein each occlusion mark comprises: a start marker and an end marker; in the process of displaying the document content, adopting a preset shielding object to shield the characters corresponding to the shielding marks; hiding the target shielding object and displaying characters shielded by the target shielding object under the condition of receiving first input of the target shielding object. According to the embodiment of the application, when the document content is displayed, the key text fields and the comment content added to the book by the historical user and other information are hidden, so that the risk of severe and clear is avoided, and the enthusiasm of the user for continuously reading is ensured.

Description

Document display method and device and electronic equipment
Technical Field
The application belongs to the technical field of electronic reading, and particularly relates to a document display method and device and electronic equipment.
Background
Currently, when a user reads books by using a mobile terminal, the user generally downloads corresponding books from reading software and directly reads the corresponding books. Most reading software supports users to add comments to the whole book; and a small part of reading software supports a user to add comments to paragraphs of a read book, view comments added by other users and the like, so that the interaction sense of the user during reading is increased.
When the reading software for the user to add and view the comments displays the contents of the book, the contents of the comments added in the book by the historical user can be synchronously displayed, and the comments added by the historical user may contain the contents of the unread part of the user, so that the risk of penetration exists, and the enthusiasm of the user for continuously reading is influenced.
Disclosure of Invention
The embodiment of the application aims to provide a reading display method, which can solve the problem that the existing book display mode synchronously displays the book content and comment content added by a historical user in a book, so that the drama is realized.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a document display method, where the method includes:
detecting occlusion marks contained in a document to be displayed, wherein each occlusion mark comprises: a start marker and an end marker;
in the process of displaying the document content, adopting a preset shielding object to shield the characters corresponding to the shielding marks;
hiding the target shielding object and displaying characters shielded by the target shielding object under the condition of receiving first input of the target shielding object.
In a second aspect, an embodiment of the present application provides a document display apparatus, where the apparatus includes:
the device comprises a detection module and a display module, wherein the detection module is used for detecting each occlusion mark contained in a document to be displayed, and each occlusion mark comprises: a start marker and an end marker;
the shielding module is used for shielding the characters corresponding to the shielding marks by adopting a preset shielding object in the process of displaying the document content;
the hiding module is used for hiding the target shielding object and displaying characters shielded by the target shielding object under the condition that first input of the target shielding object is received.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, when the document content is loaded, each shielding mark contained in the document is detected, and then when the document content is displayed, the preset shielding object is used for shielding the character corresponding to each shielding mark; and then, when first input of the target shielding object is received, the target shielding object is hidden, so that characters shielded by the target shielding object correspondingly are displayed, when the document content is displayed, information such as key text fields and comment content added to the books by the historical users is hidden, and the risk of the drama through is reduced.
Drawings
FIG. 1 is a flowchart illustrating steps of a document display method according to an embodiment of the present application;
FIG. 2 is a diagram showing the effect of a document when a character is covered with a gray rectangular coating layer in the embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an effect of preset interaction information in an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a process of adding an occlusion mark to a target text through a fourth input;
FIG. 5 is a schematic diagram of the occlusion mark information in the embodiment of the present application;
FIG. 6 is a flowchart illustrating a first implementation of an author actively adding an occlusion mark to a document and a corresponding document display;
FIG. 7 is a flow diagram of a second implementation of an author actively adding an occlusion mark to a document and a corresponding document display;
FIG. 8 is a flowchart illustrating an implementation of a reader actively adding an occlusion flag to a document and corresponding document display;
FIG. 9 is a schematic structural diagram of a document display apparatus provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The document display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of a document display method according to an embodiment of the present application is shown, where the method may include steps S100 to S300.
In the embodiment of the application, the document display method is applied to a document reading terminal, and specifically can be a mobile phone, a tablet computer, an electronic reader and the like.
Step S100, detecting occlusion marks contained in a document to be displayed, wherein each occlusion mark comprises: a start marker and an end marker.
In the step S100, the document to be displayed is a document being read by the user, and the blocking mark is a mark for identifying that the corresponding text segment needs to be hidden or blocked for display; the hidden mark includes a start mark and an end mark, the start mark corresponds to the first character of the text field to be hidden and displayed, and the end mark corresponds to the last character of the text field to be hidden and displayed, so as to mark the whole text field to be hidden.
And S200, in the process of displaying the document content, adopting a preset shielding object to shield the characters corresponding to the shielding marks, and displaying the characters shielded by the target shielding object.
In the step S200, the preset occlusion object is in a preset occlusion form, and is configured to occlude the text marked by the occlusion mark, where the text is determined by the start mark and the end mark, and the preset occlusion object may specifically be in a form of a layer, a mosaic, and the like, and may specifically be in a circular shape, a rectangular shape, a star shape, and the like. For example, when a character is occluded with a gray rectangular coating, the document display effect is shown in fig. 2.
In the step S200, in the process of displaying the document content, if the character to be displayed has the shielding mark, the preset shielding object is shielded and displayed on the character while the character is displayed, so as to shield the character; in the process of displaying the document content, if the character to be displayed does not have the shielding mark, the preset shielding object is not shielded and displayed on the character when the character is displayed, that is, the character is directly displayed.
Step S300, hiding the target occlusion object under the condition that a first input of the target occlusion object is received.
In step S300, the first input is an input for requesting cancellation of blocking of a corresponding character by a blocking object. In practical applications, the first input may be an operation of scraping an occlusion object and clicking the occlusion object.
In the step S300, when the first input to the target blocking object is received, that is, when the request operation for eliminating the blocking object corresponding to the target text is received, the target blocking object corresponding to the target text is hidden, so that the target text corresponding to the target blocking object is displayed, and when the document content is displayed, information such as a keyword field and comment content added by a historical user in the book can be hidden, so that a severe risk is avoided, the enthusiasm of the user for continuing reading is ensured, the participation of the user is improved, the effect of suspended comment delay uncovering is provided, the nervous feeling of the user is maintained, and the book is more fallen down, and the people are corrected.
For example, when a user reads the text, if the user sees the coating, the user can slide the coating on the coating as the shielding object with a finger, and the coating is gradually removed and the original text is displayed along with the sliding track of the user. It should be noted that, when 80% of the coatings are cancelled, the remaining shielding coatings are automatically cancelled, that is, the whole text segment shielded by the layer is displayed.
According to the document display method provided by the embodiment of the application, when document content is loaded, each shielding mark contained in a document is detected, and then when the document content is displayed, characters corresponding to each shielding mark are shielded by using a preset shielding object; and then, when first input of the target shielding object is received, the target shielding object is hidden, so that characters shielded by the target shielding object correspondingly are displayed, when document content is displayed, information such as key text fields and comment content added by a historical user in the book is hidden, the situation that the user is exposed to disasters is avoided, the enthusiasm of the user for continuous reading is ensured, the participation sense of the user is effectively improved, the effect of suspended delay and uncovering is realized, the nervous sense of the user is maintained, and the book reading is more delayed, fluctuated and careless.
In practical application, an occlusion mark needs to be added in advance for a character needing to be occluded. For example, when the occlusion flag is hide, the start flag is < hide > and the end flag is </hide >. Then, corresponding to the display effect of fig. 2, the original content of the document uploaded by the author may be:
black clothes people smile once: "Zhang three, you also remember how I's < hide > Li four </hide >.
When a document is loaded at a document reading terminal, each shielding mark in the document is detected, if a < hide > tag is met, subsequent characters are recorded until the < hide > tag is met. After the completion, a gray rectangular coating is drawn on the recorded characters for shielding in the process of displaying the document content.
Optionally, it should be noted that, for user experience, the number of words corresponding to a single occlusion mark is limited by the longest word number, so that the user reading is prevented from being affected by full-text occlusion.
Optionally, in an embodiment, the step S300 includes steps S301 to S302.
Step S301, displaying preset interaction information corresponding to a target shielding object under the condition that first input of the target shielding object is received.
In step S301, the interaction information is preset to be information related to the target text shielded by the target shielding object, so as to further enhance the interaction with the reader, and specifically, the question and the answer option related to the target text can be displayed, or previous strokes can be displayed, so as to deepen the understanding of the user on the details.
Step S302, hiding the target shielding object and the preset interaction information under the condition that a second input of the preset interaction information is received.
In the step S302, the second input is a confirmation input for the preset interaction information, and specifically may be a click operation on the preset interaction information. And under the condition that the second input of the preset interaction information is received, explaining the user and finishing the preview of the preset interaction information, so that the target shielding object and the preset interaction information are hidden, and the user can completely view the shielded target characters. Specifically, referring to fig. 3, a schematic diagram of the effect of the preset interaction information is shown.
According to the embodiment, the preset interaction information corresponding to the target shielding object is displayed when the first input of the target shielding object is received, so that the interaction with a reader is enhanced, and the understanding of the user to details is deepened.
Optionally, in a specific embodiment, the preset interaction information includes: a question and at least one answer alternate corresponding to the question; the above step S302 includes step S3021.
Step S3021, hiding the target-shielded object and the preset interaction information and displaying a correct option and an inference process for the problem when a third input to the at least one answer option is received.
In step S3021, the third input is a selection confirmation operation of at least one answer alternative in the displayed preset interaction information. Under the condition that the third input of the at least one answer option is received, it is shown that the user has finished confirming the answer to the question in the preset interactive information, so that the target shielding object and the preset interactive information are hidden, the correct option and reasoning process aiming at the question are shown, namely the user reason is informed, and the positive feedback is given, so that the understanding of the user to the document content is deepened, and the participation sense of the user is further improved.
For the user experience, the answer alternatives also include skipped alternatives, that is, the user can select whether to participate in answering the question in the interactive information according to the user's own situation.
For example, corresponding to the display effect of FIG. 3, the occlusion flag is hide, the start flag is < hide >, the end flag is </hide >, and the preset interaction information is distributed in < > of the start flag.
The original contents of the book uploaded by the author may be:
black clothes people smile once: "Zhang three, you remember me
<hide
queston? "
options [ "li si," "wang wu" ]
"Pre-Black action stream reveals hostility, certainly enemy, according to XXXXX"
"Liqua </hide".
In the process of displaying document contents, a gray coating is adopted to shield 'Liqu', and when a user clicks the coating, the question of 'guessing who is the black clothing person' is displayed, and three answer alternatives of 'Liqu', 'Wangwu' and 'skip' are provided; after the user selects any answer alternate, the gray layer is hidden, and the fact that the action flow before the black clothing exposes the enemy is displayed, the enemy is determined, and then the reasoning process of XXXXXX 'how Liquan'.
Optionally, in a case that a third input to the at least one answer alternative is received, the answer alternative corresponding to the third input is recorded, and a response record of the user is generated, so that the user can conveniently view the response record.
Optionally, in an implementation manner, the document display method provided in the embodiment of the present invention, after the step S200, further includes steps S201 to S203:
step S201, a fourth input to the target character is received.
In the step S201, the fourth input is an input for requesting to add an occlusion flag to the target text segment, and specifically, after the target text segment is selected according to the duration, the operation of adding the occlusion flag is selected. This fourth input may be triggered by either the reader side or the author side. Wherein the fourth input includes a question, an option, an answer, a reason, and the like.
And S202, responding to the fourth input, and adding an occlusion mark for the target character.
In the step S202, after the fourth input is received, a shielding mark is added to the corresponding target text, and meanwhile, the interactive information corresponding to the target text field is formed based on the fourth input, so that when the target text field is displayed again in the following, the target text is shielded by using a preset shielding object, and the interactive information corresponding to the shielding object is displayed under the condition that the first input to the shielding object is received.
For example, referring to FIG. 4, a diagram illustrating a process for conditionally blocking a tag for a target text field via a fourth input is shown. As shown in fig. 4, after the user presses and selects "lie four" for a long time, the interface displays options such as "publish ideas", "add coatings", and "cancel", and after the user clicks the "add coatings" option, the interface pops up an input box containing contents such as questions, answers, and explanations, and after inputting corresponding contents and confirming the operation, the occlusion mark and the interaction information corresponding to the occlusion object, which is a coating, can be added to the text field "lie four".
Step S203, uploading the target characters and the user account information to a server so that the server accumulates the shielding mark times corresponding to each target character.
In step S203, after the target character condition is masked, the target character and the currently logged-in user account information are uploaded to the server, and the server can determine whether the user account belongs to a reader account or an author account according to the user account information;
when the user account is a reader account, the server can accumulate the times of shielding marks corresponding to each target character, specifically, the times of shielding marks corresponding to each target character can be sequenced from a plurality of times, and the times are fed back to an author end when the author needs, the author can select shielding marks which are considered to be better by the author to process, shielding marks are correspondingly added to the target characters in the document, and a subsequent reader end can detect the shielding marks newly added by the author in the process of loading and displaying the document content and adopts a preset shielding object to shield the target characters corresponding to the shielding marks;
when the user account is an author account, the shielding mark is directly and correspondingly added to the target character in the document stored in the server, and the subsequent reader side can detect the shielding mark newly added by the author in the process of loading and displaying the document content, and adopts a preset shielding object to shield the target character corresponding to the shielding mark.
In the embodiment, the user can add hidden marks to the playful and interesting text details in the document according to the preference of the user, and upload the corresponding text and the user account information to the server, so that the server accumulates the times of the shielding marks corresponding to the target texts and feeds the shielding marks to the author end when the author needs the shielding marks, the author can conveniently check and select whether the shielding marks correspond to the online document conditions, the participation of the user can be improved, the operation of the author can be reduced, and the interaction between a reader and the author is enhanced.
When new target characters and corresponding user account information are received, the server detects whether the target characters are shielded and marked; if the shielded mark is marked, increasing the corresponding marking times, namely adding 1 to the marking times; if no occlusion flag is marked, the number of flags is set to 1.
Optionally, in an implementation manner, the document display method provided in the embodiment of the present invention further includes steps S211 to S215 after step S200.
In practical applications, the above steps S211 to S215 are applied to the author account, that is, the document reading terminal corresponding to the author account has the right to execute the steps S211 to S215.
Step S211, receiving a fifth input to the document, where the fifth input is used to request to acquire occlusion mark information related to the document.
In the step S211, the document reading terminal detects whether there is a fifth input, where the fifth input is a request signal for requesting the server to acquire the blocking flag information related to the current document, and specifically may be a selection operation signal of the blocking flag information.
Step S212, responding to the fifth input, sending an occlusion flag information query request to the server, where the query request carries user account information and the identification information of the document.
In step S212, after receiving the fifth input, the document reading terminal sends an occlusion flag information query request to the server in communication with the document reading terminal, where the query request carries the user account information and the identification information of the document, and is used for the server to identify whether the user account sending the query terminal has the right to obtain the occlusion flag information related to the current document.
Step S213, receiving blocking flag information related to the document, which is fed back by the server according to the identification information, where the blocking flag information includes: and when each user historically views the document, adding occlusion marks for the document, wherein each occlusion mark corresponds to a character and a mark frequency.
In the step S213, when the server determines that the user account is the author account corresponding to the current document according to the user account information and the identification information of the document, the server issues the shielding mark information related to the document to the corresponding user side, so that the user can view the shielding marks added to the document when viewing the document by the user history, and the characters corresponding to each shielding mark and the shielding mark times corresponding to each character.
When the server determines that the user account is not the author account corresponding to the current document according to the user account information and the identification information of the document, the server does not issue the shielding mark information related to the document to the corresponding user side.
Step S214, receiving a sixth input of a target occlusion flag in the occlusion flag information, where the target occlusion flag is an occlusion flag corresponding to a text determined based on the times of the occlusion flag.
In step S214, the sixth input is a confirmation input for the target occlusion marker in the occlusion marker information, and may specifically be a selection operation for the target occlusion marker in the occlusion marker information.
When the user receives the shielding mark information, the marked characters may be sorted from high to low according to the shielding mark times, specifically refer to fig. 5, which shows a schematic diagram of shielding mark information.
In addition, all the mark text fields uploaded by the user and the problems, options, reasons, explanations and the like corresponding to the mark texts can be checked through clicking. After the author browses all the questions, the questions can be referred to or directly adopted.
Step S215, in response to the sixth input, sending the target occlusion flag setting request to the server, so that the server adds an occlusion flag to a text corresponding to the target occlusion flag in the document.
In step S215, after receiving the sixth input, the user side sends a setting request for setting a target occlusion flag for the text corresponding to the target occlusion flag to the server; after the server receives the setting request, directly adding a shielding mark for the character corresponding to the target shielding mark in the document, so that when other user sides display the document content, the preset shielding object is adopted to shield the character corresponding to the shielding mark; and in the event that a first input to an occluding object is received, concealing the occluding object.
In practical application, if the author user needs to add the occlusion mark included in the occlusion mark information to a new character, the corresponding character can be edited by one key, and the mark symbol and the content corresponding to the target occlusion mark are automatically inserted into the character.
In the above embodiment, the author user side may send an inquiry request for the shielding mark information to the server through the document reading terminal, and the server sends the shielding mark information related to the document to the corresponding author user side after receiving the inquiry request, so as to be displayed by the document reading terminal, and facilitate the author to view the shielding marks added to the document when the document is viewed by each user history, each shielding mark corresponds to a text and a mark frequency, and the author may refer to or directly adopt the shielding mark in the shielding mark information, thereby reducing the operation of the author, and enhancing the interaction between the user and the author.
Referring to FIG. 6, a first flowchart is shown illustrating an author actively adding an occlusion flag to a document and a corresponding document display.
As shown in fig. 6, in step S601, the author adds the mark of occlusion before and after specifying the text, for example: black clothes people smile once: "Zhang three, you also remember how I's < hide > Li four </hide";
in step S602, when the software loads a book, the software encounters an occlusion mark and adds a coating to the corresponding book;
in step S603, when the user reads, the text field blocked by the coating can be displayed by scratching off the coating.
Referring to FIG. 7, a second flowchart is shown illustrating an author actively adding an occlusion flag to a document and a corresponding document display.
As shown in fig. 7, in step S701, the author adds an occlusion flag, a question, an option, a reason explanation, and the like before and after specifying a text;
in step S702, when the software loads a document, a coating is added to the text corresponding to the occlusion mark when encountering the occlusion mark, and then the coating is occluded and displayed on the corresponding text, thereby occluding the corresponding text;
in step S703, after the user clicks the coating while reading, the corresponding question and the answer alternate item are displayed;
in step S704, the user selects any one of the answer alternatives according to his guess and understanding; after the user operates the options, the system records the input of the user and compares the input with the correct answer;
in step S705, the system performs a corresponding prompt according to the input of the reader, specifically, after the user completes the selection, the coating disappears, a correct answer is displayed, and the user is informed of the reason and gives a positive feedback.
Turning to FIG. 8, a flow diagram illustrating the process of actively adding an occlusion mark to a document by a reader and the corresponding display of the document is shown.
As shown in fig. 8, in step S801, the reader adds a coating to the target text and submits the target text to the server. Specifically, a reader selects a target character, and a popup window pops up after clicking, wherein one item is 'adding a coating'; after clicking 'add coating', canceling the old pop-up window and displaying a new pop-up window, and requiring a user to input information of the coating, such as questions, options, answers, reasons and the like; after the input is finished, clicking and submitting, uploading to a server, and uploading user account information corresponding to a reader to the server;
in step S802, the server accumulates the number of times each character is marked, sorts the characters, and feeds back the characters to the author;
in step S803, the author receives the marked condition of each text of the document sent by the server, and can check the questions, answers, reasons, explanations, and the like uploaded by all users after clicking;
in step S804, after browsing the situation that each character is marked, the author may refer to or directly adopt the situation to determine whether to add a corresponding occlusion mark to the original document, and when determining to add a target occlusion mark to the character corresponding to the target occlusion mark, send the target occlusion mark setting request to the server, so that the server adds an occlusion mark to the character corresponding to the target occlusion mark in the document.
It should be noted that, in the document display method provided in the embodiment of the present application, the execution main body may be a document reading terminal, or a control module in the document reading terminal, configured to execute the loaded document display method. In the embodiment of the present application, a document reading terminal executes a loaded document display method as an example, and the document display method provided in the embodiment of the present application is described.
Referring to fig. 9, a schematic structural diagram of a document display apparatus provided in an embodiment of the present application is shown, where the document display apparatus, as shown in fig. 9, includes:
a detecting module 91, configured to detect occlusion marks included in a document to be displayed, where each occlusion mark includes: a start marker and an end marker;
the shielding module 92 is configured to shield, in the process of displaying the document content, the text corresponding to each shielding mark by using a preset shielding object;
the hiding module 93 is configured to hide the target occlusion object and display a text occluded by the target occlusion object when a first input to the target occlusion object is received.
Optionally, in the document display apparatus, the hiding module 93 includes:
the display unit is used for displaying preset interaction information corresponding to a target shielding object under the condition that first input of the target shielding object is received;
and the hiding unit is used for hiding the target shielding object and the preset interaction information under the condition of receiving a second input of the preset interaction information.
Optionally, in the document display apparatus, the preset interaction information includes: a question and at least one answer alternate corresponding to the question;
the hiding unit is specifically configured to hide the target-shielded object and the preset interaction information and show a correct option and an inference process for the problem, when a third input to the at least one answer alternative is received.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving fourth input of target characters after characters corresponding to the shielding marks are shielded by adopting a preset shielding object in the process of displaying the document content;
a first response module, configured to add an occlusion mark to the target text in response to the fourth input;
and the first uploading module is used for uploading the target characters and the user account information to a server so that the server accumulates the shielding mark times corresponding to each target character.
Optionally, in a case that the user account information is preset user account information, the document display apparatus further includes:
a second receiving module, configured to receive a fifth input to the document after a preset occlusion object is used to occlude a text corresponding to each occlusion mark in the process of displaying the document content, where the fifth input is used to request to acquire occlusion mark information related to the document;
a second response module, configured to send, in response to the fifth input, an occlusion flag information query request to the server, where the query request carries user account information and identification information of the document;
a third receiving module, configured to receive blocking flag information related to the document, which is fed back by the server according to the identification information, where the blocking flag information includes: when each user historically views the document, adding occlusion marks for the document, wherein characters corresponding to each occlusion mark and the times of the occlusion marks corresponding to the characters are counted;
a fourth receiving module, configured to receive a sixth input of a target occlusion flag in the occlusion flag information, where the target occlusion flag is an occlusion flag corresponding to a text determined based on the number of times of the occlusion flag;
and a third response module, configured to send the target occlusion flag setting request to the server in response to the sixth input, so that the server adds an occlusion flag to a text corresponding to the target occlusion flag in the document.
The document display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The document display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The document display device provided in the embodiment of the present application can implement each process implemented by the document display method in the method embodiments of fig. 1 to fig. 8, and is not described here again to avoid repetition.
In the embodiment of the application, when loading document content, the detection module 91 detects each occlusion mark included in the document, and then when displaying the document content, the occlusion module 92 occludes the text corresponding to each occlusion mark by using a preset occlusion object; then, when the first input of the target shielding object is received, the target shielding object is hidden by the hiding module 93, so that the characters correspondingly shielded by the target shielding object are displayed, and when the document content is displayed, the key characters and the comment content added to the book by the historical user and other information are hidden, thereby avoiding the risk of the drama and ensuring the enthusiasm of the user for continuously reading.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction, when executed by the processor, implements each process of the foregoing document display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 30 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, and processor 310.
Those skilled in the art will appreciate that the electronic device 30 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 3 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 307 includes a display interface in the embodiment of the present application;
a processor 310, configured to detect occlusion marks included in a document to be displayed, where each occlusion mark includes: a start marker and an end marker; in the process of displaying the document content, adopting a preset shielding object to shield the characters corresponding to the shielding marks; in a case where a first input to a target occluding object is received through the user input unit 307, the target occluding object is hidden and characters occluded by the target occluding object are displayed.
According to the electronic equipment provided by the embodiment of the application, when the document content is loaded, each shielding mark contained in the document is detected, and then when the document content is displayed, the preset shielding object is used for shielding the character corresponding to each shielding mark; and then, when first input of the target shielding object is received, the target shielding object is hidden, so that characters shielded by the target shielding object correspondingly are displayed, when the document content is displayed, information such as key text fields and comment content added to the books by the historical users is hidden, and the risk of the drama through is reduced.
Optionally, the processor 310 is specifically configured to, when a first input to the target occlusion object is received through the user input unit 307, display preset interaction information corresponding to the target occlusion object; when a second input to the preset interaction information is received through the user input unit 307, the target shielding object and the preset interaction information are hidden, and characters shielded by the target shielding object are displayed.
Optionally, the preset interaction information includes: a question and at least one answer alternate corresponding to the question; the processor 310 is specifically configured to hide the target-blocked object and the preset interaction information, and display a correct option and an inference process for the question, when a third input for the at least one answer alternative is received.
Optionally, the processor 310 is further configured to receive, through the user input unit 307, a fourth input to the target text after the text corresponding to each occlusion mark is occluded by using a preset occlusion object in the process of displaying the document content; in response to the fourth input, adding an occlusion mark to the target text; and uploading the target characters and the user account information to a server so that the server accumulates the shielding mark times corresponding to each target character.
Optionally, in the case that the user account information is preset user account information, the processor 310 is further configured to receive a fifth input to the document, where the fifth input is used to request to acquire shielding mark information related to the document;
responding to the fifth input, and sending an occlusion mark information query request to the server, wherein the query request carries user account information and identification information of the document;
receiving shielding mark information related to the document, which is fed back by the server according to the identification information, wherein the shielding mark information comprises: when each user historically views the document, adding occlusion marks for the document, wherein characters corresponding to each occlusion mark and the times of the occlusion marks corresponding to the characters are counted;
receiving a sixth input of a target occlusion mark in the occlusion mark information, wherein the target occlusion mark is an occlusion mark corresponding to the character determined based on the occlusion mark times;
and responding to the sixth input, sending the target occlusion mark setting request to the server so that the server adds an occlusion mark to the text corresponding to the target occlusion mark in the document.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned document display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above document display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of displaying a document, the method comprising:
detecting occlusion marks contained in a document to be displayed, wherein each occlusion mark comprises: a start marker and an end marker;
in the process of displaying the document content, adopting a preset shielding object to shield the characters corresponding to the shielding marks;
hiding the target shielding object and displaying characters shielded by the target shielding object under the condition of receiving first input of the target shielding object.
2. The document display method according to claim 1, wherein hiding the target occlusion object and displaying text occluded by the target occlusion object if a first input of the target occlusion object is received comprises:
displaying preset interaction information corresponding to a target shielding object under the condition that first input of the target shielding object is received;
and hiding the target shielding object and the preset interaction information and displaying characters shielded by the target shielding object under the condition of receiving a second input of the preset interaction information.
3. The document display method according to claim 2, wherein the preset interactive information includes: a question and at least one answer alternate corresponding to the question;
hiding the target shielding object and the preset interaction information under the condition of receiving a second input of the preset interaction information, comprising:
and hiding the target shielding object and the preset interaction information and displaying correct options and an inference process aiming at the problem under the condition of receiving a third input of the at least one answer option.
4. The document display method according to claim 1, wherein after the step of blocking the text corresponding to each of the blocking marks with a preset blocking object in the process of displaying the document content, the method further comprises:
receiving a fourth input of the target text;
in response to the fourth input, adding an occlusion mark to the target text;
and uploading the target characters and the user account information to a server so that the server accumulates the shielding mark times corresponding to each target character.
5. The document display method according to claim 1, wherein when the user account information is preset user account information, after the step of blocking the text field corresponding to each of the blocking marks by using a preset blocking object in the process of displaying the document content, the method further comprises:
receiving a fifth input to the document, wherein the fifth input is used for requesting to acquire shielding mark information related to the document;
responding to the fifth input, and sending an occlusion mark information query request to the server, wherein the query request carries user account information and identification information of the document;
receiving shielding mark information related to the document, which is fed back by the server according to the identification information, wherein the shielding mark information comprises: when each user historically views the document, adding occlusion marks for the document, wherein characters corresponding to each occlusion mark and the times of the occlusion marks corresponding to the characters are counted;
receiving a sixth input of a target occlusion mark in the occlusion mark information, wherein the target occlusion mark is an occlusion mark corresponding to the character determined based on the occlusion mark times;
and responding to the sixth input, sending the target occlusion mark setting request to the server so that the server adds an occlusion mark to the text corresponding to the target occlusion mark in the document.
6. A document display apparatus, characterized in that the apparatus comprises:
the device comprises a detection module and a display module, wherein the detection module is used for detecting each occlusion mark contained in a document to be displayed, and each occlusion mark comprises: a start marker and an end marker;
the shielding module is used for shielding the characters corresponding to the shielding marks by adopting a preset shielding object in the process of displaying the document content;
the hiding module is used for hiding the target shielding object and displaying characters shielded by the target shielding object under the condition that first input of the target shielding object is received.
7. The document display apparatus according to claim 6, wherein the hiding module comprises:
the display unit is used for displaying preset interaction information corresponding to a target shielding object under the condition that first input of the target shielding object is received;
and the hiding unit is used for hiding the target shielding object and the preset interaction information and displaying characters shielded by the target shielding object under the condition of receiving a second input of the preset interaction information.
8. The document display apparatus according to claim 7, wherein the preset interaction information comprises: a question and at least one answer alternate corresponding to the question;
the hiding unit is specifically configured to hide the target-shielded object and the preset interaction information and show a correct option and an inference process for the problem, when a third input to the at least one answer alternative is received.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the document display method of claims 1-5.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the document display method according to claims 1-5.
CN202011015165.8A 2020-09-24 2020-09-24 Document display method and device and electronic equipment Pending CN112100981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011015165.8A CN112100981A (en) 2020-09-24 2020-09-24 Document display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011015165.8A CN112100981A (en) 2020-09-24 2020-09-24 Document display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112100981A true CN112100981A (en) 2020-12-18

Family

ID=73755379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011015165.8A Pending CN112100981A (en) 2020-09-24 2020-09-24 Document display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112100981A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008077225A (en) * 2006-09-19 2008-04-03 Ricoh Co Ltd Terminal apparatus for information input, hidden data content confirmation method, and program for executing hidden data content confirmation
JP2011070403A (en) * 2009-09-25 2011-04-07 Sharp Corp Content display device, program, and recording medium
US20120129142A1 (en) * 2010-11-18 2012-05-24 Samsung Electronics Co., Ltd. Method and device for learning in electronic book reader
CN102646089A (en) * 2011-02-16 2012-08-22 汉王科技股份有限公司 Text hiding and displaying method and device for electronic reader
US20130318465A1 (en) * 2012-05-23 2013-11-28 Wistron Corp. Method for sharing notes of an electronic book and electronic reader thereof, computer readable storage medium
CN103999069A (en) * 2011-10-10 2014-08-20 S·K·麦卓 E-book reader with overlays
CN104820559A (en) * 2015-05-12 2015-08-05 深圳新博科技有限公司 Reading progress positioning method and device
CN107463534A (en) * 2017-07-27 2017-12-12 维沃移动通信有限公司 A kind of object marking method, mobile terminal and computer-readable recording medium
CN108076243A (en) * 2016-11-10 2018-05-25 京瓷办公信息系统株式会社 Image formation system, image forming method and recording medium
CN110738021A (en) * 2018-07-03 2020-01-31 珠海金山办公软件有限公司 document display method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008077225A (en) * 2006-09-19 2008-04-03 Ricoh Co Ltd Terminal apparatus for information input, hidden data content confirmation method, and program for executing hidden data content confirmation
JP2011070403A (en) * 2009-09-25 2011-04-07 Sharp Corp Content display device, program, and recording medium
US20120129142A1 (en) * 2010-11-18 2012-05-24 Samsung Electronics Co., Ltd. Method and device for learning in electronic book reader
CN102646089A (en) * 2011-02-16 2012-08-22 汉王科技股份有限公司 Text hiding and displaying method and device for electronic reader
CN103999069A (en) * 2011-10-10 2014-08-20 S·K·麦卓 E-book reader with overlays
US20130318465A1 (en) * 2012-05-23 2013-11-28 Wistron Corp. Method for sharing notes of an electronic book and electronic reader thereof, computer readable storage medium
CN104820559A (en) * 2015-05-12 2015-08-05 深圳新博科技有限公司 Reading progress positioning method and device
CN108076243A (en) * 2016-11-10 2018-05-25 京瓷办公信息系统株式会社 Image formation system, image forming method and recording medium
CN107463534A (en) * 2017-07-27 2017-12-12 维沃移动通信有限公司 A kind of object marking method, mobile terminal and computer-readable recording medium
CN110738021A (en) * 2018-07-03 2020-01-31 珠海金山办公软件有限公司 document display method and device

Similar Documents

Publication Publication Date Title
CN107992604B (en) Task item distribution method and related device
CN105812941A (en) Video playing method and device and electronic equipment
CN109815416B (en) Associated information pushing method and device, electronic equipment and storage medium
JP7490084B2 (en) Message detail screen display method, device and electronic device
CN112667118A (en) Method, apparatus and computer readable medium for displaying historical chat messages
CN112788178B (en) Message display method and device
CN112287165A (en) File processing method and device
CN112988006A (en) Display method, display device, electronic equipment and storage medium
CN113141293A (en) Message display method and device and electronic equipment
CN111857504A (en) Information display method and device, electronic equipment and storage medium
CN112748842A (en) Text selection method and device
CN112925426A (en) Processing method and device of stylus and electronic equipment
CN112783592A (en) Information issuing method, device, equipment and storage medium
CN111796730A (en) Information processing method and device
CN111639333A (en) Information management method and device and electronic equipment
CN107678624A (en) The operating method and device of application icon, computer installation and storage medium
CN108509582B (en) Information reply method, terminal equipment and computer readable storage medium
CN113342755A (en) Display control method and device
CN109725802A (en) Page interaction and device
CN112100981A (en) Document display method and device and electronic equipment
CN112416143B (en) Text information editing method and device and electronic equipment
CN108197113B (en) Article information conversion method, device, equipment and computer readable medium
CN115759151A (en) Book management method, book management device, storage medium and server
CN108521460A (en) Information-pushing method, device, mobile terminal and computer readable storage medium
CN114422843A (en) Video color egg playing method and device, electronic equipment and medium

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