Content display method, device, terminal and storage medium

By obtaining reading progress information and dividing character sets, the displayed character set is typed using preset display order and layout rules, which solves the problem of long response time when re-reading in the existing technology, and achieves faster reading requests response.

CN112100998BActive Publication Date: 2025-02-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201910530890.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-18
Publication Date
2025-02-18
Estimated Expiration
2039-10-24

AI Technical Summary

Technical Problem

In the prior art, when a user reads a document, if it is interrupted and rereads, it is necessary to re-get the document from the server and type it, resulting in a long response time.

Method used

By obtaining reading progress information, the character set of the target content is divided into a displayed character set and a character set to be displayed, and the character set to be displayed is typed using the preset display order and layout rules, and the character set to be displayed is preferred.

Benefits of technology

Speed ​​up the response speed to reading requests, reduce the time for re-typed, and improve the user's reading experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112100998B_ABST
    Figure CN112100998B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a content display method, device, terminal and storage medium, wherein the method comprises: if a reading request for displaying target content in a first terminal is received, a character set included in the target content is obtained and reading progress information of the target content is obtained from a server; the character set is divided into a displayed character set and a to-be-displayed character set according to the reading progress information; the to-be-displayed character set is typeset according to a preset display order and a first typesetting rule to obtain a first typesetting result; and the characters included in the to-be-displayed character set are displayed on the first terminal according to the first typesetting result. The embodiment of the present invention can speed up the response to the reading request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a content display method, device, terminal and storage medium. Background Art

[0002] Most existing terminals such as mobile phones and tablet computers can be used to display various contents, such as document contents such as e-books, word documents, and webpage contents, etc. The terminal displays the document, which means that the terminal typesets the characters included in a document according to the terminal's screen parameters and other information, and displays the typeset characters in the terminal's user interface according to certain rules, such as page by page display, displaying a preset number of characters each time, etc.

[0003] When a user uses a terminal to read a document online or perform other online operations, the user is usually interrupted and quits reading when reading the middle paragraph of the document. In this case, if the user initiates a reading request again, the terminal needs to obtain the document from the server again, and then reformat the document according to the character data included in the document to display the document content to the user. It takes a long time to reformat the document, resulting in a slow response to the user's reading request. Summary of the invention

[0004] The embodiments of the present invention provide a content display method, device, terminal and storage medium, which can respectively typeset two character sets according to reading progress information, thereby speeding up the response to the reading request.

[0005] In one aspect, an embodiment of the present invention provides a content display method, comprising:

[0006] If a reading request for displaying target content in the first terminal is received, a character set included in the target content is obtained, and reading progress information of the target content is obtained from a server, wherein the characters in the character set are stored in a preset display order;

[0007] Dividing the character set into a displayed character set and a to-be-displayed character set according to the reading progress information;

[0008] Performing typesetting processing on the set of characters to be displayed according to the preset display order and the first typesetting rule to obtain a first typesetting result;

[0009] The characters included in the to-be-displayed character set are displayed on the first terminal according to the first typesetting result.

[0010] On the other hand, an embodiment of the present invention provides a content display device, including:

[0011] an acquiring unit, configured to acquire a character set included in the target content and acquire reading progress information of the target content from a server if a reading request for displaying the target content on the first terminal is received, wherein the characters in the character set are stored in a preset display order;

[0012] A processing unit, configured to divide the character set into a displayed character set and a to-be-displayed character set according to the reading progress information;

[0013] The processing unit is further used to perform typeset processing on the to-be-displayed character set according to the preset display order and the first typeset rule to obtain a first typeset result;

[0014] A display unit is used to display the characters included in the to-be-displayed character set on the first terminal according to the first typesetting result.

[0015] In another aspect, an embodiment of the present invention provides a terminal, the terminal comprising:

[0016] a processor adapted to implement one or more instructions; and,

[0017] A computer storage medium storing one or more instructions, wherein the one or more instructions are suitable for being loaded by the processor and executing the following steps:

[0018] If a reading request for displaying target content in the first terminal is received, a character set included in the target content is obtained, and reading progress information of the target content is obtained from a server, wherein the characters in the character set are stored in a preset display order;

[0019] Dividing the character set into a displayed character set and a to-be-displayed character set according to the reading progress information;

[0020] Performing typesetting processing on the set of characters to be displayed according to the preset display order and the first typesetting rule to obtain a first typesetting result;

[0021] The characters included in the to-be-displayed character set are displayed on the first terminal according to the first typesetting result.

[0022] In an embodiment of the present invention, in response to a received reading instruction, the first terminal divides the character set included in the target content into a displayed character set and a to-be-displayed character set according to the reading progress information, typesets the to-be-displayed character set using a first typesetting rule to obtain a first typesetting result, and further, displays each character included in the to-be-displayed character set in the first terminal according to the first typesetting result. The characters included in the to-be-displayed character set are characters that the user has not read yet, that is, the characters that need to be displayed in the first terminal in response to the reading instruction. In the embodiment of the present invention, compared with typeset the entire character set to display the target content in the prior art, typeset processing of the to-be-displayed character set can speed up the response to the reading instruction. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0024] Figure 1a This is an application scenario diagram for multi-terminal reading provided by an embodiment of the present invention;

[0025] Figure 1b is a schematic diagram of displaying target content in a second terminal provided by an embodiment of the present invention;

[0026] Figure 1c is a schematic diagram of displaying target content in a first terminal provided by an embodiment of the present invention;

[0027] Figure 2a is another schematic diagram of displaying target content in a second terminal provided by an embodiment of the present invention;

[0028] Figure 2b is another schematic diagram of displaying target content in a first terminal provided by an embodiment of the present invention;

[0029] Figure 3 is a flow chart of a content display method provided by an embodiment of the present invention;

[0030] Figure 4a is a schematic diagram of a user interface in a first terminal provided by an embodiment of the present invention;

[0031] Figure 4b is a schematic diagram of inputting a reading request provided by an embodiment of the present invention;

[0032] Figure 4c is a schematic diagram of another method of inputting a reading request provided by an embodiment of the present invention;

[0033] Figure 5a is a schematic diagram of a current interface of a second terminal displaying target content provided by an embodiment of the present invention;

[0034] Figure 5b is a schematic diagram of a previous interface of a current interface of a second terminal displaying target content provided by an embodiment of the present invention;

[0035] Figure 6 is a flow chart of another content display method provided by an embodiment of the present invention;

[0036] Figure 7 is a structural schematic diagram of a content display device provided by an embodiment of the present invention;

[0037] Figure 8 It is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0039] The embodiment of the present invention provides a content display method, which can be applied to any terminal capable of displaying content, such as a mobile phone, a tablet computer, a wearable device, etc., and when a reading request for displaying target content in a first terminal is received, a character set included in the target content is obtained; the character set included in the target content is then divided into a displayed character set and a to-be-displayed character set, and the to-be-displayed character set is typeset using a first typesetting rule; in response to receiving the reading request, the characters included in the to-be-displayed character set are displayed according to the first typesetting result of the to-be-displayed character set. The character set is divided into two character sets according to the reading progress information, and in response to the received reading request, the to-be-displayed character set is preferentially typeset, so as to speed up the response speed to the reading request.

[0040] The target content may refer to any content, including document content or web page content, etc. In the following description of the embodiment of the present invention, the target content includes a target document as an example. The so-called target document may refer to any document, such as an e-book, a word document, etc. The target document may also be any chapter of a document, such as the third section of the fifth chapter of an e-book, etc.; the reading progress information obtained from the server may be recorded and uploaded when the first terminal receives an exit reading instruction for the target content during the last display of the target content; or the reading progress information may also be recorded and uploaded when the second terminal receives an exit reading instruction for the target content during the last display of the target content.

