Reading book content display method, related device and medium

By obtaining the target text document template and segmented content from applications without universal reading tools installed, and displaying the text in conjunction with terminal configuration information, the high development cost and inconsistent interface of text reading are solved, achieving lightweight and unified text display.

CN121635751APending Publication Date: 2026-03-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In applications where general reading tools are not installed, existing technologies require extensive custom development for reading materials, increasing development costs. Furthermore, the lack of uniformity in interface and interaction design makes collaborative operation difficult.

Method used

In applications where a universal reading tool is not installed, the target text document template is obtained from a second application that has a universal reading tool, the content is extracted into segments, and the segment attribute list is determined based on the segment content and terminal configuration information to display the text.

Benefits of technology

It enables lightweight book display in applications without universal reading tools installed, reducing development burden and improving the consistency of book reading processing across different applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121635751A_ABST
    Figure CN121635751A_ABST
Patent Text Reader

Abstract

The invention provides a reading book content display method, a related device and a medium. The method comprises the steps that on a target terminal, in response to triggering of a reading function on an interface of a first application without a universal reading tool, a target reading document template in a second application with the universal reading tool is acquired; obtaining the original content of the target reading book, and extracting the block content of each block from the original content to fill the target reading book document template; determining a block attribute list of the blocks based on the block content of the blocks and the configuration information of the target terminal; and based on the block attribute list of the blocks, displaying the block content of the filled blocks so as to display the target book. According to the embodiment of the invention, lightweight reading book display can be realized in an application without installing a general reading tool, and the burden of installing the general reading tool is avoided. The embodiment of the invention is applied to scenes such as embedding a book reading function in various applications without universal reading tools.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of application development, and in particular, to a reading content display method, related device and medium. BACKGROUND

[0002] The reading of the reading book (such as the reading of the electronic novel) in the prior art mainly relies on the general reading tool (such as the electronic book browser or the general browser). In the application in which the general reading tool has been installed, the rendering of the reading book can be performed by using the general reading tool. In the application in which the general reading tool is not installed, a large amount of customized development work needs to be performed, thereby increasing the development cost. In the application in which the general reading tool is installed, the burden is heavy, and it belongs to heavy development. Moreover, the interface and the interaction design of the customized development are different, and the performance of the reading book reading in different applications lacks uniformity, which is not conducive to the collaborative operation. SUMMARY

[0003] The embodiments of the present disclosure provide a reading content display method, related device and medium, which can implement the lightweight display of the reading book in the application in which the general reading tool is not installed, thereby eliminating the burden of installing the general reading tool.

[0004] According to an aspect of the present disclosure, a reading content display method is provided, which comprises:

[0005] On a target terminal, in response to the triggering of the reading book reading function on the interface of a first application without a general reading tool, a target reading book document template in a second application with the general reading tool is acquired, and the target reading book document template comprises a plurality of blocks;

[0006] The original content of the target reading book is acquired, and the block content of each block is extracted from the original content to fill the target reading book document template;

[0007] Based on the block content of the block and the configuration information of the target terminal, a block attribute list of the block is determined;

[0008] Based on the block attribute list of the block, the block content of the filled block is displayed, thereby displaying the target reading book.

[0009] According to an aspect of the present disclosure, a reading content display device is provided, which comprises:

[0010] A first acquisition unit is configured to acquire, on a target terminal, a target reading book document template in a second application with a general reading tool in response to the triggering of a reading book reading function on the interface of a first application without the general reading tool, and the target reading book document template comprises a plurality of blocks;

[0011] The second acquisition unit is configured to acquire original content of a target reading book, and extract block content of each block from the original content to fill the target reading book document template;

[0012] The first determination unit is configured to determine a block attribute list of the block based on the block content of the block and configuration information of the target terminal;

[0013] The first display unit is configured to display the block content of the filled block based on the block attribute list of the block, so as to display the target reading book.

[0014] Optionally, the first determination unit is specifically configured to:

[0015] acquire a candidate block attribute set, the candidate block attribute set including a plurality of candidate block attributes;

[0016] determine a first matching degree of each candidate block attribute and the block content;

[0017] determine a second matching degree of each candidate block attribute and the configuration information;

[0018] determine a total matching degree of the candidate block attribute based on the first matching degree and the second matching degree;

[0019] determine a target block attribute from the plurality of candidate block attributes based on the total matching degree, and add the target block attribute to the block attribute list.

[0020] Optionally, the first determination unit is specifically configured to:

[0021] acquire a block content type and a block content size of the block content;

[0022] determine a first sub-matching degree of the block content type and the candidate block attribute;

[0023] determine a second sub-matching degree of the block content size and the candidate block attribute;

[0024] determine the first matching degree based on the first sub-matching degree and the second sub-matching degree.

[0025] Optionally, the first determination unit is specifically configured to:

[0026] input each element in the block content into a semantic cohesion prediction model to obtain a semantic cohesion degree between adjacent elements;

[0027] divide the block content into sub-blocks based on the semantic cohesion degree;

[0028] Determine the sub-block type and sub-block size for each of the sub-blocks;

[0029] For each of the sub-block types, determine a first sum of the sub-block sizes corresponding to the sub-block type;

[0030] Based on the first sum corresponding to each of the sub-block types, the content type of the block is determined;

[0031] Obtain the size of the segmented content.

[0032] Optionally, the first determining unit is further configured to:

[0033] Based on the first historical display record of the target terminal on the first application page, obtain the first frequency of display blocks based on the candidate block attributes;

[0034] Based on the second historical display record on the target terminal, obtain the second frequency of the display block based on the candidate block attribute;

[0035] Based on the first frequency and the second frequency, a third matching degree is determined;

[0036] Based on the first matching degree, the second matching degree, and the third matching degree, the total matching degree of the candidate block attribute is determined.

[0037] Optionally, the first determining unit is further configured to:

[0038] Obtain the first number of times the segment is displayed in the first historical display record;

[0039] Obtain the second number of times a block is displayed based on the candidate block attribute in the first historical display record;

[0040] The first frequency is determined based on the first number and the second number.

[0041] Optionally, the first determining unit is further configured to:

[0042] Obtain the third number of the displayed blocks in the second historical display record;

[0043] Obtain the fourth number of times the block is displayed based on the candidate block attribute in the second historical display record;

[0044] The second frequency is determined based on the third and fourth counts.

[0045] Optionally, the first display unit is specifically used for:

[0046] Display the list of block attributes;

[0047] In response to the adjustment instruction of the displayed chunk attribute list, a post-adjustment chunk attribute list is generated;

[0048] Based on the post-adjustment chunk attribute list of the chunk, the chunk content of the filled chunk is displayed, so that the target reading book is displayed.

[0049] Optionally, the extraction of the chunk content of each chunk from the original content to fill the target reading book document template is performed according to a first period; the second acquisition unit is specifically configured to:

[0050] In the current first period, the chunk content of the current chunk is filled into the current chunk;

[0051] Based on the first chunk content type and the first chunk content size of the current chunk, the second chunk content type and the second chunk content size of the next chunk of the current chunk, and the first acquisition duration of the current chunk, the second acquisition duration of the next chunk is predicted;

[0052] At a time point of the second acquisition duration before the end of the current first period, the chunk content of the next chunk is acquired.

[0053] Optionally, the second acquisition unit is specifically further configured to:

[0054] Based on the first chunk content type and the second chunk content type, a first adjustment coefficient is determined;

[0055] Based on the first chunk content size and the second chunk content size, a second adjustment coefficient is determined;

[0056] The first acquisition duration is adjusted by using the first adjustment coefficient and the second adjustment coefficient to obtain the second acquisition duration.

[0057] Optionally, the reading book content display device further comprises:

[0058] A third acquisition unit is configured to acquire a first intra-application access frequency of the target reading book;

[0059] A recording unit is configured to record the original content of the target reading book to a local storage if the first intra-application access frequency meets a first condition;

[0060] The second acquisition unit is specifically further configured to acquire the original content from the local storage if the original content is stored in the local storage.

[0061] Optionally, the second acquisition unit is specifically further configured to:

[0062] if the original content is not stored in the local storage, determining a storage node level based on the first in-app access frequency;

[0063] sending an original content acquisition request to a storage node of the determined storage node level;

[0064] receiving the original content sent by the storage node in response to the original content acquisition request.

[0065] Optionally, the reading content display apparatus further comprises:

[0066] a fourth acquisition unit configured to acquire a target template processing tool, the target template processing tool being used for processing of the target reading document template;

[0067] The second acquisition unit is specifically configured to acquire original content of a target reading document by using the target template processing tool, and extract the chunk content of each of the chunks from the original content to fill the target reading document template.

[0068] Optionally, the second acquisition unit is specifically configured to:

[0069] display a candidate reading list, the candidate reading list comprising a plurality of candidate readings;

[0070] acquire the original content of the target reading in response to a selection instruction of the target reading among the plurality of candidate readings.

[0071] Optionally, the reading content display apparatus further comprises:

[0072] a fifth acquisition unit configured to acquire a first in-app access frequency of the candidate reading;

[0073] a sixth acquisition unit configured to acquire a label matching degree between a first label of the candidate reading and a second label of a target object browsing the first application page;

[0074] a second determination unit configured to determine an order of the plurality of candidate readings based on the first in-app access frequency and the label matching degree.

[0075] According to an aspect of the present disclosure, an electronic device is provided, which comprises a memory storing a computer program and a processor, wherein the processor implements the reading content display method as described above when executing the computer program.

[0076] According to an aspect of the present disclosure, a computer readable storage medium is provided, which stores a computer program, wherein the computer program is executed by a processor to implement the reading content display method as described above.

[0077] According to an aspect of the present disclosure, a computer program product is provided, which comprises a computer program read and executed by a processor of a computer device, so that the computer device performs the reading content display method as described above.

[0078] In the embodiments of the present disclosure, when embedding the reading content display function in the first application without installing the general reading tool, the general reading tool is not required to be installed, but a target document template with the general reading tool in the second application is acquired, the target reading document template comprising a plurality of blocks. Then, the original content of the target reading content is acquired, and the block content of each block is extracted from the original content to fill the target reading document template. After that, the block attribute list of the block is determined based on the block content of the block and the configuration information of the target terminal, and the block content of the filled block is displayed based on the block attribute list of the block, so as to display the target reading content, which realizes the reading content display in the application without installing the general reading tool. Since the unified target reading document template processing is adopted, the processing uniformity of the reading content in different applications is improved. In addition, the block attribute list of the block is determined based on the block content of the block and the configuration information of the target terminal, and the block content of the filled block is displayed based on the block attribute list of the block, which can meet the display requirements of different terminals, and realize the lightweight reading content display in the application without installing the general reading tool, thereby eliminating the burden of installing the general reading tool and reducing the development burden of the reading content display function.

[0079] Other features and advantages of the present disclosure will be set forth in the following description, and in part will become apparent from the description, or can be learned by practice of the present disclosure. The objects and other advantages of the present disclosure can be achieved and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF DRAWINGS

[0080] The accompanying drawings are included to provide a further understanding of the technical solutions of the present disclosure, and constitute a part of the specification, and are used together with the embodiments of the present disclosure to explain the technical solutions of the present disclosure, and do not constitute a limitation on the technical solutions of the present disclosure.

[0081] Figure 1 is a framework diagram of a system to which the reading content display method according to the embodiments of the present disclosure is applied;

[0082] Figure 2A and Figure 2B is a schematic diagram of the embodiments of the present disclosure about embedding the reading content display function in the application without installing the general reading tool;

[0083] Figure 3A and Figure 3Bis an interface schematic diagram of embedding the reading function of the reading book in different applications according to an embodiment of the present disclosure;

[0084] Figure 4 is a general flowchart of the reading book content display method according to an embodiment of the present disclosure;

[0085] Figures 5A-5D is an interface schematic diagram of the reading book content display method according to an embodiment of the present disclosure;

[0086] Figure 6 is a structural block diagram of the reading book content display method according to an embodiment of the present disclosure;

[0087] Figure 7A is a schematic diagram of the target reading book document template according to an embodiment of the present disclosure;

[0088] Figure 7B is a schematic diagram of the block attribute list according to an embodiment of the present disclosure;

[0089] Figure 8 is Figure 4 is a flowchart of acquiring the block content in step 420;

[0090] Figure 9 is Figure 4 is a schematic diagram of acquiring the block content;

[0091] Figure 10 is Figure 8 is a flowchart of predicting the second acquisition duration in step 820;

[0092] Figure 11 is Figure 4 is another flowchart of acquiring the block content in step 420;

[0093] Figure 12 is Figure 11 is a schematic diagram of displaying the candidate reading book list;

[0094] Figure 13 is Figure 4 is a flowchart of determining the block attribute list in step 830;

[0095] Figure 14 is Figure 13 is a schematic diagram of determining the block attribute list;

[0096] Figure 15 is Figure 13 is a flowchart of determining the first matching degree in step 1320;

[0097] Figure 16 is Figure 15A flowchart of acquiring a chunk content type and a chunk content size in step 1510;

[0098] Figure 17 Yes Figure 16 A schematic diagram of acquiring a chunk content type in step 1300;

[0099] Figure 18 Yes Figure 13 A flowchart of determining a total matching degree in step 1340;

