CN103761277A - ePub electronic book loading method and system - Google Patents

ePub electronic book loading method and system Download PDF

Info

Publication number
CN103761277A
CN103761277A CN201410010411.9A CN201410010411A CN103761277A CN 103761277 A CN103761277 A CN 103761277A CN 201410010411 A CN201410010411 A CN 201410010411A CN 103761277 A CN103761277 A CN 103761277A
Authority
CN
China
Prior art keywords
book
multimedia
epub
information
text
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.)
Pending
Application number
CN201410010411.9A
Other languages
Chinese (zh)
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.)
BEIJING ZHANGKUO TECHNOLOGY Co Ltd
Original Assignee
BEIJING ZHANGKUO TECHNOLOGY Co Ltd
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 BEIJING ZHANGKUO TECHNOLOGY Co Ltd filed Critical BEIJING ZHANGKUO TECHNOLOGY Co Ltd
Priority to CN201410010411.9A priority Critical patent/CN103761277A/en
Publication of CN103761277A publication Critical patent/CN103761277A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an ePub electronic book loading method and system. The method includes: analyzing an ePub electronic book selected by a user to obtain the table of contents information, corresponding text word information and/or multimedia index information and multimedia resource file name information; analyzing the table of contents of the ePub electronic book selected by the user to obtain the text word information and/or multimedia index information and multimedia resource file name information corresponding to the table of contents, rendering, and displaying the rendered chapters to the user. The method supports mixed setting types of words and multimedia resources such as pictures, audios and videos. Due to the fact that only one text appointed by the user is analyzed, the contents of whole book are not loaded in internal memory, and internal memory load is reduced greatly.

Description