[0041] At present, with the continuous development of the information age, people's quality of life is also constantly improving. A user usually has multiple terminals, such as mobile phones, tablet computers or wearable devices, etc. Users can use different terminals to read target content during their usual fragmented time. For example, when the user is on the road, he can use a mobile phone to read the target content, and when the user is at home, he can use a tablet computer to read the target content. If the reading progress information is uploaded to the server by the second terminal, it means that the user last read the target content through a second terminal different from the first terminal. If the reading progress information is recorded and uploaded to the server by the second terminal, the characters included in the character set to be displayed are displayed in the first terminal through the above-mentioned document content display method, so that the reading progress of the target content can be kept synchronized in multiple terminals.

[0042] The content display method provided by the embodiment of the present invention can be applied to the application scenario of keeping the reading progress of multiple terminals synchronized, and can also be applied to the application scenario of keeping the reading progress synchronized after adjusting the screen parameters or display parameters of the same terminal. Figure 1a , is a diagram of an application scenario of multi-terminal reading provided by an embodiment of the present invention, Figure 1a In the figure, 101 represents a user, 102 represents a first terminal corresponding to the user, 103 represents a second terminal corresponding to the user, and 104 represents a server. When the user 101 reads the target content through the first terminal 102, the user 101 inputs a reading instruction for the target content in the first terminal 102, the first terminal 102 obtains the target content and the character set included in the target content from the server 104, the first terminal performs typeset processing on the character set, and displays the characters in the character set in the first terminal according to the result of the typeset processing for the user to read. Similarly, the user 101 can also read the target content through the second terminal 103, the second terminal 103 obtains the target content and the character set included in the target content from the server 104 according to the reading instruction of the user 101, performs typeset processing on the character set, and displays the characters in the character set in the second terminal 103 according to the result of the typeset processing.

[0043] In the study of keeping the reading progress of multiple terminals synchronized, it was found that there are two optional implementation methods for keeping the reading progress of multiple terminals synchronized:

[0044] The first method: if a reading progress request for displaying the target content in the first terminal is received, the character set included in the target content is obtained, and the reading progress information of the target content is obtained from the server; the character set included in the target content is typeset to obtain a typeset result; and the characters in the character set are displayed in the first terminal according to the reading progress information and the typeset result. The reading progress information is used to indicate the position of the target character that the user has read last time, and the characters in the character set are displayed in the first terminal according to the reading progress information and the typeset result can be: the target character at the position indicated by the reading progress information is found in the typeset result, and the content including the target character in the typeset result is displayed in the first terminal. In this way, the content displayed in the first terminal only includes the target character, and it cannot be accurately guaranteed that the position of the target character in the first terminal is the same as that in the second terminal.

[0045] For example, refer to Figure 1b , is a schematic diagram of displaying target content in a second terminal provided by an embodiment of the present invention, assuming that the target content includes a target document, assuming that Figure 1b 105 represents the second terminal, and "some" at 106 represents the target character. If the above method is used to display the target content in the first terminal, a schematic diagram of displaying the target content in the first terminal can be obtained as shown in FIG. Figure 1c As shown, Figure 1c 107 represents the first terminal, and 108 represents the target character. It can be seen that in the second terminal, the target character is located at the first character position of the first line of the second terminal, but in the first terminal, the target character is located at the interline position of the ninth line.

[0046] The second method: if a reading request for displaying target content in a first terminal is received, a character set included in the target content is obtained, and reading progress information of the target content is obtained from a server; the character set is divided into a displayed character set and a to-be-displayed character set according to the reading progress information; the to-be-displayed character set is typeset according to the preset display order and the first typesetting rule to obtain a first typesetting result; and the characters included in the to-be-displayed character set are displayed on the first terminal according to the first typesetting result. In the above-mentioned display process of the target content, the to-be-displayed character set is typeset separately to obtain the first typesetting result, so that when the characters included in the to-be-displayed character set are displayed according to the first typesetting result, the position of the target character in the first terminal is the same as its position in the second terminal.

[0047] For example, refer to Figure 2a Another schematic diagram of displaying target content in a second terminal provided by an embodiment of the present invention, assuming that Figure 2a200 represents the second terminal, and "this" at 201 represents the target character. If the second content display method is used to display the target content in the first terminal, a schematic diagram of displaying the target content in the first terminal is obtained as shown in FIG. Figure 2b As shown, in Figure 2b 202 indicates the first terminal, and the character at the position indicated by 203 is the target character. It can be seen that the position of the target character 201 in the first terminal is the same as the position of the target character in the second terminal, both of which are the first character of the first line, and the content of the line where the target character is located is also the same.

[0048] In summary, the second content display method will be specifically introduced below in the embodiment of the present invention.

[0049] Based on the above description, an embodiment of the present invention provides a flow chart of a content display method, such as Figure 3 shown. Figure 3 The content display method may be executed by the first terminal, and specifically may be executed by a processor of the first terminal. Figure 3 The content display method may include the following steps:

[0050] S301: If a reading request for displaying target content in a first terminal is received, the first terminal obtains a character set included in the target content, and obtains reading progress information of the target content from a server.

[0051] The target content may refer to a target document, and the target document may refer to any document, such as an e-book, a word document, etc. Alternatively, the target document may refer to any chapter of a document, such as the fourth section of the fifth chapter of an e-book, or the third section of the second chapter of a word document, etc.

[0052] In one embodiment, assuming that the content refers to a document and the target content refers to a target document, the first terminal may display multiple documents including the target document in the user interface, such as Figure 4a As shown, if a user selection operation on the target document is received, it is determined that a reading request for displaying the target document in the first terminal is received. The selection operation may refer to a user touch operation on the target document, such as clicking, long pressing, dragging, etc. Figure 4b Alternatively, the selection operation may also refer to a voice message for the target document input by the user, such as "open the target document" or "I want to see the target document". The user may input the voice message by touching the touch button 401 in the first terminal. Figure 4c As shown, it should be understood that Figure 4cOnly one possible form of the touch button 401 is shown. In actual applications, the touch button 401 may also exist in the first terminal in other forms, for example, the touch button is a hardware key in the first terminal. Alternatively, the user may also wake up the voice input function of the first terminal through voice to input voice information.

[0053] It should be understood that the first terminal may store texts corresponding to multiple contents or obtain texts corresponding to multiple contents from the server, but these texts are usually stored after being encoded and cannot be directly read by the user. The first terminal usually needs to convert these texts into characters that can be directly read by the user, and then typeset the characters and render them according to the results of the typeset processing to display the typeset processed characters in the first terminal. Among them, the characters that can be directly read by the user can be letters, numbers, Chinese characters and symbols, such as 1, 2, 3, A, B, C, #, you, me, etc.

[0054] In one embodiment, the character set included in the target content can be obtained according to the identifier of the target content. Specifically: the first terminal obtains the content identifier of the target content from the received reading request; searches for the target content matching the content identifier in the pre-stored multiple contents; obtains the text corresponding to the target content, and converts the text into characters that can be directly read by the user, and each character constitutes a character set.

[0055] In response to the user's reading request for the target content, after the first terminal obtains the target content, it needs to typeset the target content and then display the typeset target content. In order to improve the user's reading experience, the first terminal also needs to consider the user's reading progress information when displaying the typeset target content, that is, synchronize the user's reading progress to ensure that even if the user is interrupted in the middle of reading, the user can continue reading the target content from the last reading position the next time. In this way, the user does not have to search for the last reading position from the beginning of the target content, which improves the user's reading efficiency and reading experience.

[0056] In one embodiment, the reading progress information may include the target position of the target character included in the character set when the reading was last exited. The target character may refer to the first character included in the interface when the reading was last exited; or, the target character may also refer to the last character included in the previous interface of the interface when the reading was last exited. Optionally, the characters included in the character set are stored according to a preset display order, and the earlier the characters are displayed, the higher the order. The target position may indicate the number of the target character among the characters stored according to the preset display order. In other words, each character in the character set corresponds to a position.