[0100] Figure 19 Yes Figure 18 A flowchart of determining a first frequency in step 1810;

[0101] Figure 20 Yes Figure 18 A flowchart of determining a second frequency in step 1820;

[0102] Figure 21 Yes Figure 4 A flowchart of displaying a target reading in step 440;

[0103] Figure 22 Yes Figure 21 An interface schematic diagram of displaying a chunk attribute list;

[0104] Figure 23 A flowchart of original text storage provided by an embodiment of the present disclosure;

[0105] Figure 24 Yes Figure 23 A schematic diagram of original text storage;

[0106] Figure 25 Yes Figure 24 A flowchart of acquiring original content in a case where the original content is not stored in local storage;

[0107] Figure 26 Yes Figure 25 A schematic diagram of acquiring original content;

[0108] Figure 27 A flowchart of filling a target reading document template with a target template processing tool provided by an embodiment of the present disclosure;

[0109] Figure 28 A flowchart of a method for determining an order of a plurality of candidate readings in a candidate reading list provided by an embodiment of the present disclosure;

[0110] Figure 29 An embodiment detail diagram of a reading content display method according to an embodiment of the present disclosure;

[0111] Figure 30is a module diagram of a reading content display device according to an embodiment of the present disclosure;

[0112] Figure 31 is a terminal structure diagram of a reading content display method according to an embodiment of the present disclosure;

[0113] Figure 32 is a server structure diagram of a reading content display method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0114] In order to make the objectives, technical solutions and advantages of the present disclosure clearer, the present disclosure is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and do not limit the present disclosure.

[0115] Before the present disclosure is further described in detail, the terms and phrases involved in the embodiments of the present disclosure are explained, and the terms and phrases involved in the embodiments of the present disclosure are applicable to the following explanations:

[0116] Reading: can be understood as an electronic document, an electronic book, the reading can include text paragraphs, tables, images, etc., the object can obtain the information contained in the reading by reading the reading.

[0117] The reading of the related art reading (such as electronic novel reading) mainly depends on the general reading tool (such as an electronic book browser or a general browser). In the application that has installed the general reading tool, the general reading tool can be used to render the reading. In the application that does not install the general reading tool, a large amount of customization development work is required, which increases the development cost. In such an application, the general reading tool is installed, which is a heavy burden and belongs to heavy development. And the interface and interaction design of such customized development are different, and the performance of the reading of different applications lacks uniformity, which is not conducive to collaborative operation.

[0118] Based on this, the embodiments of the present disclosure provide a reading content display method, related devices and media, which can realize lightweight reading display in the application that does not install the general reading tool, and eliminate the burden of installing the general reading tool.

[0119] System architecture and scene description to which the embodiments of the present disclosure are applied

[0120] Figure 1 is a system architecture diagram to which the reading content display method according to the embodiments of the present disclosure is applied. In the document export scene, a document server and a plurality of clients are involved. As shown in Figure 1 , it includes a terminal 110, an Internet 120, a gateway 130, and a server 140.

[0121] The terminal 110 is a device used by the user to view the contents of the reading material displayed on the first application page. The terminal 110 can also be a device used by the user to trigger the reading function on the first application page. The terminal 110 can be in the form of a desktop computer, a laptop computer, a PDA (Personal Digital Assistant), a mobile phone, a car terminal, a home theater terminal, a dedicated terminal, etc. In addition, it can be a single device or a collection of multiple devices. For example, multiple devices are connected through a local area network and share a display device to work together to form a terminal. The terminal 110 can also communicate with the Internet 120 in a wired or wireless manner to exchange data.

[0122] The gateway 130 is also known as an inter-network connector or a protocol converter. The gateway 130 implements network interconnection at the transport layer and is a computer system or device that acts as a conversion tool. The gateway 130 is a translator between two systems that use different communication protocols, data formats or languages, or even have completely different architectures. At the same time, the gateway 130 can also provide filtering and security functions. Messages sent by the user terminal 110 to the server 140 are sent to the corresponding server 140 through the gateway 130. Messages sent by the server 140 to the user terminal 110 are also sent to the corresponding user terminal 110 through the gateway 130.

[0123] The server 140 refers to a computer system that provides the original contents of the target reading material according to the triggering of the reading function of the reading material on the first application interface of the terminal 110. Compared with the terminal 110, the server 140 has higher requirements in stability, security, performance, etc. The server 140 can be a high-performance computer in a network platform, a cluster of multiple high-performance computers, a part of a high-performance computer (such as a virtual machine), a combination of parts of multiple high-performance computers (such as virtual machines), etc. The server 140 can also communicate with the Internet 120 in a wired or wireless manner to exchange data.

[0124] The embodiments of the present disclosure can be applied in various scenarios, for example Figure 2A and Figure 2B embedding the reading function of the reading material in an application without installing a general reading tool, Figure 3A and Figure 3B scenarios related to embedding the reading function of the reading material in different applications, etc.

[0125] Referring to Figure 2A, application A is an application software on a computer, application B and application C are application software on a mobile phone, application D is an application software on a tablet computer, and application A, application B, application C and application D are all applications without a general reading tool installed. The e-book application X is an application with a general reading tool installed. The interfaces and design understandings of application A, application B, application C and application D are different. If the general reading tool is to be installed in application A, application B and application C, the code files of the e-book application X cannot be simply transplanted, and the developers need to perform a large amount of customized development work for application A, application B and application C. Among them, the amount of customized development work required for application A to install the general reading tool is 800, the amount of customized development work required for application B to install the general reading tool is 900, the amount of customized development work required for application C to install the general reading tool is 850, and the amount of customized development work required for application D to install the general reading tool is 700.

[0126] Figure 2B is a schematic diagram of embedding the reading book reading function in an application without a general reading tool according to an embodiment of the present disclosure. Referring to Figure 2B , the reading book reading display function is realized based on the reading book content display method provided by the embodiment of the present disclosure, which can be directly transplanted to application A, application B, application C and application D without the need for separate modification and customization for each application, and the amount of work for developing the reading book reading display function is 300. It can be obviously seen that, compared with the related art, the reading book content display method provided by the embodiment of the present disclosure significantly reduces the development workload required for embedding the reading book reading function in an application without a general reading tool, and reduces the development burden.

[0127] Figure 3A is an interface schematic diagram of embedding the reading book reading function in an online document application according to an embodiment of the present disclosure, Figure 3B is an interface schematic diagram of embedding the reading book reading function in a video playing application according to an embodiment of the present disclosure. It can be obviously seen that, Figure 3A and Figure 3B the interfaces and interaction designs shown in and are consistent, which improves the uniformity of the performance of reading books in different applications.

[0128] As can be seen from the above, compared with the related art, the reading book content display method provided by the embodiment of the present disclosure can realize lightweight reading book display in an application without a general reading tool, eliminate the burden of installing a general reading tool, reduce the development burden of the reading book reading function, and improve the uniformity of processing reading books in different applications.

[0129] It should be understood that the above only illustrates the description of part of the application scenarios of the present disclosure. The business scenarios to which the present disclosure can be applied can include but are not limited to the specific embodiments described above.

[0130] General description of the embodiment of the present disclosure

[0131] It should be emphasized that the embodiments of the present disclosure can be applied to various application scenarios, such as embedding a reading book reading function in various applications without installing a general reading tool, and operating the application after embedding the reading book reading function. In related technologies, a large amount of customized development work is required in the application without installing the general reading tool, which increases the development cost. In such an application, the burden of installing the general reading tool is heavy, which belongs to heavy development. The interface and interaction design of such customized development are different, and the performance of the reading book reading of different applications lacks uniformity, which is not conducive to collaborative operation. Some embodiments of the present disclosure provide a reading book content display method, related apparatus and medium, which can realize lightweight reading book display in the application without installing the general reading tool, thereby eliminating the burden of installing the general reading tool.

[0132] The reading book content display method is a method of processing the original content of a target reading book in response to triggering of a reading book reading function on an interface of a first application without a general reading tool, to display. The method can realize lightweight reading book display in the application without installing the general reading tool, thereby eliminating the burden of installing the general reading tool.

[0133] The reading book content display method of the embodiments of the present disclosure responds to triggering of a reading book reading function on an interface of a first application on a terminal 110, to obtain the original content of a target reading book from a server 140, and displays the target reading book document template on the object terminal 110.

[0134] As shown in FIG. 1, according to one embodiment of the present disclosure, the reading book content display method comprises: Figure 4

[0135] Step 410, in response to triggering of a reading book reading function on an interface of a first application without a general reading tool, obtaining a target reading book document template in a second application with a general reading tool on a target terminal, the target reading book document template comprising a plurality of blocks;

[0136] Step 420, obtaining the original content of the target reading book, and extracting the block content of each block from the original content to fill the target reading book document template;

[0137] Step 430, determining a block attribute list of the block based on the block content of the block and the configuration information of the target terminal;

[0138] Step 440, displaying the block content of the filled block based on the block attribute list of the block, thereby displaying the target reading book.

[0139] The steps 410 to 440 are described in detail below.

[0140] ​In step 410, on the target terminal, in response to triggering of the read function on the interface of the first application without the universal reading tool, a target read document template in the second application with the universal reading tool is acquired, and the target read document template includes a plurality of blocks.

[0141] The target terminal refers to a terminal for displaying read content, such as a terminal for displaying the interface of the online document application shown in Figure 3A , a terminal for displaying the interface of the video playing application shown in Figure 3B .

[0142] The universal reading tool is a tool specially used for e-book reading, and the second application is an application with the universal reading tool, such as an e-book browser application, a universal browser application, a read function in the e-book browser application is implemented based on the universal reading tool, and a read function in the universal browser application, especially a read function in a mobile universal browser application, is implemented based on the universal reading tool. The first application is an application without the universal reading tool, such as the online document application shown in Figure 3A , the video playing application shown in Figure 3B .

[0143] The target read document template is a template for document processing and display, and the second application with the universal reading tool is provided with the target read document template. In the second application, the read is processed and displayed through the target read document template. In addition, Figure 7A , the target read document template includes a plurality of blocks.

[0144] It should be noted that the target read document template can be written by a markup language, and in the target read document template, the block can be regarded as a kind of mark.

[0145] Figure 5A is a schematic diagram of a first application page on a target terminal. Referring to Figure 5A , the first application page includes a read function button, and clicking the read function button can trigger the read function on the first application page. In addition, the read function can also be triggered in other ways, such as a shortcut key, clicking a desktop shortcut, etc.

[0146] In step 420, the original content of the target read is acquired, and the block content of each block is extracted from the original content to fill the target read document template.

[0147] The target reading material refers to a reading material to be displayed on the first application page. The target reading material can be selected by the object, or can be the reading material displayed when the reading function of the reading material is last closed. The original content refers to the content data of the target reading material stored in the server, terminal, etc. Whether it is the second application with a general reading tool or the first application without a general reading tool, the original content cannot be directly read and needs to be processed and converted into a readable format.

[0148] The extraction of the chunked content can be determined according to the symbols in the original content, the size of the original content, and the type of the original content, and the extraction manner of the chunked content corresponding to different types is different. For example, when the original content data is all text as shown in the figure, the original content can be divided into multiple text paragraphs according to the line break symbol, and each text paragraph is taken as a separate chunked chunked content. When the original data is all images, the original content can be divided into multiple images, and one or more adjacent images are taken as a separate chunk. Figure 5B

[0149] In addition, after the original content is divided into multiple text paragraphs, if the data length of the text paragraph is too small, multiple text paragraphs can be taken as a chunk.

[0150] It should be noted that, in order to improve the display efficiency of the reading material content, the extraction of the chunked content and the filling of the target reading material document template are usually performed synchronously.

[0151] Referring to Figure 7A , each chunk in the general reading material document before filling is empty, and the target reading material document template is filled according to the original content. After filling, the multiple chunks in the general document template are all provided with corresponding chunked content.

[0152] It should be noted that, in addition to the content data of the target reading material, i.e., the reading material content, the original content of the target reading material also includes the metadata of the target reading material, which includes the cover, author, table of contents, etc. of the target reading material. Like the content data, the metadata also needs to be filled into the chunk. Specifically, the metadata can be taken as the chunked content of a separate chunk, or the cover, author, table of contents, etc. of the metadata can be taken as the chunked content of a separate chunk.

[0153] Referring to Figure 6 , the reading material content display method provided by the embodiment of the present disclosure includes back-end service support. In response to the request of the object, the back-end server can send the original content of the target reading material to the target terminal.

[0154] In step 430, based on the chunked content of the chunk and the configuration information of the target terminal, the chunked attribute list of the chunk is determined. ​

[0155] The configuration information corresponds to the target terminal. Since the target reading material in the embodiment of the present disclosure needs to be displayed on the target terminal, the configuration information includes the screen size, resolution, display mode (such as night mode, daytime mode, or split screen display), and the like of the target terminal.

[0156] The block attribute list corresponds to the block, which refers to a list of attributes of each block of the target reading material displayed on the target terminal. The block attribute list includes a block attribute name and a block attribute value corresponding to the block attribute name. In addition, the type to which the block content belongs is different, and the corresponding block attribute list is also different.

