CN104166641B - Electronic book generating method and device - Google Patents

Electronic book generating method and device Download PDF

Info

Publication number
CN104166641B
CN104166641B CN201410385393.2A CN201410385393A CN104166641B CN 104166641 B CN104166641 B CN 104166641B CN 201410385393 A CN201410385393 A CN 201410385393A CN 104166641 B CN104166641 B CN 104166641B
Authority
CN
China
Prior art keywords
book
format
book format
terminal
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410385393.2A
Other languages
Chinese (zh)
Other versions
CN104166641A (en
Inventor
方卿
曾元祥
袁小群
冯明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201410385393.2A priority Critical patent/CN104166641B/en
Publication of CN104166641A publication Critical patent/CN104166641A/en
Application granted granted Critical
Publication of CN104166641B publication Critical patent/CN104166641B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an electronic book generating method and device. According to the main technical scheme, an electronic book release request is received, wherein the electronic book release request carries content theme information, user identification information and terminal type information which are requested to be obtained; the corresponding content is obtained according to the content theme information; an electronic book format log is inquired according to the user identification information, the terminal type information and the theme information, and a matched electronic book format is obtained, wherein the electronic book format log stores the corresponding relation of the user identification information, the terminal type information and the content theme information with the electronic book format; an electronic book release format is generated according to the inquired electronic book format, and an electronic book is generated through the obtained content. By the adoption of the technical scheme, the individual requirements for electronic book release are met.

Description

A kind of e-book generation method and device
Technical field
The present invention relates to digital technology process field, more particularly to a kind of e-book generation method and device.
Background technology
E-book format is referred to carries out design institute structure to typesetting key elements such as e-book page Chinese version, figure, images Into page format.E-book document is referred to according to the describing mode and the electronic document for preserving thinking generation of certain e-book.
The e-book document of current industry main flow has three kinds of developing thoughts:One is format document, with the PDF of Adobe To represent, using absolute describing mode, position and size that document shows clearly are have recorded;Two is streaming document, with EPUB lattice Formula is representative, can be strong with description scheme information, accurate paging, terminal adaptive ability;Three is that format and streaming combine document, with Upright CEBX forms are representative, have merged fixed format information and structurized streaming information, with preferable format effect With terminal adaptability.
Current electronic book development field is presented three developing directions:One is that multiple terminals is issued, and e-book reading terminal is increasingly Diversification, it is desirable to which e-book is making and can adapt in issuing process.Different types of terminal have different screen proportions, Size etc., realize " producing once, polynary issue ", content separate with pattern be multiple terminals issue basic ideas.Two is dynamic Property, as the instantaneity of user's request constantly strengthens, it is desirable to can automatically generate matching in the issuing process of e-book multiple terminals The e-book of terminal, responds the instantaneity of user's request.Three be the individualized feature of format demand day by day substantially, user is to electronics The customization demand that book vision is presented gradually strengthens, it is desirable to which the format of e-book generates the individual demand that disclosure satisfy that user.
Above-mentioned three electron-likes book document has still been short of in terms of current development trend is agreed with.PDF and CEBX format files It is also not enough in terms of user's format individual demand is met although preferably, terminal adaptability is poor for format effect;EPUB Although format file terminal adaptability, dynamic are preferably, its streaming published method causes the not substantially even meeting of its format feature There is the chaotic situation of typesetting, therefore above-mentioned three electron-likes book document is deficient in terms of user's format individual demand is met Lack, it is impossible to ensure the vision quality read well.
The content of the invention
The embodiment of the present invention provides a kind of e-book generation method and device, to realize that the personalization that e-book is generated is needed Ask.
The embodiment of the present invention provides a kind of e-book generation method, and the method includes:
Receive e-book and issue request, the e-book issues the content topic letter that acquisition request is carried in request The type information of breath, user totem information and terminal;
According to the corresponding content of the content topic acquisition of information;
E-book format is inquired about according to the user totem information, the type information of the terminal and the subject information Daily record, obtains the e-book format of matching, the user totem information that is stored with the e-book format daily record, terminal type, interior Hold the corresponding relation of subject information and e-book format;
According to the e-book format for inquiring, generate e-book and issue format, the content of the acquisition is generated into e-book.
It is preferred that the e-book format daily record includes the first log sheet, be stored with user in first log sheet The corresponding relation of display pattern, content subject matter categories and e-book format that identification information, terminal are supported, wherein, terminal is supported Display pattern it is corresponding with the type of terminal;
It is described that e-book is inquired about according to the user totem information, the type information of the terminal and the subject information Format daily record, including:
The display pattern that the terminal is supported is inquired about according to the type information of the terminal;
Content type according to belonging to the subject information determines the theme;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, inquiry First log sheet.
It is preferred that display pattern, the content supported with user totem information, terminal that be also stored with first log sheet Subject categories and e-book format is corresponding is satisfied with weight parameter;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, First log sheet is inquired about, including:
If according to the user totem information, the type information of the terminal and the subject information, described first Inquire M e-book format in log sheet, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight Parameter is defined as the e-book format of the matching more than the first e-book format in the e-book format of given threshold, and more Newly the first e-book format is corresponding is satisfied with weight parameter;Or
If according to the user totem information, the type information of the terminal and the subject information, described first Inquire M e-book format in log sheet, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight Parameter is distributed to the terminal, 1≤K≤M more than the information of K e-book format of given threshold;
The first e-book format that the terminal is selected from the K e-book format is received, it is electric by described first Philosophical works format is defined as the e-book format of the matching, generates e-book according to the first e-book format and issues format, And update that the first e-book format is corresponding to be satisfied with weight parameter.
It is preferred that the e-book format daily record includes the second log sheet, be stored with electronics in second log sheet The corresponding relation of book format and e-book format service condition statistical parameter;
Wherein, the e-book format in second log sheet is that classification is stored, class of the classification according to the terminal Type information and the content type;If not inquiring the e-book format of matching, methods described from first log sheet Also include:
N number of e-book format is obtained from second log sheet according to e-book format service condition statistical parameter, N >= 1;
The information of N number of e-book format is distributed to into the terminal;
The second e-book format that the terminal is selected from N number of e-book format is received, and according to described second E-book format generates e-book and issues format, and the content of the acquisition is generated into e-book.
It is preferred that after receiving the second e-book format that the terminal is selected from N number of e-book format, also wrapping Include:
According to the second e-book format, the second e-book format of storage in second log sheet is updated Service condition statistical parameter;
Add in first log sheet user totem information, the terminal support display pattern, it is described in Hold subject categories, be satisfied with weight parameter with the corresponding relation of the second e-book format.
The embodiment of the present invention provides a kind of e-book generating means, and the device includes:
Receiver module, for receiving e-book request is issued, and the e-book is issued in request and carries acquisition request Content topic information, user totem information and terminal type information;
Content search module, for inquiring about corresponding content according to the subject information;
Format enquiry module, for according to the user totem information, the type information of the terminal and the theme Information inquiry e-book format daily record, obtains the e-book format of matching, the user that is stored with e-book format daily record mark The corresponding relation of knowledge information, terminal type, content topic information and e-book format;
E-book generation module, for according to the e-book format for inquiring, generating e-book format is issued, and is obtained described The content for taking generates e-book.
It is preferred that the format enquiry module specifically for:
The e-book format daily record includes the first log sheet, the ID that is stored with first log sheet letter The corresponding relation of display pattern, content subject matter categories and e-book format that breath, terminal are supported, wherein, the display that terminal is supported Pattern is corresponding with the type of terminal;
It is described that e-book is inquired about according to the user totem information, the type information of the terminal and the subject information Format daily record, including:
The display pattern that the terminal is supported is inquired about according to the type information of the terminal;
Content type according to belonging to the subject information determines the theme;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, inquiry First log sheet.
It is preferred that the format enquiry module specifically for:
Also be stored with display pattern, the content topic class supported with user totem information, terminal in first log sheet Not and e-book format is corresponding is satisfied with weight parameter;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, First log sheet is inquired about, including:
If according to the user totem information, the type information of the terminal and the subject information, described first Inquire M e-book format in log sheet, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight Parameter is defined as the e-book format of the matching more than the first e-book format in the e-book format of given threshold, and more Newly the first e-book format is corresponding is satisfied with weight parameter;Or
If according to the user totem information, the type information of the terminal and the subject information, described first Inquire M e-book format in log sheet, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight Parameter is distributed to the terminal, 1≤K≤M more than the information of K e-book format of given threshold;
The first e-book format that the terminal is selected from the K e-book format is received, it is electric by described first Philosophical works format is defined as the e-book format of the matching, generates e-book according to the first e-book format and issues format, And update that the first e-book format is corresponding to be satisfied with weight parameter.
It is preferred that the format enquiry module specifically for:
The e-book format daily record includes the second log sheet, the e-book format that is stored with second log sheet with The corresponding relation of e-book format service condition statistical parameter;
Wherein, the e-book format in second log sheet is that classification is stored, class of the classification according to the terminal Type information and the content type;If not inquiring the e-book format of matching, methods described from first log sheet Also include:
N number of e-book format is obtained from second log sheet according to e-book format service condition statistical parameter, N >= 1;
The information of N number of e-book format is distributed to into the terminal;
The second e-book format that the terminal is selected from N number of e-book format is received, and according to described second E-book format generates e-book and issues format, and the content of the acquisition is generated into e-book.
It is preferred that described be additionally operable to:
E-book generation module receives the second e-book format that the terminal is selected from N number of e-book format Afterwards, according to the second e-book format, the use of the second e-book format stored in second log sheet is updated Situation statistical parameter;
Add in first log sheet user totem information, the terminal support display pattern, it is described in Hold subject categories, be satisfied with weight parameter with the corresponding relation of the second e-book format.
In the embodiment of the present invention, receive e-book and issue request, the e-book is issued to be carried in request and asked to obtain The type information of the content topic information, user totem information and the terminal that take;It is corresponding according to the content topic acquisition of information Content;E-book format day is inquired about according to the user totem information, the type information of the terminal and the subject information Will, obtains the e-book format of matching, and be stored with user totem information, terminal type, content in the e-book format daily record The corresponding relation of subject information and e-book format;According to the e-book format for inquiring, generate e-book and issue format, by institute The content for stating acquisition generates e-book.To realize the individual demand that e-book is generated.
Description of the drawings
Fig. 1 is a kind of e-book generation method flow chart that the embodiment of the present invention one is provided;
The e-book format type schematic diagram that Fig. 2 is provided for the embodiment of the present invention one;
Fig. 3 is that the e-book layout structure that the embodiment of the present invention one is provided defines schematic diagram;
Fig. 4 is the e-book format generation method flow chart that the embodiment of the present invention one is provided;
Fig. 5 is a kind of e-book generating means schematic diagram provided in an embodiment of the present invention.
Specific embodiment
In the embodiment of the present invention, receive e-book and issue request, the e-book is issued to be carried in request and asked to obtain The type information of the content topic information, user totem information and the terminal that take;It is corresponding according to the content topic acquisition of information Content;E-book format day is inquired about according to the user totem information, the type information of the terminal and the subject information Will, obtains the e-book format of matching, and be stored with user totem information, terminal type, content in the e-book format daily record The corresponding relation of subject information and e-book format;According to the e-book format for inquiring, generate e-book and issue format, by institute The content for stating acquisition generates e-book.In so as to solve prior art, it is impossible to which confirmation is sent to the e-book format of terminal use Whether the problem of End User satisfaction is obtained.
The embodiment of the present invention is performed in network side or server end, such as performed by e-book generating means.E-book The cluster that generating means may refer to a server or are made up of multiple servers.Be stored with electricity in e-book generating means Philosophical works layout information and e-book format daily record, be stored with user totem information, terminal class in the e-book format daily record The corresponding relation of type, content topic information and e-book format.E-book generating means are according to ID, terminal type, interior Hold the information such as theme, be the e-book format of user's selection matching, so as to realize electronics by inquiring about the e-book format daily record Inteilectual into individual demand.
The preferred embodiments of the present invention are illustrated below in conjunction with Figure of description, it will be appreciated that described herein Preferred embodiment is merely to illustrate and explains the present invention, is not intended to limit the present invention.And in the case where not conflicting, this Shen Please in embodiment and the feature in embodiment can be mutually combined.
Embodiment one
As shown in figure 1, a kind of e-book generation method flow chart that the embodiment of the present invention one is provided, the flow process can be by electronics Book generating means are performed, and are comprised the following steps:
Step 101, receives e-book and issues request, and the e-book issues the content that acquisition request is carried in request The type information of subject information, user totem information and terminal;
Step 102, according to the corresponding content of the content topic acquisition of information;
Step 103, according to the user totem information, the type information of the terminal and subject information inquiry electricity Philosophical works format daily record, obtains the e-book format of matching, and be stored with user totem information, terminal in the e-book format daily record The corresponding relation of type, content topic information and e-book format;
Step 104, according to the e-book format for inquiring, generates e-book and issues format, and the content of the acquisition is given birth to Into e-book.
Terminal in above-mentioned flow process may include PC, panel computer, E-book reader and mobile phone etc..Different types of terminal With different display pattern parameters, such as screen proportion, screen size, resolution ratio etc..Such as, the terminal of different brands is (such as Apple, Samsung, Asus, association, grand base etc.), its model, screen proportion are (including 16:9、4:3、16:10), screen size, resolution Rate etc. there may be difference.
Screen proportion and screen size are mainly used in the embodiment of the present invention one, specifically, step 103 uses screen ratio Example information, step 104 then uses screen size information.
In a step 101, e-book is issued in request, and its main content is the content topic information of acquisition request.Than Such as, the request of transmission is used to ask the content of certain masterpiece (such as A Dream of Red Mansions, the The Romance of the Three Kingdoms, the Water Margin, Journey to the West), in its request Hold title, author, storage address that subject information is masterpiece etc..In the embodiment of the present invention, the acquisition request of transmission is also carried The type information of terminal, the type information can be the model of terminal or other can be identified for that out the parameter of terminal type.
In a step 102, e-book generating means can inquire about content library, therefrom according to the content topic information for receiving Obtain the corresponding content of request content subject information.Different content, its suitable format style is different, for different content Inquire about corresponding format.The preferred implementation process of step 103 is described below in detail.
E-book format daily record in the embodiment of the present invention can adopt the structure of database to be stored, hereinafter referred to as electricity Philosophical works format daily record storehouse.The e-book format daily record storehouse includes the first log sheet and the second log sheet.First log sheet is used The display pattern supported in storage user totem information, terminal, content subject matter categories, e-book format and weight parameter is satisfied with, Second log sheet is used to store e-book format and e-book format service condition statistical parameter.
In step 103, e-book generating means according to the user totem information, the type information of the terminal and The subject information inquires about e-book format daily record, obtains the e-book format of matching, including following step:
Firstly, it is necessary to according to user totem information, first log sheet corresponding with ID is found, wherein, E-book format corresponding with user totem information might have various in one log sheet, and this is because terminal use may pass through Different terminals, obtained what different content topic information were caused.Such as, when terminal use is transmitted across by notebook computer The request of online literature subject information, can produce an e-book version corresponding with current notebook computer and online literature type Formula;When user terminal is transmitted across the request of middle school's textbook content by panel computer, in this case, one and flat board can be produced Computer and the corresponding e-book format of middle school's textbook content type;When terminal is transmitted across the request of archaeology monograph by mobile phone, together Sample, in this case, an e-book format corresponding with current phone and archaeology monograph type can be produced;So, E-book format corresponding with ID has various in first log sheet.Include but is not limited in embodiments of the present invention Above-mentioned situation.
In embodiments of the present invention, not only need to select e-book corresponding with user totem information in the first log sheet Format, and above-mentioned e-book format must be corresponding with the content topic information that current end user obtains request.Its matching Method as shown in Fig. 2 in figure can according to determine terminal type (such as, PC display patterns parameter, panel computer show Mode parameter, E-book reader display pattern parameter and mobile phone display pattern parameter etc.) and acquisition request content topic letter Corresponding content type is ceased, selection best suits the corresponding e-book format of subject information of current end user request.
Preferably, the e-book format daily record includes the first log sheet, be stored with user in first log sheet The corresponding relation of display pattern, content subject matter categories and e-book format that identification information, terminal are supported, wherein, terminal is supported Display pattern it is corresponding with the type of terminal;
It is described that e-book is inquired about according to the user totem information, the type information of the terminal and the subject information Format daily record, including:
The display pattern that the terminal is supported is inquired about according to the type information of the terminal;
Content type according to belonging to the subject information determines the theme;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, inquiry First log sheet.
In embodiment, according to Fig. 2 methods, various e-book versions for meeting active user's request theme may be filtered out Formula, wherein the e-book layout information for meeting active user's request theme is stored in the first log sheet, so that by the The information stored in one log sheet, further selects the e-book format for best suiting user preferences.
The storage of e-book format is according to terminal type-display pattern-content type-this sequential manner of template sequence number It is defined, terminal type refers to PC, panel computer, E-book reader and mobile phone, display pattern refers in this step terminal The ratio of screen, such as 16:9、4:3、16:10 etc., content type refers to classification, such as history class belonging to content, and template sequence number refers to similar The concrete sequence number of subtemplate under format template.Every kind of terminal type, screen proportion and content type have corresponding number value, together The sequence number of subtemplate is then according to sequencing numbering (01-N) of storage under class format template, and each format template is corresponding only One format is numbered.
For example, terminal type be PC, screen proportion be 16:9th, content type is numbered for the format template format of history class Prefix is 01-01-05, and prefix numbering is that the format template of 01-01-05 belongs to same class template, and with class template N number of submodule is included Plate, the numbering of subtemplate is then 01-01-05-01,01-01-05-02 ..., 01-01-05-N.
The e-book format template is used for the e-book format of format inquiry, not for the final of generation e-book Format, the e-book format template classification is stored in format ATL.Include but is not limited in embodiments of the present invention Above-mentioned situation.
Preferably, display pattern, the content supported with user totem information, terminal that be also stored with first log sheet Subject categories and e-book format is corresponding is satisfied with weight parameter;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, First log sheet is inquired about, including:
If according to the user totem information, the type information of the terminal and the subject information, described first Inquire M e-book format in log sheet, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight Parameter is defined as the e-book format of the matching more than the first e-book format in the e-book format of given threshold, and more Newly the first e-book format is corresponding is satisfied with weight parameter;Or
If according to the user totem information, the type information of the terminal and the subject information, described first Inquire M e-book format in log sheet, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight Parameter is distributed to the terminal, 1≤K≤M more than the information of K e-book format of given threshold;
The first e-book format that the terminal is selected from the K e-book format is received, it is electric by described first Philosophical works format is defined as the e-book format of the matching, and updates that the first e-book format is corresponding to be satisfied with weight ginseng Number.
In embodiment, display pattern, content topic that the user totem information that is stored with the first log sheet, terminal are supported Classification, e-book format and weight parameter is satisfied with, wherein, display pattern, content topic class that user totem information, terminal are supported Not, e-book format and it is satisfied with weight parameter and has corresponding relation respectively.Mainly user totem information and content subject matter categories There is corresponding relation;User totem information and e-book format have corresponding relation;User totem information and e-book format and full Meaning weight has corresponding relation;The display pattern that user totem information and terminal are supported has corresponding relation;With terminal support Display pattern and content subject matter categories have corresponding relation with e-book format.
Mistake presented hereinbefore, according to Fig. 2 methods, including the type information and subject content information of terminal, in the first log sheet In may inquire multiple e-book formats, then, e-book generating means then need to be determined whether according to following method, Most at last that e-book format is distributed to terminal use.Wherein, e-book generating means are mainly according to being satisfied with weight parameter And relation between default threshold value is judging.Mainly there are following several determination methods:
If according to the user totem information, the type information of the terminal and the subject information, described first Inquire M e-book format in log sheet, M >=1, then:
1) whether the corresponding weight parameter that is satisfied with of above-mentioned M e-book format is determined more than the threshold value for setting, by satisfied power Great the first e-book format in the e-book format of given threshold is arranged according to the method for descending, selects highest to expire The corresponding first e-book format of meaning weight parameter is the e-book format for most matching, and above-mentioned first e-book format is determined For the e-book format for most matching, while updating, the first e-book format is corresponding to be satisfied with weight parameter.
2) whether the corresponding weight parameter that is satisfied with of above-mentioned M e-book format is determined more than the threshold value for setting, by satisfied power Weight parameter is all set out in the form of a list more than the first e-book format in the e-book format of given threshold, electronics Book distributing device randomly chooses in lists the e-book format that certain e-book format is defined as most matching, and by above-mentioned determination The first e-book format most to match is distributed to terminal use, while updating, the first e-book format is corresponding to be satisfied with weight ginseng Number.
3) whether the corresponding weight parameter that is satisfied with of above-mentioned M e-book format is determined more than the threshold value for setting, by satisfied power Weight parameter is all set out in the form of a list more than the first e-book format in K e-book format of given threshold, Wherein 1≤K≤M, the e-book format that the first e-book format of whole in list is defined as matching by e-book distributing device, And above-mentioned the first e-book format for being defined as matching is distributed to into terminal use in the way of poll, user is allowed from the of matching Some first e-book format is selected in one e-book format.Selection finally according to user updates the first e-book format pair That what is answered is satisfied with weight parameter.
In above-mentioned situation, it is necessary to be satisfied with threshold value of the weight parameter more than setting.In the present embodiment, electronics inteilectual Determine into device and the first e-book format for most matching is distributed to into the method for terminal use including above-mentioned 3 kinds of methods, but In practical application, said method is not limited to.
If being satisfied with threshold value of the weight parameter less than setting, e-book generating means are needed further according to the first log sheet E-book format for inquiring ex hoc genus anne e-book format, determines most at last which e-book format is sent out using polling algorithm Give terminal use.Mainly include following several method:
1) when the e-book format stored in the first log sheet is satisfied with weight parameter is all not more than default threshold value, to end The e-book format that end subscriber was selected is ranked up according to sequencing;
2) according to polling algorithm, it is determined that the e-book format that inquires of first log sheet being currently polled to is similar E-book format;
The polling algorithm, the homogeneous e book format of the e-book format for inquiring to first log sheet, Sequentially distribute to the terminal to select;
3) the last e-book format for selecting in the e-book format for selecting the terminal use, and Z (Z >=1) the individual homogeneous e book format being currently polled to, altogether K (K > Z;In embodiment, K=4 is taken, but not only limited In 4) being sent to the terminal;
4) the first e-book format that the terminal is selected from the K e-book format is received, it is electric by described first Philosophical works format is defined as the e-book format of the matching, and updates that the first e-book format is corresponding to be satisfied with weight ginseng Number.
In above-mentioned situation, it is necessary to which satisfaction inquires correspondence result in the first log sheet.In the present embodiment, e-book Automatically generating device determines includes above-mentioned 2 kinds of situations by the method that the first e-book format for most matching is distributed to terminal use, But in actual applications, it is not limited to above-mentioned situation.
When the Query Result of the first log sheet is space-time, then e-book generating means need to select user by additive method The e-book format for most matching.When namely the terminal use does not correspond to the record of demand in the first log sheet, need to exist The e-book format most matched for terminal use's selection in second log sheet.
Preferably, the e-book format daily record includes the second log sheet, be stored with electronics in second log sheet The corresponding relation of book format and e-book format service condition statistical parameter;
If not inquiring the e-book format of matching from first log sheet, methods described also includes:
N number of e-book format is obtained from second log sheet according to e-book format service condition statistical parameter, N >= 1;
The information of N number of e-book format is distributed to into the terminal;
The second e-book format that the terminal is selected from the K e-book format is received, and according to described second E-book format, generates e-book and issues format, and the content to get generates e-book.
The subscribed situation of e-book format is stored in second log sheet, wherein each e-book format has fixed Format is numbered, after the A e-book format in the second log sheet is subscribed to by certain terminal use, then the e-book format correspondence Format numbering in will increase once subscribed number of times, likewise, when in the second log sheet B e-book format be used by certain terminal After family is subscribed to, then once subscribed number of times will be increased in the e-book format corresponding format numbering, by that analogy will be The subscribed number of times of the e-book format is recorded in the corresponding format numbering of e-book format.Wherein, store in the second log sheet E-book format quantity more than the e-book format stored in the first log sheet.
The e-book format for selecting terminal use most to match in the second log sheet, needs to be stored according in the second log sheet The subscribed number of times of e-book format determining.The e-book format of storage subscribed number of times generation in wherein the second log sheet The table pouplarity of the e-book format in terminal use, that is, the fancy grade of most of terminal uses.According to The subscribed situation of e-book format stored in second log sheet, it is the to elect the rank forefront e-book format of position of subscribed number of times Two e-book formats, are then sent to terminal use by the second e-book format for determining, with instruction terminal, user is electric from second The e-book format that it is most liked is selected in philosophical works format.
After e-book generating means are that terminal use selects the e-book format for most matching, due to e-book format daily record In store user totem information, the first log sheet and the second log sheet, so, e-book format daily record need update its storage Content, facilitate terminal use to carry out the matching of next e-book format.
Preferably, after receiving the second e-book format that the terminal is selected from N number of e-book format, also wrapping Include:
According to the second e-book format, the second e-book format of storage in second log sheet is updated Service condition statistical parameter;
Add in first log sheet user totem information, the terminal support display pattern, it is described in Hold subject categories, be satisfied with weight parameter with the corresponding relation of the second e-book format.
In embodiment, the e-book format for most matching for finally determining can have various different situations, need according to really The fixed e-book format situation for most matching, it is determined which log sheet updated.
Determine in being by the first log sheet when the e-book format for finally most matching, then need to update the first log sheet E-book format is corresponding is satisfied with weight parameter for this of middle storage, enters without the other guide to storing in the first log sheet Row updates.
Determine in being by the second log sheet when the e-book format for finally most matching, then need to update the second log sheet Subscription number of times in the corresponding fixed number of e-book format of middle storage, will increase by one to the subscription number of times in fixed number It is secondary.Add display pattern, content subject matter categories and satisfied power that user totem information, terminal are supported in the first log sheet simultaneously Weight parameter.
It is to be chosen number of times and the e-book format generic e-book format with e-book format to be wherein satisfied with weight What sum determined with the ratio of the selected number of times of the e-book format.I.e.:
Formula 1
Such as, terminal type be PC, screen proportion be 16:9th, content type is for the format template format numbering of history class 01-01-05, numbering is that the format template of 01-01-05 belongs to same class template, and with class template N number of subtemplate is included, subtemplate Numbering is then 01-01-05-01,01-01-05-02 ..., 01-01-05-N.If numbering is the e-book version of 01-01-05-01 Formula has been chosen 3 times altogether, and corresponding such e-book format has N number of (N > 1), according to formula 1, can be numbered E-book format for 01-01-05-01 is satisfied with weight parameter equal to 3/ (N+3);If numbering is the e-book of 01-01-05-02 Format has been chosen 2 times altogether, then it is satisfied with weight parameter equal to 2/ (N+2).
Wherein, the initial value that arbitrary e-book format subtemplate is satisfied with weight parameter is 0/N;It is corresponding with weight is satisfied with Threshold value is that preset in advance is good, and the size of threshold value is determined according to user preference judgment value, in the present embodiment, the threshold of selection The size of value is 30%, but in practicing, the scope of threshold value includes 30%, but is not limited to 30%.
At step 104, the e-book format that the basis is inquired, generates final e-book format, and to ask Content generate e-book, specially:
According to the e-book format for most matching determined from the first e-book format or the second e-book format, obtain Take the layout structure information of the e-book format;With reference to the screen size in the display pattern that the terminal for inquiring is supported Information, displaing coordinate of the layout structure key element in screen to obtaining is positioned, so as to generate final e-book Format, and e-book is generated according to the content that the final e-book format is request.
Fig. 3 is that e-book layout structure provided in an embodiment of the present invention defines schematic diagram, wherein, layout structure definition is illustrated Figure is defined to the space of a whole page key element and typesetting key element of format template, page elements include type page, be left white, background, header, Footer, text, picture etc., typesetting key element includes font, paragraph, line space, certain distance, alignment thereof etc..
Fig. 4 is that terminal use is selected after e-book format, and e-book format is carried out to tie according to the e-book space of a whole page shown in Fig. 3 Structure defines schematic diagram, generates the method flow diagram for showing final e-book format on the subscriber terminal, and it mainly includes following Step:
Step 201, format is parsed based on the e-book format selected by user, obtains the space of a whole page of basic format Key element field information and space of a whole page upper and lower, left and right are left white proportional numerical value;
Step 202, according to the screen size information received from receiver module, calculates being left white for space of a whole page upper and lower, left and right Magnitude numerical value, and determine therefrom that the size and the particular location in the space of a whole page of type page;
Step 203, typesetting key element shows that positioning unit is identified to space of a whole page key element, and the position according to type page and big It is little, positioned using displaing coordinate of the feature location algorithm to space of a whole page key element in terminal screen;
Step 204, the position according to space of a whole page key element in terminal screen generates final e-book format.
The invention provides a kind of e-book generation method, the method is by receiving e-book issue request, the electronics Book issues the type information of content topic information, user totem information and terminal that acquisition request is carried in request;According to The corresponding content of the content topic acquisition of information;According to the user totem information, the type information of the terminal and institute Subject information inquiry e-book format daily record is stated, the e-book format of matching is obtained, is stored with the e-book format daily record The corresponding relation of user totem information, terminal type, content topic information and e-book format;According to the e-book version for inquiring Formula, generates e-book and issues format, and the content of the acquisition is generated into e-book.In embodiments of the present invention, according to terminal Various e-book formats are stored in the corresponding e-book format daily record of user, can be needed with the personalization that e-book is generated is realized Ask.
Embodiment two
The embodiment of the present invention two provides a kind of e-book automatically generating device, as shown in figure 5, the device includes:Receive Module 51, content search module 52, format enquiry module 53, e-book generation module 54.
Receiver module 51, for receiving e-book request is issued, and the e-book is issued to be carried in request and asked to obtain The type information of the content topic information, user totem information and the terminal that take;Content search module 52, for according to the theme The corresponding content of information inquiry;
Format enquiry module 53, for according to the user totem information, the type information of the terminal and the master Topic information inquiry e-book format daily record, obtains the e-book format of matching, and be stored with user in the e-book format daily record The corresponding relation of identification information, terminal type, content topic information and e-book format;E-book generation module 54, for looking into The e-book format ask, generates e-book and issues format, and the content of the acquisition is generated into e-book.
Preferably, the format enquiry module 53 specifically for:
The e-book format daily record includes the first log sheet, the ID that is stored with first log sheet letter The corresponding relation of display pattern, content subject matter categories and e-book format that breath, terminal are supported, wherein, the display that terminal is supported Pattern is corresponding with the type of terminal;
It is described that e-book is inquired about according to the user totem information, the type information of the terminal and the subject information Format daily record, including:
The display pattern that the terminal is supported is inquired about according to the type information of the terminal;
Content type according to belonging to the subject information determines the theme;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, inquiry First log sheet.
Preferably, the format enquiry module 53 specifically for:
Also be stored with display pattern, the content topic class supported with user totem information, terminal in first log sheet Not and e-book format is corresponding is satisfied with weight parameter;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, First log sheet is inquired about, including:
If according to the user totem information, the type information of the terminal and the subject information, described first Inquire M e-book format in log sheet, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight Parameter is defined as the e-book format of the matching more than the first e-book format in the e-book format of given threshold, and more Newly the first e-book format is corresponding is satisfied with weight parameter;Or
If according to the user totem information, the type information of the terminal and the subject information, described first Inquire M e-book format in log sheet, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight Parameter is distributed to the terminal, 1≤K≤M more than the information of K e-book format of given threshold;
The first e-book format that the terminal is selected from the K e-book format is received, it is electric by described first Philosophical works format is defined as the e-book format of the matching, generates e-book according to the first e-book format and issues format, And update that the first e-book format is corresponding to be satisfied with weight parameter.
Preferably, the format enquiry module 53 specifically for:
The e-book format daily record includes the second log sheet, the e-book format that is stored with second log sheet with The corresponding relation of e-book format service condition statistical parameter;
Wherein, the e-book format in second log sheet is that classification is stored, class of the classification according to the terminal Type information and the content type;If not inquiring the e-book format of matching, methods described from first log sheet Also include:
N number of e-book format is obtained from second log sheet according to e-book format service condition statistical parameter, N >= 1;
The information of N number of e-book format is distributed to into the terminal;
The second e-book format that the terminal is selected from N number of e-book format is received, and according to described second E-book format generates e-book and issues format, and the content of the acquisition is generated into e-book.
Preferably, the e-book generation module 54 is additionally operable to:
After receiving the second e-book format that the terminal is selected from N number of e-book format, according to described second E-book format, updates the service condition statistical parameter of the second e-book format stored in second log sheet; Add in first log sheet user totem information, the terminal support display pattern, the content subject matter categories, It is satisfied with the corresponding relation of weight parameter and the second e-book format.
It should be appreciated that the module that includes of one of the above e-book generating means only according to the work(realized of the apparatus The logical partitioning that can be carried out, in practical application, can carry out the superposition or fractionation of above-mentioned module.And the one of embodiment offer Plant e-book the generating means function of being realized and a kind of e-book generation method that above-described embodiment is provided to correspond, for The more detailed handling process that the equipment is realized, is described in detail in said method embodiment one, no longer detailed herein Thin description.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (6)

1. a kind of e-book generation method, it is characterised in that the method includes:
Receive e-book and issue request, the e-book is issued the content topic information of acquisition request that carries in request, used The type information of family identification information and terminal;
According to the corresponding content of the content topic acquisition of information;
E-book format day is inquired about according to the user totem information, the type information of the terminal and the subject information Will, obtains the e-book format of matching, and be stored with user totem information, terminal type, content in the e-book format daily record The corresponding relation of subject information and e-book format;
According to the e-book format for inquiring, generate e-book and issue format, the content of the acquisition is generated into e-book;
The e-book format daily record includes the first log sheet, is stored with user totem information, end in first log sheet End support display pattern, content subject matter categories and e-book format corresponding relation, wherein, terminal support display pattern with The type of terminal is corresponding;
It is described that e-book format is inquired about according to the user totem information, the type information of the terminal and the subject information Daily record, including:
The display pattern that the terminal is supported is inquired about according to the type information of the terminal;
Content type according to belonging to the subject information determines the theme;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, inquiry is described First log sheet;
Also be stored with first log sheet with user totem information, terminal support display pattern, content subject matter categories with And e-book format is corresponding is satisfied with weight parameter;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, inquiry First log sheet, including:
If according to the user totem information, the type information of the terminal and the subject information, in first daily record Inquire M e-book format in table, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight parameter It is defined as the e-book format of the matching more than the first e-book format in the e-book format of given threshold, and updates institute State that the first e-book format is corresponding to be satisfied with weight parameter;Or
If according to the user totem information, the type information of the terminal and the subject information, in first daily record Inquire M e-book format in table, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight parameter The terminal, 1≤K≤M are distributed to more than the information of K e-book format of given threshold;
The first e-book format that the terminal is selected from the K e-book format is received, by first e-book Format is defined as the e-book format of the matching, according to the first e-book format generation e-book issue format, and more Newly the first e-book format is corresponding is satisfied with weight parameter.
2. the method for claim 1, it is characterised in that the e-book format daily record includes the second log sheet, institute State the corresponding relation of be stored with the second log sheet e-book format and e-book format service condition statistical parameter;
Wherein, the e-book format in second log sheet is classification storage, and the classification is believed according to the type of the terminal Breath and the content type;If not inquiring the e-book format of matching from first log sheet, methods described is also wrapped Include:
N number of e-book format, N >=1 are obtained from second log sheet according to e-book format service condition statistical parameter;
The information of N number of e-book format is distributed to into the terminal;
The second e-book format that the terminal is selected from N number of e-book format is received, and according to second electronics Book format generates e-book and issues format, and the content of the acquisition is generated into e-book.
3. method as claimed in claim 2, it is characterised in that receive the terminal and select from N number of e-book format The second e-book format after, also include:
According to the second e-book format, the use of the second e-book format stored in second log sheet is updated Situation statistical parameter;
Add display pattern, the content master that the user totem information, the terminal are supported in first log sheet Inscribe classification, be satisfied with weight parameter with the corresponding relation of the second e-book format.
4. a kind of e-book generating means, it is characterised in that the device includes:
Receiver module, for receiving e-book request is issued, and the e-book is issued and the interior of acquisition request is carried in request Hold the type information of subject information, user totem information and terminal;
Content search module, for inquiring about corresponding content according to the subject information;
Format enquiry module, for according to the user totem information, the type information of the terminal and the subject information Inquiry e-book format daily record, obtains the e-book format of matching, the ID that is stored with e-book format daily record letter The corresponding relation of breath, terminal type, content topic information and e-book format;
E-book generation module, issues format, by the acquisition for according to the e-book format for inquiring, generating e-book Content generates e-book;
The format enquiry module specifically for:
The e-book format daily record includes the first log sheet, is stored with user totem information, end in first log sheet End support display pattern, content subject matter categories and e-book format corresponding relation, wherein, terminal support display pattern with The type of terminal is corresponding;
It is described that e-book format is inquired about according to the user totem information, the type information of the terminal and the subject information Daily record, including:
The display pattern that the terminal is supported is inquired about according to the type information of the terminal;
Content type according to belonging to the subject information determines the theme;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, inquiry is described First log sheet;
The format enquiry module specifically for:
Also be stored with first log sheet with user totem information, terminal support display pattern, content subject matter categories with And e-book format is corresponding is satisfied with weight parameter;
The display pattern supported according to the user totem information, the terminal and the content subject matter categories, inquiry First log sheet, including:
If according to the user totem information, the type information of the terminal and the subject information, in first daily record Inquire M e-book format in table, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight parameter It is defined as the e-book format of the matching more than the first e-book format in the e-book format of given threshold, and updates institute State that the first e-book format is corresponding to be satisfied with weight parameter;Or
If according to the user totem information, the type information of the terminal and the subject information, in first daily record Inquire M e-book format in table, M >=1, then:
Whether the corresponding weight parameter that is satisfied with of the M e-book format is determined more than given threshold, and will be satisfied with weight parameter The terminal, 1≤K≤M are distributed to more than the information of K e-book format of given threshold;
The first e-book format that the terminal is selected from the K e-book format is received, by first e-book Format is defined as the e-book format of the matching, according to the first e-book format generation e-book issue format, and more Newly the first e-book format is corresponding is satisfied with weight parameter.
5. device as claimed in claim 4, it is characterised in that the format enquiry module specifically for:
The e-book format daily record includes the second log sheet, and be stored with e-book format and electronics in second log sheet The corresponding relation of book format service condition statistical parameter;
Wherein, the e-book format in second log sheet is classification storage, and the classification is believed according to the type of the terminal Breath and the content type;If the e-book format of matching is not inquired from first log sheet, the electronics inteilectual It is additionally operable to into module:
N number of e-book format, N >=1 are obtained from second log sheet according to e-book format service condition statistical parameter;
The information of N number of e-book format is distributed to into the terminal;
The second e-book format that the terminal is selected from N number of e-book format is received, and according to second electronics Book format generates e-book and issues format, and the content of the acquisition is generated into e-book.
6. device as claimed in claim 5, it is characterised in that the e-book generation module is additionally operable to:
E-book generation module is received after the second e-book format that the terminal is selected from N number of e-book format, root According to the second e-book format, the service condition system of the second e-book format stored in second log sheet is updated Meter parameter;
Add display pattern, the content master that the user totem information, the terminal are supported in first log sheet Inscribe classification, be satisfied with weight parameter with the corresponding relation of the second e-book format.
CN201410385393.2A 2014-08-06 2014-08-06 Electronic book generating method and device Expired - Fee Related CN104166641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410385393.2A CN104166641B (en) 2014-08-06 2014-08-06 Electronic book generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410385393.2A CN104166641B (en) 2014-08-06 2014-08-06 Electronic book generating method and device

Publications (2)

Publication Number Publication Date
CN104166641A CN104166641A (en) 2014-11-26
CN104166641B true CN104166641B (en) 2017-04-19

Family

ID=51910461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410385393.2A Expired - Fee Related CN104166641B (en) 2014-08-06 2014-08-06 Electronic book generating method and device

Country Status (1)

Country Link
CN (1) CN104166641B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260352A (en) * 2015-09-20 2016-01-20 杭州电子科技大学 Automatic typesetting method for streaming text
CN105205141A (en) * 2015-09-20 2015-12-30 杭州电子科技大学 Personalized customization method of electronic book
CN106886522B (en) * 2015-12-15 2019-12-24 北大方正集团有限公司 Digital product publishing method and device
CN107743110B (en) * 2016-10-25 2020-05-12 腾讯科技(深圳)有限公司 Method and device for generating pages of electronic book and electronic book system
CN107544734A (en) * 2017-08-30 2018-01-05 咪咕数字传媒有限公司 A kind of information displaying method, device and storage medium
CN108052553B (en) * 2017-11-29 2020-08-07 平安养老保险股份有限公司 Method and device for generating electronic manual, computer equipment and storage medium
CN108052494B (en) * 2017-12-28 2021-09-14 掌阅科技股份有限公司 Cartoon book generation method, electronic device and computer storage medium
CN110851685B (en) * 2018-08-02 2022-07-08 阿里巴巴(中国)有限公司 Electronic book ordering method and device and computer readable storage medium
CN110750958A (en) * 2019-10-17 2020-02-04 北京奇艺世纪科技有限公司 Text display method and device, electronic equipment and medium
CN110795635B (en) * 2019-10-31 2023-04-07 上海连尚网络科技有限公司 Method and device for presenting books

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818897A (en) * 2005-12-07 2006-08-16 成都数聚网络发展有限公司 Production of multi-media network electronic publication
CN102096752A (en) * 2009-12-10 2011-06-15 华为技术有限公司 Electronic book resource file downloading method and device
CN103559268A (en) * 2012-12-12 2014-02-05 北京百度网讯科技有限公司 Method, system and cloud end server for providing electronic book
CN105512095A (en) * 2014-09-25 2016-04-20 北大方正集团有限公司 Generation method for EPUB e-book

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818897A (en) * 2005-12-07 2006-08-16 成都数聚网络发展有限公司 Production of multi-media network electronic publication
CN102096752A (en) * 2009-12-10 2011-06-15 华为技术有限公司 Electronic book resource file downloading method and device
CN103559268A (en) * 2012-12-12 2014-02-05 北京百度网讯科技有限公司 Method, system and cloud end server for providing electronic book
CN105512095A (en) * 2014-09-25 2016-04-20 北大方正集团有限公司 Generation method for EPUB e-book

Also Published As

Publication number Publication date
CN104166641A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
CN104166641B (en) Electronic book generating method and device
CN106066756B (en) The interface creating method and device of terminal
CN107145594B (en) Method, device and system for pushing virtual gift recommendation list
CN105205081B (en) Item recommendation method and device
CN102663125B (en) Method and system for collecting microblog contents to make electronic document
CN104699833A (en) Picture presentation method, picture storage method, picture presentation device and picture storage device
CN107436936B (en) Online reading method and platform based on two dimensional code
CN107729409A (en) A kind of short chain delivers a child into method and device
JP2015001888A (en) Information processing program and information processing apparatus
CN107169007A (en) The display interface method to set up and device of a kind of mobile terminal
CN105094775B (en) Webpage generation method and device
CN108133024A (en) Towards the geographical spatial data service integration method of the dynamic configuration of mobile client
CN110244921A (en) Label printing method, device, electronic equipment and system
CN106933791A (en) One kind generation license method and device
US20150301728A1 (en) Data output control apparatus and data output control method
CN110738038A (en) Contract text generation method, device, equipment and computer readable storage medium
CN102611757A (en) Multi-file uploading system based on B/S (browser/server) framework
CN103294461B (en) A kind of method and system of microlog background interface
CN103107979A (en) Processing method and processing device for notes of layout files
CN107918652B (en) Method for recommending movies based on social relations by utilizing multi-modal network learning
CN109376348A (en) Mass production method, apparatus, computer equipment and the storage medium of greeting card
CN105912723A (en) Storage method of custom field
CN103853347B (en) Information release method based on gravity sensing horizontal screen display of mobile terminal
CN103605640B (en) Form adaption method and device
CN104866251A (en) Apparatus and method for information providing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170419

Termination date: 20170806