[0057] In one embodiment, the reading progress information may be recorded and uploaded by the first terminal, or may be recorded and uploaded by the second terminal. Specifically, if the reading progress information is recorded and uploaded by the first terminal, the reading progress information may include the target position of the target character in the character set when receiving an exit reading instruction during the display of the target content on the first terminal. Similarly, if the reading progress information is recorded and uploaded by the second terminal, the reading progress information may include the target position of the target character in the character set when receiving an exit reading instruction during the display of the target content on the second terminal.

[0058] For example, assuming that the reading progress information stored in the server is recorded and uploaded by the second terminal, refer to Figure 5a FIG. is a schematic diagram of the current interface displayed during the display of the target content on the second terminal provided by an embodiment of the present invention; Figure 5b FIG. is a schematic diagram of the previous interface of the current interface displayed during the display of the target content on the second terminal provided by an embodiment of the present invention; The target character may be Figure 5a the first character among the characters displayed in, that is, the character "些" at the 501 position; or, the target character may also be Figure 5b the last character among the characters displayed in, that is, the character "这" at the 502 position.

[0059] In one embodiment, the implementation manner for the first terminal to record and upload the reading progress information may be: when receiving an exit reading instruction for the target content, obtain the character set included in the target content, and determine the target character according to the current interface; determine the target position of the target character in the character set, and generate reading progress information according to the target position and the content identifier of the target content; send the reading progress information to the server. Optionally, the implementation manner for the second terminal to record and upload the reading progress information is the same as the above, and will not be described herein again.

[0060] S302. Divide the character set into a displayed character set and a to-be-displayed character set according to the reading progress information.

[0061] Among them, in the embodiments of the present invention, the first character included in the interface at the time of the last exit from reading in the character set and the characters after the first character are referred to as characters to be displayed; and the characters before the first character included in the interface at the time of the last exit from reading in the character set are referred to as displayed characters. For example, if the character set is "This is a paradise that everyone yearns for", and the first character included in the interface at the time of the last exit from reading is "towards", then the characters "This is a everyone" before "towards" are referred to as displayed characters; and the characters "the paradise that one yearns for" after "towards" and "towards" are referred to as characters to be displayed. Each of the displayed characters constitutes a displayed character set, and each of the characters to be displayed constitutes a character set to be displayed.

[0062] Specifically, the reading progress information may include the target position of the target character included in the character set at the time of the last exit from reading in the character set. A feasible implementation manner included in step S302 may be: dividing the character set into a displayed character set and a character set to be displayed according to the target position and the division rule; wherein, the division rule is used to indicate that if the target character is the first character included in the interface at the time of the last exit from reading, then the characters before the target position in the character set are divided into the displayed character set, and the target character and the characters after the target position in the character set are divided into the character set to be displayed; if the target character is the last character included in the previous interface of the interface at the time of the last exit from reading, then the target and the characters before the target position in the character set are divided into the displayed character set, and the characters after the target position in the character set are divided into the character set to be displayed.

[0063] In one embodiment, as can be seen from the foregoing, the reading progress information may be recorded and uploaded by the first terminal, or may be recorded and uploaded by the second terminal. If the reading progress information is recorded and uploaded by the second terminal, then before dividing the character data into a displayed character set and a character set to be displayed according to the reading progress information, it further includes: obtaining the type information of the first terminal and the type information of the second terminal; if it is determined according to the type information of the first terminal and the type information of the second terminal that the screen sizes of the first terminal and the second terminal are different, then trigger the execution of the step of dividing the character data into a displayed character set and a character set to be displayed according to the reading progress information.

[0064] In other words, if the screen size of the first terminal is the same as that of the second terminal, the first terminal may not divide the character set into two parts for typeset, but may directly typeset the entire character, which can also achieve the effect of keeping the reading progress of the first terminal and the second terminal consistent. Alternatively, the character set may not be typeset, but the typesetting result of the target content may be directly displayed in the second terminal, which can also achieve the effect of keeping the reading progress consistent in the terminals; if the screen size of the first terminal is different from that of the second terminal, step S302 is executed to achieve keeping the reading progress consistent in multiple terminals.

[0065] S303: Perform typesetting processing on the character set to be displayed according to a preset display order and a first typesetting rule to obtain a first typesetting result.

[0066] Among them, if the target character is the first character included in the interface when the reading was exited last time, the so-called first character refers to the character located at the first character position of the first line in the interface at the time of exit, then the first typesetting rule may refer to: after typeset the display character set according to the first typesetting rule, it can be ensured that the position of the target character in the current interface of the first terminal is still the position of the first character in the first line; if the target character is the last character included in the previous interface of the interface when the reading was exited last, then the first typesetting rule may refer to: after typeset the display typesetting rule according to the first typesetting rule, it can be ensured that the character located after the target character in the character set is located at the position of the first character in the current interface of the first terminal.

[0067] In one embodiment, during the typesetting process of the set of characters to be displayed, or after the typesetting of the set of characters to be displayed is completed, the set of characters to be displayed may be typeset according to a preset display order and a second typesetting rule to obtain a second typesetting result. In this way, when a history viewing request for viewing displayed characters in the first terminal is received, each character included in the set of characters to be displayed may be displayed on the second terminal according to the second typesetting result.

[0068] Alternatively, in other embodiments, the first terminal may also, upon receiving a request to view the history of displayed characters, typeset the displayed character set according to a preset display order and a second typesetting rule to obtain a second typesetting result; and then display each character included in the displayed character set on the first terminal according to the second typesetting result. In this way, if the first terminal does not receive a request to view the history of displayed characters, the displayed character set may not be typeset, thereby saving some terminal resource consumption.

[0069] In one embodiment, the first typesetting rule may be used to indicate that the characters included in the displayed character set are typeset in sequence according to a preset display order from front to back. The second typesetting rule may be used to indicate that the characters included in the displayed character set are typeset in sequence according to a preset display order from back to front; or, the second typesetting rule may also be used to indicate that the characters included in the displayed character set are typeset in sequence according to a preset display order from front to back. It can be seen that the typesetting order indicated in the second typesetting rule and the first typesetting rule may be the same or different. In the following description of the embodiment of the present invention, it is assumed that the typesetting order indicated by the second typesetting rule and the first typesetting rule is different, that is, the second typesetting rule is used to indicate that the characters included in the displayed character set are typeset in sequence according to a preset display order from back to front, and the first typesetting rule is used to indicate that the characters included in the displayed character set are typeset in sequence according to a preset display order from front to back.

[0070] For example, assuming that the characters included in the displayed character set are "I", "want", "reduce", and "fat", each character is stored in the order of display, that is, when displayed, the order in which the above four characters are displayed is: "I", "want", "reduce", and "fat"; assuming that the characters included in the character set to be displayed are "become", "be", "like", "you", "a", "like", "of", and "people", each character is also stored in the order of display. The second typesetting rule can be used to indicate that the displayed character set is typeset in sequence from back to front according to the preset display order, that is, first typeset "fat", then typeset "reduce", then typeset "want", and finally typeset "I"; the first typesetting rule is used to indicate that the character set to be displayed is typeset in the order from front to back according to the preset display order, that is, the typesetting order is "become", "be", "like", "you", "a", "like", "of", and "people".

[0071] S304: Display characters included in the to-be-displayed character set on the first terminal according to the first typesetting result.

[0072] In one embodiment, if the target character is the last character included in the interface before the interface when the reading was last exited, the implementation method of step S304 can be: determine the number of characters N that can be displayed by the first terminal according to the screen parameters of the first terminal, where N is a positive integer greater than 1; select N characters starting from the next character of the target character in the first typesetting result, and display the selected N characters on the first terminal.