[0157] If the block content is of the text type, the corresponding block attribute list is as shown in Table 1. Figure 7B The block attribute name includes font, font size, word spacing, line spacing, paragraph spacing, first line indentation, and the like. Among them, the block attribute value corresponding to the font is Kai Ti, the block attribute value corresponding to the font size is 7, the block attribute value corresponding to the word spacing is 0.1, which can be understood as the product of the font width and 0.1, the line spacing is 0.1, which can be understood as the product of the average height of the multi-line font and 0.1, the paragraph spacing is 0.2, and the first line indentation is 2.

[0158] If the text content is an image, the corresponding block attribute name can include the size, resolution, contrast, brightness, and the like of the image. If the text content is a table, the corresponding block attribute name can be the size of the table, the size of each cell in the table, the font size in the table, and the like.

[0159] The block attribute list is determined based on the block content of the block and the configuration information of the target terminal, so that the block attribute list can meet the different configurations of different terminals without the need for additional special development.

[0160] In step 440, based on the block attribute list of the block, the block content of the filled block is displayed, and thus the target reading material is displayed.

[0161] After determining the block attribute list, the block content of the filled block is rendered to the display screen of the target terminal, so that the block attribute of each block of the block content on the display screen of the target terminal is consistent with the block attribute list. Since the block attribute list is determined based on the block content and the configuration information, the font size, word spacing, line spacing, paragraph spacing, and the like of the block content finally displayed on the target terminal are the adaptive results of the target reading material on the target terminal, and the reading experience of the object will not be affected by the excessively large or small block attributes such as font size, word spacing, line spacing, and paragraph spacing.

[0162] Figure 5A FIG. 1 is a schematic diagram of a first application page on the target terminal. The object can trigger the reading material reading function by clicking the “reading material reading” button, and the finally displayed page of the reading material reading function is as shown in FIG. 2. Figure 5B to 5DAs shown, it can be obviously seen that no matter the content of the target reading material is text, image or table, the target reading material finally displayed on the reading material reading function page can be adapted to the target terminal.

[0163] With reference to Figure 6 The reading material content display method provided by the embodiments of the present disclosure can be divided into four parts: target reading material analysis and extraction, reading experience optimization, backend service support, and front-end display and control. The backend service support sends the original content of the target reading material corresponding to the request to the target terminal according to the request of the object, i.e., the triggering of the reading function by the object on the first application interface of the target terminal. Then, the target reading material analysis and extraction are performed on the target terminal, and the block content of each block is extracted from the original content of the target reading material to fill the target reading material document template. The reading experience optimization part needs to display the block content of the filled block based on the block attribute list of the block, so that the target reading material can be adaptively displayed on the first application interface of the target terminal. The front-end display and control part refers to the display of the block content filled by the target reading material in the target reading material document template on the front end of the target terminal, and the processing thereof to improve the display efficiency of the reading material reading.

[0164] The embodiments of the above steps 410 to 440 do not need to install the general reading tool when embedding the reading material reading function in the first application without installing the general reading tool, but obtain the target document template in the second application with the general reading tool, and the target reading material document template includes a plurality of blocks. Then, the original content of the target reading material is obtained, and the block content of each block is extracted from the original content to fill the target reading material document template. Then, based on the block content of the block and the configuration information of the target terminal, the block attribute list of the block is determined, and based on the block attribute list of the block, the block content of the filled block is displayed, so that the target reading material is displayed, and the reading material display in the application without installing the general reading tool is realized. Since the unified target reading material document template processing is adopted, the uniformity of the reading material reading processing of different applications is improved. In addition, by determining the block attribute list of the block based on the block content of the block and the configuration information of the target terminal, and displaying the block content of the filled block based on the block attribute list of the block, the display requirements of different terminals can be met, and the lightweight reading material display in the application without installing the general reading tool is realized, which eliminates the burden of installing the general reading tool and reduces the development burden of the reading material reading function.

[0165] The above is the overall description of steps 410 to 440. Since the step 410 has been described in detail above, only the specific implementation process of steps 420 to 440 will be described in detail below.

[0166] Detailed description of step 420

[0167] In step 420, the original content of the target reading is acquired, and the chunk content of each chunk is extracted from the original content to fill the target reading document template.

[0168] In an embodiment, the extraction of the chunk content of each chunk from the original content to fill the target reading document template is performed according to a first period. Referring to Figure 8 , step 420 comprises:

[0169] Step 810, in the current first period, filling the chunk content of the current chunk to the current chunk;

[0170] Step 820, based on the first chunk content type and the first chunk content size of the current chunk, the second chunk content type and the second chunk content size of the next chunk of the current chunk, and the first acquisition duration of the current chunk, predicting the second acquisition duration of the next chunk;

[0171] Step 830, at a time point of the second acquisition duration before the end of the current first period, acquiring the chunk content of the next chunk.

[0172] It should be noted that the first period refers to the period of filling the chunk content to the target reading document template. The first period is determined based on the original content of the target reading, i.e., the chunk content size of each chunk. For example, for a text type target reading, if each paragraph of the target reading is determined as a chunk content, the larger the data of each paragraph, i.e., the data between two adjacent line breaks, the longer the first period of filling the corresponding content data to the target reading document template. Therefore, the first period can be adaptively adjusted according to the size of each chunk content.

[0173] In addition, the embodiment of the present disclosure can also determine the average value of the paragraph data size based on the total data size of the current chapter of the target reading and the number of paragraphs, and determine the first period based on the average value. The embodiment of the present disclosure can also determine the first period according to the maximum value of each paragraph data in the current chapter of the target reading, so that each chunk content of the target reading can complete the filling of the target reading document template within the first period.

[0174] The steps 810 to 830 are described in detail below.

[0175] In step 810, in the current first period, filling the chunk content of the current chunk to the current chunk.

[0176] The first period is divided and corresponds to the chunk content of each chunk. Therefore, the current first period corresponds to the chunk content of the current chunk, for example, referring to Figure 7AIn the first cycle, block content 1 can be filled into block 1, and in the fifth cycle, block content 5 can be filled into block 5.

[0177] In step 820, based on the first content type and size of the current block, the second content type and size of the next block, and the first acquisition duration of the current block, the second acquisition duration of the next block is predicted.

[0178] The first chunk content type and size correspond to the current chunk. The first chunk content type refers to the data type of the content in the current chunk, and the first chunk content size refers to the size of the content in the current chunk. The second chunk content type and size correspond to the next chunk. The second chunk content type refers to the data type of the next chunk, and the second chunk content size refers to the size of the next chunk.

[0179] exist Figure 5D When the content of the corresponding page is populated into the target document template, if the first content type of the current page is a table, the size of the first content type is the size of the table. If the second content type of the next page is text, the size of the second content type is the size of the text.

[0180] The first acquisition time is the time to acquire the content of the current segment in the original content, and the second acquisition time is the time to acquire the content of the next segment after the current segment. Different segments are acquired at different speeds, especially when the original content of the target text is located on a server. Transmitting the segment content from the server to the target terminal takes time, which is affected by the segment content type and size. Therefore, embodiments of this disclosure can predict the second acquisition time of the next segment based on the first segment content type, the first segment content size, the second segment content type, the second segment content size, and the first acquisition time of the current segment.

[0181] It should be noted that if the original content of the target text is stored on a server, the transmission of the segmented content from the server to the target terminal is affected by the network between the server and the target terminal. Therefore, based on the determined second acquisition duration, it can be further adjusted according to the network transmission speed.

[0182] In step 830, at the second acquisition time point before the end of the current first cycle, the block content of the next block is acquired.

[0183] After determining the second acquisition duration, at the point in time of the second acquisition duration before the end of the current first cycle, the content of the next segment is acquired, so that the content of the next segment can reach the target terminal before the end of the first cycle, thereby realizing continuous filling of the target reading document template and improving the filling efficiency of the target reading document template.

[0184] Assuming the first cycle ends at 13:03:55 and the second retrieval time is 2 seconds, then the content of the next block needs to be retrieved starting at 13:03:53.

[0185] It should be noted that, in this embodiment of the disclosure, the content of the next segment can also be obtained at a time point before the end of the first cycle and before the second acquisition duration. This setting can also ensure that the content of the next segment reaches the target terminal before the end of the first cycle, thereby achieving continuous filling of the target reading document template. For example, if the time point before the end of the first cycle and the second acquisition duration is 13:03:53, then the content of the next segment can be obtained starting at a time point before 13:03:53.

[0186] Reference Figure 9 In this embodiment, the first block of the current segment is filled into the target document template within the current first cycle. Simultaneously, a second retrieval time is determined based on the first block content type, size, and first retrieval time corresponding to the first block content, and the second block content type and size corresponding to the second block content. The second block content is the content of the next block after the current segment. Then, the second block content is retrieved within the second retrieval time before the end of the current first cycle, so that it is filled into the target document template in the next first cycle.

[0187] In the embodiments described in steps 810 to 830 above, the block content of each segment is filled into the target text document template according to the first cycle. Therefore, within the current first cycle, the block content of the current segment needs to be filled into the current segment. To improve the filling efficiency of the target text document template, based on the block content type, block content data, and the first acquisition duration of the current segment and the next segment, the second acquisition duration of the next segment is predicted. The block content of the next segment is acquired at the second acquisition duration point before the end of the current first cycle. This allows the filling of the next segment's block content to begin promptly after the end of the current first cycle, achieving continuous filling of the target text document template, improving the filling efficiency of the target text document template, and consequently improving the display efficiency of the text content and the reading efficiency of the text.

[0188] The above is a general description of steps 810 to 830. Since steps 810 and 830 have already been described in detail above, only the specific implementation process of step 820 will be described in detail below.

[0189] In step 820, based on the first content type and size of the current block, the second content type and size of the next block, and the first acquisition duration of the current block, the second acquisition duration of the next block is predicted.

[0190] In one embodiment, reference is made to Figure 10 Step 820 includes:

[0191] Step 1010: Determine the first adjustment coefficient based on the first block content type and the second block content type;

[0192] Step 1020: Determine the second adjustment coefficient based on the size of the first block and the size of the second block.

[0193] Step 1030: Adjust the first acquisition duration using the first adjustment coefficient and the second adjustment coefficient to obtain the second acquisition duration.

[0194] Steps 1010 to 1030 are described in detail below.

[0195] In step 1010, a first adjustment coefficient is determined based on the first content type and the second content type of the sub-block.

[0196] The first adjustment factor is an adjustment factor for the first acquisition duration based on the content type of the segment. Specifically, the first adjustment factor is determined based on the first content type and the second content type of the segment.

[0197] Since the content types in the blocks include text, tables, and images, it is inconvenient to directly determine the first adjustment coefficient through numerical calculation. Therefore, this embodiment of the disclosure can establish a mapping table between the first content type, the second content type, and the first adjustment coefficient, and the first adjustment coefficient can be directly determined by looking up the table.

[0198] Furthermore, embodiments of this disclosure can also quantify the relationship between the content type of the chunk and the acquisition time. For example, if the acquisition time for text-type content chunks is 4, for table-type content chunks is 5, and for image-type content chunks is 6, then the quantization value for text-type content chunks can be set to 4, the quantization value for table-type content chunks can be set to 5, and the quantization value for image-type content chunks can be set to 6. Therefore, when the first content chunk type is image and the second content chunk type is text, the first adjustment factor is 2 / 3.

[0199] In step 1020, a second adjustment coefficient is determined based on the size of the first block content and the size of the second block content.

[0200] The second adjustment factor is an adjustment factor for the first acquisition time based on the size of the content chunks. Specifically, the second adjustment factor is determined based on the size of the first content chunk and the size of the second content chunk.

[0201] There are various ways to determine the second adjustment factor. In this embodiment, a mapping table can be established between the first block content size, the second block content size, and the second adjustment factor to determine the second adjustment factor through a lookup table. Alternatively, a function expression can be established between the first block content size, the second block content size, and the second adjustment factor. Furthermore, this embodiment can also directly use the ratio of the second block content size to the first block content size as the second adjustment factor. For example, if the first block content size is 20 bytes and the second block content size is 30 bytes, then the second adjustment factor is 1.5.

[0202] In step 1030, the first acquisition duration is adjusted using the first adjustment coefficient and the second adjustment coefficient to obtain the second acquisition duration.

[0203] After determining the first adjustment coefficient and the second adjustment coefficient, the first acquisition duration is adjusted using the first adjustment coefficient and the second adjustment coefficient to obtain the second acquisition duration.

[0204] In the process of obtaining the second acquisition duration, the first acquisition duration can be simply multiplied by the first adjustment factor and the second adjustment factor to obtain the second acquisition duration. For example, if the first acquisition duration is 30 nanoseconds (ns), the first adjustment factor is 0.6, and the second adjustment factor is 1.5, then the second acquisition duration is 27 ns.

[0205] Alternatively, during the second acquisition duration, the first and second adjustment coefficients can be weighted and summed to determine the total adjustment coefficient. The product of this total adjustment coefficient and the first acquisition duration can then be used as the second acquisition duration. The weights of the first and second adjustment coefficients can be set according to actual needs. For example, if the first adjustment coefficient is 0.6, the second adjustment coefficient is 1.5, the weight of the first adjustment coefficient is 0.4, and the weight of the second adjustment coefficient is 0.6, then the total adjustment coefficient is 1.14. When the first acquisition duration is 30 ns, the second acquisition duration is 34.2 ns.