A kind of loading method of ePub e-book and system
Technical field
The invention belongs to mobile reading field, relate to a kind of loading method and system of book file of ePub form.
Background technology
It is existing that about ePub e-book, parsing is generally made in browser.For conventional P C, because screen is larger, therefore by browser, with mouse or keyboard, dragging scroll bar to read becomes custom.Yet for mobile phone, screen is relatively little, therefore, allow user read by scroll bar obviously very unfriendly.In addition, the pattern of browser is also not suitable for the reading of mobile phone terminal, and because a lot of words may need direction to the left and right to drag just and can see, this significantly reduces reading experience.
At present, the reading experience that mobile phone terminal is good is read more contents by the own page turning of user exactly, scroll-up/down neither, and more roll in left and right.And user can freely adjust line space and font size according to own situation.This just needs the ePub analytics engine of cell phone apparatus end need to cater to the e-book render engine of oneself writing and coordinates parsing.
Also the ePub render engine that exists on the market at present some oneself to realize, but major part is all the plug-in unit code of directly transplanting on script browser, so bulky heaviness of program, and on mobile phone, be also that loading velocity is slow, much do not support the adjustment of font adjustment and line space yet.
The common fault of the ePub render engine of existing many mobile phone terminals has:
1, realize bulkyly, resolution speed is slow.
2, some has font adjustment function, adjusts font at every turn and need to wait for a long time, because these realizations all join the content of whole e-book in internal memory and then take turns doing font adjustment processing, and make minute chapter, processes.
3, image mixed character typeset pattern and multi-media player function are not supported in the existing realization of nearly all mobile phone terminal.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of analytic method and system of book file of ePub form.
It is as follows that the present invention solves the problems of the technologies described above taked technical scheme:
A loading method for ePub e-book, comprising:
Resolve the ePub e-book that user selects, obtain the directory information of described ePub e-book and the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Resolve the catalogue of the described ePub e-book of user's selection;
Obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, and play up and to user, show described in the chapters and sections content played up.
Preferably, resolve the ePub e-book that user selects, obtain the directory information of described ePub e-book and the Word message of corresponding text and/or multimedia index information, multimedia resource file name information, comprising:
Content.opf file in ePub e-book is resolved, obtain other recommended informations of title, author and whole the book of corresponding e-book;
Get the text file of the e-book of described correspondence, and text file is resolved and got the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Obtain the NCX file corresponding to e-book of described correspondence, and it is resolved to obtain the directory information of described e-book.
Preferably, further comprise:
The Word message of described text and/or multimedia index information are preserved as an independent linear list; And/or, described multimedia resource file name information is also preserved as an independent linear list.
Preferably, obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, and play up and to user, show described in the chapters and sections content played up, comprising:
Obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, described Word message and/or multimedia index information are carried out to paging and show to user;
Wherein, when clicking described multimedia index information as user, according to search index, arrive corresponding multimedia resource filename, and corresponding multimedia resource is shown as an independent page.
Preferably, described Word message and/or multimedia index information carried out to paging and show to user, further comprising:
Described Word message and/or multimedia index information are carried out to paging and to user, carry out buffer memory and show first page, and when user reads this page, follow-up page number content is shifted to an earlier date to buffer memory.
Preferably, resolve the ePub e-book that user selects, further comprise:
Resolve text file, and obtain the escape character information wherein comprising, and described escape character information is all put in the Word message of described text and/or in multimedia index information, simultaneously, in follow-up parsing, also resolve html tag, and the label of resolver support is done to respective handling;
Wherein, described html tag comprises:
Audio frequency, runic, text body part, newline, header line, title, italic, to the index of image, hyperlink, paragraph, title, video tab is arbitrary or combination.
Preferably, further comprise: obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, described Word message and/or multimedia index information are carried out to paging and show specifically and comprise to user:
The Word message of described text and/or multimedia index information, multimedia resource file name information are all put in a content linear list and are preserved, comprise following:
The word content of character string forms or image/video link, described character string are body matters or belong to multimedia type, multimedia link.
Preferably, further comprise: obtain the information that user adjusts font or line space, and word is adjusted;
And in each adjustment article page, the described content linear list building before is all emptied and rebuild.
A loading system for ePub e-book, comprising:
Analytics engine module and render engine module, wherein, described analytics engine module, the ePub e-book of selecting for resolving user, obtains the directory information of described ePub e-book and the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Resolve the catalogue of the described ePub e-book that user selects, obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information;
Described render engine module, for play up and to user, show described in the chapters and sections content played up.
Preferably, described analytics engine module, is further used for the content.opf file in ePub e-book to resolve, and obtains other recommended informations of title, author and whole the book of corresponding e-book;
Get the text file of the e-book of described correspondence, and text file is resolved and got the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Obtain the NCX file corresponding to e-book of described correspondence, and it is resolved to obtain the directory information of described e-book.
It is following that the present invention has taked such scheme to have advantages of later:
The present invention mainly captures e-book Word message and multimedia link information, and abandon other message files for webpage typesetting such as css formatted file wherein, it is all unified making the e-book typesetting format of drawing out by this resolver and renderer for all books.
And, be loaded in internal memory differently from the existing content by whole books, meeting of the present invention, according to minute chapter content in ePub corresponding document, is carried out playing up by chapters and sections to whole book, and user's response speed when adjusting line space and font size is exceedingly fast.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in the instructions write, claims and accompanying drawing.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is described in detail, so that above-mentioned advantage of the present invention is clearer and more definite.Wherein,
Fig. 1 is the structural representation of the loading system of embodiment of the present invention ePub e-book;
Fig. 2 is the resolving schematic diagram of analytics engine module of the loading system of embodiment of the present invention ePub e-book;
Fig. 3 is the schematic flow sheet of the loading method of embodiment of the present invention ePub e-book.
Embodiment
Below with reference to drawings and Examples, describe embodiments of the present invention in detail, to the present invention, how application technology means solve technical matters whereby, and the implementation procedure of reaching technique effect can fully understand and implement according to this.It should be noted that, only otherwise form conflict, each embodiment in the present invention and each feature in each embodiment can mutually combine, and formed technical scheme is all within protection scope of the present invention.
In addition, in the step shown in the process flow diagram of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
Specifically, as shown in Figure 1, a kind of loading system of ePub e-book, mainly comprises: analytics engine module and render engine module.
Wherein, unlike the prior art, analytics engine module in the present embodiment, main e-book Word message and the multimedia link information of capturing, and abandon other message files for webpage typesetting such as css formatted file wherein, it is all unified making the e-book typesetting format of drawing out by this resolver and renderer for all books.Can give unified reading experience of user like this, also can be masterly aspect some customization function of increase.
And, be loaded in internal memory different from the existing content by whole books, in the present embodiment, described analytics engine module, can be according to minute chapter content in ePub corresponding document, whole book carried out playing up by chapters and sections, user's response speed when adjusting line space and font size is exceedingly fast.
In addition, only support word word with the system in existing, the analytics engine module in the present embodiment, supports the media file format that all ePub support, and render engine module, here plays multimedia according to media file type.
Specifically, a kind of loading system of ePub e-book, comprising:
Analytics engine module and render engine module, wherein, described analytics engine module, the ePub e-book of selecting for resolving user, obtains the directory information of described ePub e-book and the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Resolve the catalogue of the described ePub e-book that user selects, obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information;
Described render engine module, for play up and to user, show described in the chapters and sections content played up.
Preferably, described analytics engine module, is further used for the content.opf file in ePub e-book to resolve, and obtains other recommended informations of title, author and whole the book of corresponding e-book;
Get the text file of the e-book of described correspondence, and text file is resolved and got the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Obtain the NCX file corresponding to e-book of described correspondence, and it is resolved to obtain the directory information of described e-book.
As shown in Figure 3, a kind of loading method of ePub e-book, comprising:
Step 1: resolve the ePub e-book that user selects, obtain the directory information of described ePub e-book and the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Step 2: the catalogue of resolving the described ePub e-book of user's selection;
Step 3: obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, and play up and to user, show described in the chapters and sections content played up.
Preferably, resolve the ePub e-book that user selects, obtain the directory information of described ePub e-book and the Word message of corresponding text and/or multimedia index information, multimedia resource file name information, comprising:
Content.opf file in ePub e-book is resolved, obtain other recommended informations of title, author and whole the book of corresponding e-book;
Get the text file of the e-book of described correspondence, and text file is resolved and got the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Obtain the NCX file corresponding to e-book of described correspondence, and it is resolved to obtain the directory information of described e-book.
Preferably, further comprise:
The Word message of described text and/or multimedia index information are preserved as an independent linear list; And/or, described multimedia resource file name information is also preserved as an independent linear list.
Preferably, obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, and play up and to user, show described in the chapters and sections content played up, comprising:
Obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, described Word message and/or multimedia index information are carried out to paging and show to user;
Wherein, when clicking described multimedia index information as user, according to search index, arrive corresponding multimedia resource filename, and corresponding multimedia resource is shown as an independent page.
Preferably, described Word message and/or multimedia index information carried out to paging and show to user, further comprising:
Described Word message and/or multimedia index information are carried out to paging and to user, carry out buffer memory and show first page, and when user reads this page, follow-up page number content is shifted to an earlier date to buffer memory.
Preferably, resolve the ePub e-book that user selects, further comprise:
Resolve text file, and obtain the escape character information wherein comprising, and described escape character information is all put in the Word message of described text and/or in multimedia index information, simultaneously, in follow-up parsing, also resolve html tag, and the label of resolver support is done to respective handling;
Wherein, described html tag comprises:
Audio frequency, runic, text body part, newline, header line, title, italic, to the index of image, hyperlink, paragraph, title, video tab is arbitrary or combination.
Preferably, further comprise: obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, described Word message and/or multimedia index information are carried out to paging and show specifically and comprise to user:
The Word message of described text and/or multimedia index information, multimedia resource file name information are all put in a content linear list and are preserved, comprise following:
The word content of character string forms or image/video link, described character string are body matters or belong to multimedia type, multimedia link.
Preferably, further comprise: obtain the information that user adjusts font or line space, and word is adjusted;
And in each adjustment article page, the described content linear list building before is all emptied and rebuild.
Wherein, for such scheme, carry out a more detailed explanation below, so that above-mentioned advantage of the present invention is clearer and more definite, specifically, each electronic book documentary bag in accordance with ePub agreement must comprise the sub-directory of a META-INF by name, the file that contains a container.xml by name in this sub-directory.
This file including the directory path of OPF file.Wherein, from META-INF sub-directory, read container.xml file to obtain more information, such as, by XML resolver scanning <rootfile> label, then read " full-path " key assignments, path is below exactly the path of OPF file.
Wherein, because opf file may contain a plurality ofly, such as having comprised many serial books in a whole set of file, need so to scan repeatedly <rootfile> label.
The information such as the title that wherein, has comprised whole book in OPF file, author, copyright.In addition, contain catalogue, Periodical front cover information and the corresponding xhtml text file of each chapters and sections content name, according to the rules, text file and OPF file are under same path.
Wherein, when resolving OPF, need to resolve <dc:title> (title), <dc:creator> (founder), <dc:language> (language), <dc:rights> (copyright), these labels of <dc:publisher> (publisher).
Subsequently, be a label <manifest> very crucial in OPF.The catalogue file name that has comprised whole book in this label and the corresponding text file name of each chapter chapters and sections.
Specifically, each in this label represents by <item> label, and it is all comprised of an id key, a href key and a media-type key.In an embodiment, when preserving these information, with a dictionary, deposit, wherein, in dictionary:
The key of dictionary represents with id, and the quoting of the structure that value forms with href and media-type represents.
In an embodiment, described analytics engine module, css file and page template file are ignored and do not resolved, wherein, in collecting <manifest>, after all <item> items, will run into another label <spine>.The catalogue that this label has comprised this this book and the reading order of every chapter.
Wherein, the corresponding id of toc key in <spine> label is exactly the filename of NCX file, contains more detailed directory information in this file.And below all by <itemref> label, formed.
In <itemref> label, contain key idref, this idref correspondence the id in the <item> item in <manifest>, so we can find the corresponding filename of each <itemref> immediately.
We are by deposit each the <itemref> content in <spine> by a linear list, because they are arranged in order.
We just can open NCX file after having got NCX file path.
Wherein, <docTitle> label represents Catalog Header.Be exactly the core label <navMap> in NCX file subsequently.Wherein, <navMap> is navigation picture, and each inside representing can jump to the corresponding contents of book fast.<navMap> label consists of one group of <navPoint> label.
<navPoint> label is described the information of this navigation item in detail.This label contains key id, notes, this id is possible different with the id of <item> in <manifest> before.
In addition, contain playOrder key, after the and then layout order of integer representation in catalogue listing.In addition, it also comprises <navLabel> label, has described the title of directory entry; <content> label has been described and has been jumped to which text file.
Therefore, in an embodiment, described analytics engine module, also include: storage unit, for deposit every information of <navMap> by a linear list, according to the playOrder in <navPoint>, these are sorted.With a structure, deposit the content of <navLabel> and the text index in <content> label.
Wherein, after catalogue is handled, to user, show, and according to user's click, when render engine module needs, resolve each text file.
Wherein, text file be generally xhtml as file type name, or xml.No matter be form in what, it is first drawn by an xml label certainly, then in this xml label, embeds html label.In xml label, contain Doctype and character encoding format.Because current online html almost all uses UTF-8 as general character set encoding form, so we there is no need to resolve in detail xml label segment, therefore directly can omit overscanning html.
Wherein, html has a lot of built-in labels and escape character.
In an embodiment, this analytics engine is supported all escape characters of HTML.Because this analytics engine is mainly used in the article typesetting of mobile phone terminal, so only support label and the <link> label relevant to article segmentation, other label is all ignored.The label of this ePub analytics engine support has:
<audio>---represent audio frequency.While running into this label, analytics engine can be kept at audio url in a special multimedia lists of links.Each element of this list is comprised of two parts, and first represents the hyperlink of resource, and second portion represents resource type.The multimedia type that this renderer is supported has: three kinds of image, Voice & Videos.
<b>---represent runic.This can tell render engine to describe by the word between <b> and </b> by the font of runic.After running into <b> label, analytics engine can get off this section by a linear list with the index record in fact of runic descriptive text, then until end index record is got off after scanning </b>.
<body>---represent body part.
<br>---represent line feed.In analytics engine, due to the needs of render engine, line feed is used without exception ' and r ' character representation.
<h1> is to <h6>---represent that title 1 is to title 6.Can distinguish by different fonts size respectively.When scanning the label of <h >, before and after it, all insert a newline.
<head>---represent the head of these chapters and sections, generally can contain the title that <title> label represents these chapters and sections.
The initial index of <html>HTML.This label content is below all to belong to HTML content.
<i>---represent italic font.After resolver runs into <i>, process with <b> similar, this section of word saved by linear list, use to render engine below, this section of word represented by italic font.
<img>---this label represents the index to image.When resolver runs into after <img> label, word content is before saved in a linear list as a character string element.Then, the image links in current <img> label is kept at and is exclusively used in the linear list of preserving multimedia link, multimedia type is designated to image.Finally, after the residing list index of this image is saved in to textual list.
<link>---this is also a more crucial label.After <link>, except image, can also follow video, audio frequency etc.The same with <img> label to the processing of this label.
<p>---represent a new paragraph.While running into this label, this resolver can insert a line feed automatically.
<title>---represent title.If this label is in <head>, so using this as this chapter title.If appear in <body>, ignore.
<video>---represent video.Process identically with <img>, multimedia type is designated to video.
That is to say, in the present embodiment, described analytics engine module just has two linear list after text and multimedia label have all been resolved.
Specifically, one is the linear list that contains Word message and multimedia element index, and also having one is exactly the linear list of depositing specially multimedia resource filename.Then, these two lists being submitted to render engine processes.
For analytics engine here, complete data stream as shown in Figure 2.
Wherein, described render engine module, the data that can take have three parts: title, author etc. and whole the information that book is relevant, the catalogue of book, the text of book.
Wherein, the information that title, author etc. are relevant to whole book gets after finishing by " resolving content.opf " this stage; The catalogue of book gets after resolving NCX file; The text of book is first by " resolving content.opf " inner text file name, to find after text file, then obtains by " resolving ePub text file " process.
Wherein, described render engine module, can customize information such as how showing title, author, founder, publisher, copyright.For example, in a simplest embodiment, in OPF file, also may find cover.jpg surface plot, be used as the front cover of book.The catalogue of then, showing this book according to the content in NCX file.This need to arrange according to the order of the <navPoint> label in NCX.
Wherein, in the present invention, the Main Function of described render engine module is to play up for carrying out text, that is to say, in the present embodiment, word and multimedia file is played up respectively.
Wherein, picture or video are provided as an independent page.
And for video, can be in the content pages that contains audio frequency to prompting of user, will audio plays after user clicks certain button.The implementor of renderer also can be when user translates into the content that contains audio page automatic audio plays.
Simply the render engine module of the present embodiment is described below, specifically, described render engine module, its working mechanism and the module comprising are as follows:
For the text file of a particular chapter, by a linear list, preserve this chapter all the elements, wherein, each element of linear list consists of three members:
1, word content or image/video link (character string); 2, content 1 belongs to text word or belongs to multimedia type (Boolean type); 3, audio url.
Due in general, the content of a certain chapters and sections of an e-book can be not excessive, at most also with regard to several louvers, therefore by this linear list, depositing these information can save time and also can save many spaces, because we can all not exist the information of whole all chapters and sections of book in this linear list, and, and this way is for definite current page number, asks for immediately content and also brings great convenience.
Wherein, described render engine module, further comprise: paging unit, for reading the text linear list being provided by ePub analytics engine module, wherein, if current, it is word, so first judge whether next list node is audio types, if not, the font size and the line space that according to active user, arrange carry out paging to this section of word, whether, be the member of multimedia type be set to "No", audio url is set to sky if then the content of every one page being stored in above-mentioned chapters and sections content linear list;
If next list node is audio types, we,, after paging is over, arrange audio url for this reason by the audio url member at the first page content node place of word so.
If current, be video or image, this content node is arranged to the link of video for this reason or image, then whether be that multimedia type member is set to "Yes", finally check whether next text type is audio frequency, if audio frequency, the audio url of this content node is set to this audio url so, otherwise be set to sky, thus, like this, we have just divided good page to the content of a certain particular chapter.
Thus, the rendering unit in described render engine module, further plays up the content of certain one page according to the good content linear list of above-mentioned structure.
Wherein, the mode of playing up has a lot, the high-level interface that can use particular system to provide, and the physical layer interface also can use system providing, or even ownly by physical layer interface, draw word.Because image and video all take separately a page, so deal with also just very conveniently, it can take existing technological means, at this, describes in no detail.
For example, when user sets font size or line space, need so all the elements of current chapters and sections all to adjust, because the content of every one page can change to some extent.But, because single page content is very limited, therefore deal with very quick.
Wherein, need to describe, in order to implement better the present invention, the all the elements that provided by ePub analytics engine module all can not be destroyed, otherwise while adjusting according to Set For Current Environmental adjustments article page, will go wrong, and, in order to realize rapidly, play up, when each adjustment article page, all need the content linear list building last time all to empty, then rebuild, thus, can utilize the most efficiently internal memory, can not cause the waste of memory headroom.
In addition in an embodiment, after our exploded view picture, video or audio frequency, if user translates into the next page or prevpage, so also the multimedia resource of current page to be closed, to save the consumption of memory headroom and cpu resource.
A ready-made case below in conjunction with our company in iOS system is described more meticulously about this ePub analytics engine and render engine.
Specifically, in one embodiment, it is mainly bookstore product.
Wherein, described ePub e-book loading system, first can scanning of home the ePub book content of storage, the front cover of having resolved before every book of acquisition is represented on the shelf.
After user clicks certain this book, this application will activate ePub resolver, and initialization ePub resolver is also resolved the ePub file bag of appointment.Wherein, first ePub resolver finds the OPF file path of appointment in container.xml.And then, resolve OPF file, obtain the various information such as title, author, copyright.Its complete class is as follows:
Figure BDA0000455117380000131
Wherein, mContainerVersion represents ePub protocol version; MBaseFilePath represents the root directory of book; MContentBaseDir represents text root directory path; MContentFullPath represents catalogue fullpath; MBookTitle represents title; MBookAuthor represents the author of book; MCopyRights represents copyright; MPublisher represents publisher; MCoverImagePath represents surface plot sheet path.ManifestDict resolves <manifest> label to deposit the key of each text file item and the dictionary of detailed text message afterwards.MToRecID represents NCX file path.MOrderedContentIDs represents sorted body matter ID linear list.
After having resolved OPF, by mToRecID, find NCX file to resolve catalogue.After catalogue has been resolved, can obtain mNaviDocTitIe, represent Catalog Header; MNaviDocAuthor is illustrated in the author who presents in catalogue; MNaviContentArray represents directory content linear list.
Application can obtain above all information after calling this method of getContents.This application can be illustrated in catalogue on screen.After user has clicked some directory entries, will activate body matter resolver.
Figure BDA0000455117380000141
When application call can complete after parse method specifying the parsing of text.Here, mTitle has deposited and has resolved text title afterwards; MContentList deposits body matter, has wherein comprised the index of text word content or multimedia resource list.And mMediaList has deposited the filename of multimedia resource.Then, render engine starts to do paging processing after obtaining body matter, and in an embodiment, this application has been used the CoreText interface of iOS bottom to do paging and processed.
After paging completes, do buffer type and show.That is to say, when reader sees the 1st page, the content that buffer memory is the 2nd page; When seeing the 2nd page, retain the 1st page, the content of the 3rd page of buffer memory then, the like.While then seeing last page, only retain the content of page second from the bottom.
Compared with prior art, what technological merit the application's motion has
1, support the mixing of the multimedia resources such as word and picture, audio frequency, video.
2, EMS memory occupation is little.Due to this motion, only get the text of user's appointment at every turn and resolve, and the content of whole book all can be loaded in internal memory, therefore greatly reduce Memory Load.
In addition, it is very short that this characteristic makes user change time of the required waits such as font size, line space, generally in 2 seconds, can complete.And conventionally all in 0.5 second, complete on iPhone5.
3, resolve efficiently.Because this programme has been used linear list element overlap technique, that is, the element of a linear list may be character string type, may be also integer type, can map directly to like this element of corresponding other linear list, both surplus time, again save space.
It should be noted that, for said method embodiment, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the application is not subject to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
Those skilled in the art should understand, the application's embodiment can be provided as method, system or computer program.Therefore, the application can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.
And the application can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code one or more.
Finally it should be noted that: the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a loading method for ePub e-book, is characterized in that, comprising:
Resolve the ePub e-book that user selects, obtain the directory information of described ePub e-book and the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Resolve the catalogue of the described ePub e-book of user's selection;
Obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, and play up and to user, show described in the chapters and sections content played up.
2. the loading method of ePub e-book according to claim 1, it is characterized in that, resolve the ePub e-book that user selects, obtain the directory information of described ePub e-book and the Word message of corresponding text and/or multimedia index information, multimedia resource file name information, comprising:
Content.opf file in ePub e-book is resolved, obtain other recommended informations of title, author and whole the book of corresponding e-book;
Get the text file of the e-book of described correspondence, and text file is resolved and got the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Obtain the NCX file corresponding to e-book of described correspondence, and it is resolved to obtain the directory information of described e-book.
3. the loading method of ePub e-book according to claim 1 and 2, is characterized in that, further comprises:
The Word message of described text and/or multimedia index information are preserved as an independent linear list; And/or, described multimedia resource file name information is also preserved as an independent linear list.
4. the loading method of ePub e-book according to claim 1 and 2, it is characterized in that, obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, and play up and to user, show described in the chapters and sections content played up, comprising:
Obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, described Word message and/or multimedia index information are carried out to paging and show to user;
Wherein, when clicking described multimedia index information as user, according to search index, arrive corresponding multimedia resource filename, and corresponding multimedia resource is shown as an independent page.
5. the loading method of ePub e-book according to claim 4, is characterized in that, described Word message and/or multimedia index information are carried out to paging and show to user, further comprises:
Described Word message and/or multimedia index information are carried out to paging and to user, carry out buffer memory and show first page, and when user reads this page, follow-up page number content is shifted to an earlier date to buffer memory.
6. the loading method of ePub e-book according to claim 1, is characterized in that, resolves the ePub e-book that user selects, and further comprises:
Resolve text file, and obtain the escape character information wherein comprising, and described escape character information is all put in the Word message of described text and/or in multimedia index information, simultaneously, in follow-up parsing, also resolve html tag, and the label of resolver support is done to respective handling;
Wherein, described html tag comprises:
Audio frequency, runic, text body part, newline, header line, title, italic, to the index of image, hyperlink, paragraph, title, video tab is arbitrary or combination.
7. the loading method of ePub e-book according to claim 4, it is characterized in that, further comprise: obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information, described Word message and/or multimedia index information are carried out to paging and show specifically and comprise to user:
The Word message of described text and/or multimedia index information, multimedia resource file name information are all put in a content linear list and are preserved, comprise following:
The word content of character string forms or image/video link, described character string are body matters or belong to multimedia type, multimedia link.
8. the loading method of ePub e-book according to claim 7, is characterized in that, further comprises: obtain the information that user adjusts font or line space, and word is adjusted;
And in each adjustment article page, the described content linear list building before is all emptied and rebuild.
9. a loading system for ePub e-book, is characterized in that, comprising:
Analytics engine module and render engine module, wherein, described analytics engine module, the ePub e-book of selecting for resolving user, obtains the directory information of described ePub e-book and the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Resolve the catalogue of the described ePub e-book that user selects, obtain the Word message of text corresponding to described catalogue and/or multimedia index information, multimedia resource file name information;
Described render engine module, for play up and to user, show described in the chapters and sections content played up.
10. the loading method of ePub e-book according to claim 9, it is characterized in that, described analytics engine module, is further used for the content.opf file in ePub e-book to resolve, and obtains other recommended informations of title, author and whole the book of corresponding e-book;
Get the text file of the e-book of described correspondence, and text file is resolved and got the Word message of corresponding text and/or multimedia index information, multimedia resource file name information;
Obtain the NCX file corresponding to e-book of described correspondence, and it is resolved to obtain the directory information of described e-book.
CN201410010411.9A 2014-01-09 2014-01-09 ePub electronic book loading method and system Pending CN103761277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410010411.9A CN103761277A (en) 2014-01-09 2014-01-09 ePub electronic book loading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410010411.9A CN103761277A (en) 2014-01-09 2014-01-09 ePub electronic book loading method and system