[0073] In another embodiment, if the target character is the first character included in the interface when reading was exited last time, the implementation method of step S304 may be: determine the number of characters M that can be displayed by the first terminal according to the screen parameters of the first terminal, where M is a positive integer greater than 1; select M characters starting from the target character in the first typesetting result, and display the selected N characters on the first terminal.

[0074] In other embodiments, if the first typesetting result is paged after being obtained, and if the target character is the last character included in the previous interface of the current interface when exiting reading, then the implementation method of step S304 is: determine the target character according to the reading progress information; after the first typesetting result is paged, find the target reading page including the target character; and display the next reading page of the target reading page on the screen of the first terminal.

[0075] In another embodiment, if the first typesetting result is paged after being obtained, and if the target character is the first character included in the interface when reading was last exited, the implementation method of step S304 can also be: determining the target character according to the reading progress information; after the first typesetting result is paged, finding the target reading page including the target character; and displaying the target reading page including the target character on the screen of the first terminal.

[0076] In an embodiment of the present invention, if a reading request for displaying target content in a first terminal is received, a character set included in the target content is obtained, and reading progress information of the target content is obtained from a server, wherein the characters included in the character set are stored in a preset display order; the character set is divided into a displayed character set and a to-be-displayed character set according to the reading progress information, and the characters in the displayed character set and the to-be-displayed character set are stored in a preset display order; the to-be-displayed character set is typeset according to the preset display order and the first typesetting rule to obtain a first typesetting result; and the characters included in the to-be-displayed character set are displayed on the first terminal according to the first typesetting result. In the display process of the above content, the character set is divided into a displayed character set and a to-be-displayed character set, and in response to the received reading request, the to-be-displayed character set is preferentially typeset using the first typesetting rule, which can speed up the response to the reading request.

[0077] See also Figure 6 , is a flow chart of another content display method provided by an embodiment of the present invention. Figure 6 The image acquisition method may include the following steps:

[0078] S601, during the process of displaying the target content in the second terminal, when receiving an exit reading instruction, the second terminal obtains a character set included in the target content, and determines a target character according to a current interface of the second terminal.

[0079] The exit reading instruction may refer to a click operation on an exit button in the current interface, or a voice instruction for exiting reading such as "exit reading", or a return operation for returning to the terminal main interface, etc. Optionally, the exit reading instruction may include a content identifier of the target content. If the target content is a target document, the content identifier may be represented as a name + chapter number, such as "More Sad Than Sadness Chapter 5 Section 4".

[0080] In one embodiment, the character set included in the target content may be stored in a server or stored locally in the second terminal, and the second terminal may obtain the character set included in the target content by obtaining the character set included in the target content from the local storage of the second terminal according to the content identifier of the target content included in the exit reading instruction; or, the second terminal may obtain the character set included in the target content by sending an acquisition request carrying the content identifier of the target content to the server, wherein the acquisition request is used to instruct the server to obtain the character set included in the target content corresponding to the content identifier; and receive the character set sent by the server.

[0081] It should be understood that the principle of displaying the target content on the second terminal can be understood as follows: the second terminal or the server typeset the character set according to the screen parameters of the second terminal to obtain a typesetting result; when it is detected that the content target needs to be displayed on the second terminal, the second terminal renders the typesetting result in the current interface of the second terminal to display the target content. In one embodiment, the typesetting processing of the character set includes page typesetting processing, which refers to typesetting each character in the character set in each reading page according to a preset display order. For example, the character set is "I", "I am", "Quick", "Happy", and "Of". The page typesetting processing can be: typeset "I", "I am", "Quick" on one reading page, and typeset "Happy" on another reading page. If the typesetting processing of the character set includes page typesetting processing, the target content displayed in the second terminal is displayed in pages. For example, when it is detected that the target content is displayed for the first time in the second terminal, the characters included in the first reading page in the typesetting result are first rendered for display in the second terminal; as time goes by, when a page turning operation is detected, the characters included in the second reading page in the typesetting result are rendered for display in the second terminal. During the paging display process, the second terminal will record the rendering process of the paging display, such as what characters are rendered in sequence when rendering each reading page, and the rendering time of each reading page.

[0082] In other embodiments, the typesetting process of the character set may include non-page typesetting process, and the non-page typesetting process may refer to typesetting each character set included in each character set according to a preset display order. If the typesetting process of the target character set is non-page typesetting process, the target content displayed in the second terminal is non-paged display, and specifically, the number of characters to be displayed each time may be specified according to the screen parameters of the second terminal, and then the second terminal will render the number of characters in the current interface each time. During the non-paged display process, the second terminal will record the rendering process of the non-paged display, such as how many characters have been rendered up to the current moment, etc.

[0083] In one embodiment, based on the above description, if the target character is the first character included in the interface when the reading was last exited, the implementation method of determining the target character according to the current interface of the second terminal in step S601 may be: determining the target character according to the rendering record of the current interface by the second terminal. For example, assuming that the typesetting processing of the character set includes paging typesetting processing, the current interface of the second terminal includes the current reading page, and the rendering record corresponding to the current reading page is found in the rendering record of the second terminal; the first rendered character recorded in the rendering record is determined as the target character.

[0084] In other embodiments, if the target character is the last character included in the interface before the last interface when exiting reading, the implementation method of determining the target character according to the current interface of the second terminal in step S601 can be: determining the target character according to the rendering record of the second terminal for the interface before the current interface.

[0085] S602: Determine a target position of a target character in a character set, and generate reading progress information according to the target position and a content identifier of the target content.

[0086] S603, sending the reading progress information to the server.

[0087] Among them, the target position of the target character in the character set can be expressed as the character number of the target character in the character set according to the preset display order, such as the 3rd, 5th, etc. In one embodiment, the target position of the target character in the character set can be determined according to the rendering record. As can be seen from the foregoing, the rendering record may include how many characters are rendered at the current moment, or record how many reading pages are rendered, and how many characters are rendered in each reading page. The target position of the target character in the character set can be determined according to the rendering record.

[0088] In one embodiment, after determining the target position of the target character, the second terminal generates reading progress information according to the target position and the content identifier of the target content, and sends the reading progress information to the server.

[0089] For example, the character set is a0a1a2…a m-1 a m a m+1 … a n , assuming the target character is a m , m represents the target position of the target character, and the content identifier of the target content and the position m of the target character are used to generate reading progress information and sent to the server.

[0090] S604: If a reading request for displaying the target content in the first terminal is received, the first terminal obtains a character set included in the target content, and obtains reading progress information of the target content from the server.

[0091] S605: Divide the character set into a displayed character set and a to-be-displayed character set according to the reading progress information.

[0092] In one embodiment, some feasible implementations included in steps S602-S603 can be found in Figure 3 The description of the corresponding steps in the embodiment will not be repeated here.

[0093] S606. The first terminal typeset the set of characters to be displayed according to a preset display order and a first typesetting rule to obtain a first typesetting result; and typeset the set of characters already displayed according to a preset display order and a second typesetting rule to obtain a second typesetting result.

[0094] In one embodiment, the typesetting of the displayed character set according to the preset display order and the second typesetting rule to obtain the second typesetting result includes: performing initial typesetting processing on the displayed character set according to the screen width in the screen parameters of the first terminal and the acquired display parameters to obtain the second initial typesetting result, and determining the second total typesetting height of the typesetting space occupied by the initial typesetting result; determining the second unit typesetting height of each reading page according to the screen height included in the screen parameters of the first terminal, the screen width and the display parameters; determining the number of reading pages and the page number sequence of the reading pages required for pagination typesetting of the displayed character set according to the second total typesetting height and the second unit typesetting height; determining each reading page according to the order of the page number sequence from back to front, and arranging each character in the initial typesetting result to the reading page of the corresponding order according to the order of the preset display order from back to front.