[0206] Reference Figure 9The first adjustment coefficient is determined based on the first and second content types of the content segment, and the second adjustment coefficient is determined based on the first and second content sizes of the content segment. After determining the first and second adjustment coefficients, the first acquisition time is adjusted using the first and second adjustment coefficients to obtain the second acquisition time.

[0207] The embodiments of steps 1010 to 1030 above use a first adjustment coefficient and a second adjustment coefficient to adjust the first acquisition duration to obtain a second acquisition duration. The first adjustment coefficient is determined based on the first block content type and the second block content type, and the second adjustment coefficient is determined based on the first block content size and the second block content size. Therefore, the final determined second acquisition duration can conform to the relationship between the block content of the current block and the block content of the next block, thereby improving the accuracy of the second acquisition duration. This ensures that the filling of the block content of the next block begins in a timely manner after the end of the current first cycle, thus improving the display efficiency of the content.

[0208] In another embodiment, reference is made to Figure 11 Step 420 includes:

[0209] Step 1110: Display the candidate book list, which includes multiple candidate books;

[0210] Step 1120: In response to the instruction to select the target book from multiple candidate books, obtain the original content of the target book.

[0211] Steps 1110 and 1120 are described in detail below.

[0212] In step 1110, a list of candidate books is displayed, which includes multiple candidate books.

[0213] The candidate book list is a list that includes multiple candidate books, and each candidate book in the candidate book list includes at least the target book.

[0214] The list of candidate readings is displayed on the interface of the first application on the target terminal. (See reference) Figure 12 The candidate book list can be displayed as a bookshelf, including books previously read and books manually added by the user. Alternatively, the candidate book list can be displayed as a bookstore, where multiple candidate books can be sorted by readership, number of chapters, update time, etc.

[0215] In step 1120, in response to a selection instruction for a target text among multiple candidate texts, the original content of the target text is obtained.

[0216] In the candidate reading list display interface, the user can select the target reading material they wish to read. After the user selects the target reading material, a selection instruction for the target reading material is generated based on the user's selection, and the original content of the target reading material is retrieved according to the instruction.

[0217] The selection instructions include the identifier and name of the target text. By parsing the selection instructions, the target text can be identified, and then its original content can be obtained.

[0218] If the object is Figure 12 Selecting the target book "XXXXX" from the candidate book list, the system retrieves the original content of the target book, processes it, and finally displays the first application interface as shown below. Figure 5B As shown.

[0219] In the embodiments of steps 1110 and 1120 described above, in response to the triggering of the reading function in the first application interface, a candidate reading list including multiple candidate readings is first displayed. Then, in response to a selection instruction for a target reading among the multiple candidate readings, the original content of the target reading is obtained. Furthermore, since this embodiment obtains the target reading document template during the reading function, it is unnecessary to obtain the target reading document template again after selecting the target reading, thus improving the display efficiency of the reading content. Moreover, setting the candidate reading list to an object provides more reading options, enriching the diversity of the reading function.

[0220] Detailed description of step 430

[0221] In step 430, a list of segment attributes is determined based on the segment content and the configuration information of the target terminal.

[0222] In one embodiment, reference is made to Figure 13 Step 430 includes:

[0223] Step 1310: Obtain the candidate block attribute set, which includes multiple candidate block attributes;

[0224] Step 1320: Determine the first degree of matching between each candidate chunk attribute and chunk content;

[0225] Step 1330: Determine the second degree of matching between the attributes of each candidate block and the configuration information;

[0226] Step 1340: Determine the total matching degree of the candidate block attributes based on the first matching degree and the second matching degree;

[0227] Step 1350: Based on the total matching degree, determine the target block attribute from multiple candidate block attributes and add it to the block attribute list.

[0228] Steps 1310 to 1350 are described in detail below.

[0229] In step 1310, a candidate block attribute set is obtained, which includes multiple candidate block attributes.

[0230] The candidate block attribute set is a collection of all block attributes, including the set of block attributes corresponding to all block content types. For example, the candidate block attribute set includes candidate block attributes such as font, font size, character spacing, and line spacing corresponding to text types, as well as candidate block attributes such as image size and resolution corresponding to image types, and candidate block attributes such as table size and cell size corresponding to table types.

[0231] In step 1320, the first matching degree between each candidate chunk attribute and the chunk content is determined.

[0232] Since the candidate chunk attribute set includes candidate chunk attributes corresponding to all chunk content types, in order to obtain a list of chunk attributes that match each chunk, it is necessary to determine the first degree of matching between each candidate chunk attribute and the chunk content.

[0233] The first matching degree refers to the matching degree between candidate chunk attributes and chunk content. Since candidate chunk attributes consist of two parts, attribute name and attribute value, the candidate chunk attributes and chunk content can be matched from the perspectives of both attribute name and attribute value.

[0234] Assuming the content of a block is table-type, the first match degree between candidate block attributes such as image size and resolution and the block content is extremely low, even close to 0. However, for candidate block attributes like table size and cell size, which are only set for table-type block content, the first match degree is higher, such as 80%, 90%, or even 100%. Furthermore, for candidate block attributes including font, font size, and letter spacing, which can correspond to both text-type and table-type block content, the first match degree between these candidate block attributes and the block content is around 50%.

[0235] It should be noted that the first matching degree can be determined in several ways. Firstly, a lookup table method can be used to determine the first matching degree between candidate block attributes and block content. Specifically, a mapping table is established between candidate block attributes, block content, and the first matching degree. Alternatively, embodiments of this disclosure can also establish a first matching degree prediction model. The input to the first matching degree prediction model is the candidate block attributes and block content, and the output of the first matching degree prediction model is the first matching degree.

[0236] In step 1330, a second matching degree between each candidate block attribute and the configuration information is determined.

[0237] The second matching degree refers to the degree of matching between the candidate chunk attributes and the configuration information. Determining the second matching degree ensures that the displayed chunk content is adapted to the target terminal.

[0238] Candidate block attributes consist of two parts: attribute name and attribute value. The second matching degree is mainly determined by the attribute value. For example, the font displayed on a mobile phone screen is usually smaller than the font displayed on a computer screen. Therefore, for multiple candidate block attributes with the attribute name "font size", the second matching degree of the candidate block attribute with the same attribute value will be different with the configuration information of different target terminals.

[0239] The second degree of matching can be determined in various ways, such as by looking up a table or by using a second degree of matching prediction model.

[0240] In step 1340, the total matching degree of the candidate block attributes is determined based on the first matching degree and the second matching degree.

[0241] The overall matching degree of candidate segment attributes refers to the degree of matching between the segment content displayed on the target terminal and the candidate segment attributes. The overall matching degree of candidate segment attributes is determined based on the first matching degree and the second matching degree. The overall matching degree can be the average of the first matching degree and the second matching degree, or it can be a weighted sum of the first matching degree and the second matching degree. Assuming the first matching degree is 0.6 and the second matching degree is 0.4, if the overall matching degree is the average of the first matching degree and the second matching degree, then the overall matching degree is 0.5. If the overall matching degree is the weighted sum of the first matching degree and the second matching degree, and the weight of the first matching degree is 0.7 and the weight of the second matching degree is 0.3, then the overall matching degree is 0.54.

[0242] In step 1350, based on the total matching degree, the target segment attribute is determined from multiple candidate segment attributes and added to the segment attribute list.

[0243] The chunking attributes in the chunking attribute list are derived from the candidate chunking attribute set, and their specific characteristics can be determined by the total matching degree. The target chunking attribute refers to the chunking attribute located in the chunking attribute list.

[0244] There are several methods for determining the block attributes in the block attribute list. For example, in embodiments of this disclosure, multiple candidate block attributes can be sorted according to the total matching degree, and the top preset number of candidate block attributes can be added to the block attribute list. Alternatively, candidate block attributes with a total matching degree greater than a preset matching degree can be added to the block attribute list as target block attributes. The preset number and preset matching degree can both be set according to actual needs.

[0245] Furthermore, since candidate block attributes include attribute names and attribute values, this embodiment first filters candidate block attributes using a first matching degree to ensure that all filtered candidate block attributes correspond to the block content type. Then, the candidate block attributes are categorized based on their attribute names, and the candidate block attribute with the highest second matching degree in each category is added to the block attribute list. Assuming the block content is text, the first matching degree yields multiple candidate block attributes with names such as font, font size, character spacing, line spacing, and paragraph spacing. Then, among the candidate block attributes with the same attribute name, the candidate block attributes to be added to the block attribute list are determined. If the attribute values ​​corresponding to multiple candidate block attributes with the attribute name "font size" include 8, 10, 12, 14, 16, 18, 20, etc., and the second matching degree of the candidate block attribute with an attribute value of 14 is 96%, while the second matching degree of the remaining candidate block attributes is less than 90%, then the candidate block attribute with the attribute name "font size" and an attribute value of 14 is determined as the target block attribute and added to the block attribute list. Each attribute name typically includes only one target block attribute. Therefore, to reduce errors, candidate block attributes with the remaining attribute name being font size are removed.

[0246] It should be noted that the text length in each cell of the table is different, so the required cell size for each cell is also different. In order to improve the readability and aesthetics of the table, this embodiment of the disclosure can set multiple cell sizes according to the rows or columns of the table. In the block attribute list, the attribute name cell size can correspond to multiple target block attributes.

[0247] Reference Figure 14 In this embodiment, the first matching degree between the block content and each candidate block attribute in the candidate block attribute set is determined, and the second matching degree between the configuration information and each candidate block attribute in the candidate block attribute set is determined. Based on the first and second matching degrees, the total matching degree is determined, and then the target block attribute is determined from the multiple candidate block attributes and added to the block attribute list.

[0248] The embodiments of steps 1310 to 1350 above determine the target block attribute in the block attribute list from multiple candidate block attributes based on the first matching degree between candidate block attributes and block content, and the second matching degree between candidate block attributes and configuration information. The determined target block attribute corresponds to the block content and configuration information, which improves the readability of the reading function page displayed on the target terminal and improves the efficiency of reading the book. In addition, the second matching degree is determined based on the configuration information, so there is no need to develop a special interface for the first application, thereby reducing the development burden.

[0249] The above is a general description of steps 1310 to 1350. Since steps 1310, 1330, and 1350 have been described in detail above, only the specific implementation process of steps 1320 and 1340 will be described in detail below.

[0250] In step 1320, the first matching degree between each candidate chunk attribute and the chunk content is determined.

[0251] In one embodiment, reference is made to Figure 15 Step 1320 includes:

[0252] Step 1510: Obtain the content type and size of the content chunks;

[0253] Step 1520: Determine the first sub-matching degree between the content type of the chunk and the attribute of the candidate chunk;

[0254] Step 1530: Determine the second sub-matching degree between the size of the chunk content and the candidate chunk attributes;

[0255] Step 1540: Determine the first matching degree based on the first sub-matching degree and the second sub-matching degree.

[0256] Steps 1510 to 1540 are described in detail below.

[0257] In step 1510, the content type and size of the chunked content are obtained.

[0258] The content type of a chunk refers to the type of data corresponding to that chunk. Content types can be text, image, table, etc.

[0259] Chunk content size refers to the length of the data corresponding to the chunk content. For example, if the chunk content type is an image, the chunk content size is the size of that image. If the chunk content type is text, the chunk content size is the length of that text data.

[0260] In step 1520, the first sub-match degree between the chunk content type and the candidate chunk attribute is determined.

[0261] The first sub-match degree is the match degree between the content type of the chunk and the attribute of the candidate chunk.

[0262] Since the content type of the chunk is independent of the numerical value, embodiments of this disclosure typically establish a mapping table between the content type of the chunk, the candidate chunk attributes, and the first sub-matching degree. The first sub-matching degree is obtained by searching the mapping table based on the content type of the chunk and the candidate chunk attributes. Alternatively, embodiments of this disclosure can also establish a first sub-matching degree prediction model. By inputting the content type of the chunk and the candidate chunk attributes into the first sub-matching degree prediction model, the first sub-matching degree can be obtained.

[0263] In step 1530, the second sub-matching degree between the chunk content size and the candidate chunk attributes is determined.

[0264] The second sub-match degree is the second sub-match degree between the chunk content size and the candidate chunk attributes. There is a certain correlation between the value of the chunk content size and the candidate chunk attributes. For example, for text-based chunk content, if the chunk content size is large, that is, if the chunk content contains a lot of text, and if its corresponding font size is large, then a line may only have two or three characters, resulting in a chunk content containing four or five hundred characters being displayed as hundreds of lines on the page. Therefore, when the chunk content size is large, its corresponding font size, character spacing, etc., should not be too large.

[0265] The first sub-match degree can be determined by querying the mapping table between the chunk content size, candidate chunk attributes, and the second sub-match degree. Alternatively, the chunk content size and candidate chunk attributes can be input into the second sub-match degree prediction model so that the model outputs the second sub-match degree.

[0266] In step 1540, the first matching degree is determined based on the first sub-matching degree and the second sub-matching degree.

