A text content display method and device, computer equipment and a storage medium
By combining layout and displaying supplementary text for target reading on the e-book reading page, the problem of low efficiency in obtaining comment content is solved, thereby improving user experience and immersion.
Patent Information
- Application Number
- CN202110175954.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-09
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2041-07-23
AI Technical Summary
The current ebooks have low efficiency in retrieving comments and poor user experience, requiring users to swipe or click on specific locations to view comments.
The target reading aid text corresponding to the target text content is displayed in the relevant position on the reading page. The auxiliary reading content is displayed intuitively through mixed layout and attribute settings.
It improves the efficiency of users in obtaining supplementary reading materials and enhances the immersive experience during the reading process.
Smart Images

Figure CN114911921B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic information technology, and more specifically, to a method, apparatus, computer device, and storage medium for displaying text content. Background Technology
[0002] With the advent of the internet age, e-books have gradually entered the lives of many users. They not only free users from the burden of heavy paper books, but also reduce the demand for paper in book production to a certain extent, thereby reducing deforestation and achieving the goal of energy conservation and environmental protection.
[0003] Currently, the way e-books are displayed on users' smart devices is not much different from traditional paper books; both simply display the text on each page. Therefore, this can easily lead to user boredom and a lack of immersion during reading. To address this issue, some portal websites or e-book applications have added comment sections, allowing users to view other users' comments while reading, thereby enhancing the reading experience and improving immersion.
[0004] However, some portal websites or e-book programs usually place comments in specific comment sections or provide certain comment interfaces for users to view. However, these methods often require users to swipe to the comment section or click the corresponding comment entry button to view the comment. Therefore, the efficiency of users obtaining comment content is low and the user experience is poor. Summary of the Invention
[0005] This disclosure provides at least one method, apparatus, computer device, and storage medium for displaying text content.
[0006] In a first aspect, embodiments of this disclosure provide a method for displaying text content, the method comprising:
[0007] Obtain the text to be displayed, which includes multiple text segments, and the target reading aid text corresponding to at least one target text segment among the multiple text segments;
[0008] In response to displaying the target text content on the reading page, target reading aid text corresponding to the target text content is displayed in a first area of the reading page; wherein, the first area is located at a first position on the reading page and is related to the target text content at a second position on the reading page.
[0009] In one optional implementation, the step of displaying target reading aid text corresponding to the target text content in a first area of the reading page in response to displaying the target text content on the reading page includes:
[0010] In response to the display of the target text content on the reading page, based on the layout information of the multiple text segments and the target reading auxiliary text, a second position of the target text content on the reading page and a first position on the reading page corresponding to the second position are determined;
[0011] The target reading aid text corresponding to the target text content is displayed in the first area at the first position.
[0012] In one optional implementation, determining the second position of the target text content on the reading page, and the first position on the reading page corresponding to the second position, based on the layout information of the multiple text segments and the target reading aid text, includes:
[0013] Based on the text display volume of the reading page, the auxiliary text display volume of the preset reading auxiliary text, and the target text content corresponding to the target reading auxiliary text, the multiple text content segments and the target reading auxiliary text are mixed and formatted to generate layout information for the multiple text content segments and the target reading auxiliary text.
[0014] Based on the layout information, the second position of the target text content on the reading page and the first position corresponding to the second position are determined.
[0015] In one optional implementation, the step of displaying target reading aid text corresponding to the target text content in a first area of the reading page in response to displaying the target text content on the reading page includes:
[0016] In response to the display of the target text content on the reading page, the pre-layout information of the multiple text segments is obtained; wherein, the pre-layout information is generated based on the amount of text displayed on the reading page;
[0017] Based on the pre-layout information, the second position of the target text content on the reading page is determined, and the first position corresponding to the second position on the reading page is determined based on the second position.
[0018] The first region at the first position is determined by the preset amount of auxiliary text to be displayed, and the reading auxiliary text is displayed in the first region.
[0019] In one optional implementation, displaying the target reading aid text corresponding to the target text content in a first area of the reading page includes:
[0020] Determine the text display attributes of the reading aid text and the region display attributes of the first region;
[0021] Based on the text display attributes and the area display attributes, a first area is displayed on the reading page, and the target reading auxiliary text corresponding to the target text content is displayed in the first area.
[0022] In one optional implementation, the method further includes:
[0023] For any given text content, an auxiliary identifier for that text content is displayed at a third position on the reading page; wherein, the auxiliary identifier is used to represent the number of auxiliary texts corresponding to that text content, and the third position is related to the second position of that text content on the reading page;
[0024] In response to the triggering of any auxiliary identifier of the text content, the corresponding reading aid text is displayed.
[0025] In one optional implementation, the method further includes:
[0026] The key information of the target reading aid text is displayed in the first area of the reading page;
[0027] In response to a trigger event for the key information, the target reading aid text corresponding to the key information is displayed.
[0028] Secondly, embodiments of this disclosure provide a method for displaying text content, the method comprising:
[0029] In response to a text acquisition request, acquire the text to be displayed, which includes multiple text segments, and the candidate reading aid text corresponding to each segment of the text.
[0030] Based on the multiple text segments and the candidate reading aids corresponding to each text segment, the target text content is determined.
[0031] From the candidate reading aid texts corresponding to the target text content, determine the target reading aid text corresponding to the target text content;
[0032] The text to be displayed, as well as the display position information of the target text content and the target reading aid text on the reading page, are sent to the terminal.
[0033] In one optional implementation, determining the target text content based on the multiple text segments and the candidate reading aid texts corresponding to each text segment includes:
[0034] The multiple text segments are divided based on the interaction information of the multiple text segments to obtain at least one text set that includes multiple consecutive text segments.
[0035] Determine the target text content to be assisted in each of the aforementioned text sets.
[0036] In one optional implementation, determining the target text content to be assisted in each of the text sets includes:
[0037] Determine the text content located at a preset position in each of the aforementioned text sets, and use the text content located at the preset position as the target text content to be assisted; or,
[0038] The text value of each segment of text content in each of the aforementioned text sets is determined, and the text content with text value is selected as the target text content to be assisted.
[0039] In one optional implementation, determining the target reading aid text corresponding to the target text content from the candidate reading aid texts corresponding to the target text content includes:
[0040] Determine the auxiliary value of each reading aid text among the candidate reading aid texts corresponding to the target text content; wherein the auxiliary value is determined based on the interaction data of the candidate reading aid texts;
[0041] Select supplementary reading texts with auxiliary value as target supplementary reading texts associated with the content of the target text.
[0042] In one optional implementation, the method further includes:
[0043] Select target reading aids with auxiliary value from the candidate reading aids corresponding to the text content of each paragraph;
[0044] Based on the relevance between the target reading aid text and the content of each paragraph, the target text content to be assisted in each text set is determined.
[0045] In one optional implementation, determining the target text content to be assisted in each text set based on the relevance between the target reading aid text and the content of each segment of text includes:
[0046] If the target reading aid text matches multiple paragraphs of text content, determine the relevance between the target reading aid text and each paragraph of text content;
[0047] The text content with the highest relevance is taken as the target text content corresponding to the target reading auxiliary text.
[0048] In one optional implementation, the method further includes:
[0049] If multiple target reading aid texts correspond to the same text set, then one or more target reading aid texts with the highest aid value are selected as the target reading aid texts corresponding to the text set.
[0050] In one optional implementation, the method further includes:
[0051] Obtain the reading aid text corresponding to the text content of each segment, and determine the number of reading aid texts corresponding to the text content of each segment;
[0052] The reading aid text and the number of reading aid texts are sent to the terminal.
[0053] In one optional implementation, the method further includes:
[0054] The target reading aid text is analyzed and processed to obtain its key information.
[0055] The key information is sent to the terminal.
[0056] Thirdly, embodiments of this disclosure also provide a text content display device, the device comprising:
[0057] The first acquisition module is used to acquire the text to be displayed, which includes multiple text segments, and the target reading aid text corresponding to at least one target text segment among the multiple text segments;
[0058] The first display module is used to display target reading auxiliary text corresponding to the target text content in response to displaying the target text content on the reading page; wherein the first area is located at a first position on the reading page and is related to the target text content at a second position on the reading page.
[0059] In one optional implementation, the first display module includes:
[0060] The first determining unit is configured to, in response to the display of the target text content on the reading page, determine the second position of the target text content on the reading page and the first position on the reading page corresponding to the second position, based on the layout information of the multiple text content segments and the target reading auxiliary text;
[0061] The display unit is used to display the target reading aid text corresponding to the target text content in a first area at the first position.
[0062] In one optional implementation, the first determining unit is specifically used for:
[0063] Based on the text display volume of the reading page, the auxiliary text display volume of the preset reading auxiliary text, and the target text content corresponding to the target reading auxiliary text, the multiple text content segments and the target reading auxiliary text are mixed and formatted to generate layout information for the multiple text content segments and the target reading auxiliary text.
[0064] Based on the layout information, the second position of the target text content on the reading page and the first position corresponding to the second position are determined.
[0065] In one optional implementation, the first display module is specifically used for:
[0066] In response to the display of the target text content on the reading page, the pre-layout information of the multiple text segments is obtained; wherein, the pre-layout information is generated based on the amount of text displayed on the reading page;
[0067] Based on the pre-layout information, the second position of the target text content on the reading page is determined, and the first position corresponding to the second position on the reading page is determined based on the second position.
[0068] The first region at the first position is determined by the preset amount of auxiliary text to be displayed, and the reading auxiliary text is displayed in the first region.
[0069] In one optional implementation, the display unit is specifically used for:
[0070] Determine the text display attributes of the reading aid text and the region display attributes of the first region;
[0071] Based on the text display attributes and the area display attributes, a first area is displayed on the reading page, and the target reading auxiliary text corresponding to the target text content is displayed in the first area.
[0072] In one optional embodiment, the apparatus further includes:
[0073] The second display module is used to display an auxiliary identifier of any given text content at a third position on the reading page; wherein the auxiliary identifier is used to represent the number of auxiliary texts corresponding to the text content, and the third position is related to the second position of the text content on the reading page;
[0074] The third display module is used to display reading aid text corresponding to any segment of the text content when the auxiliary identifier of any segment of the text content is triggered.
[0075] In one optional embodiment, the apparatus further includes:
[0076] The fourth display module is used to display key information of the target reading aid text in the first area of the reading page;
[0077] The fifth display module is used to respond to the triggering event for the key information and display the target reading aid text corresponding to the key information.
[0078] Fourthly, a text content display device, the device comprising:
[0079] The second acquisition module is used to respond to a text acquisition request and acquire the text to be displayed, which includes multiple text segments, and the candidate reading aid text corresponding to each text segment.
[0080] The first determining module is used to determine the target text content based on the multiple text segments and the candidate reading aid texts corresponding to each text segment.
[0081] The second determining module is used to determine the target reading aid text corresponding to the target text content from the candidate reading aid texts corresponding to the target text content;
[0082] The sending module is used to send the text to be displayed, as well as the display position information of the target text content and the target reading aid text on the reading page, to the terminal.
[0083] In one optional implementation, the first determining module includes:
[0084] A segmentation unit is used to segment the multiple text contents according to the interaction information of the multiple text contents, so as to obtain at least one text set including multiple consecutive text contents.
[0085] The second determining unit is used to determine the target text content to be assisted in each of the text sets.
[0086] In one optional implementation, the second determining unit is specifically used for:
[0087] Determine the text content located at a preset position in each of the aforementioned text sets, and use the text content located at the preset position as the target text content to be assisted; or,
[0088] The text value of each segment of text content in each of the aforementioned text sets is determined, and the text content with text value is selected as the target text content to be assisted.
[0089] In one optional implementation, the second determining module is specifically used for:
[0090] Determine the auxiliary value of each reading aid text among the candidate reading aid texts corresponding to the target text content; wherein the auxiliary value is determined based on the interaction data of the candidate reading aid texts;
[0091] Select supplementary reading texts with auxiliary value as target supplementary reading texts associated with the content of the target text.
[0092] In one optional embodiment, the apparatus further includes:
[0093] The first selection module is used to select target reading aid texts with auxiliary value from the candidate reading aid texts corresponding to the text content of each segment;
[0094] The third determining module is used to determine the target text content to be assisted in each text set based on the relevance between the target reading aid text and the text content of each segment.
[0095] In one optional implementation, the third determining module is specifically used for:
[0096] If the target reading aid text matches multiple paragraphs of text content, determine the relevance between the target reading aid text and each paragraph of text content;
[0097] The text content with the highest relevance is taken as the target text content corresponding to the target reading auxiliary text.
[0098] In an optional implementation, the third determining module 760 is further configured to:
[0099] If multiple target reading aid texts correspond to the same text set, then one or more target reading aid texts with the highest aid value are selected as the target reading aid texts corresponding to the text set.
[0100] In one optional embodiment, the apparatus further includes:
[0101] The third acquisition module is used to acquire the reading aid text corresponding to the text content of each segment and determine the number of reading aid texts corresponding to the text content of each segment.
[0102] The second sending module is used to send the reading assistance text and the number of reading assistance texts to the terminal.
[0103] In one optional embodiment, the apparatus further includes:
[0104] The analysis module is used to analyze and process the target reading aid text to obtain key information of the target reading aid text;
[0105] The third sending module is used to send the key information to the terminal.
[0106] Fifthly, embodiments of this disclosure also provide a computer device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the steps of the first aspect above, or any possible implementation of the first aspect, are performed.
[0107] In a sixth aspect, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the first aspect or any possible implementation thereof.
[0108] In a seventh aspect, embodiments of this disclosure also provide a computer device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the steps of the second aspect above, or any possible implementation of the second aspect, are performed.
[0109] Eighthly, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the second aspect described above, or any possible implementation of the second aspect.
[0110] This disclosure provides a text content display method, apparatus, computer device, and storage medium, comprising: acquiring a text to be displayed comprising multiple segments of text content, and a target reading aid text corresponding to at least one target text content among the multiple segments of text content; in response to displaying the target text content on a reading page, displaying the target reading aid text corresponding to the target text content in a first area of the reading page; wherein the first area is located at a first position on the reading page and is related to a second position of the target text content on the reading page.
[0111] In this embodiment of the disclosure, by adding the selected target reading aid text to the corresponding area of the reading page, users can intuitively obtain the aid reading content, thereby improving the efficiency of users in obtaining aid reading content and enhancing the user's immersion in the reading process.
[0112] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0113] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.
[0114] Figure 1 A flowchart of a text content display method provided by an embodiment of this disclosure is shown;
[0115] Figure 2 This illustration shows a diagram of displaying target text content and target reading aid text provided in an embodiment of this disclosure;
[0116] Figure 3 A flowchart is shown illustrating another text content display method provided by an embodiment of this disclosure;
[0117] Figure 4 A schematic diagram of a text content display device provided in an embodiment of this disclosure is shown;
[0118] Figure 5 This diagram illustrates a specific schematic of the first determining module in the text content display device provided in an embodiment of the present disclosure;
[0119] Figure 6 A schematic diagram of another text content display device provided in an embodiment of this disclosure is shown;
[0120] Figure 7 A schematic diagram of a text content display device provided in an embodiment of this disclosure is shown;
[0121] Figure 8 This diagram illustrates a specific schematic of the second determining module in the text content display device provided in an embodiment of the present disclosure;
[0122] Figure 9 A schematic diagram of another text content display device provided in an embodiment of this disclosure is shown;
[0123] Figure 10 A schematic diagram of a computer device provided in an embodiment of this disclosure is shown;
[0124] Figure 11 A schematic diagram of another computer device provided in an embodiment of this disclosure is shown. Detailed Implementation
[0125] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0126] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0127] In this document, the term "and / or" merely describes a relationship, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0128] Research has revealed that currently, some portal websites or e-book programs typically place comments in specific comment sections or provide comment interfaces for users to view. However, these methods often require users to swipe to the comment section or click the corresponding comment entry button to view the comment. Therefore, the efficiency of users accessing comment content is low, resulting in a poor user experience.
[0129] Based on the above research, this disclosure provides a method for displaying text content. By adding selected target reading aid text to the corresponding area of the reading page, users can intuitively obtain the aid reading content, improve the efficiency of users obtaining aid reading content, and enhance the user's immersion in the reading process.
[0130] To facilitate understanding of this embodiment, a detailed description of the text content display method disclosed in this disclosure is provided first. The execution entity of the text content display method provided in this disclosure is generally a computer device with a certain computing capability. This computer device may include, for example, a terminal device, a server, or other processing devices. The terminal device may be a user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, wearable device, etc. In some possible implementations, this text content display method can be implemented by a processor calling computer-readable instructions stored in memory.
[0131] See Figure 1 The diagram shows a flowchart of a text content display method provided in an embodiment of this disclosure. The method includes steps S101 to S102, wherein:
[0132] S101: Obtain the text to be displayed, which includes multiple text segments, and the target reading aid text corresponding to at least one target text segment among the multiple text segments.
[0133] In this step, you can first obtain the text to be displayed, as well as at least one piece of target text content in the text to be displayed as reading aids.
[0134] The text to be displayed can be various forms of electronic text content, such as serialized novels or e-magazines. Correspondingly, the reading aid text can be comments made by users in a fixed area of the text to be displayed while they are reading it, comments made by users on specific content of the text to be displayed, or comments made by users according to preset comment rules of the text to be displayed.
[0135] For example, obtaining comment content includes the following methods: One method is to provide a comment area at the end of the entire text to be displayed, or at the end of each chapter, and then obtain the user's comments for the entire text or chapter from that comment area. Another method is to allow users to comment on paragraphs of interest when they read certain content; specifically, they can post comments in the comment area corresponding to that paragraph, and then obtain the user's evaluation of that paragraph from that comment area. Yet another method is to allow users to comment according to preset comment rules, such as allowing a comment every 10,000 words or 100 paragraphs read, and so on. These are just some of the methods for obtaining supplementary reading text; correspondingly, the comment content can be obtained from the corresponding comment area.
[0136] In this embodiment of the disclosure, since the text to be displayed is an online document, the reading aid text also carries the user's evaluation, likes, replies, forwarding, etc., of the text to be displayed or the target text content of the text to be displayed.
[0137] S102: In response to displaying the target text content on the reading page, target reading auxiliary text corresponding to the target text content is displayed in a first area of the reading page; wherein, the first area is located at a first position on the reading page and is related to the target text content at a second position on the reading page.
[0138] In this step, after determining the multiple text segments to be displayed and the reading aid text corresponding to at least one target text segment, the target text and the reading aid text are formatted according to certain formatting rules and displayed on the reading page.
[0139] In this embodiment of the disclosure, since different display devices have different sizes and users have different requirements for the size of the display font and the display spacing, it is necessary to type the text to be displayed and the corresponding reading aid text for different display devices and display them on the reading interface of the display device.
[0140] Specifically, in response to displaying the target text content on the reading page, displaying target reading aid text corresponding to the target text content in a first area of the reading page includes:
[0141] In response to the display of the target text content on the reading page, based on the layout information of the multiple text segments and the target reading auxiliary text, a second position of the target text content on the reading page and a first position on the reading page corresponding to the second position are determined;
[0142] The target reading aid text corresponding to the target text content is displayed in the first area at the first position.
[0143] See Figure 2 , Figure 2 This is a schematic diagram illustrating the display of target text content and reading aid text provided in an embodiment of this disclosure. For example... Figure 2 As shown, 200 represents the reading interface, 210 represents the second position of the target text content on the reading page, and 220 represents the first position of the reading auxiliary text displayed on the reading interface.
[0144] Specifically, determining the second position of the target text content on the reading page, and the first position on the reading page corresponding to the second position, based on the layout information of the multiple text segments and the target reading aid text, includes:
[0145] Based on the text display volume of the reading page, the auxiliary text display volume of the preset reading auxiliary text, and the target text content corresponding to the target reading auxiliary text, the multiple text content segments and the target reading auxiliary text are mixed and formatted to generate layout information for the multiple text content segments and the target reading auxiliary text.
[0146] Based on the layout information, the second position of the target text content on the reading page and the first position corresponding to the second position are determined.
[0147] For example, based on the reading interface attributes and corresponding settings of the display device, such as screen size, font size, and character spacing, the multiple segments of text content to be displayed are pre-formatted. Specifically, when the reading interface can display 20 lines of text, each line containing 20 characters, with single line spacing and double paragraph spacing, the multiple segments of text content to be displayed can be formatted based on the above configuration information. For the selected target reading aid text, display rules corresponding to the target reading aid text can be set, such as displaying only two lines of target reading aid text, and based on this, the formatting information for the multiple segments of text content and the target reading aid text is determined. This determines the second position of the target text content on the reading page, and the first position on the reading page corresponding to the second position, and displays the target reading aid text corresponding to the target text content in the first area at the first position.
[0148] For example, since this embodiment of the disclosure aims to add corresponding reading aid text at the corresponding position of the target text content, a first area for displaying the corresponding reading aid text can be determined based on the display position of the target text content. Specifically, as shown... Figure 2 As shown, the target text content is displayed at position 210 on the reading page. Therefore, the area following position 210 on the reading page can be determined as the corresponding position for displaying the reading aid text. Considering that there can be a certain distinguishing area between the target text content and the reading aid text, the position one or several lines away from the target text content can be determined as the first area 220 where the reading aid text is displayed on the reading interface.
[0149] In another embodiment of this disclosure, the step of displaying target reading aid text corresponding to the target text content in a first area of the reading page in response to displaying the target text content on the reading page includes:
[0150] In response to the display of the target text content on the reading page, the pre-layout information of the multiple text segments is obtained; wherein, the pre-layout information is generated based on the amount of text displayed on the reading page;
[0151] Based on the pre-layout information, the second position of the target text content on the reading page is determined, and the first position corresponding to the second position on the reading page is determined based on the second position.
[0152] The first region at the first position is determined by the preset amount of auxiliary text to be displayed, and the reading auxiliary text is displayed in the first region.
[0153] For example, see Figure 2 230 indicates the position of the text following the reading aid text in the reading interface. After determining the display position 210 of the target text content on the reading page and the first area 220 of the reading aid text in the reading interface, the display position 230 of the continuation text of the target text content on the reading page can be determined after the first area 220. At the same time, in order to distinguish between the target text and the continuation text, a certain distinguishing area can be set. Therefore, the position of one or several lines away from the first area 220 of the reading aid text can be determined as the display position 230 of the continuation text of the target text content on the reading page.
[0154] In this embodiment, due to the display limitations of the reading interface and to reduce the interference of reading aids on the user's reading process, the specific display content of the target aids can be adjusted. Specifically, the step of reformatting the text following the target text in the multiple text segments based on the display position and the first area includes:
[0155] Based on the location and the size of the first region, determine the amount of text to be displayed in the area following the first region on the reading page; based on the amount of text to be displayed in the area following the first region on the reading page, reformat the subsequent text following the target text content in the multiple text segments.
[0156] For example, when only one or two lines of reading aid text are desired to be displayed, if the content of the reading aid text is short, the entire content of the reading aid text is displayed directly. If the content of the reading aid text is long, the collapsed content of the reading aid text is displayed, such as the first two lines of the reading aid text, or the summary or keywords of the reading aid text, etc. The text displayed in the area after the first area is also reformatted, and the text following the target text content in the multiple text segments is rearranged.
[0157] In this embodiment, after determining the layout information according to the pre-layout and the re-layout, namely the display position 210 of the target text content on the reading page, the first area 220 of the reading auxiliary text displayed on the reading interface, and the display position 230 of the continuation text of the target text content on the reading page, the text to be displayed, including the target text content, can be displayed on the reading page, and the reading auxiliary text can be displayed in the first area.
[0158] In another embodiment of this disclosure, displaying the target reading aid text corresponding to the target text content in a first area of the reading page includes:
[0159] Determine the text display attributes of the reading aid text and the region display attributes of the first region;
[0160] Based on the text display attributes and the area display attributes, a first area is displayed on the reading page, and the target reading auxiliary text corresponding to the target text content is displayed in the first area.
[0161] The text display attributes include at least one of the following: font, font size, text color, text background color, and text effects. The area display attributes include at least one of the following: area background color, area effects, and area style.
[0162] For example, in order to distinguish the reading aid text from the main content of the text to be displayed, the attributes of the reading aid text can be adjusted. For example, the font size of the reading aid text can be reduced, the font of the reading aid text can be changed, or the font color of the reading aid text can be changed, or the background color of the first area corresponding to the reading aid text can be increased, or text effects such as blinking, tilting, shadow and other methods can be added to the reading aid text to highlight the content of the reading aid text and distinguish it from the main content.
[0163] In another embodiment of this disclosure, to enable users to access more reading aids, the method further includes:
[0164] For any given text content, an auxiliary identifier for that text content is displayed at a third position on the reading page; wherein, the auxiliary identifier is used to represent the number of auxiliary texts corresponding to that text content, and the third position is related to the second position of that text content on the reading page;
[0165] In response to the triggering of any auxiliary identifier of the text content, the corresponding reading aid text is displayed.
[0166] like Figure 2 As shown, 240 corresponds to the location of the auxiliary identifier for displaying text content. When a user wants to obtain not only specific reading aid text but also browse other auxiliary information, they can trigger this auxiliary identifier to view the corresponding reading aid text. Specifically, a corresponding comment viewing mechanism can be set up so that users can obtain auxiliary information content when they want to view comments.
[0167] In another embodiment of this disclosure, the method further includes:
[0168] The key information of the target reading aid text is displayed in the first area of the reading page;
[0169] In response to a trigger event for the key information, the target reading aid text corresponding to the key information is displayed.
[0170] The key information refers to the information obtained by the server through analysis and processing of the target reading aid text. This key information may include auxiliary information corresponding to multiple text segments and the number of auxiliary information segments corresponding to the target text content.
[0171] like Figure 2 As shown, after obtaining the key information of the target reading aid text, the key information of the target reading aid text corresponding to the target text content can be displayed on the reading page corresponding to the text content, and in response to the preset triggering mechanism, the target reading aid text corresponding to the triggered key information can be displayed on the reading page.
[0172] For example, the triggering mechanism can be to trigger the target text content and / or the area where the target text content is located. Specifically, after the text content and / or the area where the target text content is located are triggered, auxiliary information is displayed on the reading page, including:
[0173] After the target text content is triggered, auxiliary information corresponding to the target text content is displayed on the reading page, and / or, after the target text content is triggered, auxiliary information corresponding to the triggered target text content is displayed on the reading page. For example, after the target text content is triggered, user comments on the target text content are displayed, or corresponding text content based on the target text content is displayed, such as comments on ten paragraphs above and below the target text content.
[0174] After the target text content is triggered in the area where it is located, auxiliary information corresponding to the target text content is displayed on the reading page, and / or, after the target text content is triggered in the area where it is located, corresponding auxiliary information is displayed on the reading page. For example, after the target text content is triggered in the area where it is located, user comments on the target text content in that area are displayed, or corresponding text content based on the target text content in that area is displayed, such as comments on ten paragraphs above and below.
[0175] This embodiment of the disclosure adds selected target reading aid text to the corresponding area of the reading page, allowing users to intuitively obtain aid reading content, improving the efficiency of users obtaining aid reading content, and enhancing the user's immersion in the reading process.
[0176] See Figure 3 The diagram shows another text content display method provided in this disclosure, the method including steps S301 to S304, wherein:
[0177] S301: In response to a text acquisition request, acquire the text to be displayed, which includes multiple text segments, and the candidate reading aid text corresponding to each segment of the text.
[0178] In this step, when the server receives a text retrieval request from the terminal, it determines, based on the text retrieval request, the text to be displayed, which includes multiple text segments, and the candidate reading aid text corresponding to the multiple text segments.
[0179] The descriptions of the text to be displayed and the reading aids are similar to those in S101, and will not be repeated here.
[0180] For example, the candidate reading aid text could be any comments made by users to the text to be displayed.
[0181] S302: Based on the multiple text segments and the candidate reading aids corresponding to each text segment, determine the target text content.
[0182] In this step, based on certain screening criteria, multiple text segments and candidate reading aids corresponding to each text segment are screened and compared to determine the target text content.
[0183] In this embodiment of the disclosure, to avoid user interference from excessive reading aids, it is typically necessary to control the frequency of their appearance. This ensures that browsing the aids does not disrupt the normal reading process. Furthermore, the number of aids can be increased to achieve a specific level of interaction with the user. Therefore, the multiple text segments can be divided based on their interaction information to obtain at least one text set comprising multiple consecutive text segments, and the target text content to be aided can be determined based on this text set.
[0184] The interactive information may include a preset frequency of displaying reading aid text, a preset frequency of interaction with the user, and the desired level of interaction engagement.
[0185] Specifically, determining the target text content to be assisted in each of the aforementioned text sets includes:
[0186] Determine the text content located at a preset position in each of the text sets, and use the text content located at the preset position as the target text content to be assisted;
[0187] Alternatively, determine the text value of each text content in each of the aforementioned text sets, and use the text content with text value as the target text content to be assisted.
[0188] For example, paragraphs in a fixed order within each text set can be identified as the target text content to be assisted. For instance, the shortest paragraph, the last paragraph, or the tenth paragraph in each text set can be identified as the target text content to be assisted. Alternatively, text content with textual value can be used as the target text content to be assisted, such as the text content corresponding to words that indicate a certain story progression, like "XXX appeared" or "XXX left."
[0189] S303: Determine the target reading aid text corresponding to the target text content from the candidate reading aid texts corresponding to the target text content.
[0190] In this step, after determining the target text content to be assisted, the target reading assistance text corresponding to the target text content can be determined from the candidate reading assistance texts corresponding to the target text content.
[0191] Specifically, target reading aids associated with the target text content can be identified, including:
[0192] Determine the auxiliary value of each reading aid text among the candidate reading aid texts corresponding to the target text content; wherein the auxiliary value is determined based on the interaction data of the candidate reading aid texts;
[0193] Select supplementary reading texts with auxiliary value as target supplementary reading texts associated with the content of the target text.
[0194] The interactive data refers to data such as the number of comments, likes, and shares for each piece of reading aid text. This data represents the user's liking and discussion level of each piece of reading aid text, thus representing its auxiliary value. After determining the auxiliary value of the reading aid text, the target reading aid text to be displayed can be determined based on preset reading aid text display rules, such as displaying one or several pieces of reading aid text.
[0195] In another embodiment of this disclosure, the target reading aid text to be displayed can be predetermined, and then the corresponding target text content can be determined. Specifically, this includes:
[0196] Select target reading aid texts with auxiliary value from the candidate reading aid texts corresponding to the multiple text segments;
[0197] Based on the relevance between the target reading aid text and the content of each text segment, the target text content to be assisted in each of the text sets is determined.
[0198] For example, based on the auxiliary value of each reading aid text in the selected reading aid text, multiple target reading aid texts to be displayed are determined. Then, based on the correlation between the content of the multiple target reading aid texts and the ontological content of the text to be displayed, it is determined which corresponding target text content each target reading aid text should be added to.
[0199] In another embodiment of this disclosure, if the content of multiple target reading aids is strongly correlated with the same text set in the text to be displayed, it is easy to determine that multiple target reading aids want to be added to the same text set, resulting in a large number of reading aids in that text set, affecting the user's reading process. Therefore, it is necessary to filter the target reading aids and retain only the target number of target reading aids. Specifically, if multiple target reading aids correspond to the same text set, one or more target reading aids with the highest aid value are selected as the target reading aids corresponding to the text set. For example, if reading aid A has extremely high aid value, while reading aid B has relatively high aid value, then reading aid A is determined to be the target reading aid for the corresponding text set.
[0200] S304: Send the text to be displayed, as well as the display position information of the target text content and the target reading aid text on the reading page, to the terminal.
[0201] In this step, the determined text to be displayed, along with the corresponding target reading aid text and its display position information on the reading page, is sent to the terminal. This allows the terminal to display the text to be displayed on the user's terminal based on the received text and corresponding information. The display position information refers to the target text content corresponding to the determined target reading aid text. Based on this display position information, the terminal can then format multiple text segments and the target reading aid text.
[0202] For example, after obtaining candidate reading aid texts corresponding to multiple text segments, the candidate reading aid texts corresponding to the multiple text segments are determined, and the multiple text segments, at least one reading aid text, and the target reading aid text are sent to the terminal so that the terminal can display them in the corresponding display position to meet the user's various needs during the reading process.
[0203] In another embodiment of this disclosure, the method further includes:
[0204] Obtain the reading aid text corresponding to the text content of each segment, and determine the number of reading aid texts corresponding to the text content of each segment;
[0205] The reading aid text and the number of reading aid texts are sent to the terminal.
[0206] Specifically, the system can access the historical reading aid texts sent by users for each text segment stored on the backend server, count the number of reading aid texts corresponding to each text segment, and send them to the terminal so that the terminal can select the required information for display.
[0207] In another embodiment of this disclosure, the method further includes:
[0208] The target reading aid text is analyzed and processed to obtain its key information.
[0209] The key information is sent to the terminal.
[0210] The key information may include keywords corresponding to the target auxiliary text, the number of auxiliary texts corresponding to the target auxiliary text, etc. After extracting the key information corresponding to the target reading auxiliary text, the key information is sent to the terminal so that the terminal can generate corresponding display icons based on the key information, which facilitates the user's reading process.
[0211] This embodiment of the disclosure selects the target text content to be assisted and the target reading assistance text associated with the target text content, and sends them to the terminal to be displayed to the user. This can improve the value of the content to be displayed, allowing the user to view the most valuable content and increasing the user experience and immersion.
[0212] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0213] Based on the same inventive concept, this disclosure also provides a text content display device corresponding to the text content display method. Since the principle of the device in this disclosure for solving the problem is similar to the text content display method described above in this disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0214] Reference Figure 4 , Figure 5 , Figure 6 As shown, Figure 4 A schematic diagram of a text content display device provided in an embodiment of this disclosure; Figure 5 A detailed schematic diagram of the first determining module in the text content display device provided in this embodiment of the present disclosure; Figure 4 This is a schematic diagram of another text content display device provided in an embodiment of this disclosure. The terminal includes: a first acquisition module 410 and a first display module 420; wherein:
[0215] The first acquisition module 410 is used to acquire text to be displayed, which includes multiple text segments, and target reading aid text corresponding to at least one target text segment among the multiple text segments;
[0216] The first display module 420 is used to display target reading auxiliary text corresponding to the target text content in response to displaying the target text content on the reading page; wherein, the first area is located at a first position on the reading page and is related to the target text content at a second position on the reading page.
[0217] In one optional implementation, the first display module 420 includes:
[0218] The first determining unit 421 is configured to, in response to the display of the target text content on the reading page, determine the second position of the target text content on the reading page and the first position on the reading page corresponding to the second position, based on the layout information of the multiple text content segments and the target reading auxiliary text;
[0219] The display unit 422 is used to display the target reading aid text corresponding to the target text content in the first area at the first position.
[0220] In one optional implementation, the first determining unit 421 is specifically used for:
[0221] Based on the text display volume of the reading page, the auxiliary text display volume of the preset reading auxiliary text, and the target text content corresponding to the target reading auxiliary text, the multiple text content segments and the target reading auxiliary text are mixed and formatted to generate layout information for the multiple text content segments and the target reading auxiliary text.
[0222] Based on the layout information, the second position of the target text content on the reading page and the first position corresponding to the second position are determined.
[0223] In one optional implementation, the first display module 420 is specifically used for:
[0224] In response to the display of the target text content on the reading page, the pre-layout information of the multiple text segments is obtained; wherein, the pre-layout information is generated based on the amount of text displayed on the reading page;
[0225] Based on the pre-layout information, the second position of the target text content on the reading page is determined, and the first position corresponding to the second position on the reading page is determined based on the second position.
[0226] The first region at the first position is determined by the preset amount of auxiliary text to be displayed, and the reading auxiliary text is displayed in the first region.
[0227] In one optional implementation, the display unit 422 is specifically used for:
[0228] Determine the text display attributes of the reading aid text and the region display attributes of the first region;
[0229] Based on the text display attributes and the area display attributes, a first area is displayed on the reading page, and the target reading auxiliary text corresponding to the target text content is displayed in the first area.
[0230] In one alternative implementation, such as Figure 6 As shown, the device further includes:
[0231] The second display module 430 is used to display an auxiliary identifier of any given text content at a third position on the reading page; wherein the auxiliary identifier is used to represent the number of auxiliary texts corresponding to the text content, and the third position is related to the second position of the text content on the reading page;
[0232] The third display module 440 is used to display reading aid text corresponding to any segment of the text content when the auxiliary identifier of any segment of the text content is triggered.
[0233] In one alternative implementation, such as Figure 6 As shown, the device further includes:
[0234] The fourth display module 450 is used to display key information of the target reading aid text in the first area of the reading page;
[0235] The fifth display module 460 is used to respond to the triggering event for the key information and display the target reading aid text corresponding to the key information.
[0236] This embodiment of the disclosure adds selected reading aid text to the corresponding area of the reading page, allowing users to intuitively obtain auxiliary reading content, improving the efficiency of users obtaining auxiliary reading content, and enhancing the user's immersion in the reading process.
[0237] Reference Figure 7 , Figure 8 , Figure 9 As shown, Figure 7 A schematic diagram of a text content display device provided in an embodiment of this disclosure; Figure 8 A detailed schematic diagram of the second determining module in the text content display device provided in this embodiment of the present disclosure; Figure 9 This is a schematic diagram of another text content display device provided in an embodiment of this disclosure. The server includes: a second acquisition module 710, a first determination module 720, a second determination module 730, and a sending module 740; wherein,
[0238] The second acquisition module 710 is used to respond to a text acquisition request and acquire the text to be displayed, which includes multiple text content segments, and the candidate reading aid text corresponding to each text content segment.
[0239] The first determining module 720 is used to determine the target text content based on the multiple text content segments and the candidate reading aid texts corresponding to each text content segment;
[0240] The second determining module 730 is used to determine the target reading aid text corresponding to the target text content from the candidate reading aid texts corresponding to the target text content;
[0241] The sending module 740 is used to send the text to be displayed, as well as the display position information of the target text content and the target reading aid text on the reading page, to the terminal.
[0242] In one optional implementation, the first determining module 720 includes:
[0243] The segmentation unit 721 is used to segment the multiple text contents according to the interaction information of the multiple text contents to obtain at least one text set including multiple consecutive text contents.
[0244] The second determining unit 722 is used to determine the target text content to be assisted in each of the text sets.
[0245] In one optional implementation, the second determining unit 722 is specifically used for:
[0246] Determine the text content located at a preset position in each of the aforementioned text sets, and use the text content located at the preset position as the target text content to be assisted; or,
[0247] The text value of each segment of text content in each of the aforementioned text sets is determined, and the text content with text value is selected as the target text content to be assisted.
[0248] In one optional implementation, the second determining module 730 is specifically used for:
[0249] Determine the auxiliary value of each reading aid text among the candidate reading aid texts corresponding to the target text content; wherein the auxiliary value is determined based on the interaction data of the candidate reading aid texts;
[0250] Select supplementary reading texts with auxiliary value as target supplementary reading texts associated with the content of the target text.
[0251] In one optional embodiment, the apparatus further includes:
[0252] The first selection module 750 is used to select target reading aid texts with auxiliary value from the candidate reading aid texts corresponding to the text content of each segment;
[0253] The third determining module 760 is used to determine the target text content to be assisted in each text set based on the relevance between the target reading auxiliary text and the text content of each segment.
[0254] In one optional implementation, the third determining module 760 is specifically used for:
[0255] If the target reading aid text matches multiple paragraphs of text content, determine the relevance between the target reading aid text and each paragraph of text content;
[0256] The text content with the highest relevance is taken as the target text content corresponding to the target reading auxiliary text.
[0257] In an optional implementation, the third determining module 760 is further configured to:
[0258] If multiple target reading aid texts correspond to the same text set, then one or more target reading aid texts with the highest aid value are selected as the target reading aid texts corresponding to the text set.
[0259] In one optional embodiment, the apparatus further includes:
[0260] The third acquisition module 770 is used to acquire the reading aid text corresponding to the text content of each segment and determine the number of reading aid texts corresponding to the text content of each segment.
[0261] The second sending module 780 is used to send the reading assistance text and the number of reading assistance texts to the terminal.
[0262] In one optional embodiment, the apparatus further includes:
[0263] Analysis module 790 is used to analyze and process the target reading aid text to obtain key information of the target reading aid text;
[0264] The third sending module 7100 is used to send the key information to the terminal.
[0265] This embodiment of the disclosure selects the target text content to be assisted and the target reading assistance text associated with the target text content, and sends them to the terminal to be displayed to the user. This can improve the value of the content to be displayed, allowing the user to view the most valuable content and increasing the user experience and immersion.
[0266] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.
[0267] Corresponding to Figure 1 The present disclosure also provides a computer device, such as a text content display method applied to a terminal. Figure 10 The diagram shown is a schematic representation of a computer device structure provided in an embodiment of this disclosure, including:
[0268] The system includes a processor 1001, a memory 1002, and a bus 1003. The memory 1002 stores execution instructions and includes main memory 10021 and external memory 10022. Main memory 10021, also called internal memory, temporarily stores computational data in the processor 1001 and data exchanged with external memory 10022 such as a hard disk. The processor 1001 exchanges data with external memory 10022 through main memory 10021. When the computer device is running, the processor 1001 communicates with the memory 1002 through the bus 1003, causing the processor 1001 to execute the following instructions:
[0269] Obtain the text to be displayed, which includes multiple text segments, and the target reading aid text corresponding to at least one target text segment among the multiple text segments;
[0270] In response to displaying the target text content on the reading page, target reading aid text corresponding to the target text content is displayed in a first area of the reading page; wherein, the first area is located at a first position on the reading page and is related to the target text content at a second position on the reading page.
[0271] Corresponding to Figure 3 In addition to the text content display method applied to the server, this disclosure also provides another computer device, such as... Figure 11 The diagram shown is a schematic representation of another computer device structure provided in this embodiment of the present disclosure, including:
[0272] The system includes a processor 1101, a memory 1102, and a bus 1103. The memory 1102 stores execution instructions and includes main memory 11021 and external memory 11022. The main memory 11021, also called internal memory, is used to temporarily store computational data in the processor 1101 and data exchanged with external memory such as a hard disk. The processor 1101 exchanges data with the external memory 11022 through the main memory 11021. When the computer device is running, the processor 1101 communicates with the memory 1102 through the bus 1103, causing the processor 1101 to execute the following instructions:
[0273] In response to a text acquisition request, acquire the text to be displayed, which includes multiple text segments, and the candidate reading aid text corresponding to each segment of the text.
[0274] Based on the multiple text segments and the candidate reading aids corresponding to each text segment, the target text content is determined.
[0275] From the candidate reading aid texts corresponding to the target text content, determine the target reading aid text corresponding to the target text content;
[0276] The text to be displayed, as well as the display position information of the target text content and the target reading aid text on the reading page, are sent to the terminal.
[0277] This disclosure also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the text content display method described in the above method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0278] This disclosure also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the steps of the text content display method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.
[0279] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0280] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0281] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0282] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0283] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0284] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. A method for displaying text content, characterized in that, The method includes: Obtain the text to be displayed, which includes multiple text segments, and the target reading aid text corresponding to at least one target text segment among the multiple text segments; In response to displaying the target text content on the reading page, target reading aid text corresponding to the target text content is displayed in a first area of the reading page; wherein, the first area is located at a first position on the reading page and is related to the target text content at a second position on the reading page; The step of displaying the target reading aid text corresponding to the target text content in the first area of the reading page includes: The first area of the reading page displays key information of the target reading aid text, including at least one of the following: keyword content of the target aid text and the number of aid texts corresponding to the target aid text; In response to a trigger event for the key information, the target reading aid text corresponding to the key information is displayed.
2. The text content display method according to claim 1, characterized in that, The response to displaying the target text content on the reading page, and displaying target reading aid text corresponding to the target text content in a first area of the reading page, further includes: In response to the display of the target text content on the reading page, based on the layout information of the multiple text segments and the target reading auxiliary text, a second position of the target text content on the reading page and a first position on the reading page corresponding to the second position are determined; The target reading aid text corresponding to the target text content is displayed in the first area at the first position.
3. The text content display method according to claim 2, characterized in that, The step of determining the second position of the target text content on the reading page, and the first position on the reading page corresponding to the second position, based on the layout information of the multiple text segments and the target reading aid text, includes: Based on the text display volume of the reading page, the auxiliary text display volume of the preset reading auxiliary text, and the target text content corresponding to the target reading auxiliary text, the multiple text content segments and the target reading auxiliary text are mixed and formatted to generate layout information for the multiple text content segments and the target reading auxiliary text. Based on the layout information, the second position of the target text content on the reading page and the first position corresponding to the second position are determined.
4. The text content display method according to claim 2, characterized in that, The response to displaying the target text content on the reading page, and displaying target reading aid text corresponding to the target text content in a first area of the reading page, includes: In response to the display of the target text content on the reading page, the pre-layout information of the multiple text segments is obtained; wherein, the pre-layout information is generated based on the amount of text displayed on the reading page; Based on the pre-layout information, the second position of the target text content on the reading page is determined, and the first position corresponding to the second position on the reading page is determined based on the second position. The first region at the first position is determined by the amount of auxiliary text displayed in the preset reading aid text, and the reading aid text corresponding to the target text content is displayed in the first region.
5. The method according to claim 1, characterized in that, The target reading aid text corresponding to the target text content is displayed in the first area of the reading page, including: Determine the text display attributes of the reading aid text and the region display attributes of the first region; Based on the text display attributes and the area display attributes, a first area is displayed on the reading page, and the target reading auxiliary text corresponding to the target text content is displayed in the first area.
6. The text content display method according to claim 1, characterized in that, The method further includes: For any given text content, an auxiliary identifier for that text content is displayed at a third position on the reading page; wherein, the auxiliary identifier is used to represent the number of auxiliary texts corresponding to that text content, and the third position is related to the second position of that text content on the reading page; In response to the triggering of any auxiliary identifier of the text content, the corresponding reading aid text is displayed.
7. A method for displaying text content, characterized in that, The method includes: In response to a text acquisition request, acquire the text to be displayed, which includes multiple text segments, and the candidate reading aid text corresponding to each segment of the text. Based on the multiple text segments and the candidate reading aids corresponding to each text segment, the target text content is determined. From the candidate reading aid texts corresponding to the target text content, determine the target reading aid text corresponding to the target text content; The text to be displayed, as well as the display position information of the target text content and the target reading aid text on the reading page, are sent to the terminal. The step of determining the target text content based on the multiple text segments and the candidate reading aid texts corresponding to each text segment includes: The multiple text segments are divided according to the interaction information of the multiple text segments to obtain at least one text set including multiple consecutive text segments. The interaction information of the multiple text segments is used to control the frequency of appearance of reading aid text. The interaction information of the multiple text segments includes at least one of the following: preset reading aid text display frequency, preset interaction frequency with the user, and desired interaction popularity. Determine the target text content to be assisted in each of the aforementioned text sets; The step of determining the target text content to be assisted in each of the text sets includes: Select target reading aids with auxiliary value from the candidate reading aids corresponding to the text content of each paragraph; Based on the relevance between the target reading aid text and the content of each paragraph, the target text content to be assisted in each text set is determined.
8. The text content display method according to claim 7, characterized in that, The step of determining the target reading aid text corresponding to the target text content from the candidate reading aid texts corresponding to the target text content includes: Determine the auxiliary value of each reading aid text among the candidate reading aid texts corresponding to the target text content; wherein the auxiliary value is determined based on the interaction data of the candidate reading aid texts; Select supplementary reading texts with auxiliary value as target supplementary reading texts associated with the content of the target text.
9. The text content display method according to claim 7, characterized in that, The process of determining the target text content to be assisted in each text set based on the relevance between the target reading aid text and the text content of each segment includes: If the target reading aid text matches multiple paragraphs of text content, determine the relevance between the target reading aid text and each paragraph of text content; The text content with the highest relevance is taken as the target text content corresponding to the target reading aid text.
10. The text content display method according to claim 7, characterized in that, The method further includes: If multiple target reading aid texts correspond to the same text set, then one or more target reading aid texts with the highest aid value are selected as the target reading aid texts corresponding to the text set.
11. The text content display method according to claim 7, characterized in that, The method further includes: Obtain the reading aid text corresponding to the text content of each segment, and determine the number of reading aid texts corresponding to the text content of each segment; The reading aid text and the number of reading aid texts are sent to the terminal.
12. The text content display method according to claim 7, characterized in that, The method further includes: The target reading aid text is analyzed and processed to obtain its key information. The key information is sent to the terminal.
13. A text content display device, characterized in that, The device includes: The first acquisition module is used to acquire the text to be displayed, which includes multiple text segments, and the target reading aid text corresponding to at least one target text segment among the multiple text segments; The first display module is used to respond to the display of the target text content on the reading page by displaying target reading auxiliary text corresponding to the target text content in a first area of the reading page; wherein the first area is located at a first position on the reading page and is related to the target text content at a second position on the reading page. Wherein, when the first display module displays the target reading aid text corresponding to the target text content in the first area of the reading page, it is used to: The first area of the reading page displays key information of the target reading aid text, including at least one of the following: keyword content of the target aid text and the number of aid texts corresponding to the target aid text; In response to a trigger event for the key information, the target reading aid text corresponding to the key information is displayed.
14. A text content display device, characterized in that, The device includes: The second acquisition module is used to respond to a text acquisition request and acquire the text to be displayed, which includes multiple text segments, and the candidate reading aid text corresponding to each text segment. The first determining module is used to determine the target text content based on the multiple text segments and the candidate reading aid texts corresponding to each text segment. The second determining module is used to determine the target reading aid text corresponding to the target text content from the candidate reading aid texts corresponding to the target text content; The first sending module is used to send the text to be displayed, as well as the display position information of the target text content and the target reading aid text on the reading page, to the terminal. The first determining module includes a partitioning unit and a second determining unit. The segmentation unit is used to segment the multiple text content according to the interaction information of the multiple text content to obtain at least one text set including multiple continuous text content. The interaction information of the multiple text content is used to control the frequency of appearance of reading aid text. The interaction information of the multiple text content includes at least one of the following: preset reading aid text display frequency, preset interaction frequency with user, and desired interaction popularity. The second determining unit is used to determine the target text content to be assisted in each of the text sets; When the second unit performs the task of determining the target text content to be assisted in each of the text sets, it is used to: Select target reading aids with auxiliary value from the candidate reading aids corresponding to the text content of each paragraph; Based on the relevance between the target reading aid text and the content of each paragraph, the target text content to be assisted in each text set is determined.
15. A computer device, characterized in that, include: The computer device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the text content display method as described in any one of claims 1 to 6 are performed.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the text content display method as described in any one of claims 1 to 6.
17. A computer device, characterized in that, include: The computer device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform the steps of the text content display method as described in any one of claims 7 to 12.
18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the text content display method as described in any one of claims 7 to 12.
Citation Information
Patent Citations
Comment information displaying method and electronic equipment
CN107831982A
Note area division method, terminal and computer storage medium
CN111339742A
Auxiliary reading and displaying method and device and computing equipment
CN111723315A