[0095] The display parameters may be the font size of text characters, the character size of image characters, and the line spacing in the first terminal, and the second typesetting rule is used to indicate that when a line break is encountered during the typesetting process, the characters in the current line are typeset, and two or other preset number of space characters are left blank in a new line for character typesetting. It can be seen that the displayed character set is initially typeset according to the screen width and display parameters in the screen parameters of the first terminal, and the first typesetting initial result obtained includes each character and space character included in the displayed character set.

[0096] In one embodiment, determining the second total layout height of the layout space occupied by the second initial layout result includes: determining the total number of lines included in the second initial layout result; and determining the second total layout height according to the height occupied by the total number of lines and the line spacing set by the first terminal. For example, assuming that the second initial layout result includes 10 lines, the total height of the 10 lines plus the line spacing is 6500 pixels, then the second total layout height of the layout space occupied by the second initial layout result can be 6500 pixels.

[0097] In one embodiment, the second unit layout height of each reading page is determined according to the screen height, the screen width and the display parameters included in the screen parameters of the first terminal, and may include: determining how many lines can be included in each reading page according to the screen height and width included in the screen parameters of the first terminal and the display parameters; determining the second unit layout height of each reading page according to the height of the number of lines included in each reading page and the line spacing. For example, according to the screen height and the screen width included in the screen parameters of the first terminal, and according to the display parameters, it is determined that each reading page includes 2 lines, and the height of the 2 lines plus the line spacing is 600 pixels, and the second unit layout height of each reading page can be determined to be 600 pixels.

[0098] In one embodiment, the determining the number of reading pages required for paginating the displayed character set according to the second total typesetting height and the second unit typesetting height may include: dividing the second total typesetting height by the second unit typesetting height, and determining the number of reading pages according to the result of the division. For example, assuming that the second total typesetting height is 6500 pixels and the second unit typesetting height is 600 pixels, the result obtained by dividing 6500 by 600 is approximately equal to 10.8, and it can be determined that the number of reading pages required for paginating the displayed character set is 11 pages.

[0099] The page number sequence of the reading pages in step S606 is used to indicate the page number of each reading page, such as the first page, the second page, and so on.

[0100] In one embodiment, the determination of each reading page in the order of page numbers from back to front, and the arrangement of each character in the second initial typesetting result to the reading pages of the corresponding order in the order of the preset display order from back to front can be understood as: first selecting the last reading page in the order of selecting reading pages from back to front; then selecting each character included in the second initial typesetting result from back to front and typeset it in the last selected reading page until the reading page is full, and then continuing to select the second to last reading page in accordance with the above principle, and continuing to select characters from the second initial typesetting result in the order from back to front and typeset it in the second to last reading page. Iterate the above steps until each character included in the second initial typesetting result is typeset in each reading page, then it is determined that the typesetting of the displayed character set is completed.

[0101] For example, suppose the character set is a0a1a2... a m-1 a m a m+1 … a n , the target character is a m , the target position of the target character is m, according to Figure 3 The description of step S302 in the illustrated embodiment divides the characters before m in the character set into a displayed character set, and divides the characters after m in the character set into a to-be-displayed set, that is, the displayed character set includes a0a1a2…a m-1 , the character set to be displayed includes a m a m+1 … a n . Assume that the displayed character set is initially typeset according to the screen width and display parameters included in the screen parameters of the first terminal, and a second initial typeset result is obtained, and it is determined that the first total typeset height of the typeset space occupied by the first initial typeset result is 6500 pixels; assume that the second unit typeset height of each reading page determined according to the screen width and screen height included in the screen parameters of the first terminal screen and the display parameters is 600 pixels.

[0102] Furthermore, according to the second total typesetting height and the second unit typesetting height, it is determined that the reading pages required for pagination typesetting of the displayed character set are 11 pages. The reading pages are determined in the order of page numbers from back to front, and the characters in the second initial typesetting result are arranged in the reading pages of the corresponding order in the order of back to front according to the preset display order. The specific implementation can be: firstly typeset the characters included in the part of 5900 pixels to 6500 pixels in the second initial typesetting result on the eleventh page; typeset the characters included in the part of 5200 pixels to 5800 pixels on the tenth page, and so on, and finally typeset the content of 1 pixel to 600 pixels on the first page.

[0103] It should be understood that according to the above process, when typeset the displayed character set, there may be a blank space above the first reading page, but considering that the user reads in order from front to back, the probability of turning back to the first reading page is small, and the blank space has little impact on the user's reading. Therefore, the embodiment of the present invention allows a blank space in a certain reading page in exchange for consistent reading progress in different terminals.

[0104] In other embodiments, after determining the number of reading pages and the page number order of the reading pages for pagination typesetting of the displayed character set in step S606, it may also be: based on the principle of keeping the target character at the first character position of the first line of the reading page (in this case, the target character is the first character included in the interface when reading was last exited), or based on the principle of keeping the next character of the target character at the first character position of the first line of the reading page (in this case, the target character is the last character included in the previous interface of the interface when reading was last exited), determine each reading page in order from front to back in page number order, and typeset each character included in the second initial typesetting result in the reading pages of the corresponding order in order from front to back in a preset display order.

[0105] In one embodiment, the step S606 of typeset processing the character set to be displayed according to the preset display order and the first typesetting rule to obtain a first typesetting result includes: performing initial typesetting processing on the character set to be displayed according to the screen width included in the screen parameters of the first terminal and the acquired display parameters to obtain a first initial typesetting result, and determining a first total typesetting height of the typesetting space occupied by the first initial typesetting result; determining a first unit typesetting height of each reading page according to the screen height included in the screen parameters of the first terminal, the screen width and the display parameters; determining the number of reading pages required for pagination typesetting of the character set to be displayed and the page number sequence of the reading pages according to the first total typesetting height and the first unit typesetting height; determining each reading page according to the front-to-back order of the page number sequence, and arranging each character in the first initial typesetting result to a reading page of a corresponding order according to the preset display order from front to back.

[0106] In one embodiment, the feasible implementation method of determining the first total layout height of the layout space occupied by the first initial layout result, and the feasible implementation method of determining the first unit layout height of each reading page can be found in the above description and will not be repeated here.

[0107] It should be understood that the first page number in the page number sequence of the reading pages required for pagination and typesetting of the character set to be displayed is connected to the last page number in the page number sequence when the displayed character set is paginated and typeset. For example, if the last page number when the displayed character set is paginated and typeset is page 11, then the first page number in the page number sequence of the reading pages required for pagination and typesetting of the character set to be displayed is page 12.

[0108] In one embodiment, the reading pages are determined in the order from front to back according to the page number sequence, and the characters in the first initial typesetting result are arranged in the reading pages of the corresponding order in the order from front to back according to the preset display order. It can be understood as: first select the first reading page from each reading page in the order from front to back according to the page number sequence, select the corresponding characters from the first initial typesetting result in the order from front to back and typeset them in the first page until the first reading page is full; then continue to select the second page in the order from front to back according to the page number sequence, and select the characters from the first initial typesetting result in the order from front to back and typeset them in the second page. Iterate the above steps until all the characters included in the first initial typesetting result are typeset, then the typesetting ends.

[0109] For example, based on the assumption in the above example, the displayed character set includes a0a1a2... a m-1 , the character set to be displayed includes a m a m+1 … a n Assuming that the first total layout height is 6000 pixels and the first unit layout height is 600 pixels, 10 reading pages are required to paginate the character set to be displayed. From the above, it can be seen that the first page number in the page number sequence of the reading pages required for the pagination of the character set to be displayed is connected to the last page number in the page number sequence when the displayed character set is paginated. The page number sequence of the reading pages required for the pagination of the character set to be displayed is page 12, page 13...page 21.