[0267] The first matching degree is determined based on the first sub-match degree and the second sub-match degree. The first matching degree can be the average of the first and second sub-match degrees; for example, if the first sub-match degree is 0.6 and the second sub-match degree is 0.4, then the first matching degree is 0.5. The first matching degree can also be a weighted sum of the first and second sub-match degrees. If the first sub-match degree is 0.6, the second sub-match degree is 0.4, and the weight of the first sub-match degree is 0.7 and the weight of the second sub-match degree is 0.3, then the first matching degree is 0.54.

[0268] Reference Figure 14 The first degree of matching between the content chunk and the candidate chunk attributes is determined by the content chunk type and the content chunk size. Specifically, the first sub-matching degree between the content chunk type and the candidate chunk attributes is first determined, and then the second sub-matching degree between the content chunk size and the candidate chunk attributes is determined. The first degree of matching can be determined by the first and second sub-matching degrees.

[0269] The embodiments of steps 1510 to 1540 above determine the first matching degree between the segmented content and the candidate segmented attributes from two aspects: the segmented content type and the segmented content size. This makes the obtained first matching degree more accurate, thereby improving the accuracy of the segmented attribute list and improving the reading efficiency of the text.

[0270] The above is a general description of steps 1510 to 1540. The specific implementation process of step 1510 will be described in detail below.

[0271] In step 1510, the content type and size of the chunked content are obtained.

[0272] In one embodiment, reference is made to Figure 16 Step 1510 includes:

[0273] Step 1610: Input each element in the segmented content into the semantic coherence prediction model to obtain the semantic coherence between adjacent elements;

[0274] Step 1620: Based on semantic coherence, divide the block content into sub-blocks;

[0275] Step 1630: Determine the sub-block type and sub-block size of each sub-block;

[0276] Step 1640: For each sub-block type, determine the first sum of the sub-block sizes corresponding to the sub-block type;

[0277] Step 1650: Determine the content type of the sub-block based on the first sum corresponding to each sub-block type;

[0278] Step 1660: Obtain the size of the chunk content.

[0279] Steps 1610 to 1660 are described in detail below.

[0280] In step 1610, each element in the segmented content is input into the semantic coherence prediction model to obtain the semantic coherence between adjacent elements.

[0281] Elements refer to the data in a chunk of content. They can be words, phrases, or sentences in text-type chunks, an image in image-type chunks, or a table in table-type chunks.

[0282] The semantic cohesion prediction model can predict the semantic cohesion between two adjacent elements. Semantic cohesion reflects the correlation between two adjacent elements. The higher the semantic cohesion, the higher the correlation between the two adjacent elements.

[0283] Generally, the semantic coherence between two adjacent elements belonging to two different types is much lower than that between two adjacent elements of the same type. For example, if two adjacent elements are both text, the semantic coherence between them might be 60%, while if they belong to two different types, the semantic coherence between them might only be 5%.

[0284] In step 1620, the chunked content is divided into sub-chunks based on semantic coherence.

[0285] Since the semantic coherence between two adjacent elements of the same type is much greater than that between two adjacent elements of different types, this embodiment of the present disclosure can arrange the elements in descending order of semantic coherence and calculate the difference in semantic coherence between two adjacent elements. If the difference in semantic coherence is greater than a preset difference, the larger of the two adjacent elements and the elements located between them can be taken as a sub-block, and the smaller of the two adjacent elements and the elements located after them can be taken as another sub-block.

[0286] Suppose that content block A includes five elements: element 1, element 2, element 3, element 4, and element 5. The semantic coherence of the five elements is 86, 78, 42, 41, and 36, respectively. It is clear that the difference in semantic coherence between element 2 and element 3 is too large. Therefore, element 1 and element 2 can be used as one sub-block, and element 3, 4, and 5 can be used as another sub-block.

[0287] In step 1630, the sub-block type and sub-block size of each sub-block are determined.

[0288] The sub-block type refers to the data type of each element within the sub-block. The sub-block size is the data size of the sub-block, which can also be considered as the number of elements within the sub-block. Assuming sub-block A includes element 1 and element 2, if element 1 and element 2 are text data, then the sub-block type of sub-block A is text, and the sub-block size of sub-block A is the sum of the values ​​of element 1 and element 2. For example, if element 1 is 1 byte and element 2 is 2 bytes, then the sub-block size of sub-block A is 3 bytes.

[0289] In step 1640, for each sub-block type, the first sum of the sub-block sizes corresponding to the sub-block type is determined.

[0290] For a single chunk, it may be divided into multiple sub-chunks. Therefore, it's necessary to determine the first sum of the sub-chunk sizes corresponding to each sub-chunk type. Assume the chunk is divided into sub-chunk 1, sub-chunk 2, and sub-chunk 3, where sub-chunk 1 and sub-chunk 3 are of text type, sub-chunk 2 is of table type, and sub-chunk 1 is 30 bytes, sub-chunk 3 is 10 bytes, and sub-chunk 2 is 15 bytes. Then, the first sum corresponding to the text type is 40 bytes, and the first sum corresponding to the table type is 15 bytes.

[0291] In step 1650, the content type of the sub-block is determined based on the first sum corresponding to each sub-block type.

[0292] After determining the first sum corresponding to each sub-block type, the first sums of each sub-block type can be compared, and the sub-block type with the largest first sum can be taken as the content type of the block. For example, in block content 1, the first sum corresponding to the text type is 40 bytes, and the first sum corresponding to the table type is 15 bytes, so the content type of the block is determined to be text.

[0293] It should be noted that when the first sums of multiple sub-block types are equal, any one of the sub-block types can be used as the content type of the block, or the content type of the block can be determined based on the type of the target text to which the current block belongs. For example, if the first sums of the text type and table type in block content 1 are equal, and the target text is of type text, then the content type of block content 1 is text.

[0294] Reference Figure 5C If the images shown on this page and the text below them are located in the same block, then... Figure 5C The page shown indicates that the first element of the sub-block corresponding to the image is significantly larger than the text. Therefore, the content type of this sub-block can be determined to be an image. Similarly, Figure 5D The content type of the block containing the table and the text below it is a table.

[0295] In step 1660, the size of the chunk content is obtained.

[0296] After determining the content type of the content segment, the size of the content segment is obtained to calculate the first and second sub-matching degrees of the content segment, thereby determining the first matching degree between the content segment and the candidate content segment attributes.

[0297] Reference Figure 17 In this embodiment, the elements of the segmented content are input into a semantic connectivity prediction model to obtain the semantic connectivity between adjacent elements. Based on the semantic connectivity between adjacent elements, the segmented content is divided into multiple sub-blocks, and the sub-block type and sub-block size of each sub-block are determined. Then, based on the first sum of the sub-block sizes corresponding to each type, the segmented content type corresponding to the segmented content is determined.

[0298] The embodiments of steps 1610 to 1660 described above divide the block content into sub-blocks based on the semantic coherence between adjacent elements, and determine the sub-block type and sub-block size of each sub-block. Based on the first sum of the sub-block sizes corresponding to each sub-block type, the block content type is determined. This method is applicable to situations where a single block includes multiple types of data, thus improving the applicability of the book content display method.

[0299] In step 1340, the total matching degree of the candidate block attributes is determined based on the first matching degree and the second matching degree.

[0300] In one embodiment, reference is made to Figure 18 Step 1340 includes:

[0301] Step 1810: Based on the first historical display record of the target terminal on the first application page, obtain the first frequency of display blocks based on candidate block attributes;

[0302] Step 1820: Based on the second historical display record on the target terminal, obtain the second frequency of display blocks based on candidate block attributes;

[0303] Step 1830: Determine the third matching degree based on the first and second frequencies;

[0304] Step 1840: Determine the total matching degree of the candidate block attributes based on the first matching degree, the second matching degree, and the third matching degree.

[0305] Steps 1810 to 1840 are described in detail below.

[0306] In step 1810, based on the first historical display record of the target terminal on the first application page, the first frequency of the display block based on the candidate block attribute is obtained.

[0307] The first historical display record is the historical display record of the target terminal on the first application. Assuming the target terminal is mobile phone A and the first application is an online document application, then the first historical display record includes the historical display record of the online document application on mobile phone A. This first historical display record includes not only the display record of the document reading function page, but also the display record of the original functions of the online document application.

[0308] The first frequency refers to the frequency with which a block is displayed in the first history record using the candidate block attribute, and this block can be any block. For example, if the candidate block attribute is "12-point font," then the first frequency is the frequency with which "12-point font" is displayed in the first history record. The higher the first frequency, the more frequently the first history display records display the block using this candidate block attribute, and the higher the frequency with which the object selects this candidate block attribute for display in the first application. This indicates a higher compatibility between the candidate block attribute and the first application on the target terminal.

[0309] In step 1820, based on the second historical display record on the target terminal, the second frequency of the display block based on the candidate block attribute is obtained.

[0310] The second historical record is the display history on the target terminal. This second historical record includes the display history of all applications on the target terminal, including the first application. Assuming the target terminal is mobile phone A, and all applications on the target terminal include the online document application, application 1, and application 2, then the second historical record would be all the display history of the online document application, application 1, and application 2.

[0311] The second frequency refers to the frequency with which a block is displayed in the second history record using the candidate block attribute. For example, if the candidate block attribute is "12-point font," then the second frequency is the frequency with which "12-point font" is displayed in the second history record. The higher the second frequency, the more frequently the second history display records display blocks using that candidate block attribute. The higher the frequency with which the target terminal selects that candidate block attribute for display, the better the compatibility between that candidate block attribute and the target terminal.

[0312] In step 1830, a third matching degree is determined based on the first frequency and the second frequency.

[0313] The third matching degree is determined by the historical display records. Therefore, the target block attributes determined by the third matching degree are more compatible with the needs of the object.

[0314] The first matching degree is determined based on the first frequency and the second frequency. The third matching degree is determined by the frequency of the object selecting the candidate block attribute in the historical display records, which can then represent the probability that the object will select the candidate block attribute in the future.

[0315] The third matching degree can be the average of the first frequency and the second frequency, or it can be the weighted sum of the first frequency and the second frequency. Alternatively, in this embodiment of the disclosure, the first frequency and the second frequency are used as the output of the third matching degree prediction model, and the output of the third matching degree prediction model is used as the third matching degree.

[0316] Assuming the first frequency is 0.6 and the second frequency is 0.2, the third matching degree is 0.4 when the first matching degree is the average of the first and second frequencies. When the first matching degree is the weighted sum of the first and second frequencies, assuming the weight of the first frequency is 0.2 and the weight of the second frequency is 0.8, the third matching degree is 0.28.

[0317] In step 1840, the total matching degree of the candidate block attributes is determined based on the first matching degree, the second matching degree, and the third matching degree.

[0318] After determining the first, second, and third matching degrees, the total matching degree of the candidate chunk attributes is calculated based on these degrees. Furthermore, the first matching degree is determined based on the candidate chunk attributes and chunk content, the second matching degree is determined based on the candidate chunk attributes and configuration information, and the third matching degree is determined based on historical display records. Therefore, the total matching degree of the candidate chunk attributes is determined from the chunk content, configuration information, and historical display records. Since the chunk content corresponds to the target book, the configuration information corresponds to the target terminal, and the historical display records correspond to the reading object, the target chunk attributes determined based on the total matching degree ultimately meet the needs of the target book, the target terminal, and the reading object.

[0319] The total matching degree of the candidate block attributes can be the average of the first matching degree, the second matching degree, and the third matching degree, or it can be the weighted sum of the first matching degree, the second matching degree, and the third matching degree. If the total matching degree is the weighted sum of the first matching degree, the second matching degree, and the third matching degree, the sum of the weights corresponding to the first matching degree, the second matching degree, and the third matching degree is 1. For example, if the first matching degree is 0.6, the second matching degree is 0.8, and the third matching degree is 0.4, and the weight of the first matching degree is 0.4, the weight of the second matching degree is 0.3, and the weight of the third matching degree is 0.3, the final determined total matching degree of the candidate block attributes is 0.6.

[0320] Reference Figure 14 The first historical display record is the historical display record of the first application on the target terminal, and the second historical display record is the historical display record of all applications on the target terminal. Based on the first historical display record, the first frequency of displaying blocks based on candidate block attributes is determined. Based on the second historical display record on the target terminal, the second frequency of displaying blocks based on candidate block attributes is obtained. Then, based on the first and second frequencies, the third matching degree between candidate block attributes and historical display records is calculated. Finally, based on the first, second, and third matching degrees, the total matching degree of candidate block attributes is determined.

[0321] The embodiments of steps 1810 to 1840 above are provided with a third matching degree. The third matching degree is determined based on the first historical display record of the target terminal on the first application page and the second historical display record on the target terminal. Therefore, the final determined third matching degree and the total matching degree can meet the requirements of the historical display record. The target block attributes determined based on the total matching degree can be more accurate, thereby improving the display effect of the target book and improving reading efficiency.

[0322] The above is a general description of steps 1810 to 1840. The specific implementation process of steps 1810 and 1820 will be described in detail below.

[0323] In step 1810, based on the first historical display record of the target terminal on the first application page, the first frequency of the display block based on the candidate block attribute is obtained.

[0324] In one embodiment, reference is made to Figure 19 Step 1810 includes:

[0325] Step 1910: Obtain the first number of times the block is displayed in the first historical display record;

[0326] Step 1920: Obtain the second number of times the blocks are displayed based on the candidate block attributes in the first historical display record;

[0327] Step 1930: Determine the first frequency based on the first number and the second number.

[0328] Steps 1910 to 1930 are described in detail below.

[0329] In step 1910, the first number of times the block is displayed in the first history display record is obtained.

[0330] The first count is the number of times all blocks are displayed in the first history record. These blocks can be of any type and size.

[0331] In step 1920, the second number of times the blocks were displayed based on the candidate block attributes in the first historical display record is obtained.

[0332] The second count is the second time that the blocks are displayed using the candidate block attribute in the first history display record. That is, the blocks corresponding to the second count are displayed on the first application page using the candidate block attribute.

[0333] It should be noted that in the first historical display record, the same block may correspond to multiple block attributes. Therefore, in this embodiment of the disclosure, the block attribute closest to the current time can be used as the block attribute of the block, or the duration of the block displayed with each block attribute can be calculated, and the block attribute with the longest duration can be used as the block attribute of the block.

[0334] In step 1930, the first frequency is determined based on the first number and the second number.

[0335] Since the first frequency is the frequency of the blocks displayed in the first historical record through the candidate block attribute, and the first frequency is determined based on the first count and the second count, the ratio of the second count to the first count can be used to determine the first frequency. For example, if the first count is 1000 and the second count is 400, then the first frequency is 0.4.

[0336] It should be noted that the time span of the first historical display record can be set as needed. The longer the time span of the first historical display record, the more data needs to be processed, and the more accurate the first frequency is. Conversely, the shorter the time span of the first historical display record, the less data needs to be processed, and the faster the first frequency is calculated.

[0337] The embodiments of steps 1910 to 1930 above determine the first frequency based on the first number of times the block is displayed in the first historical display record and the second number of times the block is displayed in the first historical display record based on the candidate block attribute, so that the first frequency matches the first historical display record better, improves the accuracy of the first frequency, and thus improves the efficiency of the book display.

[0338] In step 1820, based on the second historical display record on the target terminal, the second frequency of the display block based on the candidate block attribute is obtained.

[0339] In one embodiment, reference is made to Figure 20 Step 1820 includes:

[0340] Step 2010: Obtain the third number of blocks displayed in the second historical display record;

[0341] Step 2020: Obtain the fourth number of times the candidate block was displayed based on the candidate block attribute in the second historical display record;

[0342] Step 2030: Determine the second frequency based on the third and fourth frequencies.

[0343] Steps 2010 to 2030 are described in detail below.

[0344] In step 2010, the third number of the displayed blocks in the second history display record is obtained.

[0345] The third count is the number of times all blocks are displayed in the first history record, which can also be understood as the total number of blocks displayed in the first history record.

[0346] In step 2020, the fourth number of times the candidate block was displayed based on the candidate block attribute is obtained from the second historical display record.

[0347] The fourth count is the number of times the blocks are displayed using the candidate block attribute in the second historical display record. That is, each block corresponding to the fourth count is displayed on the target terminal using the candidate block attribute.

[0348] It should be noted that in the second historical display record, the same block may correspond to multiple block attributes. Therefore, in this embodiment of the disclosure, the block attribute closest to the current time can be used as the block attribute of the block, or the duration of the block displayed with each block attribute can be calculated, and the block attribute with the longest duration can be used as the block attribute of the block.

[0349] In step 2030, the second frequency is determined based on the third and fourth frequencies.

[0350] The second frequency is determined based on the third and fourth counts; specifically, it is the ratio of the fourth count to the third count. For example, if the third count is 800 and the second count is 200, then the first frequency is 0.25.

[0351] It should be noted that the time span of the second historical display record can be set as needed. The longer the time span of the second historical display record, the more data needs to be processed, and the more accurate the second frequency is. Conversely, the shorter the time span of the second historical display record, the less data needs to be processed, and the faster the second frequency is calculated.

[0352] The embodiments of steps 2010 to 2030 above determine the second frequency based on the third number of times the block is displayed in the second historical display record and the fourth number of times the block is displayed based on the candidate block attribute in the second historical display record. This makes the second frequency more consistent with the second historical display record, improves the accuracy of the second frequency, and thus improves the efficiency of the book display.

[0353] Detailed description of step 440

[0354] In step 440, based on the list of segmentation attributes, the segmentation content of the filled segments is displayed, thereby displaying the target text.

[0355] In one embodiment, reference is made to Figure 21 Step 440 includes:

[0356] Step 2110: Display the block attribute list;

[0357] Step 2120: In response to the adjustment command for the displayed block attribute list, generate the adjusted block attribute list;

[0358] Step 2130: Based on the adjusted block attribute list, display the block content of the filled blocks, thereby displaying the target text.

[0359] Steps 2110 to 2130 are described in detail below.

[0360] In step 2110, the block attribute list is displayed.

[0361] The list of segmented attributes can be displayed on the reading function page of the first application, so that the object can adjust the list of segmented attributes as needed.

[0362] Reference Figure 5B to 5D The page showing the reading function displays controls on the right side for "Character," "Line," "Paragraph," "Background," "Image," and "Table," which are simply controls corresponding to the block attribute list. In response to a trigger on the "Character" control, the following is displayed: Figure 22 The interface shown allows adjustment of Chinese and English fonts, as well as font size. Additionally, the "Line" control adjusts line spacing, the "Paragraph" control adjusts paragraph spacing and first-line indent, and the "Background" control adjusts the background color and brightness of the reading page. The "Image" control corresponds to the image type's segmentation attributes, and the "Table" control corresponds to the table type's segmentation attributes.

[0363] In step 2120, in response to the adjustment instruction for the displayed block attribute list, an adjusted block attribute list is generated.

[0364] The object can adjust the segmented attribute list displayed on the first application page. The target terminal can generate adjustment instructions based on the object's adjustments, and then respond to the adjustment instructions on the displayed segmented attribute list to generate an adjusted segmented attribute list. For example, if the adjustment instruction is to change the font size from 8 to 12, then the attribute value corresponding to the attribute name in the adjusted segmented attribute list will be 12.

[0365] It should be noted that the adjustment command mainly targets the attribute value and does not adjust the attribute name.

[0366] In step 2130, based on the adjusted block attribute list of the blocks, the block content of the filled blocks is displayed, thereby displaying the target text.

[0367] Based on the adjusted block attribute list, the filled blocks are re-rendered so that the block content implemented in the first application page corresponds to the adjusted block attribute list, thereby displaying the target text.

[0368] Reference Figure 6 In terms of optimizing the reading experience, this embodiment displays segmented content on the first application page based on a segmented attribute list or an adjusted segmented attribute list, thereby achieving adaptive settings for the target terminal and improving the reading experience.

[0369] The embodiments of steps 2110 to 2130 above display the block attribute list so that the object can adjust the attribute values ​​corresponding to each attribute name in the block attribute list as needed, further improving the reading experience.

[0370] Original content storage of the target reader

[0371] The original content of the target text is typically stored on a server. However, to improve processing efficiency, the original content can also be stored locally or on other nodes. In this case, in one embodiment, refer to... Figure 23 After step 440, the method for displaying the content of the book also includes:

[0372] Step 2310: Obtain the first in-app access frequency of the target book;

[0373] Step 2320: If the access frequency within the first application meets the first condition, record the original content of the target book to local storage;

[0374] Correspondingly, step 420 includes:

[0375] Step 2330: If the original content is stored in local storage, retrieve the original content from local storage.

[0376] Steps 2310 to 2330 are described in detail below.

[0377] In step 2310, the first in-application access frequency of the target book is obtained.

[0378] The first in-app access frequency is the frequency with which an object reads or accesses the target book within the first application. The first in-app access frequency is determined by first obtaining the first number of accesses to all books within the first application on the target terminal, and then obtaining the second number of accesses to the target book within the first application on the target terminal. The ratio of the second access count to the first access count can be used as the first in-app access frequency of the target book.

[0379] In step 2320, if the access frequency within the first application meets the first condition, the original content of the target book is recorded to local storage.

[0380] The first condition corresponds to the access frequency within the first application. This first condition is used to determine whether to record the original content of the target document to local storage. If the access frequency within the first application meets the first condition, the original content of the target document is recorded to local storage.

[0381] The first condition can be set according to needs. For example, the first condition can be set to a preset frequency; if the access frequency within the first application is not less than the preset frequency, the original content of the target book will be recorded in local storage. Alternatively, the access frequency within the first application of each book can be obtained, and the multiple books can be sorted in descending order of access frequency within the first application. In this case, the first condition can be set to a preset position; if the position of the target book among the sorted books is within or between preset positions, the original content of the target book will be recorded in local storage.

[0382] In step 2330, if the original content is stored in local storage, the original content is retrieved from local storage.

[0383] During the process of retrieving the original content, if the original content is stored in local storage, the original content is retrieved from local storage.

[0384] Reference Figure 24 The original content of the target text is stored on the server. If the access frequency within the first application corresponding to the target text meets the first condition, the original content of the target text can be placed in the local storage of the target terminal. Then, when the target text is selected on the page of the first application, the original content can be directly retrieved from the local storage, processed, and displayed on the page of the first application.

[0385] In the embodiments of steps 2310 to 2330 above, if the access frequency of the target book within the first application meets the first condition, the original content of the target book is recorded in local storage. If the original content is stored in local storage, it can be directly retrieved from local storage, reducing the retrieval time of the original content and thus improving the display efficiency of the book content.

[0386] In one embodiment, reference is made to Figure 25 Step 420 also includes:

[0387] Step 2510: If the original content is not stored in the local storage, determine the storage node level based on the access frequency within the first application;

[0388] Step 2520: Send the original content retrieval request to the storage node at the determined storage node level;

[0389] Step 2530: Receive the original content sent by the storage node in response to the original content retrieval request.

[0390] Steps 2510 to 2530 are described in detail below.

[0391] In step 2510, if the original content is not stored in the local storage, the storage node level is determined based on the access frequency within the first application.

[0392] The original content of multiple books can be stored through multi-level storage nodes, and the storage node level refers to the level of the storage node where the original content of the target book is located.

[0393] The original content of each reader is stored across multiple storage nodes based on its access frequency within the first application. A higher access frequency within the first application indicates more frequent access to the reader on the first application page. Therefore, to reduce the time required to retrieve the original content of a reader, the original content of readers with higher access frequency within the first application is stored on storage nodes closer to the target terminal. For example, Figure 26 The closer the storage node 1 is to the target terminal, the shorter the time it takes for the original content of the book to be transmitted from the storage node to the target terminal. Therefore, the original content of the book with the highest access frequency in the first application will be stored in storage node 1.

[0394] If the access frequency within the first application of the target text does not meet the first condition, the original content of the target text will not be recorded in local storage. Therefore, it is necessary to determine the storage node level based on the access frequency within the first application of the target text.

[0395] The original content of the target book is used to determine the storage node level across multiple storage nodes based on the frequency of access within the first application. Specifically, the access frequencies within the first application of multiple books can be sorted, and the original content of the multiple books can be stored evenly across multiple storage nodes. For example, assuming there are 20 books, the access frequencies within the first application of each of the 20 books are obtained, and the books are sorted in descending order of access frequency. Figure 26 The original content of the books ranked 1 to 5 is placed in storage node 1, the original content of the books ranked 6 to 110 is placed in storage node 2, the original content of the books ranked 11 to 15 is placed in storage node 3, and the original content of the books ranked 16 to 20 is placed in storage node 4. Alternatively, the in-application access frequency that does not meet the first condition can be divided into multiple frequency ranges, and the storage node level can be determined among the multiple storage nodes based on the frequency range of the target book's in-application access frequency. For example, if the first condition is that the in-application access frequency is not less than 0.4, then for... Figure 26The storage nodes in the storage are as follows: storage node 1 has an in-application access frequency of 0.4 to 0.5, storage node 2 has an in-application access frequency of 0.2 to 0.3, storage node 3 has an in-application access frequency of 0.1 to 0.2, and storage node 4 has an in-application access frequency of 0 to 0.1. If the in-application access frequency of the target book is 0.15, then the storage node level corresponding to the target book is the storage node level where storage node 3 is located.

[0396] In step 2520, a request to retrieve the original content is sent to the storage node at the determined storage node level.

[0397] The original content retrieval request corresponds to the target book and includes the name or ID of the target book. After determining the storage node level, the original content retrieval request is sent to the storage node at the determined storage node level.

[0398] Reference Figure 26 Assuming that the storage node level corresponding to storage node 3 is 3, after determining the storage node level 3, a request to obtain the original content is sent to storage node 3 in order to obtain the original content of the target book.

[0399] In step 2530, the storage node sends the original content in response to the original content retrieval request.

[0400] After receiving a request to retrieve the original content, the storage node parses the request to obtain the name or ID of the target book, and sends the original content of the target book to the storage node based on the parsing result.

[0401] Reference Figure 26 In this embodiment of the disclosure, based on the access frequency within the first application, the storage node level corresponding to the original content of the target book is determined to be 3. After determining the storage node level 3, an original content retrieval request is sent to storage node 3. Storage node 3 parses the original content request and sends the original content of the target book to the target terminal according to the parsing result.

