Interactive display method, computing equipment and computer storage medium for dialogue novel
1. An interactive presentation method of a dialog novel, comprising:
when a first content display instruction triggered by a user in an interactive region is received, acquiring a conversation content group to be displayed according to the display sequence of each conversation content in a conversation novel;
the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role;
and responding to the first content display instruction, and displaying at least two pieces of conversation content contained in the conversation content group to be displayed in a display area according to a display sequence.
2. The method of claim 1, wherein, prior to presenting the at least two pieces of conversational content in the presentation order within the presentation area in response to the first content presentation instruction, the method further comprises:
judging whether the range of the area to be presented of the conversation content group exceeds the range of one screen area of the display area;
if so, the conversation content group is segmented into at least two conversation content groups according to the one-screen area range of the display area, and the area range to be presented of any conversation content group does not exceed the one-screen area range of the display area.
3. The method of claim 2, wherein said presenting the at least two pieces of dialog content in the presentation order within the presentation area in response to the first content presentation instruction further comprises:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within a presentation area in response to the first content presentation instruction;
the method further comprises the following steps:
receiving a second content display instruction triggered by the user in the interactive area; presenting at least one piece of dialog content of the next, top-ranked group of dialog content in a presentation order within a presentation area in response to the second content presentation instruction; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
4. The method of claim 2, wherein said presenting the at least two pieces of dialog content in the presentation order within the presentation area in response to the first content presentation instruction further comprises:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within a presentation area in response to the first content presentation instruction;
the method further comprises the following steps:
receiving a sliding operation instruction triggered by a user in a display area; in response to the sliding operation instruction, presenting at least one piece of conversation content of the next front-ranked conversation content group in a presentation order in a presentation area; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
5. The method of claim 2, wherein said presenting the at least two pieces of dialog content in the presentation order within the presentation area in response to the first content presentation instruction further comprises:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within a presentation area in response to the first content presentation instruction;
the method further comprises the following steps:
judging whether the display duration of the conversation content group presented in the display area reaches a preset time threshold value or not; if so, presenting at least one piece of conversation content of the next conversation content group with the top sequence in the display area according to the display sequence; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
6. The method according to any one of claims 1-5, wherein the method further comprises:
dividing at least two pieces of conversation content with consistent conversation roles and continuous display sequence into a conversation content group according to the conversation roles and the display sequence corresponding to each piece of conversation content in the conversation novel.
7. The method of any of claims 1-5, wherein the obtaining a dialog content set to be presented further comprises:
judging whether the conversation roles of at least two continuous conversation contents starting from the target conversation content are consistent or not; the target conversation content is a first piece of conversation content after the current display progress reaches the display position;
and if so, acquiring a conversation content group formed by the at least two conversation contents.
8. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
when a first content display instruction triggered by a user in an interactive region is received, acquiring a conversation content group to be displayed according to the display sequence of each conversation content in a conversation novel;
the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role;
and responding to the first content display instruction, and displaying at least two pieces of conversation content contained in the conversation content group to be displayed in a display area according to a display sequence.
9. The computing device of claim 8, the executable instructions further cause the processor to:
responding to the first content display instruction, and before the at least two pieces of conversation content are displayed in the display area according to the display sequence, judging whether the area range to be displayed of the conversation content group exceeds the area range of one screen of the display area;
if so, the conversation content group is segmented into at least two conversation content groups according to the one-screen area range of the display area, and the area range to be presented of any conversation content group does not exceed the one-screen area range of the display area.
10. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the interactive presentation method of a dialog novel according to any one of claims 1-7.
Background
A dialog novel is a type of novel written in the form of a character dialog in a basic structural manner and presentation by narrating events, developing plots, environments of interaction and depicting character characters in the dialog between characters of a work. The novel structure is suitable for reading at fragmentization time, so that the novel structure is favored by partial users.
The inventor discovers that in the process of implementing the invention: in the existing manual reading mode of the dialogue novel, a user pops up a dialogue content every time the user clicks a screen, and in the mode, the user needs to frequently click the screen, and the defect of cutting off the complete semantics of the person dialogue exists.
Disclosure of Invention
In view of the above, the present invention has been developed to provide a method, a computing device and a computer storage medium for interactive presentation of dialog novels that overcome or at least partially address the above-mentioned problems.
According to one aspect of the invention, a method for interactively showing a dialog novel is provided, which comprises the following steps:
when a first content display instruction triggered by a user in an interactive region is received, acquiring a conversation content group to be displayed according to the display sequence of each conversation content in a conversation novel;
the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role;
and in response to the first content display instruction, at least two pieces of conversation content contained in the conversation content group to be displayed are displayed in the display area according to the display sequence.
According to yet another aspect of the present invention, there is provided a computing device comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
when a first content display instruction triggered by a user in an interactive region is received, acquiring a conversation content group to be displayed according to the display sequence of each conversation content in a conversation novel;
the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role;
and in response to the first content display instruction, at least two pieces of conversation content contained in the conversation content group to be displayed are displayed in the display area according to the display sequence.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
when a first content display instruction triggered by a user in an interactive region is received, acquiring a conversation content group to be displayed according to the display sequence of each conversation content in a conversation novel;
the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role;
and in response to the first content display instruction, at least two pieces of conversation content contained in the conversation content group to be displayed are displayed in the display area according to the display sequence.
According to the interactive display method, the computing equipment and the computer storage medium of the dialog novel, when a first content display instruction triggered by a user in an interactive area is received, a dialog content group to be displayed is obtained according to the display sequence of each dialog content in the dialog novel; the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role; and in response to the first content display instruction, at least two pieces of conversation content contained in the conversation content group to be displayed are displayed in the display area according to the display sequence. Through the mode, the user carries out interaction and then shows the content of waiting to show, can keep the characteristics of the click show mode of dialogue novel, and the user carries out interaction and then shows a plurality of continuous dialogue contents of the same dialogue role that follows in the show district together, can avoid the problem that the associativity between a plurality of continuous dialogue contents is cut off, can also reduce the interactive operation that the user reads novel content, can improve user reading efficiency, can promote user reading experience.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating an interactive presentation method for a dialog novel according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for interactive presentation of a dialog novel according to another embodiment of the present invention;
FIG. 3 illustrates a flow chart for presenting individual conversational content packets segmented by a conversational content group in another embodiment of the invention;
FIG. 4 illustrates a flow chart for presenting individual dialog content packets segmented by dialog content groups in another embodiment of the present invention;
FIG. 5a is a diagram illustrating a presentation page of a dialog novel page in an embodiment of the invention;
FIG. 5b is a diagram illustrating a presentation page of a dialog novel page in an embodiment of the invention;
fig. 6 shows a schematic structural diagram of a computing device provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart illustrating an interactive presentation method for a dialog novel according to an embodiment of the present invention, where as shown in fig. 1, the method includes the following steps:
step S110, receiving a first content display instruction triggered by the user in the interactive area.
Detecting a content display triggering operation executed by a user in an interactive area, and triggering a first content display instruction for displaying conversation content according to the detected content display triggering operation, wherein the first content display instruction is used for displaying next content, and the next content may be a conversation content group or a single conversation content.
Step S120, obtaining a dialog content group to be displayed according to a display sequence of each dialog content in the dialog novel, where the dialog content group to be displayed includes at least two dialog contents with continuous display sequences, and the at least two dialog contents correspond to the same dialog role.
The dialog novel comprises a plurality of dialog contents, and the dialog contents have a display sequence, for example, the dialog novel comprises 50 dialog contents from 1 st to 50 th, which are arranged and displayed according to the sequence from 1 st to 5 th.
And acquiring a conversation content group to be displayed next each time a first content display instruction triggered by a user in the interactive area is received. The dialog content group includes at least two pieces of dialog content in a continuous display order, and the dialog roles corresponding to the dialog contents included in the dialog content group are all the same, and in a simple way, a plurality of dialog contents included in the dialog content group are continuous sentences spoken by the same dialog role. The first piece of conversation content in the conversation content group to be presented is conversation content at a presentation position next to the presentation position to which the current presentation progress has reached.
Step S130, in response to the first content display instruction, at least two pieces of dialog content included in the dialog content group to be displayed are displayed in the display area according to the display order.
And responding to the content display instruction, and simultaneously presenting all the dialog contents contained in the dialog content group to be displayed in the display area, namely, presenting the continuous multiple sentences spoken by the same novel character in the display area after the user clicks once instead of presenting one dialog content after the user clicks once.
In the dialog novel presentation mode provided by the embodiment, once user interaction is performed, at least two subsequent continuous dialog contents of the same dialog role are presented in the presentation area once, the presentation characteristic of the manual reading mode is reserved, and the interactive operation of the user in the manual reading mode can be reduced; furthermore, continuous multiple dialogs of the same novel character can usually express complete semantics, while in the case of making a novel, a section of dialog with complete semantics may be split into multiple pieces of dialog contents due to reasons such as typesetting, and in the existing manual reading mode, a user clicks to display one piece of dialog content at a time, and then the relevance between the continuous multiple pieces of dialog contents is cut off, and if popularization contents are inserted between the dialog contents or pages need to be turned between the dialog contents, the distance between the dialog contents is increased, which may cause inconvenience for the user to understand the meaning of the dialog contents, but in this embodiment, the continuous multiple pieces of dialog of the same novel character are presented together, which may cause the above problems.
According to the interactive display method of the dialog novel provided by the embodiment, a first content display instruction triggered by a user in an interactive area is received; acquiring a dialog content group to be displayed according to the display sequence of each dialog content in the dialog novel; the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role; and in response to the first content display instruction, at least two pieces of conversation content contained in the conversation content group to be displayed are displayed in the display area according to the display sequence. Through the mode, the user carries out interaction and then shows the content of waiting to demonstrate, can keep the characteristics of the click show mode of dialogue novel, and the user carries out interaction every time and then shows a plurality of continuous dialogue contents of the same dialogue role that follow in the show district together, can avoid the problem that the associativity between continuous many dialogue contents is cut off, can also reduce the interactive operation that the user read novel content, can improve user reading efficiency, can promote user reading experience.
Fig. 2 is a flowchart illustrating an interactive presentation method for a dialog novel according to another embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
step S210, dividing at least two pieces of dialog contents with consistent dialog roles and continuous display order into a dialog content group according to the dialog roles and display order corresponding to each piece of dialog content in the dialog novel in advance.
Each dialog content in the dialog novel content is divided in advance, at least two pieces of dialog content with consistent dialog roles and continuous display sequence are divided into a dialog content group, and a plurality of dialog contents contained in the dialog content group are continuous sentences spoken by the same dialog role. By pre-dividing, the display efficiency of the conversation content group in the subsequent process can be improved.
Step S220, when receiving a first content display instruction triggered by the user in the interactive region, determining the content to be displayed according to the display sequence of each dialog content in the dialog novel.
If the content to be displayed is a dialog content group, executing step S230; if the content to be displayed is a dialog content, step S270 is executed.
Detecting content display triggering operation executed by a user in an interactive area, and triggering a first content display instruction for displaying conversation content according to the detected content display triggering operation, wherein the first content display instruction is used for displaying the next content (namely the content to be displayed) of the conversation novel. And then judges whether the content to be presented is a dialogue content group or a single piece of dialogue content. In the case that the dialog novel content is divided in advance, determining whether the content to be presented is a dialog content group or a single piece of dialog content may include the following two implementation manners.
The first mode is as follows: and determining whether the conversation content corresponding to the next display position of the display position belongs to a conversation content group or not according to the display position reached by the current display progress, if so, determining that the content to be displayed is the conversation content group, and if not, determining that the content to be displayed is a conversation content. For example, when the 6 th dialog content is currently presented, if it is determined that the 7 th dialog content is divided into the dialog content groups including the 7 th to 9 th dialog contents, the content to be presented is the dialog content group, otherwise, if it is determined that the 7 th dialog content is not divided into the dialog content groups, the content to be presented is the 7 th dialog content. According to the method, the conversation content group is divided in advance, and after the display instruction is received, whether the content to be displayed is a single conversation content or the conversation content group can be determined only through simple judgment, so that the display speed of the conversation novel content can be increased.
In the second mode, after the dialog novel is divided, each individual dialog content and each dialog content group are respectively used as a display content unit, and the display positions of the display content units are sequenced according to the display sequence of the dialog contents of the dialog novel. And after receiving a content display instruction triggered by the user in the interactive area, acquiring the display content units to be displayed according to the display sequence of each display content unit, and determining whether the content to be displayed is a conversation content group or a single conversation content according to the display content units. According to the method, the display content units are divided and sequenced, so that the display speed of the dialog novel content can be further improved.
In both of the above two methods, the content of the dialog novel is divided in advance, and the presentation of the dialog content is realized based on the divided dialog novel. In an optional manner, the dialog novel content is not divided in advance, but after a content display instruction triggered by a user in an interactive region is received, whether the content to be displayed is a dialog content group is judged according to the dialog roles of each dialog content, specifically, whether the dialog roles of at least two continuous dialog contents starting from a first dialog content after a display position reached by a current display progress are consistent is judged, if so, the content to be displayed is the dialog content group containing at least two dialog contents, otherwise, if the dialog roles of the first dialog content and a second dialog content after the display position reached by the current display progress are inconsistent, the content to be displayed is an independent dialog content, namely, the first dialog content.
Step S230, acquiring the dialog content group to be displayed, and determining whether the region range to be presented of the dialog content group to be displayed exceeds a screen region range of the display region.
And if the content to be displayed is the conversation content group, acquiring the conversation content group to be displayed so as to display the conversation content group.
Because the area range of the display area is limited, the dialog content group may contain a large amount of dialog content, and the dialog content group cannot be completely displayed in one screen. Specifically, it is first determined whether the presentation range required for the dialog content group exceeds a screen area range of the presentation area. For example, the region range to be presented of each piece of dialog content is determined according to the number of characters contained in each piece of dialog content in the dialog content group, and then the region range to be presented of the dialog content group is determined according to the region range to be presented of each piece of dialog content and a preset dialog content interval. The required presentation area range of each character number can be determined according to the setting of the character number, and further the required presentation area range of each piece of conversation content can be determined.
In step S240, if the range of the to-be-presented area of the dialog content group to be presented exceeds the range of the one-screen area of the presentation area, the dialog content group is segmented into at least two dialog content groups according to the range of the one-screen area of the presentation area. The range of the area to be presented of any conversation content group does not exceed the range of one screen area of the presentation area.
And if the required presentation area range of the conversation content group exceeds the one-screen area range of the presentation area, segmenting the conversation content group into at least two conversation content groups, wherein each conversation content group comprises at least one conversation content, and the required presentation area range of each conversation content group does not exceed the one-screen area range of the presentation area.
Otherwise, if the required presentation area range of the conversation content group is judged not to exceed the one-screen area range of the presentation area, the conversation content group is directly presented in the presentation area.
And step S250, responding to the first content display instruction, and presenting at least one piece of conversation content of the conversation content group which is sequenced at the top in the display area according to the display sequence.
Assuming that the dialog content group to be presented is divided into 3 dialog content groups, first, in response to the received content presentation instruction, the dialog contents of the dialog content group ordered at the top, that is, the dialog contents included in the 1 st dialog content group, are presented in the presentation area, wherein the dialog contents in the 1 st dialog content group are arranged in the presentation order.
Step S260, receiving a second content display instruction triggered by the user in the interactive area; presenting at least one piece of dialog content of the next, top-ranked group of dialog content in a presentation order within the presentation area in response to the second content presentation instruction; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
The user operations corresponding to the first content presentation instruction and the second presentation instruction are both directed to the interactive area, and the specific operation forms may be set to be consistent, for example, both the user operations click the interactive area, or certainly, the user operations may also be set to be inconsistent for distinguishing. However, the second content presentation instruction functions differently from the first content presentation instruction for presenting the next content, and the second content presentation instruction for presenting the remaining non-presented group of conversational content of the currently presented group of conversational content.
After the 1 st dialog content packet is presented, there are still undisplayed dialog content packets at this time, and the user is required to perform the interactive operation again to enable the undisplayed dialog content packets to be presented. Specifically, a second content presentation instruction triggered by the user in the interactive area is received, and in response to the second content presentation instruction, the dialog contents included in the next-before dialog content group after the 1 st dialog content group, that is, the dialog contents included in the 2 nd dialog content group, are presented.
After the presentation of the 2 nd dialog content packet, there are still undisplayed dialog content packets at this time, and the user is required to perform the interactive operation again so that the undisplayed dialog content packets can be presented. Specifically, a second content presentation instruction triggered by the user in the interactive region is received again, and each dialog content included in the next dialog content group in the front sequence after the 2 nd dialog content group, that is, each dialog content included in the 3 rd dialog content group, is presented. At this time, all the dialog contents of the dialog content group are completely presented, the dialog content group is divided into 3 dialog content groups, and 3 content presentation instructions are required in total to completely present all the dialog contents of the dialog content group.
For example, dialog novels include: a separate dialog novel content a, a dialog content group B (one screen area is not shown down, split into dialog content groupings B1 and B2), and a separate dialog novel content C. After entering the dialogue novel, a user clicks an interactive area for the first time, at the moment, a first content display instruction is triggered, and the content to be displayed is the single dialogue novel content A and is displayed; the user clicks the interactive area for the second time, at this time, a first content display instruction is triggered, the content to be displayed is a conversation content group B, and if the conversation content group B cannot be displayed on one screen, the conversation content group B1 is displayed in response to the first content display instruction; the user clicks the interactive area for the third time, and at the moment, the conversation content group B and the conversation content group B2 are not displayed, a second content display instruction is triggered to present the conversation content group B2, and the conversation content group B is displayed completely; and the user clicks the interactive area for the fourth time, a first content display instruction is triggered, and the single dialog novel content C is displayed.
It can be seen that steps S250-S260 provide a solution that continuous multiple pieces of dialog content of the same dialog character cannot be completely presented in one screen, in which the continuous multiple pieces of dialog content are divided into multiple dialog content groups, and after group 1 presents the dialog content groups, the user presents each piece of dialog content included in one dialog content group at a time in the interactive region until the dialog content groups are presented completely.
In an alternative mode, the solution that continuous multiple pieces of conversation content in the same conversation character cannot be completely presented in a screen range can also be: after the dialog contents contained in the group 1 group of dialog content groups are presented in response to a content presentation instruction triggered by a user in an interactive region, sequentially presenting the dialog contents contained in the non-presented dialog content groups according to a user sliding operation, where fig. 3 shows a flowchart of presenting each dialog content group segmented by the dialog content groups in another embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
step S310, in response to the received first content display instruction triggered by the user in the interactive area, at least one piece of dialog content of the dialog content group ordered at the top is displayed in the display area according to the display sequence.
Step S320, receiving a sliding operation instruction triggered by a user in a display area; presenting at least one piece of dialog content of the next front-ranked dialog content group in a display sequence in response to the sliding operation instruction; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
Following the example of the above 3 dialog content groups, after the dialog novel is divided into a plurality of dialog content groups in step S240, in response to a received first content display instruction triggered by the user in the interactive region, first presenting each dialog content included in the 1 st dialog content group in the display region, at this time, leaving two dialog content groups undisplayed; then, receiving a sliding operation instruction triggered by a user in the display area, and in response to the sliding operation instruction, displaying each dialog content contained in the dialog content group (namely, the 2 nd dialog content group) which is next to and before the 1 st dialog content group, wherein at this time, the 3 rd dialog content group is left to be not displayed; and then, receiving a sliding operation instruction triggered by the user in the display area again, and displaying each dialog content contained in the next dialog content group (namely, the 3 rd dialog content group) which is sequenced at the front after the 2 nd dialog content group in response to the sliding operation instruction, so that the dialog content groups are completely displayed. Therefore, in the method, the continuous multiple pieces of conversation content are divided into multiple conversation content groups, the 1 st group of conversations included in the conversation content groups are firstly displayed after the user clicks the interactive region, and then sliding is performed in the display region so that the 2 nd group and the 3 rd group of conversations included in the conversation content groups can be displayed.
In an alternative mode, the solution that continuous multiple pieces of conversation content in the same conversation character cannot be completely presented in a screen range can also be: after presenting the group 1 conversation content grouping in response to the content presentation instruction triggered by the user in the interactive region, automatically presenting each conversation content grouping segmented by the user conversation content group in sequence, fig. 4 shows a flowchart for presenting each conversation content grouping segmented by the conversation content group in another embodiment of the present invention, and as shown in fig. 4, the method includes the following steps:
step S410, in response to the received first content display instruction triggered by the user in the interactive area, at least one piece of dialog content of the dialog content group ordered at the top is displayed in the display area according to the display sequence.
Step S420, judging whether the display duration of the conversation content group presented in the display area reaches a preset time threshold value; if so, presenting at least one piece of conversation content of the next conversation content group with the top sequence in the display area according to the display sequence; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
Following the example of the 3 dialog content groups, in response to a first content presentation instruction triggered by the user in the interaction area, first presenting each dialog content included in the 1 st dialog content group in the presentation area; at this time, if two conversation content groups are left and are not displayed, timing the display duration of the 1 st conversation content group; when the display duration of the 1 st conversation content group reaches a preset time threshold, automatically presenting each conversation content contained in the conversation content group (namely, the 2 nd conversation content group) which is next to the conversation content group in the 1 st conversation content group and is in front of the next sequence in the 1 st conversation content group in the display area; at this time, if the 3 rd group of the speech content groups are not displayed, timing the display duration of the 2 nd group of the speech content groups; when the display duration of the 2 nd conversation content group reaches a preset time threshold, the conversation contents contained in the next-order-before conversation content group (namely, the 3 rd conversation content group) of the 2 nd conversation content group are automatically presented in the display area. In the method, the continuous multiple pieces of conversation content are cut into multiple conversation content groups, the 1 st group of conversations contained in the conversation content group are firstly displayed after a user clicks the interaction area, and then the conversation contents contained in the next conversation content group are automatically presented at regular intervals.
Fig. 5a shows a schematic diagram of a presentation page of a dialog novel page in an embodiment of the present invention, fig. 5B shows a schematic diagram of a presentation page of a dialog novel page in an embodiment of the present invention, after presenting a dialog content of a dialog character a, receiving a content presentation instruction triggered by a user in an interactive region, determining that a content to be presented is continuous 5 dialog contents of a dialog character B, and a remaining presentation range of a display region in fig. 5a is smaller than a presentation range required by the continuous 5 dialog contents of the dialog character B, dividing the 5 dialog contents of the dialog character B into two dialog content groups, namely a dialog content group 1 and a dialog content group 2, presenting each dialog content included in the dialog content group 1 in the display region in fig. 5a, and then, performing a click operation in the interactive region in fig. 5a or performing a slide operation in the display region or a presentation duration of the dialog content group 1 exceeds a preset time threshold, the pieces of conversation content contained in the conversation content group 2 are presented in the presentation area of fig. 5 b.
Step S270, in response to the first content display instruction, displaying a piece of dialog content to be displayed in the display area.
And if the content to be displayed is a piece of single conversation content, displaying the single conversation content in the display area in response to the first content display instruction.
According to the interactive display method of the dialog novel provided by the embodiment, on one hand, at least two pieces of dialog contents with consistent dialog roles and continuous display sequence in the dialog novel are divided into a dialog content group in advance, and the speed of obtaining the dialog content group to be displayed can be improved in the subsequent process; on the other hand, independent conversation contents and conversation content groups which are not divided into conversation content groups are used as display content units, and a user can present one display content unit every time of interaction, so that the characteristic of a manual display mode of a conversation novel can be reserved; on the other hand, a presentation solution that a presentation area required by a conversation content group exceeds a one-screen presentation range of a display area is provided, namely, the conversation content group is divided into a plurality of conversation content groups, the conversation content groups are displayed in a split screen manner, subsequent conversation content groups can be manually or automatically presented, and compared with the mode that one conversation content is presented by user interaction once in the prior art, the method can reduce user interaction operation and reduce the degree of cutting the complete semantics of character conversation.
The embodiment of the invention provides a nonvolatile computer storage medium, wherein at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute the interactive display method of the dialog novel in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
when a first content display instruction triggered by a user in an interactive region is received, acquiring a conversation content group to be displayed according to the display sequence of each conversation content in a conversation novel;
the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role;
and in response to the first content display instruction, at least two pieces of conversation content contained in the conversation content group to be displayed are displayed in the display area according to the display sequence.
In an alternative, the executable instructions cause the processor to:
responding to the first content display instruction, and before at least two pieces of conversation content are displayed in the display area according to the display sequence, judging whether the area range to be displayed of the conversation content group exceeds the area range of one screen of the display area;
if so, the conversation content group is segmented into at least two conversation content groups according to the one-screen area range of the display area, and the area range to be presented of any conversation content group does not exceed the one-screen area range of the display area.
In an alternative, the executable instructions cause the processor to:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within the presentation area in response to the first content presentation instruction;
receiving a second content display instruction triggered by the user in the interactive area; presenting at least one piece of dialog content of the next, top-ranked group of dialog content in a presentation order within the presentation area in response to the second content presentation instruction; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
In an alternative, the executable instructions cause the processor to:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within the presentation area in response to the first content presentation instruction;
receiving a sliding operation instruction triggered by a user in a display area; presenting at least one piece of dialog content of the next front-ranked dialog content group in a display sequence in response to the sliding operation instruction; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
In an alternative, the executable instructions cause the processor to:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within the presentation area in response to the first content presentation instruction;
judging whether the display duration of the conversation content group presented in the display area reaches a preset time threshold value or not; if so, presenting at least one piece of conversation content of the next conversation content group with the top sequence in the display area according to the display sequence; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
In an alternative, the executable instructions cause the processor to:
dividing at least two pieces of conversation content with consistent conversation roles and continuous display sequence into a conversation content group according to the conversation roles and the display sequence corresponding to each piece of conversation content in the conversation novel.
In an alternative, the executable instructions cause the processor to:
judging whether the conversation roles of at least two continuous conversation contents starting from the target conversation content are consistent or not; the target conversation content is the first conversation content after the current display progress reaches the display position;
and if so, acquiring a conversation content group formed by the at least two conversation contents.
Through the mode, the user carries out interaction and then shows the content of waiting to show, can keep the characteristics of the click show mode of dialogue novel, and the user carries out interaction and then shows a plurality of continuous dialogue contents of the same dialogue role that follows in the show district together, can avoid the problem that the associativity between a plurality of continuous dialogue contents is cut off, can also reduce the interactive operation that the user reads novel content, can improve user reading efficiency, can promote user reading experience.
Fig. 6 is a schematic structural diagram of an embodiment of a computing device according to the present invention, and a specific embodiment of the present invention does not limit a specific implementation of the computing device.
As shown in fig. 6, the computing device may include: a processor (processor)602, a communication Interface 604, a memory 606, and a communication bus 608.
Wherein: the processor 602, communication interface 604, and memory 606 communicate with one another via a communication bus 608. A communication interface 604 for communicating with network elements of other devices, such as clients or other servers. The processor 602 is configured to execute the program 610, and may specifically perform relevant steps in the above-described embodiment of the interactive presentation method for a dialog novel of a computing device.
In particular, program 610 may include program code comprising computer operating instructions.
The processor 602 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 606 for storing a program 610. Memory 606 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 610 may specifically be configured to cause the processor 602 to perform the following operations:
when a first content display instruction triggered by a user in an interactive region is received, acquiring a conversation content group to be displayed according to the display sequence of each conversation content in a conversation novel;
the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role;
and in response to the first content display instruction, at least two pieces of conversation content contained in the conversation content group to be displayed are displayed in the display area according to the display sequence.
In an alternative, the program 610 causes the processor 602 to:
responding to the first content display instruction, and before at least two pieces of conversation content are displayed in the display area according to the display sequence, judging whether the area range to be displayed of the conversation content group exceeds the area range of one screen of the display area;
if so, the conversation content group is segmented into at least two conversation content groups according to the one-screen area range of the display area, and the area range to be presented of any conversation content group does not exceed the one-screen area range of the display area.
In an alternative, the program 610 causes the processor 602 to:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within the presentation area in response to the first content presentation instruction;
receiving a second content display instruction triggered by the user in the interactive area; presenting at least one piece of dialog content of the next, top-ranked group of dialog content in a presentation order within the presentation area in response to the second content presentation instruction; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
In an alternative, the program 610 causes the processor 602 to:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within the presentation area in response to the first content presentation instruction;
receiving a sliding operation instruction triggered by a user in a display area; presenting at least one piece of dialog content of the next front-ranked dialog content group in a display sequence in response to the sliding operation instruction; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
In an alternative, the program 610 causes the processor 602 to:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within the presentation area in response to the first content presentation instruction;
judging whether the display duration of the conversation content group presented in the display area reaches a preset time threshold value or not; if so, presenting at least one piece of conversation content of the next conversation content group with the top sequence in the display area according to the display sequence; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
In an alternative, the program 610 causes the processor 602 to:
dividing at least two pieces of conversation content with consistent conversation roles and continuous display sequence into a conversation content group according to the conversation roles and the display sequence corresponding to each piece of conversation content in the conversation novel.
In an alternative, the program 610 causes the processor 602 to:
judging whether the conversation roles of at least two continuous conversation contents starting from the target conversation content are consistent or not; the target conversation content is the first conversation content after the current display progress reaches the display position;
and if so, acquiring a conversation content group formed by the at least two conversation contents.
Through the mode, the user carries out interaction and then shows the content of waiting to show, can keep the characteristics of the click show mode of dialogue novel, and the user carries out interaction and then shows a plurality of continuous dialogue contents of the same dialogue role that follows in the show district together, can avoid the problem that the associativity between a plurality of continuous dialogue contents is cut off, can also reduce the interactive operation that the user reads novel content, can improve user reading efficiency, can promote user reading experience.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.
The invention discloses: A1. an interactive presentation method of a dialog novel, comprising:
when a first content display instruction triggered by a user in an interactive region is received, acquiring a conversation content group to be displayed according to the display sequence of each conversation content in a conversation novel;
the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role;
and responding to the first content display instruction, and displaying at least two pieces of conversation content contained in the conversation content group to be displayed in a display area according to a display sequence.
A2. The method of a1, wherein, prior to presenting the at least two dialog contents in the presentation order within the presentation area in response to the first content presentation instruction, the method further comprises:
judging whether the range of the area to be presented of the conversation content group exceeds the range of one screen area of the display area;
if so, the conversation content group is segmented into at least two conversation content groups according to the one-screen area range of the display area, and the area range to be presented of any conversation content group does not exceed the one-screen area range of the display area.
A3. The method of a2, wherein the presenting the at least two dialog content in the presentation order within the presentation area in response to the first content presentation instruction further comprises:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within a presentation area in response to the first content presentation instruction;
the method further comprises the following steps:
receiving a second content display instruction triggered by the user in the interactive area; presenting at least one piece of dialog content of the next, top-ranked group of dialog content in a presentation order within a presentation area in response to the second content presentation instruction; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
A4. The method of a2, wherein the presenting the at least two dialog content in the presentation order within the presentation area in response to the first content presentation instruction further comprises:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within a presentation area in response to the first content presentation instruction;
the method further comprises the following steps:
receiving a sliding operation instruction triggered by a user in a display area; in response to the sliding operation instruction, presenting at least one piece of conversation content of the next front-ranked conversation content group in a presentation order in a presentation area; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
A5. The method of a2, wherein the presenting the at least two dialog content in the presentation order within the presentation area in response to the first content presentation instruction further comprises:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within a presentation area in response to the first content presentation instruction;
the method further comprises the following steps:
judging whether the display duration of the conversation content group presented in the display area reaches a preset time threshold value or not; if so, presenting at least one piece of conversation content of the next conversation content group with the top sequence in the display area according to the display sequence; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
A6. The method of any one of a1-a5, wherein the method further comprises:
dividing at least two pieces of conversation content with consistent conversation roles and continuous display sequence into a conversation content group according to the conversation roles and the display sequence corresponding to each piece of conversation content in the conversation novel.
A7. The method of any one of a1-a5, wherein the obtaining the set of dialog content to be presented further comprises:
judging whether the conversation roles of at least two continuous conversation contents starting from the target conversation content are consistent or not; the target conversation content is a first piece of conversation content after the current display progress reaches the display position;
and if so, acquiring a conversation content group formed by the at least two conversation contents.
B8. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
when a first content display instruction triggered by a user in an interactive region is received, acquiring a conversation content group to be displayed according to the display sequence of each conversation content in a conversation novel;
the dialog content group to be displayed comprises at least two dialog contents with continuous display sequence, and the at least two dialog contents correspond to the same dialog role;
and responding to the first content display instruction, and displaying at least two pieces of conversation content contained in the conversation content group to be displayed in a display area according to a display sequence.
B9. The computing device of B8, the executable instructions further cause the processor to:
responding to the first content display instruction, and before the at least two pieces of conversation content are displayed in the display area according to the display sequence, judging whether the area range to be displayed of the conversation content group exceeds the area range of one screen of the display area;
if so, the conversation content group is segmented into at least two conversation content groups according to the one-screen area range of the display area, and the area range to be presented of any conversation content group does not exceed the one-screen area range of the display area.
B10. The computing device of B9, the executable instructions further cause the processor to:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within a presentation area in response to the first content presentation instruction;
receiving a next content display instruction triggered by a user in the interactive area; presenting at least one piece of dialog content of a next, top-ranked group of dialog content in a presentation order within a presentation area in response to the next content presentation instruction; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
B11. The computing device of B9, the executable instructions further cause the processor to:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within a presentation area in response to the first content presentation instruction;
receiving a sliding operation instruction triggered by a user in a display area; in response to the sliding operation instruction, presenting at least one piece of conversation content of the next front-ranked conversation content group in a presentation order in a presentation area; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
B12. The computing device of B9, the executable instructions further cause the processor to:
presenting at least one piece of dialog content of the top-ranked group of dialog content in a presentation order within a presentation area in response to the first content presentation instruction;
judging whether the display duration of the conversation content group presented in the display area reaches a preset time threshold value or not; if so, presenting at least one piece of conversation content of the next conversation content group with the top sequence in the display area according to the display sequence; and repeatedly executing the step until the dialog content of the dialog content group to be displayed is presented.
B13. The computing device of any one of B8-B12, the executable instructions further cause the processor to:
dividing at least two pieces of conversation content with consistent conversation roles and continuous display sequence into a conversation content group according to the conversation roles and the display sequence corresponding to each piece of conversation content in the conversation novel.
B14. The computing device of any one of B8-B12, the executable instructions further cause the processor to:
judging whether the conversation roles of at least two continuous conversation contents starting from the target conversation content are consistent or not; the target conversation content is a first piece of conversation content after the current display progress reaches the display position;
and if so, acquiring a conversation content group formed by the at least two conversation contents.
C15. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the interactive presentation method of a dialog novel according to any one of a1-a 7.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种基于人工智能的自然语言处理设备