[0110] First, characters are selected from the first initial typesetting result and typeset on the reading page of the twelfth page, then a set of characters are selected from the first initial typesetting result and typeset on the reading page of the thirteenth page, and so on, until all characters included in the first initial typesetting result are typeset on the corresponding reading pages, then the typesetting is terminated. A specific implementation method may be: first typeset the characters included in the 1 pixel to 600 pixel portion of the first initial typesetting result on the twelfth reading page; typeset the characters included in the 700 pixel to 1200 pixel portion on the thirteenth page, and so on, and finally typeset the content from 5500 pixels to 6000 pixels on the twenty-first page.

[0111] S607: The first terminal displays the characters included in the to-be-displayed character set on the first terminal according to the first typesetting result.

[0112] S608: If a history viewing request for viewing displayed characters in the first terminal is received, the first terminal displays the characters included in the displayed character set on the first terminal according to the second typesetting result.

[0113] In one embodiment, some feasible implementations included in step S607 can be found in Figure 3 The description of the corresponding steps in the embodiment will not be repeated here.

[0114] In step S608, the history viewing request may be generated after detecting that the user inputs an operation of viewing history reading, such as turning pages forward or scrolling forward, in the current interface. After receiving the history viewing request from the user, the first terminal renders each character in the displayed character set in the interface of the first terminal according to the second typesetting result, so as to display the characters in the interface of the first terminal for the user to view.

[0115] In an embodiment of the present invention, during the process of displaying target content on the second terminal, if an exit reading instruction for the target content is received, the second terminal obtains a character set included in the target content, and determines the target character according to the current interface of the second terminal; determines the target position of the target character in the character set, and generates reading progress information according to the target position and the content identifier of the target content, and then sends the reading progress information to the server; when the first terminal receives a reading request to display the target content in the first terminal, the first terminal obtains the character set included in the target content, and obtains the reading progress information of the target content from the server; divides the character set into a displayed character set and a to-be-displayed character set according to the reading progress information; the first terminal typeset the displayed character set according to a preset display order and a second typesetting rule to obtain a second typesetting result; and typeset the to-be-displayed character set according to a preset display order and a first typesetting rule to obtain a first typesetting result; then the first terminal displays the characters included in the to-be-displayed character set on the first terminal according to the first typesetting result; and when a history viewing request to view displayed characters in the first terminal is received, the first terminal displays the characters included in the displayed character set on the first terminal according to the second typesetting result.

[0116] During the display process of the above-mentioned target content, the second terminal sends the reading progress information when exiting the display of the target content to the server. When the first terminal receives the reading request to display the target content in the first terminal, it obtains the reading progress information uploaded by the second terminal from the server, and divides the character set included in the target content into a displayed character set and a to-be-displayed character set according to the reading progress information, and uses the second typesetting rule and the first typesetting rule to respectively typeset the displayed character set and the to-be-displayed character set. The typesetting processing of the two character sets can be independent of each other. The first terminal can give priority to typesetting the to-be-displayed character set according to the received reading request, so as to speed up the response speed to the reading request. In addition, by using different typesetting rules to typeset the displayed character set and the to-be-displayed character set, the reading progress of the target in the first terminal and the second terminal can be kept consistent, which can also be understood as keeping the first line of content in the current interface of the second terminal when exiting reading consistent with the first line of content in the current interface displayed by the first terminal.

[0117] Based on the description of the above content display method, the embodiment of the present invention further discloses a content display device, which can perform Figure 3 and Figure 6 See the method shown in Figure 7 , the content display device may run the following units:

[0118] The acquiring unit 701 is configured to acquire a character set included in the target content and acquire reading progress information of the target content from a server if a reading request for displaying the target content in the first terminal is received, wherein the characters included in the character set are stored in a preset display order;

[0119] A processing unit 702, configured to divide the character set into a displayed character set and a to-be-displayed character set according to the reading progress information;

[0120] The processing unit 702 is further configured to perform typeset processing on the to-be-displayed character set according to the preset display order and the first typeset rule to obtain a first typeset result;

[0121] The display unit 703 is configured to display the characters included in the to-be-displayed character set on the first terminal according to the first typesetting result.

[0122] In one embodiment, the reading progress information is recorded by the second terminal; the acquisition unit 701 is also used to acquire the type information of the first terminal and the type information of the second terminal; the processing unit 702 is also used to trigger the step of dividing the character set into a displayed character set and a to-be-displayed character set according to the reading progress information if it is determined that the screen size of the first terminal and the screen size of the second terminal are different according to the type information of the first terminal and the type information of the second terminal.

[0123] In one embodiment, the processing unit 702 is also used to, if a historical viewing request for viewing displayed characters in the first terminal is received, typeset the displayed character set according to the preset display order and the second typesetting rule to obtain a second typesetting result; the display unit 703 is also used to display each character included in the displayed character set on the first terminal according to the second typesetting result.

[0124] In one embodiment, the reading progress information includes the target position of the target character included in the character set when the reading was last exited. When the processing unit 702 divides the character set into a displayed character set and a to-be-displayed character set according to the reading progress information, the processing unit 702 performs the following operations: dividing the character set into a displayed character set and a to-be-displayed character set according to the target position and the division rule;

[0125] Among them, the division rule is used to indicate: if the target character is the first character included in the interface when the reading was exited last time, the characters before the target position in the character set are divided into a displayed character set, and the target character and the characters after the target position in the character set are divided into a to-be-displayed character set; if the target character is the last character included in the previous interface of the interface when the reading was exited last time, the target character and the characters before the target position in the character set are divided into a displayed character set, and the characters after the target position in the character set are divided into a to-be-displayed character set.

[0126] In one embodiment, the reading progress information includes: a target position of a target character in the character set recorded by the second terminal when receiving an exit reading instruction during the process of displaying the target content in the second terminal.

[0127] In one embodiment, when the processor 702 typesets the character set to be displayed according to the preset display order and the first typesetting rule to obtain a first typesetting result, the processor 702 performs the following operations: performs initial typesetting processing on the character set to be displayed according to the screen width included in the screen parameters of the first terminal and the acquired display parameters to obtain a first initial typesetting result, and determines a first total typesetting height of the typesetting space occupied by the initial typesetting result; determines a first unit typesetting height of each reading page according to the screen height, the screen width and the display parameters included in the screen parameters of the first terminal; determines the number of reading pages required for pagination typesetting of the character set to be displayed and the page number order of the reading pages according to the first total typesetting height and the first unit typesetting height; determines each reading page in a page number order from front to back, and typesets each character in the first initial typesetting result into a reading page of a corresponding order in a preset display order from front to back.

[0128] In one embodiment, the target character is the first character included in the interface when reading was exited last time, and the processing unit 702 is also used to add a space character before the target character when performing initial typesetting processing on the character set to be displayed according to the screen width included in the screen parameters of the first terminal and the acquired display parameters, if the character before the target character in the character set is a line break character.

[0129] In one embodiment, when the processing unit 702 typesets the displayed character set according to the preset display order and the second typesetting rule to obtain the second typesetting result, the executor performs the following operations: performs initial typesetting processing on the displayed character set according to the screen width included in the screen parameters of the first terminal and the acquired display parameters to obtain the second initial typesetting result, and determines the second total typesetting height of the typesetting space occupied by the second initial typesetting result; determines the second unit typesetting height of each reading page according to the screen height and the screen width included in the screen parameters of the first terminal and according to the display parameters; determines the number of reading pages and the page number sequence of the reading pages required for pagination typesetting of the displayed character set according to the second total typesetting height and the second unit typesetting height; determines each reading page in a page number sequence from back to front, and typesets each character in the second initial typesetting result into a reading page of a corresponding sequence in a preset display order from back to front.