Publications (1)

Publication Number Publication Date
CN103761277A true CN103761277A (en) 2014-04-30

Family

ID=50528514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410010411.9A Pending CN103761277A (en) 2014-01-09 2014-01-09 ePub electronic book loading method and system

Country Status (1)

Country Link
CN (1) CN103761277A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156191A (en) * 2015-04-21 2016-11-23 北京大学 Academic probation method based on ePub file and the academic probation system based on ePub file
CN106713962A (en) * 2016-12-19 2017-05-24 掌阅科技股份有限公司 Video display method and apparatus and terminal device
CN107220221A (en) * 2016-03-22 2017-09-29 北大方正集团有限公司 The read method and device of EPub files based on Android platform
CN107247691A (en) * 2017-05-24 2017-10-13 腾讯科技(深圳)有限公司 A kind of display methods of text message, device, mobile terminal and storage medium
CN107992250A (en) * 2017-12-20 2018-05-04 维沃移动通信有限公司 A kind of display methods of electronic book documentary content, mobile terminal
CN108154041A (en) * 2016-12-02 2018-06-12 北京京东尚科信息技术有限公司 A kind of ePub document data safeties guard method, apparatus and system
CN108345595A (en) * 2017-01-22 2018-07-31 北大方正集团有限公司 The management method and management system of EPUB format books
CN109062880A (en) * 2018-07-05 2018-12-21 掌阅科技股份有限公司 The production method of electronic book documentary, electronic equipment, server, storage medium
CN109542852A (en) * 2018-12-03 2019-03-29 郑州云海信息技术有限公司 A kind of directory information processing method and relevant apparatus
CN109726166A (en) * 2018-12-20 2019-05-07 百度在线网络技术(北京)有限公司 Display methods, device, computer equipment and the readable storage medium storing program for executing of e-book
CN110532233A (en) * 2019-08-20 2019-12-03 武汉鼎森电子科技有限公司 A kind of epub document generating method and system
CN110717323A (en) * 2019-10-17 2020-01-21 北京幻想纵横网络技术有限公司 Document seal dividing method and device, terminal and computer readable storage medium
CN110727887A (en) * 2019-09-17 2020-01-24 武汉鼎森电子科技有限公司 Book link processing method based on two-dimensional code
CN110807298A (en) * 2019-09-27 2020-02-18 北京思维造物信息科技股份有限公司 Method and system for processing marking information
CN111276118A (en) * 2018-12-03 2020-06-12 北京京东尚科信息技术有限公司 Method and system for realizing audio electronic book
CN111460345A (en) * 2020-03-30 2020-07-28 掌阅科技股份有限公司 Electronic book loading display method, electronic equipment and storage medium
CN112016024A (en) * 2019-05-31 2020-12-01 腾讯科技(深圳)有限公司 Data recommendation method and device and computer-readable storage medium
CN112487327A (en) * 2020-11-30 2021-03-12 惠州Tcl移动通信有限公司 Electronic book loading method and device and mobile terminal
CN112632959A (en) * 2020-12-29 2021-04-09 湖北大学 EPUB file analysis method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281529A (en) * 2008-05-30 2008-10-08 杨洪 Method for realizing hyperlink reading on hand-hold reading equipment
CN101894115A (en) * 2009-05-18 2010-11-24 北京大学 Image data processing method of electronic document and device thereof
CN101977233A (en) * 2010-11-01 2011-02-16 优视科技有限公司 Method and system for leading mobile terminal to browse webpage in reading mode
CN102521280A (en) * 2011-11-26 2012-06-27 华为技术有限公司 Loading method and loading device of EPub electronic book
CN102915654A (en) * 2011-08-05 2013-02-06 汉王科技股份有限公司 Digital document processing method and electronic reading device
US20130080887A1 (en) * 2011-09-26 2013-03-28 Zhaorong Hou Simulation of web applications and secondary devices in a web browser, web application development tools, and methods using the same
CN103020082A (en) * 2011-09-23 2013-04-03 北大方正集团有限公司 Reading processing system and method, server and terminal equipment
US20130088511A1 (en) * 2011-10-10 2013-04-11 Sanjit K. Mitra E-book reader with overlays

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281529A (en) * 2008-05-30 2008-10-08 杨洪 Method for realizing hyperlink reading on hand-hold reading equipment
CN101894115A (en) * 2009-05-18 2010-11-24 北京大学 Image data processing method of electronic document and device thereof
CN101977233A (en) * 2010-11-01 2011-02-16 优视科技有限公司 Method and system for leading mobile terminal to browse webpage in reading mode
CN102915654A (en) * 2011-08-05 2013-02-06 汉王科技股份有限公司 Digital document processing method and electronic reading device
CN103020082A (en) * 2011-09-23 2013-04-03 北大方正集团有限公司 Reading processing system and method, server and terminal equipment
US20130080887A1 (en) * 2011-09-26 2013-03-28 Zhaorong Hou Simulation of web applications and secondary devices in a web browser, web application development tools, and methods using the same
US20130088511A1 (en) * 2011-10-10 2013-04-11 Sanjit K. Mitra E-book reader with overlays
CN102521280A (en) * 2011-11-26 2012-06-27 华为技术有限公司 Loading method and loading device of EPub electronic book

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王黎黎: ""电子书阅读软件的设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
陆海龙: ""Linux平台嵌入式epub电子书阅读与管理系统"", 《万方数据库》 *

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156191B (en) * 2015-04-21 2019-08-06 北京大学 Academic probation method based on ePub file and the academic probation system based on ePub file
CN106156191A (en) * 2015-04-21 2016-11-23 北京大学 Academic probation method based on ePub file and the academic probation system based on ePub file
CN107220221A (en) * 2016-03-22 2017-09-29 北大方正集团有限公司 The read method and device of EPub files based on Android platform
CN108154041A (en) * 2016-12-02 2018-06-12 北京京东尚科信息技术有限公司 A kind of ePub document data safeties guard method, apparatus and system
CN106713962A (en) * 2016-12-19 2017-05-24 掌阅科技股份有限公司 Video display method and apparatus and terminal device
CN106713962B (en) * 2016-12-19 2018-10-09 掌阅科技股份有限公司 Video display method, apparatus and terminal device
CN108345595A (en) * 2017-01-22 2018-07-31 北大方正集团有限公司 The management method and management system of EPUB format books
CN107247691A (en) * 2017-05-24 2017-10-13 腾讯科技(深圳)有限公司 A kind of display methods of text message, device, mobile terminal and storage medium
CN107247691B (en) * 2017-05-24 2021-10-08 腾讯科技(深圳)有限公司 Text information display method and device, mobile terminal and storage medium
CN107992250A (en) * 2017-12-20 2018-05-04 维沃移动通信有限公司 A kind of display methods of electronic book documentary content, mobile terminal
CN109062880A (en) * 2018-07-05 2018-12-21 掌阅科技股份有限公司 The production method of electronic book documentary, electronic equipment, server, storage medium
CN109542852B (en) * 2018-12-03 2021-10-29 郑州云海信息技术有限公司 Directory information processing method and related device
CN109542852A (en) * 2018-12-03 2019-03-29 郑州云海信息技术有限公司 A kind of directory information processing method and relevant apparatus
CN111276118A (en) * 2018-12-03 2020-06-12 北京京东尚科信息技术有限公司 Method and system for realizing audio electronic book
CN109726166A (en) * 2018-12-20 2019-05-07 百度在线网络技术(北京)有限公司 Display methods, device, computer equipment and the readable storage medium storing program for executing of e-book
CN109726166B (en) * 2018-12-20 2024-06-07 百度在线网络技术(北京)有限公司 Electronic book display method and device, computer equipment and readable storage medium
CN112016024A (en) * 2019-05-31 2020-12-01 腾讯科技(深圳)有限公司 Data recommendation method and device and computer-readable storage medium
CN112016024B (en) * 2019-05-31 2024-05-10 腾讯科技(深圳)有限公司 Data recommendation method and device and computer readable storage medium
CN110532233A (en) * 2019-08-20 2019-12-03 武汉鼎森电子科技有限公司 A kind of epub document generating method and system
CN110727887A (en) * 2019-09-17 2020-01-24 武汉鼎森电子科技有限公司 Book link processing method based on two-dimensional code
CN110807298A (en) * 2019-09-27 2020-02-18 北京思维造物信息科技股份有限公司 Method and system for processing marking information
CN110807298B (en) * 2019-09-27 2023-08-08 北京思维造物信息科技股份有限公司 Method and system for processing marking information
CN110717323A (en) * 2019-10-17 2020-01-21 北京幻想纵横网络技术有限公司 Document seal dividing method and device, terminal and computer readable storage medium
CN111460345A (en) * 2020-03-30 2020-07-28 掌阅科技股份有限公司 Electronic book loading display method, electronic equipment and storage medium
CN112487327A (en) * 2020-11-30 2021-03-12 惠州Tcl移动通信有限公司 Electronic book loading method and device and mobile terminal
CN112632959A (en) * 2020-12-29 2021-04-09 湖北大学 EPUB file analysis method
CN112632959B (en) * 2020-12-29 2023-09-01 湖北大学 EPUB file analysis method