[0402] The embodiments of steps 2510 to 2530 above are provided with multiple storage nodes located at different storage node levels. The target book is stored based on the first in-application access frequency of the target book, which can reduce the local storage pressure of the target terminal while improving the acquisition speed of the original content.

[0403] Template processing tool

[0404] In one embodiment, reference is made to Figure 27 Before step 410, the method for displaying the content of the text also includes:

[0405] Step 2710: Obtain the target template processing tool, which is used to process the target document template;

[0406] Correspondingly, step 420 includes:

[0407] Step 2720: Use the target template processing tool to obtain the original content of the target text and extract the content of each block from the original content to populate the target text document template.

[0408] Steps 2710 and 2720 are described in detail below.

[0409] In step 2710, a target template processing tool is obtained, which is used to process the target document template.

[0410] A general template management tool is a tool used to process target text document templates.

[0411] In step 2720, the target template processing tool is used to obtain the original content of the target text and extract the content of each block from the original content to populate the target text document template.

[0412] Since the target template processing tool is mainly used for processing target text document templates, it can be used to populate target text document templates. Specifically, the target template processing tool is used to obtain the original content of the target text and extract the content of each block in the original content to populate the target text document template.

[0413] Reference Figure 6 In terms of target text parsing and extraction, embodiments of this disclosure use a target template processing tool to obtain the original content of the target text and fill in each block in the target text document template with the original content.

[0414] The embodiments of steps 2710 and 2720 described above include a target template processing tool. This tool is used to process the target text document template, enabling it to obtain the original content of the target text and fill in the various blocks within the target text document template with that original content. The target template processing tool allows for precise processing of the original content, thereby reducing the development burden.

[0415] Determining the order of multiple candidate books in the candidate book list

[0416] In step 1110, a list of candidate books is displayed, and the list includes multiple candidate books. In this case, in one embodiment, reference is made to... Figure 28 The order of multiple candidate books in the candidate book list is determined as follows:

[0417] Step 2810: Obtain the first in-app access frequency of the candidate book;

[0418] Step 2820: Obtain the tag matching degree between the first tag of the candidate book and the second tag of the target object browsing the first application page;

[0419] Step 2830: Determine the order of multiple candidate books based on the frequency of access within the first application and the tag matching degree.

[0420] Steps 2810 to 2830 are described in detail below.

[0421] In step 2810, the first in-application access frequency of the candidate book is obtained.

[0422] Candidate books are those displayed in the candidate book list. The first in-app access frequency of a candidate book is the frequency with which an object reads or accesses that candidate book within the first application. The first in-app access frequency of a candidate book is the ratio of the number of times the candidate book is accessed within the first application to the total number of times all candidate books are accessed.

[0423] In step 2820, the tag matching degree between the first tag of the candidate book and the second tag of the target object browsing the first application page is obtained.

[0424] The first tag is the tag corresponding to the candidate book. Tag values ​​can be "science fiction", "classical literature", "novel", etc.

[0425] The target object refers to the user of the target terminal, and is also the object browsed on the first application page. The second tag corresponds to the target object; it is a collection of tags for the books frequently accessed by the target object.

[0426] Tag match score is the degree of similarity between the first tag and the second tag. Tag match score can be calculated as the ratio of the number of identical tags between the first and second tags to the number of tags in the second tag. For example, if the first tag includes tags A, B, and C, and the second tag includes tags B, D, E, and F, then the tag match score is 0.25.

[0427] In step 2830, the order of multiple candidate books is determined based on the frequency of access within the first application and the tag matching degree.

[0428] The order of candidate books in the candidate book list is determined based on the frequency of access to the first application and the degree of tag matching.

[0429] The order of candidate books can be determined based on a weighted sum of in-app access frequency and tag matching score. First, the weighted sum of in-app access frequency and tag matching score for each candidate book is calculated. Then, the candidate books in the candidate book list can be sorted from largest to smallest according to the weighted sum. Alternatively, a mapping table between in-app access frequency, tag matching score, and candidate book order can be established, and the order of candidate books in the candidate book list can be obtained by searching this table based on the in-app access frequency and tag matching score.

[0430] The embodiments of steps 2810 to 2830 above sort multiple candidate books based on the first in-application access frequency and tag matching degree of the candidate books, thereby making the sorting results more in line with the needs of the target audience and improving the reading experience. In addition, candidate books that meet the reading needs of the target audience are placed at the top of the candidate book list, which can improve the reading efficiency.

[0431] In one embodiment, reference is made to Figure 6 The embodiments disclosed herein can display the reading status of the target text on the first application page, such as reading progress, reading chapters, etc., thereby improving the reading experience.

[0432] In one embodiment, the target terminal of this disclosure can render the blocks filled with a general document template through multiple interfaces, thereby improving the security of reading the document.

[0433] Implementation details of the text content display method of this disclosure embodiment

[0434] The following reference Figure 29 This document details the implementation of the text content display method according to embodiments of the present disclosure.

[0435] In step 2910, on the target terminal, the object can trigger a reading function on the interface of a first application that does not have a general reading tool.

[0436] In step 2920, in response to the triggering of the reading function on the interface of a first application without a general reading tool, a target reading document template is obtained from a second application with a general reading tool. The target reading document template includes multiple blocks.

[0437] In step 2921, a list of candidate books is displayed, which includes multiple candidate books.

[0438] In step 2922, in response to the instruction to select the target text from among a plurality of candidate texts, the original content of the target text is obtained.

[0439] Specifically, if the frequency of in-application access to the target text meets the first condition, the original content of the target text is recorded in local storage. If the original content is stored in local storage, it can be retrieved from local storage. If the original content is not stored in local storage, the storage node level is determined based on the frequency of in-application access, and an original content retrieval request is sent to the storage node at the determined storage node level. The original content is then received from the storage node in response to the original content retrieval request.

[0440] In step 2923, the content of each segment is extracted from the original content to populate the target text document template.

[0441] In one embodiment, extracting chunk content from the original content to populate the target text document template is performed according to a first cycle. In this case, during the current first cycle, the chunk content of the current chunk is populated into the current chunk. Based on the first chunk content type and size of the current chunk, the second chunk content type and size of the next chunk, and the first retrieval duration of the current chunk, the second retrieval duration is predicted for the next chunk. The chunk content of the next chunk is retrieved at the point in time before the end of the current first cycle, at the point of the second retrieval duration.

[0442] In step 2931, the chunked content is obtained from the filled target text document template.

[0443] In step 2932, each element in the segmented content is input into the semantic coherence prediction model to obtain the semantic coherence between adjacent elements.

[0444] In step 2933, the chunked content is divided into sub-chunks based on semantic coherence.

[0445] It should be noted that each character block includes its corresponding character block type and character block size.

[0446] In step 2934, for each sub-block type, the first sum of the sub-block sizes corresponding to the sub-block type is determined, and the block content type is determined based on the first sum corresponding to each sub-block type.

[0447] In step 2941, a candidate block attribute set is obtained, which includes multiple candidate block attributes.

[0448] In step 2942, the first sub-match degree between the chunk content type and the candidate chunk attribute is determined.

[0449] In step 2943, the size of the chunk content is obtained.

[0450] In step 2944, the second sub-matching degree between the chunk content size and the candidate chunk attributes is determined.

[0451] In step 2945, the first matching degree is determined based on the first sub-matching degree and the second sub-matching degree.

[0452] In step 2946, the configuration information of the target terminal is obtained.

[0453] In step 2947, a second matching degree between each candidate block attribute and the configuration information is determined.

[0454] In step 2948, a third matching degree is determined based on the first historical display record on the first application page of the target terminal and the second historical display record on the target terminal.

[0455] Specifically, the system retrieves the first number of times a block is displayed in the first historical display record, and the second number of times a block is displayed based on candidate block attributes in the first historical display record. Then, based on the first and second counts, a first frequency is determined. Finally, based on the first and second frequencies, a third matching degree is determined.

[0456] In step 2949, the total matching degree of the candidate block attributes is determined based on the first matching degree, the second matching degree, and the third matching degree.

[0457] In step 2950, ​​based on the total matching degree, the target segment attribute is determined from multiple candidate segment attributes and added to the segment attribute list.

[0458] In step 2960, based on the block attribute list, the block content of the filled block is displayed, and the block attribute list is also displayed.

[0459] In step 2970, in response to the adjustment instruction for the displayed block attribute list, an adjusted block attribute list is generated.

[0460] In step 2980, based on the adjusted block attribute list of the blocks, the block content of the filled blocks is displayed, thereby displaying the target text.

[0461] It is understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this embodiment, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the above flowcharts may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.

[0462] It should be noted that in various specific embodiments of this application, when processing is required based on data related to the characteristics of the target object, such as target object attribute information or a set of attribute information, the permission or consent of the target object will be obtained first. Furthermore, the collection, use, and processing of this data will comply with relevant laws, regulations, and standards. In addition, when embodiments of this application require obtaining target object attribute information, separate permission or consent from the target object will be obtained through pop-ups or redirection to a confirmation page. Only after obtaining the target object's separate permission or consent will the necessary target object-related data for the normal operation of the embodiments of this application be obtained.

[0463] Description of apparatus and devices according to embodiments of this disclosure

[0464] Figure 30 This is a schematic diagram of the structure of a text content display device provided in an embodiment of the present disclosure. The text content display device 3000 includes:

[0465] The first acquisition unit 3010 is used to acquire a target text document template in a second application with a general reading tool in response to the triggering of a text reading function on the interface of a first application without a general reading tool. The target text document template includes multiple blocks.

[0466] The second acquisition unit 3020 is used to acquire the original content of the target text and extract the content of each segment from the original content to fill the target text document template.

[0467] The first determining unit 3030 is used to determine the block attribute list of the block based on the block content and the configuration information of the target terminal.

[0468] The first display unit 3040 is used to display the content of the filled blocks based on the block attribute list, thereby displaying the target text.

[0469] Optionally, the first determining unit 3030 is specifically used for:

[0470] Obtain the candidate block attribute set, which includes multiple candidate block attributes;

[0471] Determine the first degree of matching between each candidate chunk attribute and the chunk content;

[0472] Determine the second degree of matching between each candidate block attribute and the configuration information;

[0473] Based on the first and second matching degrees, determine the total matching degree of the candidate block attributes;

[0474] Based on the overall matching degree, the target segment attribute is determined from multiple candidate segment attributes and added to the segment attribute list.

[0475] Optionally, the first determining unit 3030 is further used for:

[0476] Get the content type and size of the content chunk;

[0477] Determine the first sub-match degree between the content type of the chunk and the attribute of the candidate chunk;

[0478] Determine the second sub-matching degree between the size of the chunk content and the candidate chunk attributes;

[0479] The first matching degree is determined based on the first sub-matching degree and the second sub-matching degree.

[0480] Optionally, the first determining unit 3030 is further used for:

[0481] Input each element in the segmented content into the semantic coherence prediction model to obtain the semantic coherence between adjacent elements;

[0482] Based on semantic coherence, the content of the block is divided into sub-blocks;

[0483] Determine the sub-block type and sub-block size for each sub-block;

[0484] For each sub-block type, determine the first sum of the sub-block sizes corresponding to that sub-block type;

[0485] Based on the first sum corresponding to each sub-block type, determine the block content type;

[0486] Get the size of the content in the chunk.

[0487] Optionally, the first determining unit 3030 is further used for:

[0488] Based on the first historical display record of the target terminal on the first application page, obtain the first frequency of display blocks based on candidate block attributes;

[0489] Based on the second historical display record on the target terminal, obtain the second frequency of display blocks based on candidate block attributes;

[0490] Based on the first and second frequencies, determine the third matching degree;

[0491] The total matching degree of the candidate block attributes is determined based on the first matching degree, the second matching degree, and the third matching degree.

[0492] Optionally, the first determining unit 3030 is further used for:

[0493] Retrieve the first number of times a block is displayed in the first history display record;

[0494] Retrieve the second number of times blocks are displayed based on candidate block attributes in the first historical display record;

[0495] The first frequency is determined based on the first and second counts.

[0496] Optionally, the first determining unit 3030 is further used for:

[0497] Get the third number of blocks displayed in the second history display record;

[0498] Retrieve the fourth number of times a block is displayed based on the candidate block attribute in the second historical display record;

[0499] The second frequency is determined based on the third and fourth frequencies.

[0500] Optionally, the first display unit 3040 is specifically used for:

[0501] Displays a list of block attributes;

[0502] In response to an adjustment command for the displayed list of tile attributes, generate an adjusted list of tile attributes;

[0503] Based on the adjusted list of segmented attributes, the content of the segments after filling is displayed, thus showing the target text.

[0504] Optionally, extracting the segmented content from the original content to populate the target reading document template is performed according to the first cycle; the second acquisition unit 3020 is specifically used for:

[0505] In the first cycle, fill the current block with the content of the current block;

[0506] Based on the content type and size of the first block of the current block, the content type and size of the second block of the next block of the current block, and the first retrieval time of the current block, predict the second retrieval time of the next block;

[0507] At the second acquisition time point before the end of the current first cycle, acquire the content of the next segment.