[0130] In one embodiment, the content display device also includes a sending unit 704: the acquisition unit 701 is also used to acquire the character set included in the target content when receiving an exit reading instruction for the target content, and determine the target character according to the current interface; the processing unit 702 is also used to determine the target position of the target character in the character set, and generate reading progress information according to the target position and the content identifier of the target content; the sending unit 704 is used to send the reading progress information to the server.

[0131] According to one embodiment of the present invention, Figure 3 or Figure 6 The various steps involved in the method shown can be performed by Figure 7 The contents shown are executed by various units in the display device. For example, Figure 3 Step S301 shown can be performed by Figure 7 The acquisition unit 701 in the display device of the content shown in FIG. 1 is executed, and step S302 and step S303 can be performed by Figure 7 The processing unit 702 in the display device of the content shown in the figure is executed, and step S304 can be performed by Figure 7 The display unit 703 in the display device of the content shown is executed; for example, Figure 6 The step S604 shown in FIG. 1 may be performed by Figure 7 The acquisition unit 701 in the display device of the content shown in the figure is executed, and step S605 and step S606 can be performed by Figure 7 The processing unit 702 in the display device of the content shown in the figure is executed, and step S607 and step S608 can be performed by Figure 7 The display unit 703 of the display device of the content shown is executed.

[0132] According to another embodiment of the present invention, Figure 7 The various units in the display device of the content shown can be individually or completely combined into one or several other units to constitute, or one (some) of the units can be further divided into multiple functionally smaller units to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In actual applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present invention, the content-based display decoration can also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0133] According to another embodiment of the present invention, the program can be executed by running a program on a general computing device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 3 or Figure 6 A computer program (including program code) for each step involved in the corresponding method shown in Figure 7 The computer program may be recorded on a computer-readable storage medium, loaded into the computing device through the computer-readable storage medium, and run therein.

[0134] In an embodiment of the present invention, if a reading request for displaying target content in a first terminal is received, a character set included in the target content is obtained, and reading progress information of the target content is obtained from a server, wherein the characters included in the character set are stored in a preset display order; the character set is divided into a displayed character set and a to-be-displayed character set according to the reading progress information, and the characters in the displayed character set and the to-be-displayed character set are stored in a preset display order; the to-be-displayed character set is typeset according to the preset display order and the first typesetting rule to obtain a first typesetting result; and the characters included in the to-be-displayed character set are displayed on the first terminal according to the first typesetting result. In the display process of the above content, the character set is divided into a displayed character set and a to-be-displayed character set, and in response to the received reading request, the to-be-displayed character set is preferentially typeset using the first typesetting rule, which can speed up the response to the reading request.

[0135] Based on the description of the above method embodiment and the device embodiment, the embodiment of the present invention further provides a terminal, which corresponds to Figure 3 and Figure 6 The first terminal in the method embodiment shown. Please refer to Figure 8 The terminal may include a processor 801 and a computer storage medium 802. The terminal may also include a display device 803 such as a display screen, and the display device 803 is used to display the characters included in the target.

[0136] The computer storage medium 802 may be stored in the memory of the terminal, and the computer storage medium 802 is used to store a computer program, and the computer program includes program instructions, and the processor 801 is used to execute the program instructions stored in the computer storage medium 802. The processor 801 or CPU (Central Processing Unit) is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; in one embodiment, the processor 801 described in the embodiment of the present invention may be used to execute: if a reading request for displaying target content in a first terminal is received, then a character set included in the target content is obtained, and the reading progress information of the target content is obtained from a server, and the characters included in the character set are stored according to a preset display order; the character set is divided into a displayed character set and a to-be-displayed character set according to the reading progress information; the to-be-displayed character set is typeset according to the preset display order and the first typesetting rule to obtain a first typesetting result; and the characters included in the to-be-displayed character set are displayed on the first terminal according to the first typesetting result.

[0137] The embodiment of the present invention also provides a computer storage medium (Memory), which is a memory device in the terminal for storing programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium in the terminal and the extended storage medium supported by the terminal. The computer storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor 801 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.

[0138] In one embodiment, the processor 801 may load and execute one or more instructions stored in a computer storage medium to implement the corresponding steps of the method in the above-mentioned embodiment of the method for displaying the content; in a specific implementation, the processor 801 loads one or more instructions in the computer storage medium and executes the following steps:

[0139] If a reading request for displaying target content in a first terminal is received, a character set included in the target content is obtained, and reading progress information of the target content is obtained from a server, wherein the characters included in the character set are stored according to a preset display order; the character set is divided into a displayed character set and a to-be-displayed character set according to the reading progress information; the to-be-displayed character set is typeset according to the preset display order and a first typesetting rule to obtain a first typesetting result; and the characters included in the to-be-displayed character set are displayed on the first terminal according to the first typesetting result.

[0140] In one embodiment, if the reading progress information is recorded by the second terminal, one or more instructions in the computer storage medium are loaded by the processor 801 and the following steps are also executed: obtaining the type information of the first terminal and the type information of the second terminal; if it is determined based on the type information of the first terminal and the type information of the second terminal that the screen size of the first terminal is different from the screen size of the second terminal, then triggering the step of dividing the character set into a displayed character set and a to-be-displayed character set based on the reading progress information.

[0141] In one embodiment, one or more instructions in the computer storage medium are loaded by the processor 801 to also execute the following steps: if a historical viewing request for viewing displayed characters in a first terminal is received, the displayed character set is typeset according to the preset display order and the second typesetting rule to obtain a second typesetting result; and each character included in the displayed character set is displayed on the first terminal according to the second typesetting result.

[0142] In one embodiment, the reading progress information includes the target position of the target character included in the character set when the reading was last exited, and the processor 801 performs the following operations when dividing the character set into a displayed character set and a to-be-displayed character set according to the reading progress information: dividing the character set into a displayed character set and a to-be-displayed character set according to the target position and the division rule;

[0143] Among them, the division rule is used to indicate: if the target character is the first character included in the interface when the reading was exited last time, the characters before the target position in the character set are divided into a displayed character set, and the target character and the characters after the target position in the character set are divided into a to-be-displayed character set; if the target character is the last character included in the previous interface of the interface when the reading was exited last time, the target character and the characters before the target position in the character set are divided into a displayed character set, and the characters after the target position in the character set are divided into a to-be-displayed character set.

[0144] In one embodiment, the reading progress information includes: a target position of a target character in the character set recorded by the second terminal when receiving an exit reading instruction during the process of displaying the target content in the second terminal.

[0145] In one embodiment, when the processor 801 performs typeset processing on the character set to be displayed according to the preset display order and the first typesetting rule to obtain a first typesetting result, the processor 801 performs the following operations: performs initial typesetting processing on the character set to be displayed according to the screen width included in the screen parameters of the first terminal and the acquired display parameters to obtain a first initial typesetting result, and determines a first total typesetting height of the typesetting space occupied by the initial typesetting result; determines a first unit typesetting height of each reading page according to the screen height, the screen width and the display parameters included in the screen parameters of the first terminal; determines the number of reading pages required for pagination typesetting of the character set to be displayed and the page number order of the reading pages according to the first total typesetting height and the first unit typesetting height; determines each reading page in a page number order from front to back, and typesets each character in the first initial typesetting result into a reading page of a corresponding order in a preset display order from front to back.

[0146] In one embodiment, if the target character is the first character included in the interface when the reading was exited last time, the processor 801, when typeset processing is performed on the set of characters to be displayed according to the preset display order and the first typesetting rule to obtain the first typesetting result, also performs the following operation: when the initial typesetting processing is performed on the set of characters to be displayed according to the screen width included in the screen parameters of the first terminal and the acquired display parameters, if the character located before the target character in the character set is a line break character, a space character is added before the target character.

