Detailed Description
Fig. 1 is a flowchart illustrating an electronic book ordering method according to an exemplary embodiment of the present invention.
As shown in fig. 1, the electronic book ordering method provided in this embodiment includes:
step 101, receiving an operation instruction sent by a user.
Wherein, the electronic device can receive the operation instruction sent by the user. And the electronic equipment is operated by the user, and the electronic equipment determines a corresponding operation instruction according to the operation of the user. Specifically, the server may also receive an operation instruction sent by the user. After the user operates the electronic device, the electronic device determines a corresponding operation instruction according to the operation of the user, and forwards the determined operation instruction to the server, so that the server can obtain the operation instruction of the user.
Further, the operation instruction may be an instruction for the user to open the reading software, or an instruction for querying a book. For example, a user touches a screen of a touch screen electronic device, opening software having a function of downloading and/or reading an electronic book. The user can also operate the electronic equipment to send out an operation instruction for inquiring historical books.
The method provided by the present embodiment is used for sequencing an electronic book, and is executed by a terminal or a server storing the method provided by the present embodiment, and the apparatus is generally implemented in a hardware and/or software manner.
And 102, acquiring a book corresponding to the operation instruction according to the operation instruction.
In practical application, the device receiving the user operation instruction may determine the corresponding book according to the operation instruction. For example, if the user sends a query instruction, and the query is conditioned to "trisomy", the device receiving the query instruction acquires all books associated with "trisomy".
If the terminal device executes the method provided by the embodiment, the terminal device may obtain a book corresponding to the operation instruction from the server according to the operation instruction of the user; if the server executes the method provided by the embodiment, the server directly acquires the book associated with the operation instruction.
Specifically, if the operation instruction is an instruction to open reading software, the book corresponding to the opening instruction is a recommended book, such as a new book on shelf, a book on sale, and the like; if the operation instruction is an inquiry instruction, the book corresponding to the inquiry instruction is a book associated with the inquiry condition, for example, if the inquiry condition is 'dream of red building', all books with labels of dream of red building are acquired, and if the inquiry condition is 'education', all books with labels of 'education' are acquired.
Further, the tags of the respective books may be stored in advance and the books may be associated with the tags possessed thereby. When a user queries books, the tags can be determined according to query conditions input by the user, and then the books related to the tags are determined according to the tags. The query condition input by the user can be directly used as a tag, or the query condition input by the user can be processed to generate a tag, for example, a key word can be extracted, and if the user inputs a "book about education", a keyword "education" can be extracted from the key word.
And 103, acquiring the personalized typesetting information of the user, and sequencing the acquired books according to the personalized typesetting information of the user.
In actual application, the user information may also be determined according to an operation instruction sent by the user, for example, the operation instruction sent by the user may directly include the user information. And then obtaining the personalized typesetting information of the user according to the user information.
The personalized typesetting information may be reading habit information input by the user in advance through the terminal, for example, if the user inputs "the font is a regular font and the font size is 3 #" through the terminal, it may be determined that the typesetting condition that the font is the regular font and the font size is 3 # "is most suitable for the user to read when the user reads the electronic book according to the information input by the user.
Specifically, the personalized layout information may also be determined according to the historical reading record of the user. The reading records of the user can be regularly acquired, the reading records are analyzed, the personalized typesetting information of the user is determined, and the personalized typesetting information is stored. Therefore, the personalized typesetting information can be directly acquired when the electronic book needs to be sequenced. And when the electronic book needs to be sequenced every time, the personalized typesetting information can be determined according to the reading record of the user, so that the timeliness of the scheme provided by the embodiment is better. In addition, the personalized typesetting information can also be determined according to the record of the books downloaded by the user, for example, if most of the books downloaded by the user are vertically typeset books, the vertical typesetting is determined as the personalized typesetting information of the user.
In which the reading records of the last few times of users can be obtained, thereby reducing the amount of data read, for example, the reading records of the last 5 times of users can be obtained. And extracting the format information included in the 5 times of reading records, and taking the format information most used by the user as personalized typesetting information. For example, in 5 times of reading records, if the user uses the font No. 3 4 times, the font No. 21 time, the line spacing value 1.5 3 times and the line spacing value 1 2 times, the font No. 3 and the line spacing value 1.5 are used as the personalized typesetting information of the user.
Specifically, if the user changes the layout information in the reading process, the changed layout information is used as the layout information of the reading record. If the user changes the typesetting information, the user can be considered to be dissatisfied with the original typesetting information and can be adjusted to the typesetting format suitable for reading, so that the changed typesetting information can be considered to be the typesetting format preferred by the user.
Further, after obtaining the personalized typesetting information of the user, the obtained typesetting information of each book can be determined. The typesetting information of the book can be directly determined according to the information carried by the book, and the electronic book can also be scanned to determine the typesetting information in the electronic book.
The personalized typesetting information of the user and the typesetting information of the electronic books can be compared, each electronic book is scored according to the comparison result, and then each electronic book is sequenced according to the scoring result. For example, the similarity between the personalized layout information and the layout information of the electronic book may be compared, and the higher the similarity is, the higher the book score is.
In practical applications, the electronic book may also be scored in combination with other parameters, such as the score, the definition, the download amount, the association degree with the operation instruction, and the like of the historical user.
And 104, pushing the book to the user according to the sequencing result.
The books are sequenced according to the sequencing result, and the books are pushed to the user according to the sequence, so that when the user sees the pushed book list, the typesetting information is more suitable for the books read by the user to be placed at the front position, and the user can find the satisfied e-book in the shortest time.
The electronic book ordering method provided by the embodiment includes: receiving an operation instruction sent by a user; acquiring a book corresponding to the operation instruction according to the operation instruction; acquiring personalized typesetting information of a user, and sequencing the acquired books according to the personalized typesetting information of the user; and pushing the books to the user according to the sequencing result. The method provided by the embodiment can sequence the acquired books according to the personalized typesetting information of the user, so that a personalized book list is provided for the user, the user can find the books suitable for reading in the list as soon as possible, and the problem that the user needs to spend a large amount of time in the recommended books in the prior art is solved.
Fig. 2 is a flowchart illustrating an electronic book sorting method according to another exemplary embodiment of the present invention.
As shown in fig. 2, the method for ordering electronic books provided by this embodiment includes:
step 201, receiving an operation instruction sent by a user.
Step 202, acquiring a book corresponding to the operation instruction according to the operation instruction.
The specific principles and implementation of steps 201-202 are similar to those of steps 101-102, and are not described herein again.
Step 202 may be executed after step 201, step 204 may be executed, or step 202 and step 204 may be executed simultaneously after step 201.
Step 202 is followed by step 203.
Step 203, determining the obtained book typesetting information of each book.
The typesetting information of the book can be directly determined according to the information carried by the book, and the electronic book can also be scanned to determine the typesetting information in the electronic book.
Specifically, the obtained book typesetting information includes at least one layout feature, and the layout feature corresponds to the layout feature in the personalized typesetting information. For example, the personalized layout information includes a font size, and the book layout information also includes a font size.
And step 204, acquiring historical reading records of the user, and determining reading typesetting information included in each reading record.
The user information for sending the operation instruction can be determined according to the operation instruction, and the historical reading record of the user can be obtained. If the terminal device executes the method provided by the embodiment, the reading record of the user can be stored in the terminal device, so that the terminal device can directly acquire the historical reading record of the user. If the server executes the method provided by the embodiment, the server can synchronously update the reading records stored in the terminal equipment, and further can directly acquire the reading records of the user; the server can also send a data request to the terminal device when the reading record is needed to be used, so that the terminal device sends the historical reading record of the user to the server.
Specifically, the reading record of the user at each time may be obtained, or the reading records of the last several times may also be obtained, and the specific times may be set according to requirements, which is not limited in this embodiment.
Furthermore, the historical reading records of the user can be analyzed, and the reading typesetting information included in the historical reading records can be extracted. The layout information may include layout information of the book read by the user, and may further include information for adjusting the layout of the book by the user. The specific features included in the typesetting information can be fonts, word sizes and line spacing, and can also include hyperlink formats, image-text formats and the like.
In practical application, the reading record may further include the number of times that the user clicks the hyperlink, if the number of times that the user clicks the hyperlink is large, the user may be considered to prefer to read the available book of the hyperlink, and if the user never clicks the hyperlink, the user may be considered to be indifferent to whether the hyperlink is available.
Optionally, after obtaining the historical reading record of the user, the method may further include:
and judging whether the reading record comprises a format adjustment record, and if so, taking the adjusted book format as reading typesetting information.
When a user reads an electronic book, if the current layout of the electronic book is not satisfactory, the user may perform certain adjustment on the current layout of the electronic book, such as adjusting the font size, the background color, and the like. Therefore, the adjusted book format can be considered as a favorite format of the user, and thus the reading habit of the user can be determined more accurately by using the adjusted book format as the reading typesetting information of the user.
Step 205 is performed after step 204.
And step 205, determining the personalized typesetting information of the user according to the reading typesetting information.
The typesetting information which is read for many times can be analyzed, the typesetting information which is used for the most times by the user is determined, and the typesetting information is determined as the personalized typesetting information of the user. And determining the typesetting information with the longest use time of the user as the personalized typesetting information of the user.
Fig. 3 is a flowchart illustrating a process of determining personalized layout information of a user according to reading layout information according to an exemplary embodiment of the present invention.
As shown in fig. 3, step 205 may further include:
step 2051, at least one layout feature included in the reading layout information is extracted.
Specifically, the reading composition information includes at least one format characteristic, such as the size of a font, and may further include an operation record of the user on the hyperlink.
Furthermore, all layout features in the reading typesetting information can be extracted, and the layout features of a specific type can be selected according to preset conditions. For example, only the font and font size included therein are extracted.
And step 2052, determining the proportion of the layout features in the layout type.
In practical application, the proportion of the layout features in the belonging layout categories can be determined according to the occurrence frequency of the layout features in the reading record.
The extracted layout features of the same category can be put into a set, and layout features of several categories are extracted, so that several corresponding sets are set. And calculating the proportion of each layout feature in each set. For example, in one set, a total of five layout features are included, namely { A, A, B, B, B }. The proportion of layout feature a is 0.4 and the proportion of layout feature B is 0.6.
In addition, the proportion of the layout characteristics in the belonging layout type can be determined according to the reading recording time length.
The extracted layout features of the same type and the reading time length corresponding to the layout features can be put into a set, and the reading time length ratio corresponding to each layout feature in each set is calculated. For example, in a set, a total of five layout features are included, namely { A-10, A-15, B-5, B-25, B-6}, the proportion of the layout feature A is 0.41, and the proportion of the layout feature B is 0.59.
Furthermore, the adjusted layout characteristics can be weighted. After the user adjusts the layout characteristics of the electronic book, the adjusted layout characteristics can be considered as layout characteristics suitable for the user to read, namely, layout characteristics satisfied by the user, so that weighting processing can be performed on the layout characteristics, and the weight of the layout characteristics is increased. Specifically, when calculating the proportion of each layout feature, the adjusted layout features may be multiplied by a weight coefficient on the basis of the calculation result, so as to improve the final proportion value. Since the reading habits of the user may change, for example, the user prefers a yellow background for a previous period of time and a pink background for a recent period of time, the user may adjust the background color of some electronic books to be pink when reading for a recent period of time. If the proportion of the pink background is adjusted through the weight coefficient, the proportion of the pink background can be improved, and the accuracy of obtaining the reading habit of the user can be further improved.
And step 2053, determining the layout characteristics with the highest proportion in each layout type as the personalized layout information of the user.
The layout characteristics with the highest proportion can be determined in each layout characteristic category, and the set of the layout characteristics with the highest proportion is used as the personalized layout information of the user.
Specifically, if the layout features with the same proportion exist, the time interval between the reading records including the layout features and the current time is judged, and the layout feature corresponding to the reading record with the shortest time interval, namely the reading record closest to the current time, is used as the personalized typesetting information of the user.
Referring to fig. 2, the method for ordering electronic books provided in this embodiment further includes:
and step 206, obtaining the personalized typesetting information of the user.
Step 206 is similar to the implementation method and principle of obtaining the personalized layout information of the user in step 103, and is not described herein again.
And step 207, comparing the book typesetting information with the personalized typesetting information, and determining a matching value between each book typesetting information and the personalized typesetting information according to the comparison result.
Further, comparing the typesetting information of each book with the personalized typesetting information. The layout characteristics of the same category can be compared one by one, for example, if the background color included in the book layout information is yellow, and if the background color included in the personalized layout information is pink, the two are different.
In practical application, the layout features of each type may be compared and a matching value determined, for example, if the two are the same, the matching value is 1, and if the two are different, the matching value is 0.
Some layout features are different but very similar, and the matching value can be determined according to the specific difference between the layout features. For example, if the background colors are relatively close, a larger matching value, such as 0.9, 0.8, etc., may be set, and the specific matching value needs to be determined according to the similarity between the layout features.
Specifically, the matching values of the format types may be added to obtain a final matching value of the book format feature. Or weighting the layout feature matching values concerned by the user, and then calculating the sum of all the layout feature matching values. The layout characteristics of the users 'comparative interest can be determined by reading the record of the adjusted layout information included in the record, for example, the font size can be considered as the users' comparative interest if the content of each adjustment by the users is the font size.
And step 208, sequencing the acquired books according to the matching values.
Further, the book that is most matched with the personalized typesetting information of the user can be placed at the front position.
In practical application, books can be sorted according to information of multiple dimensions, such as downloading amount, user history scores and matching values.
And step 209, pushing the book to the user according to the sequencing result.
The specific principle and implementation of step 209 are similar to those of step 104, and are not described herein again.
In addition, the method provided by the embodiment may further include:
and typesetting the obtained book according to the personalized typesetting information.
If the matching values between the obtained typesetting information of the book and the personalized typesetting information are low, the obtained typesetting information of the book is considered to be not in accordance with the personalized information of the user, and at the moment, the obtained book can be typeset according to the personalized typesetting information. This step may be executed after step 207, and step 207 may be executed again according to the rearranged book layout information, to compare the layout information, and to sort the books.
The method and the device can adjust the obtained original version information of the book to make the adjusted typesetting information consistent with the personalized typesetting information as much as possible. For example, if the original layout information is a font No. 5 and the personalized layout information is a font No. 7, the font size of the book may be adjusted to be font No. 7.
Specifically, in order to avoid confusion when adjusting the book layout information, the layout content for performing layout on the obtained book according to the personalized layout information may be set, for example, only the layout information such as the font, the font size, and the like of the book may be adjusted. For example, the original typesetting information of the books is that the characters are transversely distributed, the books comprise illustrations, the characters surround the illustrations, the personalized typesetting information of the user is that the characters are vertically distributed, and at the moment, if the books are changed into the characters to be vertically distributed, the typesetting disorder is easy to occur, so that the books can be selectively rearranged to avoid the typesetting disorder of the books, and the rearranged books can meet the personalized requirements of the user as much as possible.
Furthermore, when the number of the acquired books is large, if the books are all rearranged, the problems of large processing pressure and low processing speed of the terminal or the server are easily caused. Therefore, in another embodiment, the user may further operate the terminal to issue an instruction for automatic typesetting, where the instruction may carry a book identifier, so as to perform typesetting again on the book selected by the user.
In practical application, after the corresponding books are obtained according to the user instruction, the user can select a part of the books and click the automatic typesetting button, so that the terminal or the server is triggered to execute the steps.
The electronic book sorting method provided by the embodiment can determine the personalized typesetting information of the user according to the reading record of the user, so that more accurate version information suitable for the user to read is determined, the matching value of the obtained book and the personalized version information of the user is determined based on the version information, the books are sorted according to the matching value, the books more suitable for the user to read can be placed at the front end of the queue, and the problem that the user needs to spend a large amount of time in screening recommended books in the prior art is solved.
Fig. 4 is a block diagram illustrating an electronic book sorting apparatus according to an exemplary embodiment of the present invention.
As shown in fig. 4, the electronic book sorting apparatus provided in this embodiment includes:
a receiving module 41, configured to receive an operation instruction sent by a user;
an obtaining module 42, configured to obtain, according to the operation instruction, a book corresponding to the operation instruction;
a sorting module 43, configured to acquire personalized layout information of the user, and sort the acquired books according to the personalized layout information of the user;
and a pushing module 44, configured to push the book to the user according to the sorting result.
The receiving module 41, the obtaining module 42, the sorting module 43, and the pushing module 44 are connected in sequence.
The electronic book sequencing device provided by the embodiment comprises a receiving module, a processing module and a control module, wherein the receiving module is used for receiving an operation instruction sent by a user; the acquisition module is used for acquiring the books corresponding to the operation instructions according to the operation instructions; the sequencing module is used for acquiring the personalized typesetting information of the user and sequencing the acquired books according to the personalized typesetting information of the user; and the pushing module is used for pushing the books to the user according to the sequencing result. The device provided by the embodiment can sequence the acquired books according to the personalized typesetting information of the user, so that a personalized book list is provided for the user, the user can find the books suitable for reading in the list as soon as possible, and the problem that the user needs to spend a large amount of time in screening the recommended books in the prior art is solved.
The specific principle and implementation of the electronic book sorting apparatus provided in this embodiment are similar to those of the embodiment shown in fig. 1, and are not described herein again.
Fig. 5 is a block diagram illustrating an electronic book sorting apparatus according to another exemplary embodiment of the present invention.
As shown in fig. 5, on the basis of the foregoing embodiment, in the electronic book sorting apparatus provided in this embodiment, the obtaining module 42 includes:
an obtaining unit 421, configured to obtain a historical reading record of a user, and determine reading composition information included in each reading record;
the first determining unit 422 is configured to determine personalized layout information of the user according to the reading layout information.
The obtaining unit 421 and the first determining unit 422 are connected.
Optionally, the first determining unit 422 is specifically configured to:
extracting at least one layout characteristic included in the reading typesetting information;
determining the proportion of the layout features in the layout type;
and determining the layout characteristics with the highest proportion in each layout category as the personalized layout information of the user.
Optionally, the obtaining module 42 further includes:
the determining unit 423 is configured to determine whether the reading record includes a format adjustment record, and if so, use the adjusted book format as the reading typesetting information.
The determining unit 423 is connected to the acquiring unit 421 and the first determining unit 422 in sequence.
Optionally, the sorting module 43 includes:
a second determining unit 431, configured to determine the acquired book layout information of each book;
a comparison unit 432, configured to compare the book layout information with the personalized layout information, and determine a matching value between each book layout information and the personalized layout information according to a comparison result;
and the sorting unit 433 is configured to sort the acquired books according to the matching values.
The second determining unit 431, the comparing unit 432, and the sorting unit 433 are connected in sequence.
Optionally, the apparatus provided in this embodiment may further include:
and the typesetting module is used for typesetting the acquired books according to the personalized typesetting information.
The specific principle and implementation of the electronic book sorting apparatus provided in this embodiment are similar to those of the embodiments shown in fig. 2 to 3, and are not described herein again.
The present embodiments also provide a computer-readable storage medium, having stored thereon a computer program,
the computer program is executed by a processor to implement any of the methods described above.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.