Similar Documents

Publication Publication Date Title
CN103761277A (en) ePub electronic book loading method and system
Asakawa et al. Transcoding
Gustafson Adaptive web design: crafting rich experiences with progressive enhancement
US20110035660A1 (en) System and method for the automated creation of a virtual publication
CN101548273B (en) Method for demonstrating file
US9600919B1 (en) Systems and methods for assembling and/or displaying multimedia objects, modules or presentations
US20130326333A1 (en) Mobile Content Management System
US20110131482A1 (en) System and method for multi-channel publishing
US20120036429A1 (en) Electronic book system and content server
US20080177708A1 (en) System and method for providing persistent, dynamic, navigable and collaborative multi-media information packages
KR20150040914A (en) E-reader systems
US7823086B2 (en) Publishing protocol extensions for enhanced authoring of web pages
US20120143590A1 (en) Electronic book system and content server
CN104834753A (en) Webpage screenshot generating method and device
US20100306307A1 (en) System and method for social bookmarking/tagging at a sub-document and concept level
CN108509504A (en) The online method for previewing of document, device, equipment, client and storage medium
Garrish et al. EPUB 3 best practices
US20120084632A1 (en) Method and apparatus for inserting address of hyperlink into bookmark
US20170032434A1 (en) Method and systems relating to electronic multi-domain publishing
Griffin Foundations of Popfly: rapid mashup development
JP2009251655A (en) Filtering device, filtering method, program, and recording medium
JP2008197787A (en) Web content providing device, web content providing method, and program
Yoo et al. ESOTAG: E-book evolution using collaborative social tagging by readers
Joshi HTML5 programming for ASP. NET developers
Jamsa Introduction to web development using HTML 5

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140430

RJ01 Rejection of invention patent application after publication