[0147] In one embodiment, when the processor 801 typeset the displayed character set according to the preset display order and the second typesetting rule to obtain a second typesetting result, the processor 801 performs the following operations: according to the screen width included in the screen parameters of the first terminal and the acquired display parameters, the displayed character set is initially typeset to obtain a second initial typesetting result, and a second total typesetting height of the typesetting space occupied by the second initial typesetting result is determined; according to the screen height and the screen width included in the screen parameters of the first terminal and the display parameters, a second unit typesetting height of each reading page is determined; according to the second total typesetting height and the second unit typesetting height, the number of reading pages required for pagination typesetting of the displayed character set and the page number order of the reading pages are determined; according to the second total typesetting height and the second unit typesetting height, each reading page is determined in a back-to-front order according to the page number order, and each character in the second initial typesetting result is typeset into a reading page of a corresponding order according to the preset display order from back to front.

[0148] In one embodiment, one or more instructions in the computer storage medium are loaded by the processor 801 and the following steps are also executed: when an exit reading instruction for the target content is received, the character set included in the target content is obtained, and the target character is determined according to the current interface; the target position of the target character in the character set is determined, and reading progress information is generated according to the target position and the content identifier of the target content; and the reading progress information is sent to the server.

[0149] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0150] The above disclosure is only part of the embodiments of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A content display method, characterized in that: include: If a reading request for displaying target content in the first terminal is received, a character set included in the target content is obtained, and reading progress information of the target content is obtained from a server, wherein the characters included in the character set are stored in a preset display order; the reading progress information includes a target position of a target character included in the character set in the character set when reading was last exited; the target position indicates a sequential position of the target character in each character stored in a preset display order; Dividing the character set into a displayed character set and a to-be-displayed character set according to the reading progress information; Performing separate typesetting processing on the set of characters to be displayed according to the preset display order and the first typesetting rule to obtain a first typesetting result; Displaying characters included in the to-be-displayed character set on the first terminal according to the first typesetting result, wherein the position of the target character in the first terminal is the same as that in other terminals; The method further includes: performing typeset processing on the displayed character set according to the preset display order and the second typeset rule to obtain a second typeset result; The characters included in the displayed character set are displayed on the first terminal according to the second typesetting result; the typesetting order indicated in the second typesetting rule is different from that indicated in the first typesetting rule.

2. The method according to claim 1, characterized in that The reading progress information is recorded by the second terminal; before dividing the character set into a displayed character set and a to-be-displayed character set according to the reading progress information, the method further includes: Acquire type information of the first terminal and type information of the second terminal; If it is determined according to the type information of the first terminal and the type information of the second terminal that the screen size of the first terminal is different from the screen size of the second terminal, the step of dividing the character set into a displayed character set and a to-be-displayed character set according to the reading progress information is triggered.

3. The method according to claim 1, characterized in that The method further comprises: If a history viewing request for viewing displayed characters in the first terminal is received, typeset processing is performed on the displayed character set according to the preset display order and the second typesetting rule to obtain a second typesetting result; Each character included in the displayed character set is displayed on the first terminal according to the second typesetting result.

4. The method according to claim 1, characterized in that The dividing the character set into a displayed character set and a to-be-displayed character set according to the reading progress information includes: Dividing the character set into a displayed character set and a to-be-displayed character set according to the target position and the division rule; Among them, the division rule is used to indicate: if the target character is the first character included in the interface when the reading was exited last time, the characters before the target position in the character set are divided into a displayed character set, and the target character and the characters after the target position in the character set are divided into a to-be-displayed character set; if the target character is the last character included in the previous interface of the interface when the reading was exited last time, the target character and the characters before the target position in the character set are divided into a displayed character set, and the characters after the target position in the character set are divided into a to-be-displayed character set.

5. The method according to claim 4, characterized in that The reading progress information includes: during the process of displaying the target content in the second terminal, the target position of the target character in the character set is recorded by the second terminal when receiving the exit reading instruction.

6. The method according to claim 1, characterized in that The performing separate typesetting processing on the set of characters to be displayed according to the preset display order and the first typesetting rule to obtain a first typesetting result includes: According to the screen width included in the screen parameters of the first terminal and the acquired display parameters, initial typesetting processing is performed on the set of characters to be displayed to obtain a first initial typesetting result, and a first total typesetting height of the typesetting space occupied by the first initial typesetting result is determined; Determine a first unit layout height of each reading page according to the screen height, the screen width and the display parameters included in the screen parameters of the first terminal; Determining the number of reading pages and the page number sequence of the reading pages required for pagination typesetting of the character set to be displayed according to the first total typesetting height and the first unit typesetting height; The reading pages are determined in a sequence from front to back according to the page number sequence, and the characters in the first initial typesetting result are typeset into the reading pages of the corresponding sequence in a sequence from front to back according to the preset display sequence.

7. The method according to claim 6, characterized in that The target character is the first character included in the interface when the reading was exited last time, and the set of characters to be displayed is individually typeset according to the preset display order and the first typesetting rule to obtain a first typesetting result, and further includes: When performing initial typesetting processing on the character set to be displayed according to the screen width included in the screen parameters of the first terminal and the acquired display parameters, if the character preceding the target character in the character set is a line break, a space character is added before the target character.

8. The method according to claim 3, characterized in that The step of performing typeset processing on the displayed character set according to the preset display order and the second typeset rule to obtain a second typeset result includes: According to the screen width included in the screen parameters of the first terminal and the acquired display parameters, perform initial typesetting processing on the displayed character set to obtain a second initial typesetting result, and determine a second total typesetting height of the typesetting space occupied by the second initial typesetting result; Determine a second unit layout height of each reading page according to the screen height, the screen width and the display parameters included in the screen parameters of the first terminal; Determining the number of reading pages and the page number sequence of the reading pages required for pagination typesetting of the displayed character set according to the second total typesetting height and the second unit typesetting height; The reading pages are determined in a sequence from back to front according to the page number sequence, and the characters in the second initial typesetting result are typeset into the reading pages of the corresponding sequence in a sequence from back to front according to the preset display sequence.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: When receiving an exit reading instruction for the target content, obtaining a character set included in the target content, and determining a target character according to the current interface; Determine a target position of the target character in the character set, and generate reading progress information according to the target position and a content identifier of the target content; The reading progress information is sent to the server.

10. A content display device, characterized in that: include: an acquisition unit, configured to, upon receiving a reading request for displaying target content in a first terminal, acquire a character set included in the target content, and acquire reading progress information of the target content from a server, wherein the characters included in the character set are stored in a preset display order; the reading progress information includes a target position of a target character included in the character set in the character set when reading was last exited; the target position indicates a sequential position of the target character in each character stored in a preset display order; A processing unit, configured to divide the character set into a displayed character set and a to-be-displayed character set according to the reading progress information; The processing unit is further used to perform separate typesetting processing on the to-be-displayed character set according to the preset display order and the first typesetting rule to obtain a first typesetting result; a display unit, configured to display characters included in the to-be-displayed character set on the first terminal according to the first typesetting result, wherein the position of the target character in the first terminal is the same as that in other terminals; The processing unit is further configured to perform typeset processing on the displayed character set according to the preset display order and a second typeset rule to obtain a second typeset result; the second typeset rule is different from the typeset order indicated in the first typeset rule; The display unit is further configured to display each character included in the displayed character set on the first terminal according to the second typesetting result.

11. A content display terminal, characterized in that: Also includes: a processor adapted to implement one or more instructions; as well as, A computer storage medium, wherein the computer storage medium stores one or more instructions, wherein the one or more instructions are suitable for being loaded by the processor and executing the content display method according to any one of claims 1 to 9.

12. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, they are used to execute the content display method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Fast-approaching typesetting method and device of electronic reader

    CN102479176A

  • Reading mode switching position locating method and apparatus

    CN107301161A

  • Webpage electronic reading material display method and system, terminal, computer equipment and medium

    CN109740080A

  • System and method for e-book reading progress indicator and invocation thereof

    US20160140249A1