[0508] Optionally, the second acquisition unit 3020 is further used for:

[0509] Based on the content type of the first block and the content type of the second block, determine the first adjustment coefficient;

[0510] The second adjustment coefficient is determined based on the size of the first block and the size of the second block.

[0511] The first acquisition duration is adjusted using the first adjustment coefficient and the second adjustment coefficient to obtain the second acquisition duration.

[0512] Optionally, the book content display device 3000 also includes:

[0513] The third acquisition unit is used to acquire the first in-application access frequency of the target book.

[0514] The recording unit is used to record the original content of the target book to local storage if the access frequency within the first application meets the first condition.

[0515] The second acquisition unit 3020 is also specifically used for: if the original content is stored in the local storage, to acquire the original content from the local storage.

[0516] Optionally, the second acquisition unit 3020 is further used for:

[0517] If the original content is not stored in local storage, the storage node level is determined based on the access frequency within the first application.

[0518] Send a request to retrieve the original content to the storage node at the specified storage node level;

[0519] Receive the original content sent by the storage node in response to the original content retrieval request.

[0520] Optionally, the book content display device 3000 also includes:

[0521] The fourth acquisition unit is used to acquire the target template processing tool, which is used to process the target text document template;

[0522] The second acquisition unit 3020 is also specifically used to: use the target template processing tool to acquire the original content of the target text, and extract the content of each block from the original content to fill the target text document template.

[0523] Optionally, the second acquisition unit 3020 is further used for:

[0524] Displays a list of candidate books, which includes multiple candidate books;

[0525] In response to a selection instruction for a target book among multiple candidate books, the original content of the target book is retrieved.

[0526] Optionally, the book content display device 3000 also includes:

[0527] The fifth acquisition unit is used to acquire the first in-application access frequency of the candidate book.

[0528] The sixth acquisition unit is used to acquire the tag matching degree between the first tag of the candidate book and the second tag of the target object browsing the first application page;

[0529] The second determining unit is used to determine the order of multiple candidate books based on the frequency of access within the first application and the tag matching degree.

[0530] Reference Figure 31 , Figure 31 To implement the structural block diagram of a portion of the terminal 110 for displaying the content of a text in this embodiment of the present disclosure, the terminal includes: a radio frequency (RF) circuit 3110, a memory 3115, an input unit 3130, a display unit 3140, a sensor 3150, an audio circuit 3160, a wireless fidelity (WiFi) module 3170, a processor 3180, and a power supply 3190, etc. Those skilled in the art will understand that... Figure 31 The terminal 110 structure shown does not constitute a limitation on a mobile phone or computer, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0531] The RF circuit 3110 can be used to receive and transmit signals during information transmission or calls. In particular, it receives downlink information from the base station and processes it with the processor 3180; in addition, it transmits uplink data to the base station.

[0532] The memory 3115 can be used to store software programs and modules. The processor 3180 executes various functional applications and data processing of the content terminal by running the software programs and modules stored in the memory 3115.

[0533] The input unit 3130 can be used to receive input numeric or character information, and to generate key signal inputs related to the settings and function control of the content terminal. Specifically, the input unit 3130 may include a touch panel 3131 and other input devices 3132.

[0534] The display unit 3140 can be used to display input or provided information, as well as various menus of the content terminal. The display unit 3140 may include a display panel 3141.

[0535] Audio circuitry 3160, speaker 3161, and microphone 3162 provide an audio interface.

[0536] In this embodiment, the processor 3180 included in the terminal 110 can execute the text content display method of the previous embodiment.

[0537] The terminal 110 in this disclosure includes, but is not limited to, mobile phones, computers, smart voice interaction devices, smart home appliances, vehicle terminals, and aircraft. This disclosure can be applied to various scenarios, including but not limited to online office work and data processing.

[0538] Figure 32 This is a partial structural block diagram of a server 140 for implementing the text content display method of this disclosure. The server 140 can vary significantly due to different configurations or performance, and may include one or more central processing units (CPUs) 3222 (e.g., one or more processors) and memory 3232, and one or more storage media 3230 (e.g., one or more mass storage devices) for storing application programs 3242 or data 3244. The memory 3232 and storage media 3230 may be temporary or persistent storage. The program stored in the storage media 3230 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server. Furthermore, the CPU 3222 may be configured to communicate with the storage media 3230 and execute the series of instruction operations in the storage media 3230 on the server.

[0539] Server 140 may also include one or more power supplies 3226, one or more wired or wireless network interfaces 3250, one or more input / output interfaces 3258, and / or one or more operating systems 3241, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0540] The central processing unit 3222 in server 140 can be used to execute the text content display method of the present disclosure embodiments.

[0541] This disclosure also provides a computer-readable storage medium for storing program code for executing the text content display methods of the foregoing embodiments.

[0542] This disclosure also provides a computer program product, which includes a computer program. A processor of a computer device reads and executes the computer program, causing the computer device to perform the above-described method for displaying the content of a text.

[0543] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0544] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in this disclosure and the foregoing drawings are used to distinguish similar terms and are not necessarily used to describe a particular order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this disclosure described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “including,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatuses.

[0545] It should be understood that in this disclosure, "at least one item" refers to one or more items, and "more than one item" refers to two or more items. "And / or" is used to describe the relationship between related content, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related content are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0546] It should be understood that in the description of the embodiments disclosed herein, "multiple" means two or more, "greater than", "less than", "exceeding" etc. are understood to exclude the number itself, and "above", "below", "within" etc. are understood to include the number itself.

[0547] In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.

[0548] 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.

[0549] Furthermore, 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. The integrated unit can be implemented in hardware or as a software functional unit.

[0550] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a 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 all or part 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 of 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.

[0551] It should also be understood that the various implementation methods provided in this disclosure can be combined arbitrarily to achieve different technical effects.

[0552] The above is a detailed description of the embodiments of this disclosure. However, this disclosure is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this disclosure. All such equivalent modifications or substitutions are included within the scope defined by the claims of this disclosure.

Claims

1. A method of displaying contents of a book, characterized by, Comprise: On the target terminal, in response to the trigger of the reading function on the interface of the first application without a general reading tool, obtain a target reading document template in a second application with a general reading tool, the target reading document template comprising a plurality of blocks; Obtain the original content of the target reading and extract the block content of each block from the original content to fill the target reading document template; Based on the block content of the block and the configuration information of the target terminal, determine the block attribute list of the block; Based on the block attribute list of the block, display the block content of the filled block, thereby displaying the target reading.

2. The contents-of-a-book display method according to claim 1, characterized by, The determination of the block attribute list of the block based on the block content of the block and the configuration information of the target terminal comprises: Obtain a candidate block attribute set comprising a plurality of candidate block attributes; Determine the first matching degree of each candidate block attribute with the block content; Determine the second matching degree of each candidate block attribute with the configuration information; Based on the first matching degree and the second matching degree, determine the total matching degree of the candidate block attribute; Based on the total matching degree, determine the target block attribute in the plurality of candidate block attributes and add it to the block attribute list.

3. The contents-of-a-book display method of claim 2, wherein, The determination of the first matching degree of each candidate block attribute with the block content comprises: Obtain the block content type and block content size of the block content; Determine the first sub-matching degree of the block content type and the candidate block attribute; Determine the second sub-matching degree of the block content size and the candidate block attribute; Based on the first sub-matching degree and the second sub-matching degree, determine the first matching degree.

4. The contents-of-a-book display method of claim 3, wherein, The acquisition of the block content type and the block content size of the block content comprises: Input each element in the block content into a semantic cohesion prediction model to obtain the semantic cohesion between adjacent elements; Based on the semantic cohesion, divide the block content into sub-blocks; Determine the sub-block type and sub-block size of each sub-block; For each sub-block type, determine the first sum of the sub-block size corresponding to the sub-block type; Based on the first sum corresponding to each sub-block type, determine the block content type; Obtain the block content size of the block content.

5. The method of claim 2, wherein, The determination of the total matching degree of the candidate block attribute based on the first matching degree and the second matching degree comprises: Based on the first historical display record of the target terminal on the first application page, obtain the first frequency of displaying a block based on the candidate block attribute; Based on the second historical display record on the target terminal, obtain the second frequency of displaying a block based on the candidate block attribute; Based on the first frequency and the second frequency, determine the third matching degree; Based on the first matching degree, the second matching degree and the third matching degree, determine the total matching degree of the candidate block attribute.

6. The contents-of-a-book display method of claim 5, wherein, The first frequency of displaying the display block based on the candidate block attribute is obtained based on the first historical display record of the target terminal on the first application page, and the first frequency of displaying the display block based on the candidate block attribute comprises: Obtaining the first number of display blocks in the first historical display record; Obtaining the second number of display blocks based on the candidate block attribute in the first historical display record; Based on the first number and the second number, the first frequency is determined.

7. The method of claim 5, wherein the reading content display method is characterized by, The second frequency of displaying the display block based on the candidate block attribute is obtained based on the second historical display record on the target terminal, and the second frequency of displaying the display block based on the candidate block attribute comprises: Obtaining the third number of display blocks in the second historical display record; Obtaining the fourth number of display blocks based on the candidate block attribute in the second historical display record; Based on the third number and the fourth number, the second frequency is determined.

8. The method of claim 1, wherein, The block attribute list of the block is displayed, and the block content of the filled block is displayed, so as to display the target reading book, comprising: Displaying the block attribute list; In response to the adjustment instruction of the displayed block attribute list, an adjusted block attribute list is generated; Based on the adjusted block attribute list of the block, the block content of the filled block is displayed, so as to display the target reading book.

9. The method of claim 1, wherein, The extraction of the block content of each block from the original content to fill the target reading book document template is performed according to a first period; The original content of the target reading book is obtained, and the block content of each block is extracted from the original content to fill the target reading book document template, comprising: In the current first period, the block content of the current block is filled into the current block; Based on the first block content type and the first block content size of the current block, the second block content type and the second block content size of the next block of the current block, and the first acquisition time length of the current block, the second acquisition time length of the next block is predicted; At a time point of the second acquisition time length before the end of the current first period, the block content of the next block is obtained.

10. The method of claim 9, wherein, Based on the first block content type and the first block content size of the current block, the second block content type and the second block content size of the next block of the current block, and the first acquisition time length of the current block, the second acquisition time length of the next block is predicted, comprising: Based on the first block content type and the second block content type, a first adjustment coefficient is determined; Based on the first block content size and the second block content size, a second adjustment coefficient is determined; The first acquisition time length is adjusted by using the first adjustment coefficient and the second adjustment coefficient to obtain the second acquisition time length.

11. The method of claim 1, wherein, After displaying the block content of the filled block based on the block attribute list of the block, so as to display the target reading book, the reading book content display method further comprises: obtaining the first application access frequency of the target reading book; if the first application access frequency satisfies the first condition, the original content of the target reading book is recorded to the local storage; The obtaining the original content of the target read comprises: if the original content is stored in the local storage, obtaining the original content from the local storage.

12. The method of claim 11, wherein, The obtaining the original content of the target read further comprises: if the original content is not stored in the local storage, determining a storage node level based on the first application internal access frequency; sending an original content obtaining request to the storage node of the determined storage node level; receiving the original content sent by the storage node in response to the original content obtaining request.

13. The method of claim 1, wherein, Before obtaining the target read document template in the second application with the general reading tool on the target terminal in response to the triggering of the read function on the interface of the first application without the general reading tool, the read content display method further comprises: obtaining a target template processing tool, the target template processing tool being used for processing the target read document template. The obtaining the original content of the target read and extracting the chunk content of each chunk from the original content to fill the target read document template comprises: obtaining the original content of the target read and extracting the chunk content of each chunk from the original content to fill the target read document template by using the target template processing tool.

14. The method of claim 1, wherein, The obtaining the original content of the target read comprises: displaying a candidate read list, the candidate read list comprising a plurality of candidate reads; in response to a selection instruction of the target read in the plurality of candidate reads, obtaining the original content of the target read.

15. The method of claim 14, wherein, The order of the plurality of candidate reads in the candidate read list is determined by: obtaining the first application internal access frequency of the candidate read; obtaining the tag matching degree of the first tag of the candidate read and the second tag of the target object of the first application page; determining the order of the plurality of candidate reads based on the first application internal access frequency and the tag matching degree.

16. A display device for displaying contents of a book, characterized by comprising: comprise: a first obtaining unit, configured to obtain, on a target terminal, a target read document template in a second application with a general reading tool in response to the triggering of a read function on an interface of a first application without the general reading tool, the target read document template comprising a plurality of chunks; a second obtaining unit, configured to obtain the original content of the target read and extract the chunk content of each chunk from the original content to fill the target read document template; a first determining unit, configured to determine a chunk attribute list of the chunk based on the chunk content of the chunk and configuration information of the target terminal; a first display unit, configured to display the chunk content of the filled chunk based on the chunk attribute list of the chunk, thereby displaying the target read.

17. An electronic device, comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to implement the read content display method according to any one of claims 1 to 15.

18. A computer readable storage medium, the storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the read content display method according to any one of claims 1 to 15.

19. A computer program product comprising a computer program which is read and executed by a processor of a computer device, causing the computer device to perform the content display method according to any one of claims 1 to 15.